/* Transmountain Primary Care - shared stylesheet */

:root{
  --blue:#0060B6;
  --blue-d:#00468A;
  --blue-l:#3D8AD8;
  --ice:#EFF5FB;
  --ice-2:#DCE9F6;
  --ink:#152232;
  --body:#4B5867;
  --muted:#6C7887;
  --line:#DEE7F0;
  --white:#fff;
  --radius:16px;
  --shadow:0 18px 44px rgba(21,34,50,.10);
}

*{margin:0;padding:0;box-sizing:border-box}
img{display:block;max-width:100%;height:auto}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Libre Franklin',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--body);background:var(--white);line-height:1.7;font-size:17px;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{color:var(--ink);letter-spacing:-.022em;line-height:1.15;font-weight:800}
h1{font-size:clamp(38px,5.4vw,60px)}
h2{font-size:clamp(28px,3.9vw,40px)}
h3{font-size:clamp(19px,2vw,22px);line-height:1.3}
p{margin:0}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}

.wrap{
  max-width:1140px;margin-left:auto;margin-right:auto;
  padding-left:24px;padding-right:24px;
}
section{padding-top:88px;padding-bottom:88px}
.tight{padding-top:64px;padding-bottom:64px}
.kicker{
  font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;
  color:var(--blue);margin-bottom:14px;
}
.lede{font-size:clamp(17px,1.9vw,19.5px);color:var(--muted);max-width:660px;margin-top:16px}
.center{text-align:center}
.center .lede{margin-left:auto;margin-right:auto}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-weight:700;font-size:15.5px;padding:15px 30px;border-radius:999px;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
  border:1px solid transparent;cursor:pointer;text-align:center;
}
.btn-blue{background:var(--blue);color:#fff;box-shadow:0 12px 26px rgba(0,96,182,.30)}
.btn-blue:hover{background:var(--blue-d);transform:translateY(-2px)}
.btn-ghost{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.5);backdrop-filter:blur(4px)}
.btn-ghost:hover{background:rgba(255,255,255,.24);transform:translateY(-2px)}
.btn-soft{background:var(--ice);color:var(--blue);border-color:var(--ice-2)}
.btn-soft:hover{background:var(--ice-2);transform:translateY(-2px)}
.btn-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}

