/* ==========================================================
   Maplegate Dental — CanadaWebs dental clinic template
   WCAG 2.1 AA contrast-checked palette. Teal + mint + coral.
   Verified ratios:
     #fff on --teal #0E6470        6.83:1
     #fff on --teal-deep #0A4A54   9.90:1
     #fff on --coral #C2483B       4.90:1
     #fff on --coral-deep #A33A2F  6.55:1
     --teal on --mint #F2FAF8      6.44:1
     --coral on #fff               4.90:1  · on --mint 4.62:1
     --ink #1F2E33 on #fff        14.03:1  · on --mint 13.23:1
     --muted #4E6269 on #fff       6.41:1  · on --mint 6.05:1
     --mint-bright #A8E3DA on --teal 4.77:1 · on --teal-deep 6.92:1
   ========================================================== */
:root {
  --teal: #0E6470;
  --teal-deep: #0A4A54;
  --mint: #F2FAF8;
  --mint-bright: #A8E3DA;
  --coral: #C2483B;
  --coral-deep: #A33A2F;
  --muted: #4E6269;
  --ink: #1F2E33;
  --line: #DCE8E6;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { font-family: 'Manrope', -apple-system, sans-serif; font-size: 1.05rem; line-height: 1.65; color: var(--ink); background: var(--white); }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.hero :focus-visible, .first-visit :focus-visible, .reviews :focus-visible,
.site-footer :focus-visible, .emerg-strip :focus-visible { outline-color: var(--mint-bright); }
h1, h2, h3 { font-family: 'Manrope', sans-serif; color: var(--teal-deep); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-weight: 700; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--teal-deep); color: #fff; padding: 0.7rem 1.2rem; z-index: 99; font-weight: 700; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.6rem; font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer; min-height: 44px; transition: background 0.15s ease; }
.btn-coral { background: var(--coral); color: #fff !important; }
.btn-coral:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Emergency strip */
.emerg-strip { background: var(--teal-deep); color: #fff; font-weight: 600; font-size: 0.95rem; }
.emerg-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; flex-wrap: wrap; }
.emerg-phone { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { font-size: 1.35rem; font-weight: 800; color: var(--teal-deep); line-height: 1.05; letter-spacing: -0.01em; }
.brand-text em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--coral); letter-spacing: 0.22em; text-transform: uppercase; }
.navmenu { display: flex; align-items: center; gap: 0.3rem; }
.navmenu > a { color: var(--teal-deep); text-decoration: none; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 999px; }
.navmenu > a:not(.btn):hover { background: var(--mint); color: var(--teal-deep); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; background: var(--teal); color: #fff; border: none; padding: 0.55rem 1rem; font-family: inherit; font-weight: 700; font-size: 1rem; border-radius: 999px; cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 20px; height: 2.5px; background: #fff; position: relative; border-radius: 2px; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 56rem) {
  .nav-toggle { display: inline-flex; }
  .navmenu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .navmenu.open { display: flex; }
  .navmenu > a { padding: 0.85rem 0.8rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* Hero */
.hero { background: linear-gradient(155deg, var(--teal-deep) 0%, var(--teal) 85%), var(--teal-deep); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -80px; width: 460px; height: 460px; border: 30px solid rgba(168,227,218,0.14); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; padding: 4.4rem 1.25rem 3.6rem; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--teal); margin-bottom: 0.6rem; font-size: 0.85rem; }
.eyebrow-light { color: var(--mint-bright); }
.hero .eyebrow { color: var(--mint-bright); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 800; max-width: 18em; margin-bottom: 0.7rem; }
.hero h1 .accent { color: var(--mint-bright); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,0.92); max-width: 40rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.trust-chips { list-style: none; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.trust-chips li { background: rgba(255,255,255,0.1); border: 1px solid rgba(168,227,218,0.4); color: #fff; font-weight: 600; font-size: 0.9rem; padding: 0.4rem 0.95rem; border-radius: 999px; }

/* Sections */
section { padding: 4.2rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-lead { color: var(--muted); margin-top: 0.7rem; }
.section-lead-light { color: rgba(255,255,255,0.92); }

/* Services */
.services { background: var(--mint); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem 1.5rem; box-shadow: 0 2px 10px rgba(10,74,84,0.05); }
.svc-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: var(--teal); color: #fff; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.svc-card p { color: var(--muted); font-size: 0.98rem; }

/* First visit */
.first-visit { background: var(--teal-deep); color: #fff; }
.first-visit h2 { color: #fff; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; counter-reset: step; }
.step { background: rgba(255,255,255,0.07); border: 1px solid rgba(168,227,218,0.25); border-radius: 16px; padding: 1.7rem 1.5rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint-bright); color: var(--teal-deep); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.9rem; }
.step h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: rgba(255,255,255,0.9); font-size: 0.98rem; }

/* Team */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.team-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 2px 10px rgba(10,74,84,0.05); }
.team-photo { position: relative; min-height: 190px; }
.t-a { background: linear-gradient(150deg, #0E6470, #0A4A54); }
.t-b { background: linear-gradient(150deg, #2A8794, #0E6470); }
.t-c { background: linear-gradient(150deg, #64B0AC, #1B707C); }
.t-d { background: linear-gradient(150deg, #A8E3DA, #4E9E97); }
.team-role-pill { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,0.95); color: var(--teal-deep); font-weight: 700; font-size: 0.82rem; padding: 0.3rem 0.8rem; border-radius: 999px; }
.team-body { padding: 1.2rem 1.3rem 1.4rem; }
.team-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.team-body p { color: var(--muted); font-size: 0.94rem; }

/* Reviews */
.reviews { background: var(--teal-deep); color: #fff; }
.reviews h2 { color: #fff; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.rev-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(168,227,218,0.25); border-radius: 16px; padding: 1.5rem 1.5rem 1.3rem; }
.stars { color: var(--mint-bright); letter-spacing: 0.2em; margin-bottom: 0.6rem; font-size: 1.05rem; }
.rev-card p { color: rgba(255,255,255,0.92); margin-bottom: 0.8rem; }
.rev-card footer { color: var(--mint-bright); font-weight: 700; font-size: 0.95rem; }

/* Insurance & billing */
.insurance { background: var(--mint); }
.insurance-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.insurance-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.insurance-list li { padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; color: var(--muted); }
.insurance-list strong { color: var(--teal-deep); }
@media (max-width: 52rem) { .insurance-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 50rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--teal-deep); list-style-position: inside; border-radius: 12px; }
.faq-item summary:hover { background: var(--mint); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.faq-item p { padding: 1rem 1.2rem 1.2rem; color: var(--muted); }

/* Appointment / contact */
.appointment { background: var(--mint); }
.appt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.appt-info p { margin-bottom: 1rem; }
.phone-strong { font-weight: 800; }
.appt-address { font-style: normal; margin-bottom: 1rem; color: var(--ink); }
.appt-line { font-size: 0.98rem; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 24rem; margin-bottom: 1.2rem; font-size: 0.96rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hours-table caption { text-align: left; font-weight: 800; color: var(--teal-deep); margin-bottom: 0.5rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.45rem 0.9rem; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 700; color: var(--teal-deep); }
.hours-table td { color: var(--muted); }
.privacy-line { font-size: 0.9rem; color: var(--muted); }
.privacy-line strong { color: var(--teal-deep); }
.appt-form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; box-shadow: 0 2px 10px rgba(10,74,84,0.05); }
.af-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.af-field { margin-bottom: 1rem; }
.af-field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--teal-deep); }
.af-field input, .af-field select, .af-field textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--white); }
.af-field input::placeholder, .af-field textarea::placeholder { color: var(--muted); opacity: 1; }
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,100,112,0.18); }
@media (max-width: 52rem) { .appt-grid { grid-template-columns: 1fr; gap: 1.6rem; } .af-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.88); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 2.4rem; padding-bottom: 2rem; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer-brand em { font-style: normal; color: var(--mint-bright); font-size: 0.85rem; display: block; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-line { font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.16); padding: 1rem 0 1.2rem; }
.footer-legal p { font-size: 0.85rem; color: rgba(255,255,255,0.78); margin: 0.15rem 0; }
.demo-note a { color: var(--mint-bright); font-weight: 700; }
