/* Avenues homepage ("Avenues: Homepage" template). Mobile-first; design from the Avenues
   homepage prototype; tokens from theme.css (:root). Card rows use .av-swipe (theme.css):
   horizontal scroll-snap on phones, grid on larger screens. */

.av-home { overflow-x: clip; }
.av-home h2 { font-size: clamp(1.5rem, 3.4vw, var(--fs-h2)); text-wrap: balance; }
.av-home .center { text-align: center; }
.home-head { max-width: var(--measure); margin: 0 auto var(--space-5); }
.home-head p, .home-intro { color: var(--text-muted); font-size: var(--fs-lead); }
.home-intro p { margin: 0 0 var(--space-3); max-width: var(--measure); }
.home-intro a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-4); }
.home-actions:empty { display: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-600); text-decoration: none; }
.arrow-link:hover span { transform: translateX(3px); }
.arrow-link span { transition: transform var(--dur-base) var(--ease-out); }
.btn-dark { background: var(--grey-900); color: var(--brand-white); }
.btn-dark:hover { color: var(--brand-white); }

/* Hero */
.home-hero { position: relative; overflow: hidden; background: #FFFFFF; }
.home-hero .blob { display: none; }
.home-hero .blob.y { width: 340px; height: 340px; background: var(--sun-200); top: -120px; right: -80px; }
.home-hero .blob.g { width: 280px; height: 280px; background: var(--green-200); bottom: -120px; left: -100px; }
.home-hero-grid { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: center; padding-block: var(--space-6) var(--section-y); }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 var(--space-3); }
.home-hero .lead { font-size: var(--fs-lead); color: var(--text-body); max-width: 46ch; margin: 0; }
.home-hero-media img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 960px) {
	.home-hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-7); padding-block: var(--section-y-lg); }
	.home-hero-media img { aspect-ratio: 3/2; }
}

/* Why Avenues */
.feature-card { background: #FFFFFF; border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
/* Brand icon on a plain Sun circle — deep green artwork, no pastel chip. */
.feature-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-3); background: var(--brand-sun); color: var(--green-600); }
.feature-icon .av-icon { width: 28px; height: 28px; color: inherit; }
.feature-card h3 { font-size: 1.0625rem; margin: 0 0 var(--space-2); }
.feature-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 var(--space-3); flex: 1; }
@media (min-width: 1000px) { .feature-grid.av-swipe { grid-template-columns: repeat(4, 1fr); } }

/* FAIR IVF band */
.home-fair { background: var(--brand-sun); }
.home-fair-grid { display: grid; gap: var(--space-5); align-items: center; }
.fair-logo img { width: auto; max-height: 56px; margin-bottom: var(--space-3); }
.home-fair h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); color: var(--green-600); max-width: 28ch; margin: 0 0 var(--space-4); }
.fair-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-2); }
.fair-stat { padding-left: var(--space-4); border-left: 2px solid rgba(85,90,97,.3); margin: 0; }
.fair-stat:first-child { padding-left: 0; border-left: 0; }
.fair-stat dt { font-size: var(--fs-xs); color: var(--grey-700); font-weight: 500; }
.fair-stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; color: var(--grey-900); line-height: 1.05; }
.fair-stat.price dd { color: var(--text-price); }
.fair-note { font-size: var(--fs-sm); color: var(--grey-700); margin: 0; }
.home-fair-media img { width: 100%; height: auto; border-radius: var(--radius-xl); }
@media (min-width: 920px) { .home-fair-grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-7); } }
.home-fair-media img { aspect-ratio: 3/2; object-fit: cover; }

.benefit-bar { background: var(--green-600); color: var(--brand-white); }
.benefit-bar ul { list-style: none; margin: 0 auto; display: grid; gap: var(--space-3); padding-block: var(--space-5); }
.benefit { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); font-weight: 500; }
.benefit svg { width: 28px; height: 28px; color: var(--brand-sun); flex-shrink: 0; }
@media (min-width: 640px) { .benefit-bar ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefit-bar ul { grid-template-columns: repeat(5, 1fr); gap: var(--space-5); } }
/* Fewer than five points (e.g. Brasil's three): centre them rather than leave empty columns on the right. */
@media (min-width: 640px) { .benefit-bar ul:not(:has(> li:nth-child(5))) { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-7); } }