/* top strip + nav */
.strip{background:var(--blue);color:#fff;font-size:13.5px;font-weight:600}
.strip .wrap{display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;padding-top:9px;padding-bottom:9px}
.strip a:hover{text-decoration:underline}
.strip .sep{opacity:.45}
.strip .right{margin-left:auto;display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center}
@media (max-width:720px){.strip .right{margin-left:0}.strip .sep{display:none}
  .strip .wrap{gap:4px 16px;font-size:12.5px}}

nav{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-in{max-width:1140px;margin:0 auto;padding:11px 24px;display:flex;align-items:center;gap:22px}
.nav-logo{flex:0 0 auto;line-height:0}
.nav-logo img{height:54px;width:auto;max-width:none}
.nav-links{display:flex;gap:26px;margin-left:auto;font-weight:600;font-size:15px;color:var(--ink)}
.nav-links a{padding:6px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--blue);border-bottom-color:var(--blue)}
.nav-call{
  background:var(--blue);color:#fff;font-weight:700;font-size:14.5px;
  padding:11px 21px;border-radius:999px;white-space:nowrap;transition:background .18s;
}
.nav-call:hover{background:var(--blue-d)}
@media (max-width:1040px){.nav-links{gap:18px;font-size:14px}}
@media (max-width:920px){.nav-links{display:none}.nav-call{margin-left:auto}}
@media (max-width:440px){.nav-logo img{height:42px}.nav-call{padding:9px 13px;font-size:13px}
  .nav-in{gap:10px;padding-left:16px;padding-right:16px}
  .wrap{padding-left:18px;padding-right:18px}}

/* mobile menu (checkbox, no JS needed) */
.menu-toggle{display:none}
.menu-btn{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;
  align-items:center;justify-content:center;cursor:pointer;background:#fff;flex-direction:column;gap:4px}
.menu-btn span{display:block;width:19px;height:2px;background:var(--ink);border-radius:2px}
.mobile-nav{display:none;border-top:1px solid var(--line);background:#fff}
.mobile-nav a{display:block;padding:14px 24px;font-weight:600;color:var(--ink);border-bottom:1px solid var(--line)}
.mobile-nav a:hover{background:var(--ice);color:var(--blue)}
@media (max-width:920px){
  .menu-btn{display:flex}
  .menu-toggle:checked ~ .mobile-nav{display:block}
}

/* homepage hero */
.hero{position:relative;isolation:isolate;color:#fff;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:-2}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 20%}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(0,42,80,.90) 0%,rgba(0,58,109,.80) 42%,rgba(0,70,138,.42) 72%,rgba(0,70,138,.20) 100%);
}
.hero-in{padding-top:104px;padding-bottom:104px}
.hero-in > *{max-width:700px}
.hero h1{color:#fff}
.hero .kicker{color:#AFD3F5}
.hero p{color:rgba(255,255,255,.92);font-size:clamp(17px,2vw,20px);margin-top:20px;max-width:560px}
.hero-perks{display:flex;gap:12px 28px;flex-wrap:wrap;margin-top:34px;font-size:14.5px;font-weight:600;color:#fff}
.hero-perks span{display:flex;align-items:center;gap:9px}
.hero-perks span::before{
  content:"";width:19px;height:19px;flex:0 0 19px;border-radius:50%;
  background:rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
@media (max-width:720px){.hero-in{padding-top:76px;padding-bottom:76px}.hero-bg img{object-position:94% 20%}
  .hero::before{background:linear-gradient(100deg,rgba(0,42,80,.90) 0%,rgba(0,58,109,.84) 55%,rgba(0,70,138,.72) 100%)}}

/* interior page hero */
.phero{position:relative;isolation:isolate;color:#fff;overflow:hidden}
.phero-bg{position:absolute;inset:0;z-index:-2}
.phero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 32%}
.phero::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(0,42,80,.90) 0%,rgba(0,58,109,.78) 50%,rgba(0,70,138,.40) 100%)}
.phero-in{padding-top:72px;padding-bottom:72px}
.phero-in > *{max-width:720px}
.phero h1{color:#fff;font-size:clamp(32px,4.4vw,48px)}
.phero p{color:rgba(255,255,255,.92);margin-top:16px;max-width:600px;font-size:clamp(16.5px,1.8vw,18.5px)}
.crumb{font-size:13.5px;color:rgba(255,255,255,.75);margin-bottom:14px;font-weight:600}
.crumb a:hover{text-decoration:underline;color:#fff}

/* quick action bar */
.qbar{background:var(--white);border-bottom:1px solid var(--line)}
.qbar-in{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.q{display:flex;gap:15px;align-items:flex-start;padding:26px 28px;border-right:1px solid var(--line);transition:background .18s}
.q:last-child{border-right:0}
.q:hover{background:var(--ice)}
.q .ic{flex:0 0 42px;height:42px;border-radius:12px;background:var(--ice);display:flex;align-items:center;justify-content:center}
.q b{display:block;color:var(--ink);font-size:16px;font-weight:800;line-height:1.35}
.q span{font-size:14.5px;color:var(--muted);display:block;margin-top:2px}
@media (max-width:860px){
  .qbar-in{grid-template-columns:1fr}
  .q{border-right:0;border-bottom:1px solid var(--line)}
  .q:last-child{border-bottom:0}
}

/* generic split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.split.narrow{gap:48px}
.split-art img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%}
.split p + p{margin-top:16px}
@media (max-width:900px){.split{grid-template-columns:1fr;gap:38px}}

/* services */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:48px}
.svc{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;display:flex;flex-direction:column;
}
.svc:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--ice-2)}
.svc-img{aspect-ratio:4/3;overflow:hidden;background:var(--ice)}
.svc-img img{width:100%;height:100%;object-fit:cover}
.svc-body{padding:22px 24px 26px}
.svc-body h3{font-size:18.5px;margin-bottom:7px}
.svc-body p{font-size:14.8px;color:var(--muted);line-height:1.6}
@media (max-width:900px){.svc-grid{grid-template-columns:repeat(2,1fr);gap:18px}}
@media (max-width:560px){.svc-grid{grid-template-columns:1fr}}

/* cards / features */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-top:46px}
.cards.three{grid-template-columns:repeat(3,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:32px 30px}
.card h3{margin-bottom:10px}
.card p{font-size:15.5px;color:var(--muted)}
.card .num{font-size:13px;font-weight:800;color:var(--blue);letter-spacing:.14em;margin-bottom:12px;display:block}
@media (max-width:860px){.cards,.cards.three{grid-template-columns:1fr}}

.ice{background:var(--ice)}
.deep{background:var(--blue);color:#fff}
.deep h2,.deep h3{color:#fff}
.deep p{color:rgba(255,255,255,.9)}
.deep .kicker{color:#AFD3F5}

/* portal band */
.portal-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.portal-card{background:#fff;border-radius:var(--radius);padding:34px 30px;text-align:center;box-shadow:var(--shadow)}
.portal-card img{width:min(240px,78%);margin:0 auto 18px}
.portal-card p{color:var(--muted);font-size:14.5px;margin-bottom:18px}
.code{
  font-weight:800;color:var(--ink);font-size:15px;background:var(--ice);
  border-radius:10px;padding:9px 16px;display:inline-block;letter-spacing:.04em;
}
@media (max-width:860px){.portal-grid{grid-template-columns:1fr;gap:36px}}

/* reviews */
.rev-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:46px}
.rev{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px 28px;display:flex;flex-direction:column}
.stars{color:#F5A623;font-size:16px;letter-spacing:2px;margin-bottom:14px}
.rev p{font-size:15.5px;color:var(--body);flex:1}
.rev .who{margin-top:18px;font-weight:800;color:var(--ink);font-size:14.5px}
@media (max-width:900px){.rev-grid{grid-template-columns:1fr}}

/* team */
.team{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;margin-top:46px}
.person{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:34px 32px}
.person .mono{
  width:64px;height:64px;border-radius:50%;background:var(--ice);color:var(--blue);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:21px;margin-bottom:18px;
}
.person h3{margin-bottom:4px}
.person .role{font-size:14px;font-weight:700;color:var(--blue);margin-bottom:14px;letter-spacing:.02em}
.person p{font-size:15.3px;color:var(--muted)}
.person p + p{margin-top:12px}
@media (max-width:860px){.team{grid-template-columns:1fr}}

/* insurance list */
.ins-cols{
  margin-top:36px;columns:3;column-gap:34px;font-size:15.5px;
}
.ins-cols li{
  break-inside:avoid;list-style:none;padding:9px 0 9px 26px;position:relative;color:var(--body);
  border-bottom:1px solid var(--line);
}
.ins-cols li::before{
  content:"";position:absolute;left:0;top:16px;width:14px;height:14px;border-radius:50%;
  background:var(--ice-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230060B6' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
}
@media (max-width:900px){.ins-cols{columns:2}}
@media (max-width:560px){.ins-cols{columns:1}}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:start}
.c-item{padding:22px 0;border-bottom:1px solid var(--line)}
.c-item:first-child{padding-top:0}
.c-item b{display:block;font-size:12.5px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--blue);margin-bottom:8px}
.c-item div,.c-item a{font-size:17px;color:var(--ink);font-weight:600}
.c-item a:hover{color:var(--blue)}
.hours-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:34px 32px;box-shadow:var(--shadow)}
.hours-card h3{margin-bottom:18px}
.hours-card .row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line);font-size:15.5px}
.hours-card .row:last-of-type{border-bottom:0}
.hours-card .row span:first-child{color:var(--muted)}
.hours-card .row span:last-child{font-weight:700;color:var(--ink)}
.hours-card .btn{margin-top:22px;width:100%}
.note{background:var(--ice);border-radius:12px;padding:18px 20px;font-size:14.8px;color:var(--body);margin-top:22px}
.note b{color:var(--ink)}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;gap:38px}}

/* prose for blog and long pages */
.prose{max-width:760px;font-size:17.5px}
.prose h2{font-size:clamp(24px,3vw,31px);margin:44px 0 16px}
.prose h3{font-size:clamp(19px,2.2vw,23px);margin:34px 0 12px}
.prose p{margin-bottom:20px}
.prose ul,.prose ol{margin:0 0 22px 22px}
.prose li{margin-bottom:9px}
.prose a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--blue-d)}
.prose img{border-radius:var(--radius);margin:26px 0}
.prose strong{color:var(--ink)}
.prose blockquote{border-left:3px solid var(--blue);padding-left:22px;margin:26px 0;color:var(--muted);font-style:italic}

/* blog list */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:46px}
.post{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.post:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post-img{aspect-ratio:16/9;overflow:hidden;background:var(--ice)}
.post-img img{width:100%;height:100%;object-fit:cover}
.post-body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
.post-body time{font-size:13px;font-weight:700;color:var(--blue);letter-spacing:.06em;text-transform:uppercase}
.post-body h3{font-size:18px;margin:9px 0 10px;line-height:1.35}
.post-body p{font-size:14.8px;color:var(--muted);flex:1}
.post-body .more{margin-top:16px;font-weight:700;color:var(--blue);font-size:14.5px}
@media (max-width:900px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.post-grid{grid-template-columns:1fr}}

.post-meta{font-size:14.5px;color:var(--muted);margin-top:14px}

/* CTA band */
.cta-band{background:var(--blue);color:#fff;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.9);max-width:600px;margin:16px auto 0}
.cta-band .btn-row{justify-content:center}

/* footer */
footer{background:var(--ink);color:rgba(255,255,255,.72);font-size:15px}
footer .wrap{padding-top:64px;padding-bottom:34px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:40px}
.foot-logo{background:#fff;border-radius:12px;padding:14px 16px;display:inline-block;margin-bottom:18px}
.foot-logo img{height:46px;width:auto;max-width:none}
footer h4{color:#fff;font-size:14px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin-bottom:16px}
footer a:hover{color:#fff}
footer ul{list-style:none}
footer li{margin-bottom:10px}
.foot-bottom{
  margin-top:44px;padding-top:24px;border-top:1px solid rgba(255,255,255,.14);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:14px;
}
.social{display:flex;gap:12px;margin-top:18px}
.social a{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.10);
  display:flex;align-items:center;justify-content:center;transition:background .18s;
}
.social a:hover{background:var(--blue)}
.social svg{width:17px;height:17px;fill:#fff}
@media (max-width:900px){.foot-grid{grid-template-columns:1fr 1fr;gap:34px}}
@media (max-width:560px){.foot-grid{grid-template-columns:1fr}}

/* misc */
.skip{position:absolute;left:-9999px;top:0;background:#fff;color:var(--blue);padding:12px 20px;z-index:200;font-weight:700}
.skip:focus{left:12px;top:12px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

/* ---- lead form (contact) ---- */
.lead-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:30px 28px}
.lead-form h3{font-size:clamp(20px,2.4vw,24px);margin:0 0 6px}
.lead-form .lf-sub{color:var(--muted);font-size:15px;margin:0 0 22px}
.lf-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lf-field{display:flex;flex-direction:column;margin-bottom:16px}
.lf-field label{font-weight:600;font-size:14.5px;color:var(--ink);margin-bottom:7px}
.lf-field .req{color:var(--blue);font-weight:700}
.lf-field input,.lf-field select,.lf-field textarea{
  font:inherit;font-size:16px;color:var(--ink);background:var(--white);
  border:1px solid var(--line);border-radius:12px;padding:12px 14px;width:100%}
.lf-field textarea{min-height:120px;resize:vertical}
.lf-field input:focus,.lf-field select:focus,.lf-field textarea:focus{
  outline:3px solid var(--blue-l);outline-offset:1px;border-color:var(--blue)}
.lead-form .btn{width:100%;justify-content:center;margin-top:6px}
.lf-legal{font-size:13.5px;color:var(--muted);margin-top:16px;line-height:1.55}
.lf-urgent{background:#fff4f4;border:1px solid #f3cccc;border-radius:12px;
  padding:14px 16px;font-size:14.5px;color:#8a1f1f;margin-bottom:22px}
.lf-urgent b{color:#6d1616}
.ekf-consent{margin:4px 0 18px}
.ekf-consent label{display:flex;gap:10px;align-items:flex-start;
  font-size:13.5px;line-height:1.55;color:var(--muted);font-weight:400;cursor:pointer}
.ekf-consent input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue)}
@media (max-width:700px){.lf-row{grid-template-columns:1fr;gap:0}
  .lead-form{padding:24px 20px}}
