/* Washington Dental Studio — rebuilt static site */
:root {
  --teal: #11414b;
  --teal-dark: #0b2e35;
  --mint: #68cd9a;
  --mint-dark: #4db983;
  --beige: #c7b19d;
  --ink: #2b2b2b;
  --muted: #5f6b6e;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --line: #e4e9e8;
  --radius: 12px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--teal-dark);
  color: #dcebe6;
  font-size: 14px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--mint); }

/* ---------- header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-name { line-height: 1.25; }
.brand-name strong { display: block; color: var(--teal); font-size: 19px; }
.brand-name span { font-size: 13px; color: var(--muted); }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list a, .nav-list .drop-label {
  display: block; padding: 10px 12px; text-decoration: none;
  color: var(--teal); font-weight: 600; font-size: 15.5px; white-space: nowrap;
}
.nav-list a:hover, .nav-list .drop-label:hover { color: var(--mint-dark); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17,65,75,.14);
  list-style: none; margin: 0; padding: 8px; min-width: 260px;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { padding: 8px 12px; font-weight: 500; font-size: 15px; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--bg-soft); }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--mint); color: var(--teal-dark); }
.btn-primary:hover { background: var(--mint-dark); color: var(--teal-dark); box-shadow: 0 6px 18px rgba(104,205,154,.45); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14.5px; }
.nav-cta { margin-left: 8px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 70%);
  color: #fff; padding: 72px 0;
}
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin: 0 0 16px; }
.hero .lead { font-size: 1.15rem; color: #dcebe6; max-width: 640px; }
.hero .btn-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.hero .btn-outline:hover { background: #fff; color: var(--teal); }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-split img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.breadcrumb { font-size: 14px; color: #bcd4cc; margin-bottom: 12px; }
.breadcrumb a { color: #fff; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { color: var(--teal); font-size: 2rem; margin: 0 0 12px; line-height: 1.3; }
.section-sub { color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 4px 16px rgba(17,65,75,.06);
}
.card h3 { color: var(--teal); margin-top: 0; }
.card img.icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.rounded { border-radius: var(--radius); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0 8px 34px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint); color: var(--teal-dark);
  font-weight: 700; font-size: 14px; text-align: center; line-height: 24px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: var(--teal-dark); padding: 56px 0; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 2rem; }
.cta-band p { max-width: 640px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-band .btn-primary { background: var(--teal); color: #fff; }
.cta-band .btn-primary:hover { background: var(--teal-dark); }

/* ---------- testimonials ---------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.stars { color: #e8a13d; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial blockquote { margin: 12px 0; font-style: italic; color: var(--ink); }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--teal); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; background: #fff; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--teal);
  padding: 14px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--mint-dark); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0; }

/* ---------- contact / hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.hours-table tr td:last-child { text-align: right; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.form-note {
  background: #fff8e6; border: 1px solid #f0d98c; border-radius: var(--radius);
  padding: 20px 24px; font-size: 15.5px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfe0da; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; margin-top: 0; font-size: 1.05rem; }
.site-footer a { color: #cfe0da; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 15.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px;
  padding: 20px 0; font-size: 14px; text-align: center; color: #9db8ae;
}

/* ---------- blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.post-card h3 { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.4; }
.post-card h3 a { color: var(--teal-dark); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card .post-body p { margin: 0 0 16px; }
.post-card .post-body .btn { margin-top: auto; align-self: flex-start; }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-body-main img { border-radius: var(--radius); margin: 24px 0; }
.post-body-main h2 { color: var(--teal); margin-top: 36px; }
.post-body-main h3 { color: var(--teal); }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- responsive ---------- */
/* ---------- mobile menu (hidden on desktop) ---------- */
.menu-toggle { display: none; }
.drop-toggle { display: none; }

/* Wider header so the full nav fits on one line on large screens */
.site-header .header-inner { max-width: 1400px; }

/* Nav-only breakpoint: hamburger below 1360px so the desktop nav never
   wraps (a wrapped nav lets open dropdowns overlap the Schedule Online button) */
@media (max-width: 1360px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 2px solid var(--teal); border-radius: 10px;
    color: var(--teal); font: inherit; font-weight: 700; font-size: 15px;
    padding: 9px 14px; cursor: pointer; min-height: 44px;
  }
  .menu-toggle:hover { background: var(--bg-soft); }
  .menu-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
  .menu-toggle-icon { display: inline-flex; flex-direction: column; gap: 4px; }
  .menu-toggle-icon span {
    display: block; width: 20px; height: 2.5px; border-radius: 2px;
    background: currentColor; transition: transform .15s ease, opacity .15s ease;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  #primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17,65,75,.16);
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  #primary-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list a, .nav-list .drop-label { padding: 12px 8px; white-space: normal; }
  .nav-list a:focus-visible, .drop-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
  .drop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .drop-row .drop-label { flex: 1 1 auto; }
  .drop-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto;
    background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--teal);
  }
  .drop-toggle:hover { background: var(--bg-soft); }
  .drop-toggle svg { transition: transform .15s ease; }
  .drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .dropdown-menu {
    position: static; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 4px 12px; min-width: 0;
  }
  .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: none; }
  .has-dropdown.sub-open .dropdown-menu { display: block; }
}

@media (max-width: 900px) {
  .hero-split, .grid-2, .grid-3, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .post-card .post-body { padding: 24px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 44px 0; }

  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 2px solid var(--teal); border-radius: 10px;
    color: var(--teal); font: inherit; font-weight: 700; font-size: 15px;
    padding: 9px 14px; cursor: pointer; min-height: 44px;
  }
  .menu-toggle:hover { background: var(--bg-soft); }
  .menu-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
  .menu-toggle-icon { display: inline-flex; flex-direction: column; gap: 4px; }
  .menu-toggle-icon span {
    display: block; width: 20px; height: 2.5px; border-radius: 2px;
    background: currentColor; transition: transform .15s ease, opacity .15s ease;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  #primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17,65,75,.16);
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  #primary-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list a, .nav-list .drop-label { padding: 12px 8px; white-space: normal; }
  .nav-list a:focus-visible, .drop-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
  .drop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .drop-row .drop-label { flex: 1 1 auto; }
  .drop-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto;
    background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--teal);
  }
  .drop-toggle:hover { background: var(--bg-soft); }
  .drop-toggle svg { transition: transform .15s ease; }
  .drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .dropdown-menu {
    position: static; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 4px 12px; min-width: 0;
  }
  .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: none; }
  .has-dropdown.sub-open .dropdown-menu { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- contact form ---------- */
.contact-form { max-width: 720px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; color: var(--teal); margin-bottom: 6px; font-size: 15.5px; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 16px; font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--mint); border-color: var(--mint-dark);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin-bottom: 24px; }
.form-success {
  display: none; background: #e9f9f0; border: 1px solid var(--mint);
  border-radius: var(--radius); padding: 24px; margin-top: 8px;
}
.form-success.show { display: block; }
.hp-field { position: absolute; left: -9999px; }
@media (max-width: 700px) { .form-2col { grid-template-columns: 1fr; } }
.fine-print { font-size: 13px; color: var(--muted); max-width: 76ch; margin: 20px auto 0; line-height: 1.7; }
.footer-note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.callout { background: #eaf4f2; border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 8px; margin-top: 18px; }
