/* AgentSpotlight 2026 — section styles.
   Structure classes come from as-template-core section markup; design tokens
   come from theme.json presets. Variant lineages restyle here + theme.json. */

/* ---------- section rhythm ---------- */
.as-section {
	padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}
.as-section-hero,
.as-section-cta {
	padding: 0;
}

/* ---------- eyebrow ---------- */
.as-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
}

/* ---------- as/cover ---------- */
.as-cover {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--wp--preset--color--contrast);
	display: flex;
}
.as-cover__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 32, 0.2) 0%, rgba(11, 18, 32, 0.95) 100%);
	pointer-events: none;
}
.as-cover__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 860px;
	margin: auto;
	padding: clamp(4rem, 12vh, 7rem) 1.25rem 3.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: flex-end;
}
.as-cover--editor {
	background-color: var(--wp--preset--color--contrast);
}

/* ---------- hero details ---------- */
.as-hero-subtitle {
	font-style: italic;
	opacity: 0.95;
}
.as-taglines {
	text-align: center;
	min-height: 1.6em;
	color: var(--wp--preset--color--highlight);
	font-style: italic;
}
.as-taglines .as-tagline {
	display: none;
}
.as-taglines .as-tagline.is-active {
	display: inline;
}

/* ---------- stats ---------- */
.as-stat-value {
	margin: 0;
}
.as-stat-label {
	margin-top: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
/* stat_4 is optional: collapse any stats column whose value is empty.
   Front end only — the editor canvas (body.editor-styles-wrapper) keeps the
   column visible so a client can click in and fill it. (F5, 2026-07-28) */
body:not(.editor-styles-wrapper) .as-section-stats .wp-block-column:has(.as-stat-value:empty) {
	display: none;
}

/* ---------- about ---------- */
.as-about-photo img {
	border-radius: 12px;
}
.as-about-badge {
	background: var(--wp--preset--color--base-2);
	border-radius: 12px;
	padding: 1rem 1.5rem;
	margin-top: 1rem;
}
.as-about-role {
	font-weight: 600;
}

/* ---------- team ---------- */
.as-team-photo img {
	border-radius: 12px;
}

/* ---------- generic cards & grids ---------- */
.as-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 2.5rem;
}
.as-services-grid,
.as-blog-grid,
.as-testimonials-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.as-communities-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.as-card {
	background: var(--wp--preset--color--base);
	border-radius: 10px;
	padding: 1.5rem;
	box-shadow: 0 6px 24px rgba(11, 18, 32, 0.08);
	margin: 0;
}
.as-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}
.as-card__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--medium);
}
.as-card__title a {
	text-decoration: none;
}
.as-blog-card__date {
	display: block;
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.7;
}

/* testimonials sit on the dark band */
.as-testimonial {
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.as-testimonial__quote {
	font-style: italic;
}
.as-testimonial__name {
	margin-top: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--highlight);
}

/* ---------- why choose cards ---------- */
.as-feature-card {
	background: var(--wp--preset--color--base-2);
	border-radius: 10px;
	padding: 1.5rem;
	height: 100%;
}

/* ---------- faq ---------- */
.as-faq-list {
	max-width: 760px;
	margin: 2rem auto 0;
}
.as-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--base-2);
	padding: 0.75rem 0;
}
.as-faq-item__q {
	cursor: pointer;
	font-weight: 600;
	list-style-position: outside;
}
.as-faq-item__a {
	padding: 0.75rem 0 0.25rem;
}

/* ---------- listings ---------- */
.as-listings-placeholder {
	border: 2px dashed var(--wp--preset--color--base-2);
	border-radius: 10px;
	padding: 3rem 1.5rem;
	text-align: center;
	opacity: 0.7;
	margin-top: 2rem;
}

/* ---------- contact ---------- */
.as-contact-email,
.as-contact-address {
	white-space: pre-line;
}
.as-contact-license {
	opacity: 0.75;
}

/* ---------- header/footer ---------- */
.as-site-header {
	border-bottom: 1px solid var(--wp--preset--color--base-2);
}
.as-site-footer .as-footer-note {
	opacity: 0.6;
}

/* ---------- mobile (gap 5 M-A, 2026-08-12) ----------
   Canonical structural collapse for the grids CORE renders. The .as-grid
   family above already reflows via auto-fit/minmax; these were authored with
   explicit column counts and need an explicit breakpoint. Per-site skins may
   restate these at their own specificity — this is the baseline every site
   inherits, so a new site is responsive before anyone writes a lineage file.
   Breakpoint 768px matches the burger collapse (D-M, Eli 2026-08-12).
   NOT collapsed here, by measurement: badge rows and paired form fields stay
   multi-column on mobile (fyhs live keeps 3-up badges and a 2-up name row). */
@media (max-width: 768px) {
	.as-cshow-grid,
	.as-blogidx-grid,
	.as-service-detail {
		grid-template-columns: 1fr;
	}
	.as-service-detail {
		gap: 20px;
	}
}
