/* Smile First Dental — stylesheet */
:root{
  --blue:     #5C7CB0;
  --blue-2:   #52719F;
  --panel:    #FFFFFF;
  --panel-2:  #F4F6F8;
  --ink:      #1B2430;
  --navy:     #141D2B;
  --tx:       #222C39;
  --tx-soft:  #6B7684;
  --tx-inv:   #E9EEF6;
  --tx-inv-soft:#93A0B4;
  --hair:     rgba(27,36,48,.12);
  --r:        26px;
  --sans:     "Inter", "Helvetica Neue", Arial, sans-serif;
  --maxw:     1320px;
  --gutter:   clamp(14px, 2.2vw, 30px);
}
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html,body{ overflow-x:clip; }
body{
  background:var(--blue);
  color:var(--tx);
  font-family:var(--sans);
  font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding:0 var(--gutter) var(--gutter);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; background:none; border:0; }
::selection{ background:var(--ink); color:#fff; }

.frame{ max-width:var(--maxw); margin-inline:auto; }
.panel{
  background:var(--panel);
  border-radius:var(--r);
  overflow:clip;
  margin-top:var(--gutter);
}
.pad{ padding:clamp(26px, 4vw, 64px); }

h1,h2,h3{ font-weight:600; letter-spacing:-.035em; line-height:1.0; }
.h-giant{ font-size:clamp(58px, 8.6vw, 128px); color:#fff; font-weight:500; }
.h-big{ font-size:clamp(44px, 5.6vw, 84px); font-weight:500; letter-spacing:-.04em; }
.h-med{ font-size:clamp(22px, 2.4vw, 32px); font-weight:600; letter-spacing:-.02em; }
.micro{ font-size:12.5px; color:var(--tx-soft); letter-spacing:.02em; }
.on-dark .micro{ color:var(--tx-inv-soft); }

.rv{ opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.rv.in{ opacity:1; transform:none; }
html.noanim .rv{ opacity:1; transform:none; transition:none; }

/* ---------------- header (on blue) ---------------- */
.top{ padding-top:var(--gutter); display:flex; align-items:center; gap:14px; }
/* true page-centering of the nav pill at desktop */
@media (min-width:901px){
  .top{ display:grid; grid-template-columns:1fr auto 1fr; }
  .top .logo-pill{ justify-self:start; }
  .top .nav-pill{ justify-self:center; flex:initial; }
  .top .cta-white{ justify-self:end; }
}
.logo-pill{
  background:var(--panel); border-radius:16px;
  padding:9px 16px; font-weight:700; font-size:19px; letter-spacing:-.02em;
  white-space:nowrap;
  display:inline-flex; align-items:center;
}
.logo-pill img.brand-logo{ height:38px; width:auto; display:block; }
.nav-pill{
  flex:1; background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px; display:flex; align-items:center;
  padding:6px;
  backdrop-filter:blur(6px);
}
.nav-pill a{
  color:#EAF0F9; font-size:14px; font-weight:500;
  padding:9px 14px; border-radius:11px; transition:background .15s ease;
  display:flex; align-items:center; gap:7px;
  white-space:nowrap;
}
.nav-pill a:hover{ background:rgba(255,255,255,.14); }
.nav-pill a.on{ color:#fff; }
.nav-pill a.on::before{ content:""; width:6px; height:6px; border-radius:50%; background:#F7C948; }
.cta-white{
  background:#fff; color:var(--ink);
  border-radius:14px; padding:13px 24px; font-weight:600; font-size:15px;
  transition:transform .16s ease;
  white-space:nowrap;
}
.cta-white:hover{ transform:translateY(-2px); }
@media (max-width:900px){ .nav-pill{ display:none; } .top{ justify-content:space-between; } }

/* ---------------- hero ---------------- */
.hero-head{
  display:grid; grid-template-columns:1.5fr .8fr;
  gap:clamp(20px, 4vw, 60px);
  align-items:start;
  padding:clamp(28px, 4vw, 56px) 6px clamp(24px, 3vw, 44px);
}
@media (max-width:860px){ .hero-head{ grid-template-columns:1fr; } }
.hours{ color:#DFE8F5; font-size:14.5px; display:grid; gap:4px; }
.hours b{ color:#fff; font-weight:600; font-size:15px; margin-bottom:4px; }
.now-chip{
  margin-top:16px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  border-radius:14px;
  color:#fff; font-size:15px;
  padding:14px 20px;
  display:flex; justify-content:space-between; gap:16px;
  backdrop-filter:blur(6px);
}
/* bold Patient rating chip right under the day/time chip */
.g-chip{
  margin-top:10px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  color:#fff; font-weight:700; font-size:15.5px;
  padding:13px 20px;
  display:flex; align-items:center; gap:10px;
  backdrop-filter:blur(6px);
  transition:background .15s ease, transform .15s ease;
}
.g-chip:hover{ background:rgba(255,255,255,.24); transform:translateY(-1px); }
.g-chip .stars{ color:#F7C948; letter-spacing:2.5px; font-size:14.5px; flex:none; }
.g-chip .g-rev{ color:#DFE8F5; font-weight:600; font-size:13.5px; }
.hero-panel{ position:relative; margin-top:0; }
.hero-panel{
  background:
    radial-gradient(90% 80% at 70% 20%, #FDFEFF 0%, #E8EDF5 55%, #D7E0EE 100%);
}
.hero-panel img.bg{
  width:100%; height:clamp(380px, 52vw, 640px);
  object-fit:contain; object-position:center bottom;
  filter:drop-shadow(0 18px 30px rgba(27,36,48,.18));
}
/* mobile: panel hugs the photo — her head meets the top of the box,
   no dead space, and she reads much larger */
@media (max-width:760px){
  .hero-panel img.bg{ height:auto; }
}
.hero-cards{
  position:absolute; left:0; right:0; bottom:0;
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:clamp(10px, 1.6vw, 22px);
  padding:clamp(12px, 2vw, 26px);
}
@media (max-width:760px){ .hero-cards{ grid-template-columns:1fr; position:relative; background:linear-gradient(#0000, #E9EDF2); } }
.h-card{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  border-radius:16px;
  padding:18px 20px;
  display:flex; justify-content:space-between; gap:12px;
  transition:transform .18s ease;
}
.h-card:hover{ transform:translateY(-3px); }
.h-card b{ display:block; font-size:16px; margin-bottom:5px; }
.h-card p{ font-size:13px; color:var(--tx-soft); max-width:30ch; }
.h-card svg{ width:18px; height:18px; flex:none; margin-top:3px; }

/* ---------------- clinic collage ---------------- */
.clinic-head{ display:flex; justify-content:space-between; align-items:baseline; gap:20px; }
.clinic-grid{
  display:grid;
  grid-template-columns:.9fr 1.3fr .9fr;
  gap:clamp(16px, 2.6vw, 40px);
  margin-top:clamp(24px, 3vw, 44px);
  align-items:end;
}
@media (max-width:860px){ .clinic-grid{ grid-template-columns:1fr 1fr; } }
.clinic-grid img{ border-radius:18px; object-fit:cover; width:100%; }
.cg-a{ aspect-ratio:3/3.4; filter:grayscale(1); }
.cg-b{ aspect-ratio:3/4.4; }
.cg-c{ aspect-ratio:3/2.6; }
.clinic-cols{
  display:grid; grid-template-columns:.9fr 1.3fr .9fr;
  gap:clamp(16px, 2.6vw, 40px);
  margin-top:clamp(22px, 3vw, 40px);
}
@media (max-width:860px){ .clinic-cols{ grid-template-columns:1fr; } }
.clinic-cols h4{ font-size:15px; font-weight:600; margin-bottom:10px; }
.clinic-cols p{ font-size:14px; color:var(--tx-soft); }
.btn-dark{
  background:var(--ink); color:#fff;
  border-radius:14px; padding:14px 26px;
  font-weight:600; font-size:15px;
  display:inline-flex; align-items:center; gap:10px;
  transition:transform .16s ease;
}
.btn-dark:hover{ transform:translateY(-2px); }
.btn-dark svg{ width:16px; height:16px; }

/* ---------------- services bento ---------------- */
.svc-head{ display:grid; gap:6px; margin-bottom:clamp(24px, 3vw, 44px); }
.bento{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:clamp(12px, 1.8vw, 24px);
}
.b-card{
  position:relative; border-radius:18px; overflow:clip;
  min-height:240px;
  display:flex; align-items:flex-end;
  color:#fff;
}
.b-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.b-card:hover img{ transform:scale(1.045); }
.b-card::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(15,22,32,.62) 8%, transparent 46%);
}
.b-card h3{ position:relative; z-index:2; font-size:clamp(18px, 1.8vw, 24px); font-weight:500; letter-spacing:-.01em; padding:20px 22px; }
.b-num{
  position:absolute; top:16px; left:18px; z-index:2;
  font-size:13px; color:#E6ECF5; opacity:.9;
}
.b-go{
  position:absolute; top:14px; right:16px; z-index:2;
  width:34px; height:34px; border-radius:10px;
  background:rgba(255,255,255,.2); backdrop-filter:blur(4px);
  display:grid; place-items:center;
}
.b-go svg{ width:15px; height:15px; }
.b-text{
  border-radius:18px;
  background:var(--panel-2);
  padding:clamp(20px, 2.4vw, 34px);
  display:flex; flex-direction:column; justify-content:space-between; gap:30px;
  min-height:240px;
}
.b-text .micro{ font-size:13px; }
.b-text h3{ font-size:clamp(22px, 2.2vw, 30px); font-weight:500; letter-spacing:-.025em; }
.s1{ grid-column:span 5; } .s2{ grid-column:span 3; } .s3{ grid-column:span 4; }
.s4{ grid-column:span 4; } .s5{ grid-column:span 3; } .s6{ grid-column:span 5; }
@media (max-width:860px){
  .s1,.s2,.s3,.s4,.s5,.s6{ grid-column:span 12; }
}

/* ---------------- team carousel ---------------- */
.team-head{ display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:clamp(24px, 3vw, 44px); }
.arrows{ display:flex; gap:10px; }
.arrows button{
  width:56px; height:48px; border-radius:14px;
  background:var(--ink); color:#fff;
  display:grid; place-items:center;
  transition:transform .15s ease, opacity .15s ease;
}
.arrows button:hover{ transform:translateY(-2px); }
.arrows svg{ width:18px; height:18px; }
.team-stage{
  display:grid; grid-template-columns:1.15fr .85fr;
  gap:clamp(14px, 2vw, 26px);
}
@media (max-width:860px){ .team-stage{ grid-template-columns:1fr; } }
.t-photo{
  border-radius:18px; overflow:clip; background:var(--panel-2);
  /* tall enough that a full head + shoulders fits the cover crop */
  aspect-ratio:4/4.4;
}
.t-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 12%; transition:opacity .3s ease; }
.t-card{
  border-radius:18px; background:var(--panel-2);
  padding:clamp(22px, 2.6vw, 36px);
  display:flex; flex-direction:column;
}
.t-meta{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--tx-soft); margin-bottom:22px; }
.t-meta .star{ color:var(--ink); font-weight:600; }
.t-card h3{ font-size:clamp(24px, 2.4vw, 34px); font-weight:600; letter-spacing:-.02em; margin-bottom:6px; }
.t-role{ font-size:14px; color:var(--tx-soft); margin-bottom:22px; }
.t-bio{ font-size:14.5px; color:#3E4956; flex:1; }
.t-cta{
  margin-top:26px;
  background:var(--ink); color:#fff; text-align:center;
  border-radius:13px; padding:15px; font-weight:600; font-size:15px;
  display:block;
  transition:transform .15s ease;
}
.t-cta:hover{ transform:translateY(-2px); }

/* ---------------- FAQ (dark) ---------------- */
.on-dark{ background:var(--navy); color:var(--tx-inv); }
.faq-item{ border-top:1px solid rgba(233,238,246,.14); }
.faq-item:last-child{ border-bottom:1px solid rgba(233,238,246,.14); }
.faq-q{
  width:100%; text-align:left;
  display:flex; justify-content:space-between; align-items:center; gap:18px;
  padding:clamp(18px, 2.2vw, 28px) 4px;
  color:var(--tx-inv);
  font-size:clamp(17px, 1.9vw, 24px); font-weight:500; letter-spacing:-.015em;
}
.faq-q svg{ width:20px; height:20px; flex:none; transition:transform .25s ease; }
.faq-item.open .faq-q svg{ transform:rotate(180deg); }
.faq-a{
  max-height:0; overflow:hidden; transition:max-height .4s ease;
}
.faq-item.open .faq-a{ max-height:520px; }
.faq-a-inner{
  display:grid; grid-template-columns:.8fr 1.2fr;
  gap:clamp(18px, 2.6vw, 40px);
  padding:4px 4px clamp(22px, 2.6vw, 34px);
}
@media (max-width:760px){ .faq-a-inner{ grid-template-columns:1fr; } }
.faq-a-inner img{ border-radius:14px; aspect-ratio:4/3; object-fit:cover; width:100%; }
.faq-a-inner p{ font-size:14.5px; color:var(--tx-inv-soft); margin-bottom:12px; }
html.noanim .faq-item.open .faq-a{ max-height:none; }

/* ---------------- footer ---------------- */
.foot{ background:var(--navy); color:var(--tx-inv); }
.foot-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:clamp(24px, 3.4vw, 56px);
}
@media (max-width:860px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
.foot .logo-pill{ color:var(--ink); display:inline-block; margin-bottom:18px; }
.foot p{ font-size:14px; color:var(--tx-inv-soft); max-width:30ch; }
.foot h4{ font-size:13.5px; font-weight:600; color:#fff; margin-bottom:14px; }
.foot ul{ display:grid; gap:9px; }
.foot ul a{ font-size:14px; color:var(--tx-inv-soft); transition:color .15s ease; }
.foot ul a:hover{ color:#fff; }
.foot-note{
  border-top:1px solid rgba(233,238,246,.12);
  margin-top:clamp(28px, 4vw, 48px);
  padding-top:20px;
  font-size:12px; color:#7C899C; line-height:1.7;
}

/* ------------------------------------------------------------
   Revision round 2026-08-14: page links, mobile menu, motion
   ------------------------------------------------------------ */

/* "see the full page" links stitched into home sections */
.micro-link{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13.5px; font-weight:600; color:var(--tx);
  text-decoration:underline; text-underline-offset:4px; text-decoration-color:rgba(27,36,48,.25);
  transition:color .15s ease, gap .15s ease;
  margin-top:8px;
}
.micro-link:hover{ gap:11px; }
.micro-link svg{ width:14px; height:14px; flex:none; }

/* mobile menu */
.menu-btn{
  display:none;
  background:#fff; border-radius:14px;
  width:48px; height:48px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.menu-btn span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child{ transform:translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child{ transform:translateY(-3.5px) rotate(-45deg); }
.m-menu{
  display:none;
  background:var(--panel); border-radius:var(--r);
  margin-top:var(--gutter);
  padding:14px;
}
.m-menu.open{ display:grid; gap:2px; }
.m-menu a{
  padding:13px 16px; border-radius:12px;
  font-weight:500; font-size:16px;
  transition:background .15s ease;
}
.m-menu a:hover{ background:var(--panel-2); }
.m-menu .m-call{ background:var(--ink); color:#fff; text-align:center; font-weight:600; margin-top:8px; }
@media (max-width:900px){
  .menu-btn{ display:flex; }
}

/* live chip: pulsing "open/now" dot */
.now-chip [data-day]{ display:inline-flex; align-items:center; gap:9px; }
.now-chip [data-day]::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:#7BE39A; flex:none;
  animation:pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{ box-shadow:0 0 0 0 rgba(123,227,154,.55); }
  55%{ box-shadow:0 0 0 7px rgba(123,227,154,0); }
}

/* gentle motion */
.h-card svg{ transition:transform .2s ease; }
.h-card:hover svg{ transform:translate(2px,-2px); }
.b-go{ transition:background .2s ease; }
.b-card:hover .b-go{ background:rgba(255,255,255,.38); }
.clinic-grid img{ transition:transform .6s cubic-bezier(.2,.6,.2,1); }
.clinic-grid img:hover{ transform:scale(1.02); }
.faq-more{
  margin-top:clamp(20px, 2.6vw, 30px);
  font-size:14.5px; color:var(--tx-inv-soft);
}
.faq-more a{
  display:inline-flex; align-items:center; gap:7px;
  color:#fff; font-weight:600;
  text-decoration:underline; text-underline-offset:4px; text-decoration-color:rgba(255,255,255,.3);
}
.faq-more a svg{ width:14px; height:14px; }
@media (prefers-reduced-motion: reduce){
  .now-chip [data-day]::before{ animation:none; }
}
html.noanim .now-chip [data-day]::before{ animation:none; }

/* text wordmark + photo portraits */
.brand-text{font-weight:700;font-size:19px;letter-spacing:-.02em;white-space:nowrap;color:inherit}.brand-text em{font-style:normal;font-weight:500;opacity:.7;margin-left:0}
/* mobile header: keep logo pill, CTA and menu button on one row */
@media (max-width:520px){ .brand-text{ font-size:17px; } .brand-text em{ display:none; } .logo-pill{ padding:9px 13px; } }