/* Packages */
.pkg-card { position: relative; background: #FFFFFF; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-100); display: flex; flex-direction: column; box-shadow: var(--shadow-xs); height: 100%; }
.pkg-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--grey-100); }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-popular { position: absolute; top: var(--space-3); right: var(--space-3); background: var(--green-600); color: var(--brand-white); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; padding: 5px 12px; border-radius: var(--radius-pill); }
.pkg-body { padding: var(--space-4); display: flex; flex-direction: column; flex: 1; }
.pkg-body h3 { font-size: 1.125rem; margin: 0 0 var(--space-1); }
.pkg-body h3 a { color: inherit; text-decoration: none; }
.pkg-body .pkg-price { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--text-price); margin: 0 0 var(--space-2); font-variant-numeric: tabular-nums; }
.pkg-body p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 var(--space-3); flex: 1; }
@media (min-width: 1000px) { .pkg-grid.av-swipe { grid-template-columns: repeat(3, 1fr); } }

/* Discovery call CTA */
.home-cta { background: var(--brand-sun); }
.home-cta-grid { display: grid; gap: var(--space-5); align-items: center; padding-block: var(--section-y-lg); }
.home-cta h2 { color: var(--grey-900); margin: 0 0 var(--space-3); }
.home-cta p { color: var(--grey-900); font-size: var(--fs-lead); margin: 0 0 var(--space-4); max-width: var(--measure); }
.home-cta-media img { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; }
@media (min-width: 820px) { .home-cta-grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-7); } }

/* Split sections (experts, hospitality) */
.home-split { display: grid; gap: var(--space-5); align-items: center; }
.home-split h2 { margin: 0 0 var(--space-3); }
.home-split-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 3/2; object-fit: cover; }
@media (min-width: 900px) { .home-split { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
/* A split with no picture: one centred column across the section, like the other section heads. */
.home-solo { text-align: center; }
.home-solo h2 { margin: 0 0 var(--space-3); }
.home-solo .home-intro { max-width: 70ch; margin-inline: auto; }
.home-solo .home-actions { justify-content: center; }

.expert-row { margin-top: var(--space-5); }
.expert-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; background: #FFFFFF; border: 1px solid var(--grey-100); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-xs); height: 100%; }
.expert-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.expert-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--grey-900); }
.expert-role { font-size: var(--fs-xs); color: var(--green-600); font-weight: 600; }
@media (min-width: 1000px) { .expert-row.av-swipe { grid-template-columns: repeat(4, 1fr); } }

/* Results */
.home-results { background: var(--green-600); color: var(--brand-white); }
.home-results h2, .home-results h3 { color: var(--brand-white); }
.home-results .home-results-title { text-align: center; margin: 0 0 var(--space-6); }
.home-results .results-sub { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin: 0 0 var(--space-3); }
.results-grid { display: grid; gap: var(--space-5); align-items: start; }
.results-media img { width: 100%; height: auto; border-radius: var(--radius-md); margin-block: var(--space-3); aspect-ratio: 16/9; object-fit: cover; }
.big-stat .n { font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 4rem); font-weight: 700; line-height: .95; margin: 0 0 var(--space-2); }
.big-stat .n a { color: var(--brand-sun); text-decoration: none; }
.big-stat .desc { color: rgba(255,250,250,.88); margin: 0; }
.reviews-panel { background: #FFFFFF; color: var(--grey-900); border-radius: var(--radius-lg); padding: var(--space-4); }
.home-results .reviews-panel h3 { color: var(--grey-900); }
.av-embed iframe { width: 100%; border: 0; min-height: 0 !important; height: 340px; }
.home-press { margin-top: var(--space-6); text-align: center; }
.home-press .results-sub { margin-bottom: var(--space-4); }
.press-logos { list-style: none; margin: 0; padding: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4) var(--space-6); background: #FFFFFF; border-radius: var(--radius-lg); }
/* Same height for every logo, and a width cap so a long wordmark (The Observer) does not dwarf the rest. */
.press-logos img { height: 24px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .7; }
.press-logos a:hover img, .press-logos a:focus-visible img { filter: none; opacity: 1; }
.results-note { margin-top: var(--space-5); font-size: 0.8125rem; color: rgba(255,255,255,.82); }
.results-note a { color: var(--sun-300); }
@media (min-width: 900px) { .results-grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-7); } .press-logos { gap: var(--space-4) var(--space-5); } .press-logos img { height: 28px; max-width: 130px; } }

/* Hospitality + clinics */
.hosp-gallery figure { margin: 0; }
.hosp-gallery img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); border: 3px solid var(--brand-sun); }
@media (min-width: 760px) { .hosp-gallery.av-swipe { grid-template-columns: 1fr 1fr; } }
.clinic-row { margin-top: var(--space-5); }
.clinic-card { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; background: var(--grey-50); border-radius: var(--radius-md); padding: var(--space-4); height: 100%; }
.clinic-name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--grey-900); }
.clinic-line { font-size: var(--fs-sm); color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) { .arrow-link span { transition: none; } }
