/* East Finchley Smiles – preview site
   Palette sampled from the practice's own wordmark: ink #2B2B35, teal #26B5A9. */

:root {
  --ink: #22222c;
  --ink-soft: #4b4b58;
  --muted: #6d6d7a;
  --teal: #1f9d92;
  --teal-deep: #146f68;
  --teal-wash: #e8f5f3;
  --paper: #f8f6f2;
  --paper-warm: #f1ede5;
  --line: #ddd8ce;
  --white: #fff;
  --shell: min(1160px, 100% - 3rem);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: .75rem 1.15rem;
}
.skip:focus { left: .75rem; top: .75rem; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-deep); margin: 0 0 .9rem;
}
.eyebrow--light { color: #8fded4; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn--teal { background: var(--teal-deep); color: var(--white); border-color: var(--teal-deep); }
.btn--teal:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--onink { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--onink:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,246,242,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 0; flex-wrap: wrap;
}
.wordmark { display: block; flex: 0 0 auto; }
.wordmark img { width: 152px; height: auto; }
.site-nav {
  display: flex; gap: 1.4rem; margin-left: auto;
  font-size: .95rem; font-weight: 500;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: .3rem 0; }
.site-nav a:hover { color: var(--teal-deep); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.header-actions .btn { padding: .62rem 1.15rem; font-size: .92rem; }

@media (max-width: 940px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .wordmark img { width: 118px; }
  .header-actions .btn { padding: .55rem .85rem; font-size: .85rem; }
}

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

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__copy p.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 34rem; }
.hero h1 em { font-style: normal; color: var(--teal-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.rating { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 0; flex-wrap: wrap; }
.rating__score { font-size: 1.5rem; font-weight: 700; font-family: 'Newsreader', serif; }
.rating__stars { color: var(--teal); letter-spacing: .12em; font-size: 1.05rem; }
.rating__note { color: var(--muted); font-size: .95rem; }

.hero__figure { position: relative; margin: 0; }   /* figure's UA margin is 1em 40px */
.hero__figure img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius);
}
.hero__figure figcaption {
  position: absolute; left: 0; bottom: -1px;
  background: var(--ink); color: #d8d8e0;
  font-size: .78rem; letter-spacing: .04em; padding: .55rem .9rem;
  border-radius: 0 var(--radius) 0 var(--radius);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
}

/* ---------- booking band ---------- */

.book {
  background: var(--ink); color: var(--white);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}
.book h2 { color: var(--white); }
.book__intro { max-width: 40rem; margin-bottom: 2.5rem; }
.book__intro p { color: #c6c6d2; }
.book__routes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.route {
  background: #2c2c38; border: 1px solid #3d3d4b;
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.route h3 { color: var(--white); font-size: 1.06rem; }
.route p { color: #b6b6c4; font-size: .95rem; }
.route .btn { margin-top: auto; align-self: flex-start; }
.route__big {
  font-family: 'Newsreader', serif; font-size: 1.6rem; color: var(--white);
  text-decoration: none; letter-spacing: -.01em;
}
.route__big:hover { color: #8fded4; }

@media (max-width: 820px) { .book__routes { grid-template-columns: 1fr; } }

/* ---------- generic section ---------- */

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section__head { max-width: 42rem; margin-bottom: 2.8rem; }
.section__head p { color: var(--ink-soft); margin-top: 1rem; }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
}
.service h3 { margin-bottom: .55rem; }
.service p { color: var(--ink-soft); font-size: .97rem; }
.service ul {
  margin: .9rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.service li {
  font-size: .82rem; color: var(--teal-deep); background: var(--teal-wash);
  border-radius: 999px; padding: .28rem .7rem;
}
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- prices ---------- */

.price-note {
  background: var(--teal-wash); border-left: 3px solid var(--teal);
  padding: 1rem 1.2rem; margin-bottom: 2rem; font-size: .97rem; color: var(--ink-soft);
  max-width: 44rem;
}
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3.5rem; }
.price-group { break-inside: avoid; }
.price-group h3 {
  font-family: 'Figtree', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin: 2.2rem 0 0;
}
.price-group:first-child h3, .price-group:nth-child(2) h3 { margin-top: 0; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .72rem 0; border-bottom: 1px solid var(--line);
}
.price-list .name { color: var(--ink-soft); }
.price-list .amount { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-group h3 { margin-top: 2.2rem; }
  .price-group:nth-child(2) h3 { margin-top: 2.2rem; }
}

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

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.member {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem;
}
.member h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.member .role { color: var(--teal-deep); font-weight: 600; font-size: .9rem; margin: 0 0 .1rem; }
.member .gdc { color: var(--muted); font-size: .82rem; letter-spacing: .03em; margin: 0 0 .8rem; }
.member p.bio { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

/* ---------- practice gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

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

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.visit__block + .visit__block { margin-top: 2.2rem; }
.visit h3 {
  font-family: 'Figtree', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem;
}
.hours { list-style: none; margin: 0; padding: 0; max-width: 26rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.hours .day { color: var(--ink-soft); }
.hours .time { font-weight: 600; }
.visit address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.visit__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }

/* ---------- enquiry form ---------- */

.enquiry {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--teal-deep); background: var(--white);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.enquiry__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.enquiry__note { color: var(--muted); font-size: .87rem; margin-top: 1rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

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

.site-footer {
  background: var(--ink); color: #b6b6c4;
  padding: clamp(2.8rem, 6vw, 4rem) 0 2rem; font-size: .95rem;
}
.site-footer a { color: #8fded4; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.2rem; }
.footer__grid h3 {
  font-family: 'Figtree', sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7e7e8e; margin-bottom: .8rem;
}
.footer__logo { width: 150px; margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: .22rem 0; }
.footer__bar {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid #3d3d4b;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #7e7e8e;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

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

.stage {
  min-height: 82vh; display: flex; align-items: center;
  padding: 3rem 0; text-align: left;
}
.stage .wordmark img { width: 170px; margin-bottom: 2.2rem; }
.stage p { color: var(--ink-soft); max-width: 34rem; }

/* ---------- reveal ----------
   Hidden only once the inline head script has set .js on <html>. Without scripting, or if
   the observer never fires, every section renders normally: no copy on this page is allowed
   to depend on JavaScript running. */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
