/* The Dental Cafe, Liverpool
   Tokens sampled from the practice's own photographs - see _brief.md */

:root {
  --paper: #FBF8F6;
  --paper-2: #FFFFFF;
  --ink: #191310;
  --ink-70: #4A413C;
  --ink-45: #756B65;
  --red: #D4140B;
  --red-dark: #A40F08;
  --mint: #B6FFEE;
  --mint-tint: #ECFCF7;
  --sky: #CFE8F7;
  --sky-tint: #EFF7FC;
  --tan: #C3AB7A;
  --line: #E6DED9;

  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

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

a { color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

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

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

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.14rem;
  letter-spacing: -0.03em; text-decoration: none; line-height: 1.1;
  display: flex; align-items: center; gap: .55rem; margin-right: auto;
}
.wordmark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.wordmark span { display: block; }
.wordmark small {
  display: block; font-family: var(--body); font-weight: 500;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-70);
}

.nav { display: none; gap: 1.5rem; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--ink-70);
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 0;
  min-height: 46px; padding: .7rem 1.35rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 44px; padding: .62rem 1.1rem; font-size: .88rem; }
.head-cta { display: none; }

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

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4rem); }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink-70); max-width: 34ch; margin-top: 1.1rem;
}

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 22px 22px 22px 60px;
}
/* On small screens the caption flows under the photo - overlaid, it would cover the room. */
.hero__tag {
  background: var(--paper-2); color: var(--ink);
  border-radius: 14px; padding: .8rem 1rem; margin-top: .8rem;
  font-size: .85rem; line-height: 1.4;
  border: 1px solid var(--line);
}
.hero__tag b { font-family: var(--display); display: block; font-size: .92rem; }

/* practice chooser - the signature element */
.chooser {
  display: grid; gap: .8rem; margin-top: 1.9rem;
  grid-template-columns: 1fr;
}
.chooser__btn {
  display: flex; align-items: center; gap: .9rem;
  background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .72rem 1.3rem .72rem .9rem;
  text-decoration: none; min-height: 58px;
  transition: border-color .18s ease, transform .18s ease;
}
.chooser__btn:hover { border-color: var(--red); transform: translateY(-2px); }
.chooser__pin {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: .9rem; font-weight: 700;
  font-family: var(--display);
}
.chooser__txt { line-height: 1.25; }
.chooser__txt b { font-family: var(--display); font-size: 1rem; display: block; }
.chooser__txt span { font-size: .8rem; color: var(--ink-45); }
.chooser__arrow { margin-left: auto; color: var(--red); font-size: 1.1rem; }

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

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--sky-tint); }
.section--mint { background: var(--mint-tint); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section__kicker { color: var(--mint); }
.section--ink .section__kicker::before { background: var(--mint); }

.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red); margin-bottom: .85rem;
}
.section__kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.section h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.65rem); }
.section__sub { margin-top: .9rem; color: var(--ink-70); font-size: 1.05rem; }
.section--ink .section__sub { color: #C9BFB9; }

/* ---------- practice cards ---------- */

.practices { display: grid; gap: 1.3rem; }

.practice {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
}
.practice__name { font-size: 1.4rem; }
.practice__addr { color: var(--ink-70); margin: .55rem 0 1.15rem; font-size: .98rem; }

.practice__rows { border-top: 1px solid var(--line); margin-bottom: 1.3rem; }
.practice__row {
  display: flex; gap: 1rem; justify-content: space-between; align-items: baseline;
  padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.practice__row dt { color: var(--ink-45); margin: 0; }
.practice__row dd { margin: 0; text-align: right; font-weight: 500; }
.practice__row dd a { text-decoration: none; border-bottom: 1.5px solid var(--red); }
.practice__row dd a:hover { color: var(--red); }

.practice__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

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

.treatments { display: grid; gap: 1.1rem; }
.treat {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.treat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.treat__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.treat h3 { font-size: 1.12rem; }
.treat p { font-size: .91rem; color: var(--ink-70); margin: .5rem 0 1rem; }
.treat__price {
  margin-top: auto; font-family: var(--display); font-weight: 600;
  font-size: 1.02rem; color: var(--red);
}

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

.fees-grid { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }

.fee-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fee-table caption {
  text-align: left; font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; padding-bottom: .7rem;
}
.fee-table th, .fee-table td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); }
.fee-table th { text-align: left; font-weight: 500; color: var(--ink-70); }
.fee-table td { text-align: right; font-weight: 600; white-space: nowrap; }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }

.finance {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.3rem, 3vw, 1.9rem); align-self: start;
}
.finance h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.finance p { font-size: .93rem; color: var(--ink-70); }
.finance ol { margin: 0 0 1rem; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-70); }
.finance li { margin-bottom: .4rem; }
.finance .small { font-size: .8rem; color: var(--ink-45); }

/* ---------- about ---------- */

.about { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
.about__media { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.about__media img { border-radius: 16px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.about__media img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

.notes { display: grid; gap: .8rem; margin-top: 1.5rem; }
.note {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .94rem; color: var(--ink-70);
}
.note b { font-family: var(--display); color: var(--ink); font-weight: 600; }
.note__mark { color: var(--red); font-weight: 700; flex: none; }

/* ---------- reviews ---------- */

.rating {
  display: inline-flex; align-items: baseline; gap: .6rem;
  background: var(--mint); color: var(--ink);
  border-radius: 999px; padding: .5rem 1.1rem; margin-bottom: 1.4rem;
}
.rating b { font-family: var(--display); font-size: 1.3rem; }
.rating span { font-size: .85rem; }

.quotes { display: grid; gap: 1.1rem; }
.quote {
  background: var(--paper-2); border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border-left: 3px solid var(--red);
}
.quote blockquote { margin: 0; font-size: 1.04rem; line-height: 1.55; }
.quote figcaption { margin-top: .9rem; font-size: .86rem; color: var(--ink-45); font-weight: 500; }

/* ---------- faq ---------- */

.faq { max-width: 54rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .3rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: .95rem 2rem .95rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  color: var(--red); font-size: 1.3rem; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.1rem; color: var(--ink-70); font-size: .96rem; max-width: 68ch; }

/* ---------- closing band ---------- */

.closer { text-align: center; }
.closer h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); max-width: 20ch; margin-inline: auto; }
.closer p { color: #C9BFB9; margin: 1rem auto 1.8rem; max-width: 46ch; }
.closer__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.section--ink .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }

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

.site-foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 3.8rem) 0 2rem; }
.foot-grid { display: grid; gap: 2rem; }
.foot h3 {
  font-family: var(--body); font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-45); margin-bottom: .9rem;
}
.foot p, .foot li { font-size: .92rem; color: var(--ink-70); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot__addr a { border-bottom: 1.5px solid var(--line); }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .22rem 0; }
.hours-row span:last-child { color: var(--ink); font-weight: 500; }

.foot-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .82rem; color: var(--ink-45);
}
.foot-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- breakpoints ---------- */

@media (min-width: 620px) {
  .chooser { grid-template-columns: 1fr 1fr; }
  .treatments { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .practices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero__tag {
    position: absolute; left: 1rem; bottom: 1rem; margin-top: 0;
    max-width: 16rem; border: 0; font-size: .82rem;
    box-shadow: 0 10px 26px rgba(25, 19, 16, .14);
  }
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
  .treatments { grid-template-columns: repeat(4, 1fr); }
  .fees-grid { grid-template-columns: 1.25fr .75fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.2fr 1.2fr 1fr .9fr; }
}

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