/* =========================================================
   Coit Dental — BoldSign-inspired theme
   White / navy / royal blue · clean SaaS aesthetic
   ========================================================= */

:root{
  --bg:        #ffffff;
  --bg-soft:   #f6f8fb;
  --bg-mint:   #e9f7f1;
  --bg-blue:   #e8f1f8;
  --bg-peach:  #fff0e8;

  --ink:       #0b1320;     /* near-black navy */
  --ink-2:     #1a2233;
  --muted:     #5a6478;
  --line:      #e5e9f0;

  --brand:     #2170a4;     /* royal blue (BoldSign-ish) */
  --brand-2:   #185780;
  --brand-50:  #e8f1f8;
  --mint:      #0fb37d;     /* dental warmth */
  --coral:     #ff5a3c;     /* CTA accent */
  --yellow:    #ffd45f;

  --sans: "Inter", "Inter Fallback", "Inter Fallback Roboto", "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "Plus Jakarta Sans Fallback Roboto", "Inter", "Inter Fallback", "Inter Fallback Roboto", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,19,32,.06), 0 1px 1px rgba(11,19,32,.04);
  --shadow-md: 0 12px 28px -10px rgba(11,19,32,.18), 0 2px 6px rgba(11,19,32,.06);
  --shadow-lg: 0 24px 48px -16px rgba(11,19,32,.24), 0 4px 12px rgba(11,19,32,.06);
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4,h5,h6{ font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--ink); }
h1{ font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.03em; }
h2{ font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; }
h3{ font-size: clamp(22px, 2.4vw, 30px); }
h4{ font-size: 18px; }
p{ margin: 0 0 1em; color: var(--muted); }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section{ padding: clamp(72px, 9vw, 120px) 0; }
.section.tight{ padding: clamp(48px, 6vw, 80px) 0; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar{
  background: var(--ink);
  color: #cdd5e3;
  font-size: 13px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 50px; gap: 16px 24px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.topbar a{ color: #cdd5e3; opacity:.9; }
.topbar a:hover{ color: white; }
.topbar .left, .topbar .right{ display:flex; gap: 22px; align-items:center; }
.topbar .ti{ display:inline-flex; align-items:center; gap: 8px; }
.topbar .ti svg{ width: 14px; height: 14px; }
.topbar .pill{
  background: var(--brand); color: white;
  padding: 5px 12px; border-radius: 999px;
  font-weight: 600; font-size: 12px;
}
.topbar .pill:hover{ background: var(--brand-2); color: white; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .row{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 111px;
  gap: 32px;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand .mark{
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand); color: white;
  display:grid; place-items:center;
}
.brand .mark svg{ width: 20px; height: 20px; }
.brand .accent{ color: var(--brand); }

/* Logo image variant */
.brand-logo{ display:inline-flex; align-items:center; min-width: 0; max-width: 100%; flex-shrink: 1; }
.brand-logo picture{ display:inline-flex; min-width:0; max-width:100%; }
.brand-logo img{ display:block; width: auto; max-width: 100%; height: auto; object-fit: contain; aspect-ratio: 578 / 162; }
.site-header .brand-logo img{ height: 110px; max-height: 110px; }
.drawer .brand-logo img{ max-height: 48px; }
.site-footer .brand-logo img{ height: 96px; max-height: 96px; }


/* Nav */
.nav{
  display:flex; gap: 4px; align-items:center;
  list-style: none; padding: 0; margin: 0;
  justify-self: center;
}
.nav > li{ position: relative; }
.nav > li > a, .nav > li > button{
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 8px;
  display:inline-flex; align-items:center; gap: 6px;
  transition: color .15s, background .15s;
}
.nav > li > a:hover, .nav > li > button:hover,
.nav > li.open > button{
  color: var(--brand);
  background: var(--brand-50);
}
.nav .caret{ width: 10px; height: 10px; transition: transform .2s; }
.nav > li.open .caret{ transform: rotate(180deg); }

.nav-cta{ display:inline-flex; align-items:center; gap: 10px; justify-self: end; }

/* Buttons */
.btn{
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  display:inline-flex; align-items:center; gap: 8px;
  border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--brand); color: white; box-shadow: 0 4px 14px -4px rgba(33,112,164,.55); }
.btn-primary:hover{ background: var(--brand-2); color: white; box-shadow: 0 8px 20px -6px rgba(33,112,164,.6); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ background: var(--bg-soft); color: var(--ink); }
.btn-ink{ background: var(--ink); color: white; }
.btn-ink:hover{ background: var(--ink-2); color: white; }
.btn-coral{ background: var(--coral); color: white; }
.btn-coral:hover{ background: #ee4828; color: white; }
.btn-light{ background: white; color: var(--ink); border-color: var(--line); }
.btn-link{ background: transparent; color: var(--brand); padding: 6px 0; }
.btn-link:hover{ color: var(--brand-2); }
.btn .arr{ font-size: 16px; line-height: 1; transition: transform .2s; }
.btn:hover .arr{ transform: translateX(3px); }

/* =========================================================
   MEGAMENU (BoldSign style)
   ========================================================= */
.mega{
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 720px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 60;
}
li.open > .mega{
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega.wide{ min-width: 880px; }
.mega-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 18px;
}
.mega-col h4{
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin: 8px 12px 8px;
}
.mi{
  display:flex; align-items:flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .15s;
}
.mi:hover{ background: var(--bg-soft); }
.mi .ico{
  flex: 0 0 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-50); color: var(--brand);
  display:grid; place-items:center;
}
.mi .ico svg{ width: 18px; height: 18px; }
.mi:nth-child(2n) .ico{ background: var(--bg-mint); color: var(--mint); }
.mi:nth-child(3n) .ico{ background: var(--bg-peach); color: var(--coral); }
.mi .t{ font-weight: 600; font-size: 14.5px; line-height: 1.3; display: block; }
.mi .d{ font-size: 12.5px; color: var(--muted); display:block; margin-top: 2px; }

/* Mega feature cell (right column) */
.mega-feature{
  background: linear-gradient(140deg, var(--brand-50) 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-top: 8px;
}
.mega-feature h5{
  font-family: var(--display); font-size: 17px; font-weight: 700;
  margin: 8px 0 6px;
}
.mega-feature p{ font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* Hamburger */
.hamburger{ display:none; }
@media (max-width: 1080px){
  .nav, .nav-cta .desktop-only{ display:none; }
  .topbar .left .ti.addr{ display:none; }
  .topbar{ font-size: 12px; }
  .topbar .container{ padding-top: 8px; padding-bottom: 8px; gap: 8px 14px; }
  .topbar .left, .topbar .right{ gap: 12px; flex-wrap: wrap; }
  .topbar .pill{ padding: 4px 10px; font-size: 11px; }
  .site-header .row{ display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; min-height: 97px; height: auto; padding: 8px 0; gap: 12px; }
  .site-header .brand-logo{ flex: 0 1 auto; min-width: 0; }
  .site-header .nav-cta{ flex: 0 0 auto; margin-left:auto; }
  .hamburger{
    display:inline-grid; place-items:center;
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg-soft); color: var(--ink);
    border: 1px solid var(--line); cursor: pointer;
  }
}

/* Mobile drawer */
.drawer{
  position: fixed; inset: 0; z-index: 100;
  background: white;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.7,.0,.2,1);
  overflow:auto; padding: 24px 24px 60px;
}
.drawer.open{ transform: translateY(0); }
.drawer .top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.drawer .close{ width:42px; height:42px; border-radius:10px; border:1px solid var(--line); background: white; cursor:pointer; }
.drawer details{ border-top: 1px solid var(--line); padding: 16px 0; }
.drawer details > summary{
  list-style:none; cursor:pointer;
  font-family: var(--display); font-size: 22px; font-weight: 700;
  display:flex; justify-content:space-between; align-items:center;
}
.drawer details > summary::-webkit-details-marker{ display:none; }
.drawer .plus{ color: var(--brand); transition: transform .2s; }
.drawer details[open] > summary .plus{ transform: rotate(45deg); }
.drawer details ul{ list-style:none; padding: 12px 0 0; margin: 0; }
.drawer details ul li a{ display:block; padding: 8px 0; color: var(--muted); font-size: 15px; }
.drawer .drawer-cta{ margin-top: 24px; display:flex; flex-direction:column; gap: 10px; }

/* =========================================================
   COMMON UI
   ========================================================= */
.eyebrow{
  display:inline-flex; align-items:center; gap: 8px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow.mint{ color: var(--mint); background: var(--bg-mint); }
.eyebrow.coral{ color: var(--coral); background: var(--bg-peach); }

.kicker{
  font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}

/* Section heading */
.sec-head{ text-align: center; max-width: 780px; margin: 0 auto 56px; }
.sec-head .eyebrow{ margin-bottom: 16px; }
.sec-head h2{ margin-bottom: 14px; }
.sec-head p{ font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Cards */
.card{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Reveal */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.in{ opacity:1; transform: none; }
/* Above-the-fold: skip reveal animation to avoid CLS */
.hero .reveal, .toc-wrap .reveal, .toc .reveal{ opacity:1 !important; transform: none !important; transition: none !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: #f4f1ec;
  color: var(--ink-2);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.site-footer h6,.site-footer .ft-h{
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 16px; font-weight: 800;
}
.site-footer a{ color: var(--ink-2); }
.site-footer a:hover{ color: var(--ink); }
.footer-grid{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:grid; gap: 8px; font-size: 14px; }
.site-footer .brand{ color: var(--ink); }
.site-footer .brand .accent{ color: var(--brand); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--ink);
  font-size: 13px; color: rgba(20,30,50,.55);
}
.subscribe{
  display:flex; gap:6px; margin-top: 14px;
  background: white;
  border: 1px solid rgba(20,30,50,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 4px;
}
.subscribe input{
  flex: 1; background: transparent; border: 0; color: var(--ink);
  padding: 10px 12px; font-family: var(--sans); font-size: 14px; outline: none;
}
.subscribe input::placeholder{ color: rgba(20,30,50,.45); }
.subscribe button{
  background: var(--brand); color: white; border: 0; cursor: pointer;
  padding: 9px 18px; border-radius: 8px; font-weight: 600;
  font-family: var(--sans); font-size: 13px;
}

/* Breadcrumbs */
.breadcrumbs{
  display:inline-flex; align-items:center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.breadcrumbs a{ color: var(--ink-2); }
.breadcrumbs a:hover{ color: var(--brand); }
.breadcrumbs .sep{ color: var(--line); }

@media (max-width: 520px){
  .topbar .left .ti.email{ font-size: 11px; }
  .topbar .left .ti.email svg{ width: 12px; height: 12px; }
  .topbar .right .pill{ display:none; }
  .topbar .right [data-status]{ display:none; }
}
@media (max-width: 380px){
  .topbar .left{ gap: 8px; }
  .topbar .left .ti svg{ display:none; }
}
