/* Caldecott Dental Practice – preview site
   Palette sampled from the practice logo: sage #90b080, slate #707070. */

:root {
  --paper:  #faf8f3;
  --card:   #ffffff;
  --ink:    #22282a;
  --body:   #4a5052;
  --slate:  #565a5c;
  --sage:   #8fae7e;
  --sage-d: #5a7a45;
  --forest: #33492b;
  --forest-deep: #22321c;
  --line:   #e0dcd2;
  --line-strong: #cbc5b7;
  --sand:   #f2eee5;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Karla", "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-d); }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: .75rem 1.15rem;
  font-size: .9rem; text-decoration: none;
}
.skip:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */

.label {
  font-size: .69rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-d);
  margin: 0 0 1.1rem;
}
.label .num {
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
  margin-right: .7rem;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 46ch;
}

.section-head { max-width: 54ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section-head p { margin-top: .9rem; color: var(--slate); }

section { padding-block: clamp(3.5rem, 7vw, 6rem); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.5rem;
  font-family: var(--text);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--forest); color: #fff; }
.btn-solid:hover { background: var(--forest-deep); color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--forest); color: var(--forest); background: rgba(143,174,126,.09); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,243,.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 74px;
  width: 100%; max-width: var(--shell); margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; flex: none;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.03rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: .015em;
}
.brand-name span {
  display: block;
  font-family: var(--text);
  font-size: .62rem;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--sage-d);
  margin-top: .18rem;
  font-weight: 600;
}
.masthead-nav { display: flex; gap: 1.6rem; }
.masthead-nav a {
  font-size: .9rem; font-weight: 500; color: var(--slate);
  text-decoration: none; padding-block: .35rem;
  border-bottom: 1px solid transparent;
}
.masthead-nav a:hover { color: var(--forest); border-bottom-color: var(--sage); }
.masthead-call {
  font-weight: 700; font-size: .95rem; color: #fff; background: var(--forest);
  padding: .7rem 1.15rem; border-radius: 2px; text-decoration: none;
  white-space: nowrap;
}
.masthead-call:hover { background: var(--forest-deep); color: #fff; }

@media (max-width: 940px) { .masthead-nav { display: none; } }
@media (max-width: 460px) {
  .masthead-call { padding: .6rem .8rem; font-size: .85rem; }
  .brand-name { font-size: .95rem; }
}

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

.hero { padding-top: clamp(2.75rem, 6vw, 5rem); padding-bottom: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  margin-bottom: 1.35rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--forest);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 2px;
}
.hero-figure figcaption {
  font-size: .78rem; color: var(--slate); margin-top: .7rem;
  letter-spacing: .02em;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 9; }
}

/* proof strip */

.proof {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.proof li {
  padding: 1.4rem 1.35rem 1.5rem 0;
  border-right: 1px solid var(--line);
}
.proof li:last-child { border-right: 0; }
.proof strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: .3rem;
}
.proof span { font-size: .87rem; color: var(--slate); display: block; }

