:root {
  color-scheme: light;
  --ink: #182327;
  --muted: #5d6d72;
  --line: #dbe4e2;
  --paper: #fbfcfa;
  --soft: #eef6f4;
  --teal: #0f766e;
  --teal-dark: #0b4f4b;
  --coral: #d8644f;
  --gold: #f2b84b;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(13, 33, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::selection {
  background: rgba(216, 100, 79, 0.25);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.88);
  border-bottom: 1px solid rgba(219, 228, 226, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--teal-dark);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(219, 228, 226, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.nav-links a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #344449;
  font-size: 0.91rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--teal-dark);
}

.header-phone {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(13, 33, 37, 0.08);
}

.header-phone span {
  margin-right: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(600px, 78svh, 760px);
  padding: 104px clamp(20px, 5vw, 72px) 38px;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 0.98) 0%, rgba(248, 250, 247, 0.88) 28%, rgba(248, 250, 247, 0.2) 58%),
    linear-gradient(0deg, rgba(24, 35, 39, 0.18), rgba(24, 35, 39, 0.04)),
    url("assets/hero-dentist.webp") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(13, 33, 37, 0.24), rgba(13, 33, 37, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 6.2ch;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.4vw, 6.6rem);
  font-weight: 700;
  line-height: 0.88;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 22px;
  color: #344449;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.strip-action:hover,
.strip-action:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(11, 79, 75, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #083d3a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(24, 35, 39, 0.16);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(640px, 100%);
  margin: 24px 0 0;
}

.hero-stats div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.appointment-strip {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px clamp(20px, 5vw, 72px);
  background: var(--teal-dark);
  color: var(--white);
}

.strip-label {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment-strip strong {
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.strip-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--gold);
  color: #2a2514;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
}

.section-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(13, 33, 37, 0.06);
}

.service-icon {
  display: inline-flex;
  width: 44px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-left: 4px solid var(--coral);
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card p,
.experience-copy p,
.doctor-card p,
.quote-card p,
.booking-copy p {
  color: var(--muted);
}

.experience-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(34px, 6vw, 90px);
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(11, 79, 75, 0.98)),
    var(--teal-dark);
  color: var(--white);
}

.experience-band .eyebrow,
.experience-band p,
.experience-list span {
  color: rgba(255, 255, 255, 0.76);
}

.experience-copy {
  max-width: 660px;
}

.experience-copy h2 {
  color: var(--white);
}

.experience-copy p {
  font-size: 1.08rem;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-list div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.experience-list strong,
.experience-list span {
  display: block;
}

.experience-list strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.doctor-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 22px;
  align-items: stretch;
  background: #f6f8f7;
}

.doctor-card,
.quote-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doctor-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}

.doctor-photo {
  display: grid;
  width: clamp(124px, 18vw, 188px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(242, 184, 75, 0.7), rgba(216, 100, 79, 0.8)),
    var(--coral);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  border-top: 6px solid var(--gold);
}

.quote-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.quote-card span {
  color: var(--muted);
  font-weight: 800;
}

.visit-section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-top: 34px;
}

.hours-panel,
.map-panel {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hours-panel {
  padding: 28px;
}

.hours-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.hours-list dt {
  font-weight: 850;
}

.hours-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.75fr);
  overflow: hidden;
}

.map-streets {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 68% 34%, rgba(216, 100, 79, 0.22), transparent 16%),
    linear-gradient(135deg, #d8ece8, #f4f8f6);
}

.street {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(13, 33, 37, 0.04);
}

.street-a {
  top: 48%;
  left: -8%;
  width: 118%;
  height: 34px;
  transform: rotate(-13deg);
}

.street-b {
  top: 5%;
  left: 38%;
  width: 34px;
  height: 106%;
  transform: rotate(18deg);
}

.street-c {
  top: 70%;
  left: 8%;
  width: 80%;
  height: 26px;
  transform: rotate(34deg);
}

.pin {
  position: absolute;
  top: 45%;
  left: 58%;
  width: 28px;
  height: 28px;
  border: 7px solid var(--coral);
  border-radius: 50% 50% 50% 0;
  background: var(--white);
  transform: rotate(-45deg);
  box-shadow: 0 14px 22px rgba(13, 33, 37, 0.2);
}

.map-panel > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.map-panel p {
  color: var(--muted);
}

.map-panel a,
.booking-copy a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.25);
  text-underline-offset: 4px;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(70px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.booking-copy {
  max-width: 560px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

label {
  color: #344449;
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}

:focus-visible {
  outline: 3px solid rgba(242, 184, 75, 0.92);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-section,
  .experience-band,
  .doctor-section,
  .visit-grid,
  .booking-section {
    grid-template-columns: 1fr;
  }

  .section-lead {
    max-width: 760px;
  }

  .hero {
    background-position: 58% center;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand small,
  .header-phone span {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-phone {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 82svh;
    padding: 104px 18px 34px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(248, 250, 247, 0.96) 0%, rgba(248, 250, 247, 0.68) 38%, rgba(13, 33, 37, 0.58) 100%),
      url("assets/hero-dentist.webp") 62% center / cover no-repeat;
  }

  h1 {
    max-width: 6.2ch;
    color: var(--ink);
  }

  .hero-copy {
    color: #223035;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .hero-stats div {
    display: block;
    min-height: auto;
    padding: 10px;
  }

  .hero-stats dt {
    margin-bottom: 3px;
    font-size: 1rem;
  }

  .hero-stats dd {
    font-size: 0.73rem;
  }

  .appointment-strip {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .booking-form,
  .map-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    width: 132px;
  }

  .map-streets {
    min-height: 250px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand strong {
    max-width: 96px;
    line-height: 1.05;
  }

  .header-phone {
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hours-list div {
    display: grid;
    gap: 4px;
  }

  .hours-list dd {
    text-align: left;
  }
}

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