/* The Art of Dentistry – preview site.
   Palette comes from the practice's own theme: the pale mint/teal and lilac that colour its
   hexagon tiles and buttons. Neither is dark enough to carry text, so both are anchored on a
   deep teal drawn from the same hue, over a warm off-white instead of the current grey wash.
   The hexagonal rosette used throughout is the practice's own photography watermark. */

:root {
  --ink:        #16302d;
  --body:       #3b4d4a;
  --muted:      #6a7b78;

  --teal-deep:  #1f5551;
  --teal:       #38807a;
  --mint:       #a9dcd6;
  --mint-wash:  #e6f3f1;

  --lilac:      #6055a0;
  --lilac-soft: #b7aed6;
  --lilac-wash: #f0edf8;

  --cream:      #faf8f4;
  --paper:      #ffffff;
  --sand:       #f2ede4;
  --line:       #e2ddd2;

  --wrap:       min(1160px, 100% - 2.5rem);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 1px 2px rgba(22, 48, 45, .05), 0 14px 34px -16px rgba(22, 48, 45, .26);

  /* Pointy-top regular hexagon: 2 x inradius by 2 x circumradius. */
  --hex:        polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --hex-ratio:  .866;

  --step--1:    clamp(.82rem, .79rem + .13vw, .9rem);
  --step-0:     clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1:     clamp(1.12rem, 1.06rem + .3vw, 1.3rem);
  --step-2:     clamp(1.4rem, 1.26rem + .68vw, 1.85rem);
  --step-3:     clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4:     clamp(2.15rem, 1.55rem + 2.85vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

h1 em, h2 em {
  display: block;
  font-style: italic;
  color: var(--teal);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal); }

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

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--teal-deep); color: #fff;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; color: #fff; }

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .7rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--teal-deep); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }

.btn--ghost { border-color: rgba(31, 85, 81, .35); color: var(--teal-deep); background: transparent; }
.btn--ghost:hover { border-color: var(--teal-deep); background: var(--mint-wash); color: var(--teal-deep); }

.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: var(--mint-wash); color: var(--teal-deep); }

.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- header ---------- */

/* Opaque, not translucent: the page scrolls dark teal and photographic sections under this
   bar, and any alpha at all leaves them smearing through the wordmark. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

/* Anchor targets clear the sticky bar instead of landing underneath it. */
[id] { scroll-margin-top: 5.5rem; }

.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem 0;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand__mark { width: 34px; flex: none; color: var(--teal); }
.brand__text { display: block; line-height: 1.05; }
.brand__text small {
  display: block;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.brand__text strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem; font-weight: 500; letter-spacing: .01em;
}

.site-nav { display: flex; gap: 1.4rem; font-size: var(--step--1); font-weight: 500; }
.site-nav a { color: var(--body); text-decoration: none; }
.site-nav a:hover { color: var(--teal-deep); text-decoration: underline; }

.header-actions { display: flex; gap: .6rem; align-items: center; }

