/* Sawtooth Dental — static site */
:root {
  --navy: #0c3b5c;
  --navy-dark: #082a42;
  --teal: #1a8a8c;
  --teal-light: #e8f6f6;
  --accent: #c9a227;
  --text: #1f2933;
  --muted: #5a6a7a;
  --bg: #f7f9fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(12, 59, 92, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
ul { padding-left: 1.25rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  /* contains absolute mobile nav */
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 0; justify-content: space-between;
  position: relative;
}
.logo img { height: 52px; width: auto; }
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.phone-link {
  font-weight: 700; color: var(--navy); font-size: 1.05rem; white-space: nowrap;
}
.phone-link:hover { color: var(--teal); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  font-size: .95rem; line-height: 1.2;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: #b8911f; color: #fff; text-decoration: none; }
.social-inline { display: flex; gap: .5rem; align-items: center; }
.social-inline a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-light); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-inline a .social-icon {
  width: 18px; height: 18px; display: block;
}
.social-inline a:hover { background: var(--teal); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: .5rem .65rem; cursor: pointer; font-size: 1.25rem;
  color: var(--navy);
}
.primary-nav { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav > li { position: relative; list-style: none; }
.primary-nav > li > a,
.primary-nav > li > button {
  display: block; padding: .55rem .7rem; color: var(--navy);
  font-weight: 600; font-size: .92rem; background: none; border: none;
  cursor: pointer; font-family: inherit; border-radius: 8px;
}
.primary-nav > li > a:hover,
.primary-nav > li > button:hover,
.primary-nav > li > a[aria-current="page"] {
  background: var(--teal-light); color: var(--teal); text-decoration: none;
}
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem;
  z-index: 50; list-style: none; margin: 0;
}
.dropdown.mega { min-width: 520px; grid-template-columns: 1fr 1fr; gap: .15rem; }
.dropdown a {
  display: block; padding: .55rem .75rem; color: var(--text);
  border-radius: 8px; font-size: .9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--teal-light); color: var(--navy); text-decoration: none; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown { display: block; }
.has-dropdown:hover > .dropdown.mega,
.has-dropdown:focus-within > .dropdown.mega,
.has-dropdown.open > .dropdown.mega { display: grid; }

.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal) 100%);
  color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 .5rem; line-height: 1.15; }
.hero .tagline { font-size: 1.15rem; opacity: .92; margin: 0 0 1.5rem; max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hero-photo img { width: 100%; height: 320px; object-fit: cover; }
.page-hero { background: var(--navy); color: #fff; padding: 2.25rem 0; }
.page-hero h1 { margin: 0 0 .35rem; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.page-hero p { margin: 0; opacity: .9; max-width: 60ch; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg); }
.section h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem); color: var(--navy); margin: 0 0 1.25rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.1rem; }
.service-card { padding: 1rem 1.1rem; }
.service-card:hover { border-color: var(--teal); }
.service-card h3 { color: var(--teal); margin: 0 0 .35rem; font-size: 1.02rem; line-height: 1.3; }
.service-card a {
  color: inherit; text-decoration: none;
  display: flex; flex-direction: column; gap: .35rem; height: 100%;
}
.service-card a:hover { text-decoration: none; }
.svc-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 10px;
  background: var(--teal-light); color: var(--teal); flex-shrink: 0;
}
.svc-icon { width: 1.35rem; height: 1.35rem; display: block; }
.service-card .svc-more {
  margin: 0; margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--navy);
}
.service-card:hover .svc-icon-wrap { background: var(--teal); color: #fff; }
.service-card:hover .svc-more { color: var(--teal); }

.person-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.person-card img {
  width: 160px; height: 160px; object-fit: cover; border-radius: 12px; background: var(--bg);
}
.person-card h3 { margin: 0 0 .35rem; color: var(--navy); }
.person-card .role { color: var(--teal); font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.team-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.team-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: var(--bg);
}
.team-card .body { padding: 1rem 1.1rem 1.25rem; }
.team-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--navy); }
.team-card .role { color: var(--teal); font-size: .88rem; font-weight: 600; margin-bottom: .5rem; }
.team-card p { margin: 0; font-size: .92rem; color: var(--muted); }

