@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --slate: #2c3e46;
  --slate-dark: #1f323b;
  --sage: #a7bbae;
  --sage-dark: #708c7c;
  --sand: #e7e2d7;
  --ivory: #f7f6f2;
  --blue: #bfd6d9;
  --white: #fff;
  --border: rgba(44, 62, 70, .17);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --shadow: 0 24px 60px rgba(31, 50, 59, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px;
  color: var(--white); background: var(--slate); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--border);
  background: rgba(247, 246, 242, .94); backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .header-logo { width: 285px; height: auto; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a { font-size: 12px; font-weight: 500; letter-spacing: .05em; text-decoration: none; }
.primary-nav > a:not(.button) { position: relative; }
.primary-nav > a:not(.button)::after {
  position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; content: "";
  background: var(--sage-dark); transform: scaleX(0); transition: transform .2s ease;
}
.primary-nav > a:hover::after, .primary-nav > a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: none; }

.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  padding: 14px 24px; border: 1px solid var(--sage-dark); color: var(--white);
  background: var(--sage-dark); font-size: 11px; font-weight: 600; letter-spacing: .11em;
  line-height: 1.3; text-align: center; text-decoration: none; text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover, .button:focus-visible { border-color: var(--slate); background: var(--slate); transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 12px 18px; }
.text-link {
  display: inline-flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-decoration: none; text-transform: uppercase;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr); }
.hero-image { min-height: 680px; overflow: hidden; }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 51% top;
  transform: scale(1.31); transform-origin: 51% top;
}
.hero-copy {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; padding: 80px clamp(48px, 7vw, 120px); background: var(--sand);
}
.hero-copy::before {
  position: absolute; right: -120px; bottom: -190px; width: 430px; height: 430px;
  border: 1px solid rgba(112, 140, 124, .35); border-radius: 50%; content: "";
}
.hero-copy::after {
  position: absolute; right: -85px; bottom: -145px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(167, 187, 174, .28); content: "";
}
.hero-copy > * { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 19px; color: var(--sage-dark); font-size: 11px; font-weight: 600;
  letter-spacing: .26em; line-height: 1.5; text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h1 { margin-bottom: 26px; font-size: clamp(58px, 6vw, 88px); letter-spacing: -.025em; }
h2 { margin-bottom: 25px; font-size: clamp(44px, 5vw, 66px); letter-spacing: -.02em; }
h3 { margin-bottom: 12px; font-size: 27px; }
.lead { max-width: 540px; margin: 0 0 35px; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; }

.section-heading { max-width: 650px; margin-bottom: 60px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; }
.services { padding-top: 72px; padding-bottom: 90px; }
.services .section-heading { margin-bottom: 42px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.service-card { min-height: 250px; padding: 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-card p { margin: 0; font-size: 13px; line-height: 1.75; }
.service-icon {
  display: block; margin-bottom: 35px; color: var(--sage-dark); font-family: var(--serif);
  font-size: 18px; letter-spacing: .1em;
}

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 10vw, 140px); }
.about-copy { max-width: 650px; }
.about-copy p:not(.eyebrow) { max-width: 600px; }
.about-copy .text-link { margin-top: 18px; }
.dentists { padding-left: clamp(40px, 6vw, 85px); border-left: 1px solid var(--border); }
.dentist { padding: 26px 0; border-top: 1px solid var(--border); }
.dentist:first-of-type { margin-top: 30px; }
.dentist p { margin: 0; font-size: 14px; }

.reassurance { padding: 48px 0; background: var(--sand); }
.reassurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.reassurance-grid div { padding: 4px 38px; border-right: 1px solid rgba(44, 62, 70, .18); text-align: center; }
.reassurance-grid div:last-child { border: 0; }
.reassurance strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.reassurance span { font-size: 11px; letter-spacing: .06em; }

.contact { color: var(--white); background: var(--slate); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 140px); }
.contact .eyebrow { color: var(--sage); }
.contact-intro p:not(.eyebrow) { max-width: 540px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.button-light { border-color: var(--sage); color: var(--slate-dark); background: var(--sage); }
.button-light:hover, .button-light:focus-visible { border-color: var(--white); color: var(--slate); background: var(--white); }
.button-outline-light { border-color: var(--sage); color: var(--white); background: transparent; }
.button-outline-light:hover, .button-outline-light:focus-visible { border-color: var(--white); color: var(--slate); background: var(--white); }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-content: center; font-style: normal; }
.contact-details div:first-child { grid-row: span 2; }
.contact-details div { display: flex; flex-direction: column; gap: 5px; }
.contact-details span { margin-bottom: 6px; color: var(--sage); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.contact-details a { font-size: 14px; text-decoration: none; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--blue); }

