/* ============================================================
   OneTree prototype v2: "elevated" layer (2026-11-09)
   Loads after style.css and liquid-glass.css.
   Glass = ~/Developer/components/liquid-glass (refraction in Chromium,
   frosted blur in Safari/Firefox). Glass only goes where there is a
   photo or gradient behind it.
   ============================================================ */

:root {
  --radius: 18px;
  --shadow: 0 22px 60px rgba(30, 42, 68, .13);
  --shadow-soft: 0 10px 30px rgba(30, 42, 68, .08);
}

/* ---------- Type + rhythm ---------- */
h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.005em; }
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.lead { font-size: 1.22rem; }
.btn { box-shadow: 0 8px 22px rgba(30, 42, 68, .14); }
.btn--outline, .btn--outline-light { box-shadow: none; }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(249, 175, 75, .38); }

/* ---------- Floating glass header ----------
   The glass sits on ::before, not the pill itself: backdrop-filter on the
   pill would trap the fixed-position phone menu inside it. */
.site-header { position: sticky; top: 14px; height: 0; display: flow-root; background: transparent; z-index: 60; border: 0; }
.site-header .header-pill {
  position: relative; isolation: isolate;
  max-width: calc(var(--maxw) - 24px); width: calc(100% - 28px);
  min-height: 78px; margin: 14px auto 0; padding: 6px 12px 6px 26px;
  border-radius: 999px;
}
.site-header .header-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgb(255 255 255 / .74);
  border: 1px solid rgb(255 255 255 / .8);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: url(#lg-filter) blur(6px) saturate(1.6);
  box-shadow: 0 14px 40px rgba(16, 28, 52, .18), inset 0 1px 0 rgb(255 255 255 / .9);
}
@supports (-webkit-touch-callout: none) { .site-header .header-pill::before { backdrop-filter: blur(22px) saturate(1.6); } }
@supports (-moz-appearance: none) { .site-header .header-pill::before { backdrop-filter: blur(22px) saturate(1.6); } }
.brand img { width: 168px; }
.nav a.top:hover, .nav button.top:hover, .nav .current > .top { background: rgb(77 105 168 / .1); }
.sub { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 1100px) {
  .site-header .header-pill { min-height: 64px; padding: 6px 8px 6px 18px; }
  .brand img { width: 130px; }
  .menu-toggle { border-radius: 999px; padding: 10px 18px; }
}

/* ---------- Home hero: photo with the yard sign left, glass column right ---------- */
.hero { min-height: 0; }
.hero .hero-bg { left: 0 !important; }
.hero .hero-bg img { object-position: 0% 62%; }
.hero::after { background: linear-gradient(270deg, rgba(20, 30, 52, .55) 0%, rgba(20, 30, 52, .22) 46%, rgba(20, 30, 52, 0) 70%); }
.hero .container { padding-top: 132px; padding-bottom: 56px; width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.hero-panel.hero-copy, .hero .stats.lg { width: min(640px, 100%); }
.hero-panel.hero-copy { max-width: none; padding: 40px 42px 38px; --lg-alpha: .6; --lg-radius: 30px; }
.hero-panel.hero-copy h1 { font-size: clamp(2.3rem, 3.9vw, 3.5rem); }
.hero-panel.hero-copy p { color: #f1f4fa; font-size: 1.08rem; }
.hero .stats.lg { margin-top: 16px; --lg-alpha: .55; --lg-radius: 24px; }
.hero .stat { padding: 22px 10px; border-right-color: rgb(255 255 255 / .18); }
.hero .stat b { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.hero .stat span { font-size: 1rem; }
@media (max-width: 800px) {
  .hero .hero-bg img { object-position: 8% 60%; }
  .hero::after { background: rgba(20, 30, 52, .35); }
  .hero .container { padding-top: 104px; padding-bottom: 24px; }
  .hero-panel.hero-copy { padding: 26px 22px; --lg-radius: 22px; }
  .hero .stat { padding: 18px 4px; }
  .hero .stat span { font-size: .9rem; }
}

/* ---------- Inner page heroes: taller photo, glass intro panel ---------- */
.page-hero { min-height: 480px; display: flex; align-items: flex-end; }
.page-hero::after { background: linear-gradient(180deg, rgba(20, 30, 52, .38) 0%, rgba(20, 30, 52, .55) 100%); }
.page-hero .container { padding-top: 150px; padding-bottom: 56px; width: 100%; }
.page-hero .hero-panel { max-width: 880px; padding: 32px 38px 34px; --lg-alpha: .55; --lg-radius: 26px; }
.page-hero .hero-panel h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: .3em; }
@media (max-width: 800px) {
  .page-hero { min-height: 0; }
  .page-hero .container { padding-top: 116px; padding-bottom: 28px; }
  .page-hero .hero-panel { padding: 24px 22px; }
}

/* ---------- Glow sections: soft brand-colour light for glass cards to bend ---------- */
.section--glow {
  position: relative;
  background:
    radial-gradient(48% 55% at 6% 18%, rgb(146 198 61 / .32), transparent 70%),
    radial-gradient(52% 60% at 96% 82%, rgb(77 105 168 / .34), transparent 70%),
    radial-gradient(40% 40% at 60% 10%, rgb(249 175 75 / .18), transparent 70%),
    #f2f5fa;
}
.card.lg, .tm-card.lg { --lg-alpha: .6; --lg-radius: 22px; border-color: rgb(255 255 255 / .85); }
.card.lg .body { background: transparent; }
.path-card picture img, .tm-card img { border-radius: 0; }
.tm-grid { gap: 28px; }
.tm-card.lg { padding-bottom: 22px; }

/* ---------- CTA band: photo behind, glass consultation form ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 30, 52, .9) 0%, rgba(30, 42, 68, .72) 46%, rgba(30, 42, 68, .3) 100%); }
.cta-band .container { position: relative; z-index: 2; }
.form.lg { --lg-alpha: .88; --lg-radius: 26px; padding: 36px; }
.section:not(.cta-band) .form.lg { --lg-alpha: .96; }

/* ---------- Bio modal: glass sheet over the blurred page ---------- */
.bio-modal.lg { position: fixed; inset: 0; margin: auto; overflow: auto; --lg-alpha: .9; --lg-radius: 26px; }
.bio-modal::backdrop { background: rgba(20, 28, 46, .45); backdrop-filter: blur(6px); }

/* ---------- Phone action bar: floating glass pill ---------- */
@media (max-width: 800px) {
  .mobile-bar.lg { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px; border-top: 0; --lg-alpha: .72; }
  .mobile-bar .btn { border-radius: 999px; }
}

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #24334f 0%, var(--navy) 100%); }
.footer-logo { border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .tm-card { transition: none; }
}

/* ---------- Reviews: photo behind, smoked-glass quote cards ---------- */
.reviews-photo { position: relative; overflow: hidden; }
.reviews-photo .cta-bg { position: absolute; inset: 0; }
.reviews-photo .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.reviews-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(46 63 101 / .9) 0%, rgb(77 105 168 / .72) 100%); }
.reviews-photo .container { position: relative; z-index: 2; }
.quote.lg { --lg-alpha: .42; --lg-radius: 22px; padding: 28px; }