@media (max-width: 760px) {
  .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof li { padding-right: 1rem; border-bottom: 1px solid var(--line); }
  .proof li:nth-child(2n) { border-right: 0; }
  .proof li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- hours band ---------- */

.hours-band { background: var(--forest); color: #e9efe4; padding-block: clamp(2.25rem, 4vw, 3rem); }
.hours-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.hours-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.hours-band .label { color: #a9c79a; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1rem;
  font-size: .87rem; font-weight: 600; letter-spacing: .02em;
  color: #fff;
}
.status .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #a9c79a; flex: none;
}
.status[data-state="closed"] .dot { background: #d9c07a; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table th, .hours-table td {
  text-align: left; padding: .62rem 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #e9efe4; font-weight: 400;
}
.hours-table th { width: 11ch; font-weight: 600; color: #fff; }
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-note { font-size: .84rem; color: #bcd0ae; margin-top: 1rem; }
.hours-band a { color: #d7e6cd; }
.hours-band a:hover { color: #fff; }
.hours-band a.hours-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1.6rem; padding: .85rem 1.35rem;
  background: #fff; color: var(--forest-deep);
  font-weight: 700; font-size: .93rem; border-radius: 2px; text-decoration: none;
}
.hours-band a.hours-cta:hover { background: #e9efe4; color: var(--forest-deep); }
.hours-lede { color: #c6d6bb; font-size: .97rem; margin-top: 1.1rem; max-width: 34ch; }

@media (max-width: 760px) { .hours-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- treatments ---------- */

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.group {
  padding: 1.9rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.group:last-child { border-right: 0; }
.group h3 {
  font-size: 1.28rem;
  margin-bottom: .55rem;
}
.group > p { font-size: .92rem; color: var(--slate); margin-bottom: 1.1rem; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li {
  font-size: .95rem;
  padding: .42rem 0 .42rem 1.15rem;
  position: relative;
  color: var(--body);
}
.group li::before {
  content: ""; position: absolute; left: 0; top: .92em;
  width: 6px; height: 1px; background: var(--sage);
}
@media (max-width: 620px) {
  .group { border-right: 0; padding-right: 0; }
}

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

.fees { background: var(--sand); }
.fee-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 881px) { .panel-nhs { position: sticky; top: 94px; } }
@media (max-width: 880px) { .fee-grid { grid-template-columns: minmax(0, 1fr); } }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.15rem, 3vw, 2.1rem);
  min-width: 0;
}
.panel h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.panel > p.sub { font-size: .88rem; color: var(--slate); margin-bottom: 1.4rem; }

.bands { list-style: none; margin: 0; padding: 0; }
.bands li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.bands li:last-child { border-bottom: 0; padding-bottom: 0; }
.bands .band-name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.bands .band-price {
  font-family: var(--display); font-size: 1.25rem; color: var(--forest);
  font-variant-numeric: tabular-nums; align-self: start;
}
.bands .band-desc { grid-column: 1 / -1; font-size: .87rem; color: var(--slate); margin: 0; }

.table-scroll { overflow-x: auto; margin-inline: -.25rem; padding-inline: .25rem; }
.table-scroll + .table-scroll { margin-top: 2rem; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 252px; }
.fee-table caption {
  text-align: left; font-size: .69rem; letter-spacing: .19em; text-transform: uppercase;
  font-weight: 600; color: var(--sage-d); padding-bottom: .8rem;
}
.fee-table th, .fee-table td { padding: .58rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table td:last-child, .fee-table th:last-child {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem;
}
.fee-table thead th {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); font-weight: 600; border-bottom-color: var(--line-strong);
}
.fee-table tbody th { font-weight: 400; color: var(--body); }
.fee-table tbody td { color: var(--ink); font-weight: 600; }
.fee-note { font-size: .84rem; color: var(--slate); margin-top: 1.2rem; }

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

.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: .4rem clamp(1.5rem, 4vw, 3rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.roster .who h3 { font-size: 1.22rem; }
.roster .role {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-d); font-weight: 600; margin-top: .35rem;
}
.roster .gdc {
  font-size: .8rem; color: var(--slate); margin-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.roster .about { font-size: .95rem; }
.roster .quals {
  font-size: .85rem; color: var(--slate); margin-top: .5rem;
}
@media (max-width: 720px) { .roster li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- park / place ---------- */

.place { background: var(--forest-deep); color: #dfe7d9; }
.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.place h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
.place .label { color: #a9c79a; }
.place p { color: #cfdbc7; }
.place a { color: #d7e6cd; }
.place a:hover { color: #fff; }
.place figure { margin: 0; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.place figcaption { font-size: .78rem; color: #a9c79a; margin-top: .7rem; }
@media (max-width: 780px) { .place-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- new patients ---------- */

.np-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 780px) { .np-grid { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: c; }
.checklist li {
  counter-increment: c;
  position: relative;
  padding: .7rem 0 .7rem 2.5rem;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
  color: var(--ink);
}
.checklist li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: .78rem;
  font-size: .74rem; font-weight: 700; color: var(--sage);
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
}
.callout {
  border-left: 2px solid var(--sage);
  padding: .2rem 0 .2rem 1.25rem;
  font-size: .95rem;
  color: var(--slate);
  margin-top: 1.6rem;
}

/* ---------- testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.75rem;
  display: flex; flex-direction: column;
}
.quote blockquote {
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
}
.quote figcaption { margin-top: auto; font-size: .84rem; color: var(--slate); }
.quote figcaption strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: .18rem; }

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

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
}
.visit-grid h3 {
  font-family: var(--text);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-d); font-weight: 600; margin-bottom: .8rem;
}
.visit-grid p, .visit-grid address { font-style: normal; font-size: .97rem; }
.visit-grid a { color: var(--forest); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 6.5rem;
  font-size: .85rem;
  color: var(--slate);
}
.footer-in { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-start; }
.footer-in p { max-width: 62ch; }
.foot-note { font-size: .78rem; color: #6d716e; }

/* ---------- mobile call bar ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none;
  background: var(--forest);
  border-top: 1px solid rgba(255,255,255,.14);
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.callbar a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem .6rem;
  font-size: .93rem; font-weight: 700; text-decoration: none;
  border-radius: 2px;
}
.callbar .cb-call { background: #fff; color: var(--forest-deep); }
.callbar .cb-fees { border: 1px solid rgba(255,255,255,.5); color: #fff; }

@media (max-width: 720px) {
  .callbar { display: flex; }
  .site-footer { padding-bottom: 7.5rem; }
}

/* ---------- 404 ---------- */

.notfound { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.notfound h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1.1rem; }

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

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