.site-footer { padding: 38px 0; color: rgba(255,255,255,.74); background: var(--slate-dark); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.site-footer img { width: 210px; height: 76px; object-fit: contain; object-position: left center; }
.site-footer p { margin: 0; font-size: 10px; letter-spacing: .05em; }
.footer-copy { display: grid; gap: 7px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; font-size: 10px; letter-spacing: .05em; }
.footer-links a { text-underline-offset: 4px; }
.footer-links > a { color: rgba(255,255,255,.74); }
.footer-links > a:hover, .footer-links > a:focus-visible { color: var(--white); }
.nerd-nation { color: var(--blue); font-weight: 600; text-decoration: none; }
.nerd-nation:hover, .nerd-nation:focus-visible { color: var(--sage); }

.legal-hero { padding: 95px 0 70px; background: var(--sand); }
.legal-hero h1 { max-width: 790px; margin-bottom: 18px; }
.legal-hero p:last-child { max-width: 680px; margin: 0; }
.legal-content { padding: 85px 0 110px; background: var(--white); }
.legal-layout { display: grid; grid-template-columns: minmax(190px, .32fr) minmax(0, .68fr); gap: clamp(50px, 10vw, 130px); }
.legal-nav { position: sticky; top: 125px; align-self: start; }
.legal-nav p { margin: 0 0 14px; color: var(--sage-dark); font-size: 10px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 7px 0; font-size: 12px; text-decoration: none; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--sage-dark); }
.policy { max-width: 760px; }
.policy section { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--border); scroll-margin-top: 125px; }
.policy section:last-child { margin-bottom: 0; border-bottom: 0; }
.policy h2 { margin-bottom: 18px; font-size: 37px; }
.policy h3 { margin: 25px 0 10px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.policy p, .policy li { font-size: 14px; line-height: 1.85; }
.policy ul { padding-left: 20px; }
.policy a { color: var(--sage-dark); text-underline-offset: 3px; }
.policy .updated { color: var(--sage-dark); font-size: 12px; font-weight: 500; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 980px) {
  .nav-wrap { min-height: 80px; }
  .brand .header-logo { width: 250px; height: auto; }
  .menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 6px; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--slate); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    position: absolute; top: 80px; right: 0; left: 0; display: none; padding: 24px;
    border-bottom: 1px solid var(--border); background: var(--ivory); box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .primary-nav.open > a:not(.button) { padding: 8px 0; }
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-image { min-height: 54vw; }
  .hero-copy { min-height: 540px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .dentists { padding-left: 0; border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1160px); }
  .section { padding: 76px 0; }
  .brand .header-logo { width: 205px; }
  .hero-image { min-height: 67vw; }
  .hero-copy { min-height: 500px; padding: 64px 24px; }
  h1 { font-size: clamp(48px, 15vw, 66px); }
  h2 { font-size: 44px; }
  .lead { font-size: 17px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { justify-content: center; }
  .section-heading { margin-bottom: 40px; }
  .services { padding-top: 60px; padding-bottom: 70px; }
  .services .section-heading { margin-bottom: 34px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .reassurance-grid { grid-template-columns: 1fr; }
  .reassurance-grid div { padding: 22px 10px; border-right: 0; border-bottom: 1px solid rgba(44,62,70,.18); }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details div:first-child { grid-row: auto; }
  .contact-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .site-footer img { margin-inline: auto; object-position: center; }
  .footer-links { justify-content: center; }
  .legal-hero { padding: 70px 0 55px; }
  .legal-content { padding: 65px 0 80px; }
  .legal-layout { grid-template-columns: 1fr; gap: 45px; }
  .legal-nav { position: static; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
  .legal-nav a { display: inline-block; margin-right: 18px; }
}