/* Anchors land below the floating header */
[id] { scroll-margin-top: 112px; }

/* ---------- Stats bar straddles the hero's bottom edge (half photo, half next section) ---------- */
.hero { overflow: visible; }
.hero .container:not(.stats-straddle) { padding-bottom: 140px; }
.stats-straddle { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; transform: translateY(50%); }
.stats-straddle .stats.lg { width: 100%; margin: 0; --lg-alpha: .82; --lg-radius: 26px; box-shadow: 0 24px 60px rgba(16, 28, 52, .28), inset 0 1px 0 rgb(255 255 255 / .3); }
.stats-straddle .stat { padding: 30px 16px; }
.stats-straddle .stat b { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.stats-straddle .stat span { font-size: 1.1rem; }
.hero + .section { padding-top: calc(112px + 80px); }
@media (max-width: 800px) {
  .hero .container:not(.stats-straddle) { padding-bottom: 120px; }
  .stats-straddle .stat { padding: 20px 4px; }
  .stats-straddle .stat span { font-size: .9rem; }
  .hero + .section { padding-top: calc(72px + 110px); }
}

/* ---------- Hero height trim (John: "far too large", 2026-11-09) ---------- */
.hero .container:not(.stats-straddle) { padding-top: 118px; padding-bottom: 104px; }
.hero-panel.hero-copy { padding: 30px 36px 32px; }
.hero-panel.hero-copy h1 { font-size: clamp(2.1rem, 3.3vw, 3rem); margin-bottom: .35em; }
.hero-panel.hero-copy .eyebrow { font-size: 2rem; }
.hero-panel.hero-copy p { font-size: 1.02rem; line-height: 1.6; margin-bottom: 0; }
.hero-panel.hero-copy .btn-row { margin-top: 22px; }
.stats-straddle .stat { padding: 22px 16px; }
.stats-straddle .stat b { font-size: clamp(2.2rem, 3.8vw, 3.1rem); margin-bottom: 8px; }
.hero + .section { padding-top: calc(96px + 64px); }
@media (max-width: 800px) {
  .hero .container:not(.stats-straddle) { padding-top: 100px; padding-bottom: 104px; }
  .hero-panel.hero-copy { padding: 24px 20px; }
  .hero-panel.hero-copy .eyebrow { font-size: 1.7rem; }
  .stats-straddle .stat { padding: 16px 4px; }
  .hero + .section { padding-top: calc(64px + 100px); }
}
.hero .container.stats-straddle { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 0; padding-bottom: 0; display: block; transform: translateY(50%); }
@media (max-width: 800px) { .hero .container:not(.stats-straddle) { padding-bottom: 122px; } }

/* Hero: slightly taller (John 2026-11-09) */
.hero .container:not(.stats-straddle) { padding-top: 150px; padding-bottom: 144px; }
@media (max-width: 800px) { .hero .container:not(.stats-straddle) { padding-top: 112px; padding-bottom: 140px; } }
