/* =========================================================
   Coit Dental — BoldSign-inspired theme
   ========================================================= */

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

  --ink:       #0b1320;
  --ink-2:     #1a2233;
  --muted:     #5a6478;
  --line:      #e5e9f0;

  --brand:     #2170a4;
  --brand-2:   #185780;
  --brand-50:  #e8f1f8;
  --mint:      #0fb37d;
  --coral:     #ff5a3c;
  --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(28px, 3.4vw, 40px); letter-spacing: -0.025em; }
h3{ font-size: clamp(20px, 2.2vw, 26px); }
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); }

.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{ 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; }

.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 */
.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{ 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{ 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; }
}

.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; }

.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); }

.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); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: #f4f1ec; color: var(--ink-2); padding: 80px 0 32px; margin-top: 0; }
.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-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; }

@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; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-hero{
  position:relative;
  padding: clamp(56px,7vw,100px) 0 clamp(32px,4vw,48px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
}
.contact-hero .container{ max-width: 880px; }
.contact-hero .breadcrumbs{ margin-bottom: 22px; }
.contact-hero h1{ margin-top: 18px; font-size: clamp(38px, 5vw, 60px); }
.contact-hero .lead{ font-size: 18px; line-height: 1.65; color: var(--muted); margin-top: 18px; max-width: 720px; }

.contact-tiles{ padding: clamp(20px,3vw,32px) 0 clamp(40px,5vw,64px); }
.contact-tiles .container{ max-width: 1100px; }
.tiles-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px){ .tiles-grid{ grid-template-columns: 1fr; } }
.tile{
  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;
}
.tile:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.tile .ico{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-50); color: var(--brand);
  display:grid; place-items:center;
  margin-bottom: 18px;
}
.tile.mint .ico{ background: var(--bg-mint); color: var(--mint); }
.tile.coral .ico{ background: var(--bg-peach); color: var(--coral); }
.tile .ico svg{ width: 22px; height: 22px; }
.tile h3{ font-size: 20px; margin-bottom: 6px; }
.tile .big{ font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink); margin: 4px 0 8px; letter-spacing: -0.01em; }
.tile p{ font-size: 14.5px; margin: 0 0 14px; }
.tile a.link{ color: var(--brand); font-weight: 600; font-size: 14px; display:inline-flex; align-items:center; gap: 6px; }
.tile a.link:hover{ color: var(--brand-2); }

/* Main two-column: form + sidebar */
.contact-main{ padding: clamp(40px,5vw,72px) 0 clamp(56px,7vw,96px); }
.contact-main .container{ max-width: 1100px; }
.cm-grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px){ .cm-grid{ grid-template-columns: 1fr; gap: 36px; } }
.cm-grid > *{ min-width: 0; }

.cm-form{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px,3vw,36px);
  box-shadow: var(--shadow-sm);
}
.cm-form h2{ margin: 0 0 8px; font-size: 28px; }
.cm-form .sub{ font-size: 15px; color: var(--muted); margin: 0 0 24px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 540px){ .form-row{ grid-template-columns: 1fr; } }
.field{ display:flex; flex-direction:column; gap: 6px; margin-bottom: 14px; }
.field label{ font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input,
.field select,
.field textarea{
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%; min-width: 0; max-width: 100%;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  background: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(33,112,164,.12);
}
.field textarea{ min-height: 140px; resize: vertical; }
.consent{ display:flex; gap: 10px; align-items:flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.consent input{ margin-top: 3px; accent-color: var(--brand); }
.cm-form .submit-row{ display:flex; gap: 12px; align-items:center; flex-wrap:wrap; }
.cm-form .note{ font-size: 12.5px; color: var(--muted); margin: 0; }
/* Contact form states (COIT-4) */
.hp{ position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }
.field-hint{ font-size: 12.5px; color: var(--muted); margin: 0; }
.field [aria-invalid="true"]{ border-color: #d93a1f; background: #fff5f3; }
.form-status{ border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 16px; }
.form-status.ok{ background: var(--bg-mint, #e9f7f1); color: #0b5d43; border: 1px solid #b6e6d2; }
.form-status.err{ background: #fff2ef; color: #8a2a17; border: 1px solid #f4c7bc; }
.form-status.pending{ background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.form-status a{ color: inherit; font-weight: 600; text-decoration: underline; }


.cm-side{ display:flex; flex-direction: column; gap: 18px; }
.cm-card{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.cm-card h3{ font-size: 18px; margin: 0 0 12px; display:flex; align-items:center; gap: 10px; }
.cm-card h3 svg{ width: 18px; height: 18px; color: var(--brand); }
.cm-card .row{ display:flex; justify-content:space-between; padding: 7px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.cm-card .row:last-child{ border-bottom: 0; }
.cm-card .row .d{ color: var(--ink-2); font-weight: 600; }
.cm-card .row .h{ color: var(--muted); }
.cm-card.address p{ font-size: 14.5px; color: var(--ink-2); margin: 0 0 6px; line-height: 1.55; }
.cm-card.address a{ color: var(--brand); font-size: 14px; font-weight: 600; }

.map-wrap{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.map-wrap iframe{ display:block; width: 100%; height: 320px; border: 0; }

/* Bottom CTA strip */
.contact-cta{
  padding: clamp(40px,5vw,72px) 0;
  background: var(--ink);
  color: white;
}
.contact-cta .container{ display:flex; align-items:center; gap: 24px; flex-wrap:wrap; }
.contact-cta h2{ color: white; margin: 0; font-size: clamp(24px, 3vw, 34px); max-width: 720px; }
.contact-cta p{ color: rgba(255,255,255,.7); margin: 6px 0 0; font-size: 15px; }
.contact-cta .actions{ margin-left:auto; display:flex; gap: 10px; }
@media (max-width: 720px){ .contact-cta .actions{ margin-left:0; width:100%; } }