.offer-box {
  background: linear-gradient(160deg, #fff 0%, var(--teal-light) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.offer-box h3 { color: var(--navy); margin-top: 0; }
.price { font-size: 1.75rem; font-weight: 800; color: var(--teal); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.compare .col { background: #fff; border-radius: 10px; padding: 1rem; border: 1px solid var(--border); }
.compare .col.vip { border-color: var(--teal); background: var(--teal-light); }

.quote-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
.quote-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quote {
  background: #fff;
  border-left: 4px solid var(--teal);
  padding: 1.1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left-width: 4px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.quote p { margin: 0 0 .75rem; font-size: .95rem; flex: 1 1 auto; }
.quote cite {
  font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem;
  margin-top: auto; display: block;
}
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .35rem; }
@media (max-width: 900px) {
  .quote-grid.cols-3,
  .quote-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .quote-grid.cols-3,
  .quote-grid.cols-4 { grid-template-columns: 1fr; }
}

.loc-card h3 { margin-top: 0; }
.loc-card address { font-style: normal; margin-bottom: .75rem; }
.loc-card .hours { font-size: .92rem; color: var(--muted); margin: .5rem 0; }
.loc-card .phone { font-weight: 700; font-size: 1.05rem; }

.form-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-panel h2, .form-panel h3 { margin-top: 0; }
.form-note {
  background: #fff8e6; border: 1px solid #f0d78c; border-radius: 8px;
  padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem; color: #5c4a10;
}
.form-note.form-note-info {
  background: var(--teal-light); border-color: #b8dede; color: var(--navy);
}
.appt-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: .85rem; }
.appt-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; color: var(--navy); }
.appt-form input[type="text"],
.appt-form input[type="email"],
.appt-form input[type="tel"],
.appt-form select,
.appt-form textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit;
}
.appt-form textarea { min-height: 110px; resize: vertical; }
.appt-form fieldset {
  border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; margin: 0 0 .85rem;
}
.appt-form legend { font-weight: 600; font-size: .88rem; color: var(--navy); padding: 0 .35rem; }
.appt-form .radio-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.appt-form .radio-row label { font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: .35rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-group label {
  font-weight: 500; background: var(--bg); padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid var(--border); cursor: pointer; font-size: .88rem;
}
.chip-group input { margin-right: .35rem; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .75; cursor: not-allowed; background: var(--muted); border-color: var(--muted); color: #fff;
}
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--muted); color: #fff; }
.cta-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.cta-panel h3 { margin-top: 0; color: var(--navy); }

.pdf-list { list-style: none; padding: 0; margin: 0; }
.pdf-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.pdf-list li:last-child { border-bottom: 0; }

.prose { max-width: 72ch; }
.prose h2, .prose h3 { color: var(--navy); margin-top: 1.75rem; }

.site-footer {
  background: var(--navy-dark); color: #d7e3ee; padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.site-footer a { color: #9ed4d5; }
.site-footer a:hover { color: #fff; }
.footer-locs { margin-bottom: 2rem; }
.footer-loc h4 { color: #fff; margin: 0 0 .5rem; font-size: 1.05rem; }
.footer-loc address { font-style: normal; font-size: .92rem; line-height: 1.55; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem; font-size: .88rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.specialty-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .compare { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .person-card { grid-template-columns: 120px 1fr; }
  .person-card img { width: 120px; height: 120px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem;
    box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow: auto;
  }
  .primary-nav.open { display: flex; }
  .dropdown, .dropdown.mega {
    position: static; display: none; min-width: 0; box-shadow: none;
    border: none; padding: 0 0 0 .75rem; grid-template-columns: 1fr;
  }
  .has-dropdown.open > .dropdown,
  .has-dropdown.open > .dropdown.mega { display: grid; }
  .header-inner { flex-wrap: wrap; }
  .phone-link { font-size: .95rem; }
  .social-inline { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .appt-form .row { grid-template-columns: 1fr; }
  .header-actions .btn { padding: .55rem .9rem; font-size: .85rem; }
  .pdf-list li { flex-direction: column; align-items: flex-start; }
  .person-card { grid-template-columns: 1fr; }
  .person-card img { width: 100%; height: 220px; }
}


/* Homepage about: three dentists */
.doctors-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: start;
}
.doctors-trio figure {
  margin: 0;
  text-align: center;
}
.doctors-trio img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--teal-light);
}
.doctors-trio figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
@media (max-width: 640px) {
  .doctors-trio { grid-template-columns: 1fr; max-width: 220px; margin-inline: auto; }
}


/* Services list: columns on desktop, swipe on small screens */
.services-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}
.services-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(12, 59, 92, 0.04);
}
.services-swipe-hint {
  display: none;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    margin-right: -1rem;
    padding-right: 1rem;
  }
  .services-grid li {
    flex: 0 0 min(78vw, 240px);
    scroll-snap-align: start;
  }
  .services-swipe-hint {
    display: block;
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Homepage about: text left, office photo right, vertically centered */
.about-practice {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.about-practice-copy {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}
.about-practice-copy h2 { margin-bottom: 1rem; }
.about-practice-copy p { color: var(--text); }
.about-practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-start;
  margin-top: 1.25rem;
}
.about-practice-photo {
  margin: 0;
  width: 100%;
}
.about-practice-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .about-practice {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-practice-copy { text-align: left; }
  .about-practice-photo img { max-height: 320px; }
}

/* Specialty hub */
.specialty-hub-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.25rem;
}
.specialty-hub-list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.specialty-hub-list a:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}
.specialty-hub-list .svc-icon-wrap {
  width: 2.1rem;
  height: 2.1rem;
}
@media (max-width: 640px) {
  .specialty-hub-list { grid-template-columns: 1fr; }
}

/* Specialty page hero: icon + title inline */
.page-hero-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-hero-title > div { min-width: 0; }
.page-hero-title h1 { margin: 0 0 .35rem; }
.page-hero .page-hero-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex-shrink: 0;
}
.page-hero .page-hero-icon .svc-icon {
  width: 1.7rem;
  height: 1.7rem;
}
@media (max-width: 600px) {
  .page-hero-title { gap: .75rem; }
  .page-hero .page-hero-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
  }
  .page-hero .page-hero-icon .svc-icon {
    width: 1.4rem;
    height: 1.4rem;
  }
}