@media (max-width: 1080px) { .site-nav { display: none; } }
@media (max-width: 620px) {
  .header-actions .btn--ghost { display: none; }
  .brand__text strong { font-size: 1.35rem; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero__rosette {
  position: absolute;
  top: -6%; left: 48%;
  width: min(46rem, 70vw);
  color: var(--mint);
  opacity: .3;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.hero .lede { font-size: var(--step-1); color: var(--body); max-width: 34rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.8rem;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.hero__facts strong { color: var(--ink); font-weight: 600; }

.hero__media { position: relative; }

.hex-frame {
  aspect-ratio: var(--hex-ratio);
  clip-path: var(--hex);
  background: var(--mint-wash);
  width: 100%;
}
.hex-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute; left: 0; bottom: 4%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .85rem 1.2rem;
  display: flex; align-items: center; gap: .75rem;
}
.hero__badge .score {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem; line-height: 1; color: var(--teal-deep);
}
.hero__badge .sub { display: block; font-size: .78rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.hero__badge .stars { display: flex; gap: 2px; color: #e0a72e; margin-bottom: .2rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 21rem; margin-inline: auto; width: 100%; }
  .hero__rosette { left: 30%; top: auto; bottom: 0; opacity: .22; }
}

/* ---------- trust strip ---------- */

.trust { background: var(--teal-deep); color: #eaf3f1; }
.trust ul {
  list-style: none; margin: 0; padding: 1.2rem 0;
  display: grid; gap: .6rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  font-size: var(--step--1);
}
.trust li { display: flex; gap: .6rem; align-items: baseline; }
.trust svg { flex: none; color: var(--mint); transform: translateY(2px); }

/* ---------- sections ---------- */

.section { padding: clamp(3rem, 6.5vw, 5.5rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--mint { background: var(--mint-wash); }
.section--sand { background: var(--sand); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: var(--step-1); }

/* ---------- treatment cards ---------- */

/* 19rem rather than a tighter minimum so the nine treatments land as three rows of three;
   a wider minimum would leave the last card stranded on a row of its own. */
.cards {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}
.section--paper .card { background: var(--cream); }

.card__mark {
  width: 30px; aspect-ratio: var(--hex-ratio);
  clip-path: var(--hex);
  background: var(--mint);
  margin-bottom: 1rem;
}
.card:nth-child(3n+2) .card__mark { background: var(--lilac-soft); }
.card:nth-child(3n) .card__mark { background: var(--sand); }

.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card p { font-size: .94rem; color: var(--body); }
.card .price {
  margin-top: auto; padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.card .price strong { color: var(--teal-deep); font-weight: 600; }

/* ---------- feature blocks ---------- */

.feature {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius-lg); }
.feature ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.feature ul li { display: flex; gap: .7rem; align-items: baseline; font-size: .96rem; }
.feature ul svg { flex: none; color: var(--teal); transform: translateY(2px); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- team ---------- */

/* Nine clinicians, so three rows of three rather than two rows and a stranded card. */
.team { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.person {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
}
.person h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.person .role { font-size: var(--step--1); color: var(--teal); font-weight: 600; margin-bottom: .7rem; }
.person p { font-size: .92rem; }
.person .gdc {
  display: inline-block; margin-top: auto;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--mint-wash);
  border-radius: 999px; padding: .25rem .7rem;
}

.team-note { margin-top: 1.6rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- fees ---------- */

.fees-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); grid-template-columns: 1.2fr .8fr; align-items: start; }
/* The fee table is much taller than the notes beside it, so the notes ride along with the
   rows they qualify instead of stranding a column of white space. */
.fees-grid__notes { position: sticky; top: 6.5rem; }
@media (max-width: 860px) {
  .fees-grid { grid-template-columns: 1fr; }
  .fees-grid__notes { position: static; }
}

.table-scroll { overflow-x: auto; }

table.fees {
  width: 100%; border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: .94rem;
}
table.fees caption {
  text-align: left; font-size: var(--step--1); color: var(--muted);
  padding-bottom: .7rem;
}
table.fees th, table.fees td { padding: .72rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.fees thead th {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--cream);
}
table.fees td:last-child, table.fees th:last-child { text-align: right; white-space: nowrap; }
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees td strong { color: var(--ink); font-weight: 600; }

.note {
  background: var(--lilac-wash);
  border-left: 3px solid var(--lilac-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  font-size: .92rem;
}
.note h4 { margin-bottom: .35rem; }

/* ---------- membership ---------- */

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 860px) { .plan { grid-template-columns: 1fr; } }
/* The photograph runs across both columns as a band, so the two text columns start level
   and neither is left standing alone against white space. */
.plan__media { grid-column: 1 / -1; }
.plan__media img {
  width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: 50% 28%;
  border-radius: var(--radius);
}
@media (max-width: 860px) { .plan__media img { aspect-ratio: 16 / 9; } }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.plan li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.plan li svg { flex: none; color: var(--teal); transform: translateY(2px); }

/* ---------- quotes ---------- */

.quotes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
}
.quote figcaption { margin-top: auto; font-size: var(--step--1); color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- urgent ---------- */

.urgent {
  background: var(--teal-deep); color: #e9f3f1;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
}
.urgent h2, .urgent h3 { color: #fff; }
/* Scoped to prose only: a bare `.urgent a` also caught .btn--light and painted its label
   white on a white pill, which is how the emergency call button disappeared. */
.urgent p a { color: #fff; }
.urgent .actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 760px) { .urgent { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */

.visit { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: baseline; }
.contact-list svg { flex: none; color: var(--teal); transform: translateY(3px); }
.contact-list strong { display: block; color: var(--ink); }

table.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.hours th, table.hours td { padding: .62rem .2rem; text-align: left; border-bottom: 1px solid var(--line); }
table.hours th { font-weight: 500; color: var(--body); }
table.hours td { text-align: right; color: var(--ink); }
table.hours tr[data-today] th, table.hours tr[data-today] td { color: var(--teal-deep); font-weight: 600; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 600;
  color: var(--teal-deep);
  background: var(--mint-wash);
  border-radius: 999px; padding: .35rem .9rem;
  margin: 0 0 1.2rem;
}
.status__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-open="yes"] .status__dot { background: #2f8f5b; }
.status[data-open="no"] .status__dot { background: #b4703a; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #c3d3d0; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--step-1); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__mark { color: var(--mint); }
.site-footer .brand__text small { color: var(--mint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-note {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem; color: #93a9a5;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
}

/* ---------- motion ---------- */

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