/* ============================================================
   CLEAR HEALTH ADVISORS — Homepage styles


/* --- Custom properties --- */
:root{
  --slate:#6B8499;
  --slate-deep:#3E5666;
  --slate-deeper:#2f4250;
  --sage:#8BB04F;
  --sage-deep:#769841;
  --bg:#F7F6F2;
  --surface:#FFFFFF;
  --text:#2A2F33;
  --muted:#6E767C;
  --line:#e3e6e4;
  --radius:16px;
  --shadow-sm:0 4px 14px rgba(46,66,80,.08);
  --shadow-md:0 16px 40px rgba(46,66,80,.14);
  --shadow-lg:0 30px 70px rgba(46,66,80,.20);
  --maxw:1200px;
}

/* --- Reset & base --- */
*,*::before,*::after{box-sizing:border-box;}
html,body{max-width:100%;overflow-x:hidden;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Lato',system-ui,sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:break-word;
}
img,svg{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:'Sora',system-ui,sans-serif;margin:0;line-height:1.1;}
p{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px;}

.skip-link{position:absolute;left:-999px;top:0;background:var(--slate-deep);color:#fff;padding:10px 16px;z-index:200;border-radius:0 0 8px 0;}
.skip-link:focus{left:0;}
:focus-visible{outline:3px solid var(--sage);outline-offset:2px;border-radius:4px;}

/* --- Buttons --- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:'Sora',sans-serif;font-weight:600;font-size:.95rem;
  padding:12px 24px;border-radius:999px;cursor:pointer;border:2px solid transparent;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;
  white-space:nowrap;line-height:1.1;
}
.btn--lg{padding:15px 30px;font-size:1rem;}
.btn--accent{background:var(--sage);color:#fff;box-shadow:0 8px 22px rgba(139,176,79,.35);}
.btn--accent:hover{background:var(--sage-deep);transform:translateY(-2px);box-shadow:0 12px 28px rgba(139,176,79,.45);}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55);}
.btn--ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;}
.btn--outline{background:transparent;color:var(--slate-deep);border-color:var(--slate);}
.btn--outline:hover{background:var(--slate);color:#fff;}

/* --- Utility bar --- */
.utility{background:var(--slate-deeper);color:#eef2f0;font-size:.82rem;}
.utility__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:9px;padding-bottom:9px;flex-wrap:wrap;}
.utility__motto{font-weight:700;letter-spacing:.01em;color:#fff;overflow-wrap:break-word;}
.utility__phone{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#cfe0a8;}
.utility__phone svg{width:15px;height:15px;fill:var(--sage);}
.utility__phone:hover{color:#fff;}

/* --- Header ---
   backdrop-filter lives on ::before so the header element itself does NOT
   create a new fixed-position containing block — this is what was trapping
   the mobile nav drawer and causing horizontal overflow. */
.header{
  position:sticky;
  top:0;
  z-index:100;
  transition:box-shadow .25s ease;
}
.header::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  z-index:0;
  pointer-events:none;
}
.header.is-stuck{box-shadow:var(--shadow-sm);}
.header__inner{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:84px;
  transition:min-height .25s ease;
}
.header.is-stuck .header__inner{min-height:68px;}
.brand__logo{height:46px;width:auto;transition:height .25s ease;}
.header.is-stuck .brand__logo{height:40px;}

.nav{display:flex;align-items:center;gap:28px;}
.nav__close{display:none;}
.nav__list{display:flex;align-items:center;gap:26px;}
.nav__link{
  font-family:'Sora',sans-serif;font-weight:600;font-size:.92rem;
  color:var(--slate-deep);padding:6px 0;position:relative;
}
.nav__link::after{
  content:"";position:absolute;left:0;right:100%;bottom:-2px;
  height:2px;background:var(--sage);transition:right .25s ease;
}
.nav__link:hover::after,.nav__link.is-active::after{right:0;}
.nav__link.is-active{color:var(--sage-deep);}
.nav__cta{display:none;}
.header__cta{display:inline-flex;}

.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:0;padding:8px;cursor:pointer;}
.hamburger span{width:26px;height:3px;background:var(--slate-deep);border-radius:3px;transition:.3s;}

.nav-scrim{position:fixed;inset:0;background:rgba(20,30,38,.5);z-index:998;}

/* --- Hero ---
   Editorial split-panel: solid slate-deep on the left third, diagonal
   transition (108 deg) to transparent on the right — creates a genuine
   panel-over-photo depth rather than a soft gradient wash. */
.hero{position:relative;color:#fff;overflow:hidden;}
.hero__media{position:absolute;inset:0;z-index:0;}
.hero__img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:68% 45%;
}
.hero__scrim{
  position:absolute;inset:0;
  background:
    linear-gradient(108deg,
      #3E5666 0%,
      #3E5666 33%,
      rgba(62,86,102,.94) 40%,
      rgba(62,86,102,.62) 48%,
      rgba(62,86,102,.24) 57%,
      rgba(62,86,102,.04) 65%,
      rgba(62,86,102,0) 72%
    ),
    linear-gradient(180deg,
      rgba(26,40,50,.28) 0%,
      rgba(26,40,50,0) 40%,
      rgba(26,40,50,.18) 100%
    );
}
.hero__grid{
  position:relative;z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.55fr);
  align-items:center;
  min-height:min(78vh,660px);
  padding-top:76px;padding-bottom:76px;
}
.hero__panel{max-width:600px;}
.hero__title{
  font-size:clamp(2.3rem,5.5vw,3.6rem);
  font-weight:800;letter-spacing:-.02em;
  display:flex;flex-direction:column;gap:.1em;
}
.hero__title span{display:block;}
.hero__title .accent{color:var(--sage);}
.hero__lead{margin-top:22px;font-size:1.12rem;max-width:46ch;color:#eaf0ee;}
.hero__actions{margin-top:30px;display:flex;flex-wrap:wrap;gap:14px;}

/* Trust strip — inline with sage dot separators; editorial, not pill-chips */
.hero__trust{
  margin-top:30px;
  display:flex;flex-wrap:wrap;align-items:center;
  gap:0;padding:0;list-style:none;
}
.hero__trust li{
  font-family:'Sora',sans-serif;
  font-size:.76rem;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  color:rgba(255,255,255,.62);
  padding:4px 0;
}
.hero__trust li:not(:last-child)::after{
  content:"·";
  margin:0 10px;
  color:var(--sage);
  font-size:1.3em;line-height:1;
}

/* --- Section shared --- */
.eyebrow{
  font-family:'Sora',sans-serif;text-transform:uppercase;
  letter-spacing:.16em;font-size:.78rem;font-weight:600;
  color:var(--sage-deep);margin-bottom:14px;
}
.eyebrow--light{color:#cfe0a8;}
.section-title{font-size:clamp(1.7rem,3.6vw,2.5rem);font-weight:700;letter-spacing:-.01em;color:var(--slate-deep);}
.section-title--light{color:#fff;}
.section-lead{margin-top:16px;font-size:1.08rem;color:var(--muted);max-width:60ch;}
.section-lead--light{color:#e2e9e6;}

.link-arrow{display:inline-flex;align-items:center;gap:8px;font-family:'Sora',sans-serif;font-weight:600;color:var(--sage-deep);margin-top:24px;}
.link-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease;}
.link-arrow:hover svg{transform:translateX(5px);}

/* --- What we do --- */
.whatwedo{padding:90px 0;}
.whatwedo__grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:56px;align-items:center;}
.whatwedo__figure{position:relative;margin:0;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-md);}
.whatwedo__figure img{width:100%;height:100%;object-fit:cover;object-position:35% 42%;aspect-ratio:4/3.4;}
.whatwedo__badge{
  position:absolute;left:18px;right:18px;bottom:18px;
  background:rgba(255,255,255,.95);border-radius:14px;
  padding:16px 18px;box-shadow:var(--shadow-sm);
}
.whatwedo__badge strong{display:block;font-family:'Sora',sans-serif;color:var(--slate-deep);font-size:1rem;}
.whatwedo__badge span{display:block;color:var(--muted);font-size:.9rem;margin-top:4px;}
.whatwedo__copy{min-width:0;}

/* --- Conditions --- */
.conditions{padding:30px 0 90px;}
.conditions__head{max-width:680px;margin-bottom:40px;}
.bento{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}

.cond-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 20px;
  display:flex;flex-direction:column;gap:14px;
  box-shadow:var(--shadow-sm);
  min-width:0;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.cond-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-md),inset 3px 0 0 var(--sage);
  border-color:#d3e0b8;
}
.cond-card__icon{
  width:46px;height:46px;border-radius:12px;
  background:linear-gradient(135deg,#f0f5e2,#e3eed0);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.cond-card__icon svg{width:24px;height:24px;fill:none;stroke:var(--sage-deep);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.cond-card__label{font-family:'Sora',sans-serif;font-weight:600;font-size:1rem;color:var(--slate-deep);line-height:1.25;}

/* Stagger-in animation triggered when .bento gains .revealed class */
@keyframes cardIn{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:none;}
}
.bento .cond-card{opacity:0;}
.bento.revealed .cond-card{animation:cardIn .45s ease both;}
.bento.revealed .cond-card:nth-child(1) {animation-delay:  0ms;}
.bento.revealed .cond-card:nth-child(2) {animation-delay: 55ms;}
.bento.revealed .cond-card:nth-child(3) {animation-delay:110ms;}
.bento.revealed .cond-card:nth-child(4) {animation-delay:165ms;}
.bento.revealed .cond-card:nth-child(5) {animation-delay:220ms;}
.bento.revealed .cond-card:nth-child(6) {animation-delay:275ms;}
.bento.revealed .cond-card:nth-child(7) {animation-delay:330ms;}
.bento.revealed .cond-card:nth-child(8) {animation-delay:385ms;}
.bento.revealed .cond-card:nth-child(9) {animation-delay:440ms;}
.bento.revealed .cond-card:nth-child(10){animation-delay:495ms;}
.bento.revealed .cond-card:nth-child(11){animation-delay:550ms;}
.bento.revealed .cond-card:nth-child(12){animation-delay:605ms;}

/* --- How we help --- */
.howwehelp{background:var(--slate-deep);color:#fff;padding:90px 0;}
.howwehelp__grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:start;}
.howwehelp__intro{position:sticky;top:110px;}
.steps{display:grid;gap:18px;}
.step{
  display:flex;gap:22px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);padding:24px 26px;
  transition:background .25s ease,transform .25s ease;
}
.step:hover{background:rgba(255,255,255,.11);transform:translateX(4px);}
.step__num{font-family:'Sora',sans-serif;font-weight:800;font-size:1.6rem;color:var(--sage);flex:none;line-height:1.2;}
.step__body{min-width:0;flex:1;}
.step__body h3{font-size:1.15rem;font-weight:600;margin-bottom:6px;}
.step__body p{color:#d6e0dc;font-size:.98rem;}

/* --- My College MD highlight --- */
.highlight{padding:90px 0;}
.highlight__card{
  background:linear-gradient(120deg,#fff 0%,#f4f6ee 100%);
  border:1px solid var(--line);border-radius:24px;
  padding:42px 48px;
  display:flex;align-items:center;justify-content:space-between;gap:36px;flex-wrap:wrap;
  box-shadow:var(--shadow-sm);position:relative;overflow:hidden;
}
.highlight__card::before{
  content:"";position:absolute;right:-40px;top:-40px;
  width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(139,176,79,.18),transparent 70%);
}
.highlight__text{position:relative;z-index:1;flex:1 1 320px;min-width:0;}
.highlight__text .eyebrow{margin-bottom:10px;}
.highlight__text .section-lead{margin-top:12px;}

/* --- Contact CTA — full-bleed slate band --- */
.cta{
  background:linear-gradient(135deg,var(--slate) 0%,var(--slate-deep) 100%);
  padding:88px 0;
}
.cta__inner{color:#fff;text-align:center;}
.cta__title{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:700;}
.cta__lead{margin:14px auto 0;max-width:52ch;color:#e6ede9;font-size:1.08rem;}
.cta__actions{margin-top:34px;display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:16px;}
.cta__contact{
  display:flex;align-items:center;gap:14px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  border-radius:14px;padding:14px 22px;text-align:left;
  transition:background .2s ease,transform .2s ease;
}
.cta__contact:hover{background:rgba(255,255,255,.18);transform:translateY(-2px);}
.cta__contact svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--sage);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.cta__contact span{
  display:flex;flex-direction:column;
  font-family:'Sora',sans-serif;font-weight:600;font-size:1rem;
  overflow-wrap:break-word;min-width:0;
}
.cta__contact small{font-weight:400;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:#cfe0a8;}
.cta__btn{align-self:center;}

/* --- Footer --- */
.footer{background:var(--slate-deeper);color:#dfe5e2;border-top:1px solid rgba(139,176,79,.18);}
.footer__top{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding:38px 24px;border-bottom:1px solid rgba(255,255,255,.1);
}
.footer__logo{height:48px;width:auto;background:#fff;padding:8px 12px;border-radius:10px;}
.footer__contacts{display:flex;gap:28px;flex-wrap:wrap;font-family:'Sora',sans-serif;font-weight:600;}
.footer__contacts a:hover{color:#cfe0a8;}
.footer__nav{display:flex;flex-wrap:wrap;gap:10px 26px;padding-top:26px;padding-bottom:26px;}
.footer__nav a{font-size:.92rem;color:#c5cdc9;}
.footer__nav a:hover{color:#fff;}
.footer__bar{background:rgba(0,0,0,.22);padding:16px 0;}
.footer__bar p{font-size:.85rem;color:#a9b2ad;}

/* --- Scroll to top --- */
.totop{
  position:fixed;right:20px;bottom:20px;z-index:90;
  width:48px;height:48px;border-radius:50%;border:0;
  background:var(--sage);color:#fff;cursor:pointer;
  box-shadow:var(--shadow-md);display:flex;align-items:center;justify-content:center;
  transition:transform .25s ease,background .2s ease;
}
.totop svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.totop:hover{transform:translateY(-3px);background:var(--sage-deep);}

/* --- Reveal animation --- */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease;}
.reveal.in{opacity:1;transform:none;}

/* --- Reduced motion --- */
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .bento .cond-card{opacity:1 !important;animation:none !important;}
  html{scroll-behavior:auto;}
}

/* ===== RESPONSIVE ===== */

@media (max-width:980px){
  .bento{grid-template-columns:repeat(3,1fr);}
  .hero__grid{grid-template-columns:1fr;}
  .whatwedo__grid,.howwehelp__grid{grid-template-columns:1fr;gap:40px;}
  .howwehelp__intro{position:static;}
}

@media (max-width:760px){
  body{font-size:16px;}
  .utility__motto{font-size:.74rem;flex:1 1 100%;}
  .utility__inner{justify-content:center;text-align:center;}
  .header__cta{display:none;}
  .hamburger{display:flex;}

  /* Mobile nav drawer
     position:fixed is now truly viewport-relative because the header
     no longer has backdrop-filter on the element itself */
  .nav{
    position:fixed;
    top:0;right:0;
    height:100%;
    width:min(86%,330px);
    background:#fff;
    flex-direction:column;align-items:stretch;
    gap:0;
    padding:80px 26px 32px;
    transform:translateX(110%);
    transition:transform .35s ease;
    z-index:999;
    box-shadow:var(--shadow-lg);
    overflow-y:auto;
    will-change:transform;
  }
  .nav.open{transform:none;}
  .nav__close{
    display:block;
    position:absolute;top:18px;right:20px;
    font-size:2rem;line-height:1;
    background:none;border:0;
    color:var(--slate-deep);cursor:pointer;
    padding:4px 8px;
  }
  .nav__list{flex-direction:column;align-items:stretch;gap:4px;}
  .nav__link{padding:13px 4px;font-size:1.05rem;border-bottom:1px solid var(--line);}
  .nav__link::after{display:none;}
  .nav__cta{display:inline-flex;margin-top:22px;}

  /* Mobile hero: lighter scrim so the photo reads, image shifted upper for doctor face */
  .hero__grid{min-height:auto;padding-top:52px;padding-bottom:64px;}
  .hero__img{object-position:52% 32%;}
  .hero__scrim{
    background:linear-gradient(180deg,
      rgba(38,54,68,.44) 0%,
      rgba(38,54,68,.78) 62%,
      rgba(38,54,68,.88) 100%
    );
  }

  .bento{grid-template-columns:repeat(2,1fr);gap:14px;}
  .whatwedo,.conditions,.howwehelp,.highlight{padding-top:64px;padding-bottom:64px;}
  .conditions{padding-top:10px;}
  .highlight__card{padding:32px 26px;}
  .cta{padding:64px 0;}
  .cta__contact{flex:1 1 100%;}
  .step{flex-direction:row;}
}

@media (max-width:380px){
  .container{padding:0 16px;}
  .bento{grid-template-columns:1fr;}
  .cond-card{flex-direction:row;align-items:center;}
}