/* AImiigo Studio front styles: listings, forms, and pages built with plain blocks on other themes.
   Colors come from the active theme (currentColor and theme presets), so it fits any design. */

:root {
	--aims-line: color-mix(in srgb, currentColor 16%, transparent);
	--aims-soft: color-mix(in srgb, currentColor 5%, transparent);
	--aims-accent: var(--wp--preset--color--primary, var(--wp--preset--color--accent, currentColor));
	--aims-radius: 12px;
}

/* ---------- Directory ---------- */
.aims-listings { display: grid; gap: 1.5rem; }
.aims-search { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.aims-search input[type="search"] { flex: 1 1 16rem; min-width: 0; }
.aims-search select { flex: 0 1 14rem; }
.aims-search :is(input, select) {
	font: inherit; color: inherit; background: transparent;
	padding: 0.7rem 0.9rem; border: 1px solid var(--aims-line); border-radius: 10px;
}
.aims-search button { cursor: pointer; }
.aims-listing-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.aims-listing-card {
	margin: 0; display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--aims-line); border-radius: var(--wp--custom--radius--medium, var(--aims-radius));
	background: var(--wp--preset--color--base, transparent);
}
.aims-listing-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.aims-listing-card__body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: 0.45rem; }
.aims-listing-card__body > * { margin: 0; }
.aims-listing-card__cat { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--aims-accent); }
.aims-listing-card__title { font-size: 1.15rem; line-height: 1.25; }
.aims-listing-card__title a { color: inherit; text-decoration: none; }
.aims-listing-card__title a:hover { text-decoration: underline; }
.aims-listing-card__text, .aims-listing-card__meta { font-size: 0.95rem; opacity: 0.8; }
.aims-listings-empty { padding: 1.25rem; border: 1px dashed var(--aims-line); border-radius: var(--aims-radius); margin: 0; }
.aims-pager { display: flex; gap: 1rem; align-items: center; justify-content: center; }
.aims-listing-details { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--aims-line); border-radius: var(--aims-radius); background: var(--aims-soft); }
.aims-listing-details dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0; }
.aims-listing-details dt { font-weight: 600; }
.aims-listing-details dd { margin: 0; }

/* ---------- Forms on themes other than AImiigo ---------- */
body:not(.aims-has-theme) .aim-form { display: grid; gap: 1rem; max-width: 40rem; }
body:not(.aims-has-theme) .aim-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
body:not(.aims-has-theme) .aim-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
	font: inherit; font-weight: 400; color: inherit; background: transparent; width: 100%; box-sizing: border-box;
	padding: 0.75rem 0.9rem; border: 1px solid var(--aims-line); border-radius: 10px;
}
body:not(.aims-has-theme) .aim-form :is(input, select, textarea):focus { outline: 2px solid var(--aims-accent); outline-offset: 1px; }
body:not(.aims-has-theme) .aim-form button { justify-self: start; cursor: pointer; }
body:not(.aims-has-theme) .aim-form button:not(.wp-element-button) { padding: 0.8rem 1.4rem; border: 0; border-radius: 999px; background: var(--aims-accent); color: #fff; font: inherit; font-weight: 600; }
body:not(.aims-has-theme) .aim-form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { body:not(.aims-has-theme) .aim-form__row { grid-template-columns: 1fr 1fr; } }
body:not(.aims-has-theme) .aim-form__notice { padding: 0.8rem 1rem; border-radius: 10px; background: var(--aims-soft); margin: 0; }
.aim-form__hp { position: absolute !important; left: -9999px; }

/* ---------- Plain block sections (Page builder on other themes) ---------- */
body:not(.aims-has-theme) .aims-section { margin-block: clamp(2.5rem, 6vw, 4.5rem); }
body:not(.aims-has-theme) .aims-section:first-child { margin-block-start: 0; }
body:not(.aims-has-theme) .aims-section .wp-block-columns { gap: 1.25rem; margin-block: 1.25rem; }
body:not(.aims-has-theme) .aims-section .aims-card { padding: 1.4rem; border: 1px solid var(--aims-line); border-radius: var(--wp--custom--radius--medium, var(--aims-radius)); }
body:not(.aims-has-theme) .aims-section .aims-card > :first-child { margin-top: 0; }
body:not(.aims-has-theme) .aims-section .aims-card > :last-child { margin-bottom: 0; }
body:not(.aims-has-theme) .aims-plan { display: flex; flex-direction: column; }
body:not(.aims-has-theme) .aims-plan .wp-block-buttons { margin-top: auto; padding-top: 0.75rem; }
body:not(.aims-has-theme) .aims-price { margin-block: 0.25rem; font-weight: 700; line-height: 1.1; }
body:not(.aims-has-theme) .aims-price strong { font-size: 0.9rem; font-weight: 500; opacity: 0.7; }
body:not(.aims-has-theme) .aims-cta { padding: clamp(1.75rem, 5vw, 3rem); border-radius: var(--wp--custom--radius--large, 18px); background: var(--aims-soft); border: 1px solid var(--aims-line); }
body:not(.aims-has-theme) .aims-cta > :first-child { margin-top: 0; }
body:not(.aims-has-theme) .aims-lead { opacity: 0.85; }
body:not(.aims-has-theme) .aims-statement { font-weight: 600; line-height: 1.35; }
body:not(.aims-has-theme) .aims-note { opacity: 0.75; }
body:not(.aims-has-theme) .aims-section .wp-block-details { border-bottom: 1px solid var(--aims-line); padding-block: 0.9rem; }
body:not(.aims-has-theme) .aims-section .wp-block-details summary { font-weight: 600; cursor: pointer; }
body:not(.aims-has-theme) .aims-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
body:not(.aims-has-theme) .aims-tags li { border: 1px solid var(--aims-line); border-radius: 999px; padding: 0.35rem 0.9rem; margin: 0; }
body:not(.aims-has-theme) .aims-plain { list-style: none; padding: 0; }
