/* Base layout for pages built on the shared design layer (Who We Help pages).
   Loaded before site.css, which adds the brand styling on top. */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.6; padding-top: var(--banner-height, 40px); }

.promo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 200; text-align: center; }

header { position: sticky; top: var(--banner-height, 40px); z-index: 100; }
.header-container { margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
#mainNav { display: flex; align-items: center; }
#mainNav a { text-decoration: none; color: var(--dark); }
#mainNav a.nav-cta { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown-menu { display: none; position: absolute; left: 0; background: var(--white); min-width: 220px; z-index: 150; }
.nav-dropdown:hover .nav-dropdown-trigger svg, .nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu a { display: block; padding: 0.6rem 1.25rem; font-size: 0.85rem; white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--dark); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-toggle { display: flex; }
    #mainNav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
    #mainNav.nav-open { max-height: calc(100vh - 120px); overflow-y: auto; }
    #mainNav a { padding: 1rem 2rem; border-bottom: 1px solid var(--line); }
    #mainNav a.nav-cta { margin: 1rem 2rem; border-radius: 999px; }
    .nav-dropdown-menu { display: block; position: static; padding: 0; }
    .nav-dropdown-menu a { padding: 0.85rem 2rem 0.85rem 3rem; }
    .nav-dropdown-trigger svg { display: none; }
}

.btn { display: inline-flex; align-items: center; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.sec.alt { background: var(--white); }
.sec h2 { margin: 1rem 0 1.25rem; max-width: 20ch; }
.lead { font-size: 1.1rem; color: #5d5f62; max-width: 60ch; }

/* Hero extras */
.page-hero { text-align: center; }
.page-hero .breadcrumb { font-size: 0.78rem; margin-bottom: 1.5rem; }
.page-hero .breadcrumb a { text-decoration: none; }
.page-hero .gm-label { position: relative; color: #E7A5AF; margin-bottom: 1.25rem; }
.page-hero > p.intro { max-width: 62ch; margin: 1.5rem auto 0; font-size: 1.12rem; line-height: 1.65; }
.page-hero .hero-actions { position: relative; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.25rem; }
.page-hero .btn-ghost { color: var(--bg); border: 1.5px solid rgba(245,243,239,0.4); background: transparent; }
.page-hero .btn-ghost::before { background: var(--bg); }
.page-hero .btn-ghost:hover { color: var(--dark); }

/* Pain points */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.pain { border-top: 2px solid var(--primary); padding-top: 1.25rem; }
.pain h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.6rem; }
.pain p { color: #5d5f62; }

/* Offer rows */
.offers { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--dark); }
.offers li { border-bottom: 1px solid var(--line); }
.offers a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.75rem 0.25rem; text-decoration: none; color: var(--dark); transition: background 0.4s, padding 0.5s var(--ease-out); }
.offers a:hover { background: var(--bg); padding-left: 1rem; padding-right: 1rem; }
.offers h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; line-height: 1; }
.offers .price { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.offers p { color: #5d5f62; }
.offers .go { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); white-space: nowrap; }

/* Moments */
.moments { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.moments li { list-style: none; padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; }
.moments li::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.6rem; background: var(--primary); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.proof a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--bg); isolation: isolate; }
.proof img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.proof a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,17,17,0.92) 10%, transparent 70%); }
.proof a:hover img { transform: scale(1.05); }
.proof .body { padding: 1.75rem; }
.proof .tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #E7A5AF; }
.proof h3 { font-size: 1.8rem; margin: 0.4rem 0 0.5rem; }
.proof p { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.3; color: rgba(245,243,239,0.85); }

/* Steps */
.steps-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: s; }
.steps-mini li { list-style: none; padding: 1.5rem; border-radius: 14px; background: var(--bg); }
.steps-mini b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 0.9rem; }
.steps-mini h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps-mini p { color: #5d5f62; font-size: 0.95rem; }

/* FAQ */
.faqs { margin-top: 2rem; border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-family: var(--font-mono); color: var(--primary); transition: transform 0.3s; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { padding: 0 0 1.4rem; color: #5d5f62; max-width: 70ch; }

/* Hub cards */
.hub-group + .hub-group { margin-top: 4rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.hub-grid a { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.75rem; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--dark); transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s; }
.hub-grid a:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 24px 48px -28px rgba(28,28,28,0.4); }
.hub-grid h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.hub-grid p { color: #5d5f62; font-size: 0.97rem; }
.hub-grid span { margin-top: auto; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }

/* CTA + footer */
.cta { color: var(--white); text-align: center; }
.cta-container { max-width: 900px; margin: 0 auto; position: relative; }
.cta h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.9; }

footer { color: var(--white); }
.footer-reviews { background: var(--bg); padding: 2rem 1.5rem; margin-bottom: 4rem; text-align: center; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.7rem; }
.footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.92rem; }
.footer-section a:hover { color: var(--white); }
.footer-section h4 { margin-bottom: 1.4rem; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; color: var(--bg); max-width: 14ch; }
.footer-bottom { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom a { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
    .pains, .proof { grid-template-columns: 1fr; }
    .steps-mini { grid-template-columns: 1fr 1fr; }
    .offers a { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) { .steps-mini { grid-template-columns: 1fr; } }
