/* Patients First Dentures & Implants — template 9, "The quiet instrument".
   Type, flat colour and space only. One grid with three left edges:
   E1 the margin (section labels), E2 the main column, E3 the second column. */

:root {
  /* colour — the theme's only */
  --bg: #07090C;
  --black: #000000;
  --field: #11161C;
  --field-2: #1A2129;
  --ink: #EEF2F6;
  --muted: #A9B4C0;
  --lime: #7BD62B;
  --on-lime: #07090C;
  --blue: #2A9DF4;
  --link: #62B8FF;
  --rule: rgba(238, 242, 246, 0.10);   /* the one hairline, used between list rows */
  --radius: 12px;                      /* the one card radius */

  /* type — EB Garamond, two weights, five sizes (+ the legal small print) */
  --face: "EB Garamond", Garamond, "Times New Roman", serif;
  --s-display: clamp(2.125rem, 0.6rem + 4.2vw, 8rem);
  --s-head: clamp(1.75rem, 1.05rem + 2vw, 3.5rem);
  --s-lead: clamp(1.375rem, 1.08rem + 0.75vw, 2rem);
  --s-body: clamp(1.25rem, 1.14rem + 0.3vw, 1.5rem);
  --s-quiet: clamp(1.125rem, 1.05rem + 0.22vw, 1.3125rem);
  --s-legal: 0.875rem;

  /* space */
  --margin: clamp(20px, 4vw, 64px);
  --gap: clamp(24px, 3.2vw, 64px);
  --section: clamp(104px, 8.5vw, 160px);
  --max: 1600px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--face);
  font-size: var(--s-body);
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 180ms ease, text-decoration-thickness 180ms ease; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--lime); color: var(--on-lime); }

.skip { position: absolute; left: var(--margin); top: -100px; z-index: 10; background: var(--lime); color: var(--on-lime); padding: 12px 18px; font-size: var(--s-quiet); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- the frame and the one grid ---------- */
.frame { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 3fr) minmax(0, 3fr);
  column-gap: var(--gap);
  align-items: start;
}
.label { grid-column: 1; }
.span-wide { grid-column: 2 / 4; }
.col-main { grid-column: 2; }
.col-side { grid-column: 3; }

/* ---------- type roles ---------- */
.en, .es { display: block; }
.display { font-size: var(--s-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.display-es { font-size: var(--s-head); color: var(--muted); line-height: 1.12; letter-spacing: -0.01em; margin-top: 0.35em; text-wrap: balance; }
.head { font-size: var(--s-head); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
.head-es { font-size: var(--s-lead); color: var(--muted); line-height: 1.2; margin-top: 0.3em; }
.item { font-size: var(--s-lead); font-weight: 500; line-height: 1.18; }
.item .es { font-size: var(--s-body); font-weight: 400; color: var(--muted); margin-top: 0.15em; line-height: 1.3; }
.statement { font-size: var(--s-lead); line-height: 1.35; max-width: 30ch; }
.body { font-size: var(--s-body); line-height: 1.5; max-width: 36em; }
.body-es { font-size: var(--s-quiet); line-height: 1.5; color: var(--muted); max-width: 38em; margin-top: 0.55em; }
.quiet { font-size: var(--s-quiet); color: var(--muted); }

/* the section label line: a side label on E1, in blue text, sentence case at body size */
.label { font-size: var(--s-body); font-weight: 500; color: var(--link); line-height: 1.4; padding-top: 0.5em; max-width: 16em; }

/* ---------- announcement + header ---------- */
.announce { background: var(--field); }
.announce__in { padding-block: 14px; }
.announce p { font-size: var(--s-quiet); line-height: 1.4; display: flex; flex-wrap: wrap; column-gap: 1.5em; row-gap: 2px; }
.announce .en, .announce .es { display: inline; }
.announce .es { color: var(--muted); }

.top { background: var(--black); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: block; flex: none; border-radius: 2px; }
.brand img { height: clamp(52px, 3.6vw, 68px); width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--s-quiet); line-height: 1.2; padding-block: 6px; }
.nav a .es { color: var(--muted); }
.nav a:hover .en, .nav a:hover .num { text-decoration: underline; text-underline-offset: 0.18em; }
.nav__call .num { display: block; color: var(--link); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- buttons: square corners, flat, one fill ---------- */
.actions { margin-top: clamp(28px, 2.6vw, 44px); }
.btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 64px; padding: 14px 28px; border-radius: 0;
  font-size: var(--s-body); font-weight: 500; line-height: 1.15; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn__es { font-size: var(--s-quiet); font-weight: 400; margin-top: 2px; }
.btn--book { background: var(--lime); color: var(--on-lime); }
.btn--call { background: var(--blue); color: var(--on-lime); }
.btn--call .btn__num { font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
/* sized for a 1920x900 and a 1366x768 window: line, H1, ES line, intro and Book button all on the first screen,
   with the call card level with the intro on E3 */
.hero {
  padding-block: clamp(28px, 2.6vw, 52px) var(--section);
  /* soft light from above: lime fading through blue to nothing, kept faint */
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 62% 70% at 50% 0%, rgba(123, 214, 43, 0.12) 0%, rgba(42, 157, 244, 0.08) 42%, rgba(42, 157, 244, 0) 78%);
  background-repeat: no-repeat;
}
.hero .label { grid-column: 1 / -1; padding-top: 0; margin-bottom: clamp(8px, 0.8vw, 14px); max-width: none; }
.hero .sec-head { grid-column: 1 / -1; margin-bottom: 0; padding-bottom: clamp(22px, 2vw, 36px); }
.hero .display { font-size: clamp(2.125rem, 4.55vw, 8rem); }
.hero .display-es { font-size: var(--s-lead); margin-top: 0.3em; }
.hero__text { grid-column: 1 / 3; }
.hero__text .body { max-width: 34em; }
.hero__text .actions { margin-top: clamp(20px, 1.8vw, 32px); }
.hero__text .btn { min-height: 56px; padding-block: 10px; }

.card {
  background: var(--field); padding: clamp(24px, 2.4vw, 44px);
  border: 1px solid var(--rule); border-left: 2px solid var(--lime); border-radius: var(--radius);
}
.card__title { font-size: var(--s-lead); font-weight: 500; line-height: 1.2; }
.card__title .es { font-size: var(--s-body); font-weight: 400; color: var(--muted); }
.card__phone { margin-top: 20px; font-size: var(--s-head); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card__phone a { text-decoration-thickness: 2px; }
.card__addr { margin-top: 10px; font-size: var(--s-body); }
.card__facts { margin-top: 28px; display: grid; gap: 16px; }
.card__facts li { font-size: var(--s-body); line-height: 1.3; padding-left: 22px; position: relative; }
.card__facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.card__facts .es { font-size: var(--s-quiet); color: var(--muted); margin-top: 2px; }
.card__hours { margin-top: 28px; font-size: var(--s-body); line-height: 1.4; }

/* ---------- sections ---------- */
/* every section is its own block: section spacing inside, and the field alternates
   ground ↔ #11161C so no two neighbours share a ground (hero ends on the ground, footer is black) */
.section { padding-block: var(--section); }
.services, .why, .final { background: var(--field); }
.sec-head { margin-bottom: clamp(24px, 2.4vw, 40px); }
.intro { margin-bottom: clamp(56px, 6vw, 112px); }

/* services: two text columns on E2 and E3 */
.pair-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); row-gap: clamp(36px, 3.4vw, 64px); }
/* a divider above each service row: a line drawn over the text block, not a box around it */
.pair-list li { position: relative; padding-top: clamp(24px, 2.2vw, 36px); }
.pair-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.pair-list li .body { margin-top: 14px; }

/* how it works: the whole section is one field; the steps are an itinerary slip */
.steps-band { background: var(--bg); }
.slip { display: grid; gap: 0; }
.slip__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap);
  padding-block: clamp(28px, 2.6vw, 44px);
  background: var(--field-2);
  margin-inline: calc(-1 * clamp(20px, 2vw, 36px));
  padding-inline: clamp(20px, 2vw, 36px);
}
.slip__row + .slip__row { margin-top: 8px; }
.slip__row--result { background: var(--lime); color: var(--on-lime); }
.slip__row--result .item .es,
.slip__row--result .body-es { color: var(--on-lime); }
.slip__row--result .body { font-weight: 500; }

/* why: the promise holds still on E2 while the four reasons pass on E3 */
.why__stick { position: sticky; top: 48px; }
.why__stick .statement { margin-top: clamp(28px, 2.6vw, 44px); }
.why__list { display: grid; row-gap: 0; padding-top: 0.4em; }
.why__list li { --pad: clamp(28px, 2.6vw, 44px); position: relative; padding-left: 28px; padding-block: var(--pad); }
.why__list li:first-child { padding-top: 0; }
.why__list li:last-child { padding-bottom: 0; }
.why__list li + li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
/* the lime side-line runs beside each promise's words, inside the dividers */
.why__list li::before { content: ""; position: absolute; left: 0; top: calc(var(--pad) + 0.3em); bottom: calc(var(--pad) + 0.2em); width: 2px; background: var(--lime); }
.why__list li:first-child::before { top: 0.3em; }
.why__list li:last-child::before { bottom: 0.2em; }
.why__list li .body { margin-top: 12px; }

/* contact: the address in display rows */
.rows { display: grid; row-gap: clamp(24px, 2vw, 36px); }
.rows__row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.rows dt { font-size: 1rem; color: var(--ink); line-height: 1.3; }
.rows dt .en { color: var(--link); font-weight: 500; }
.rows dt .es { color: var(--muted); }
.rows dd { font-size: var(--s-body); line-height: 1.3; }
.big { display: block; font-size: var(--s-body); line-height: 1.3; }
.big-link { font-size: clamp(1.5rem, 1.2rem + 0.6vw, 2rem); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; text-decoration-thickness: 2px; }
.text-link { display: inline-block; margin-top: 12px; font-size: var(--s-body); line-height: 1.25; }
.text-link .es { font-size: var(--s-quiet); }
.hours { border-collapse: collapse; font-size: var(--s-body); margin-top: 4px; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 14px 0; font-weight: 400; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--rule); }
.hours th { padding-right: clamp(24px, 3vw, 56px); position: relative; }
.hours tr:first-child th, .hours tr:first-child td { padding-top: 0; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .es { font-size: var(--s-quiet); color: var(--muted); }
.hours tr.is-today th .en::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 12px; border-radius: 50%; background: var(--blue); vertical-align: 0.1em; }
.rows__note p { font-size: var(--s-body); line-height: 1.45; }
.rows__note em { display: block; }
.rows__note .es { color: var(--muted); font-size: var(--s-quiet); }
.rows__note .dot { display: none; }

.ready { background: var(--field); padding: clamp(24px, 2.4vw, 44px); border: 1px solid var(--rule); border-radius: var(--radius); }
.ready .body { margin-top: 20px; }

/* final call: a plain close, the number answering on E3 */
.final .sec-head { margin-bottom: clamp(28px, 2.6vw, 44px); }
.final__h { max-width: 18em; }
.final__call { padding-top: 0.2em; }
.final__call .quiet { margin-top: 12px; }

/* ---------- footer ---------- */
.foot { background: var(--black); padding-block: clamp(64px, 6vw, 112px) clamp(40px, 4vw, 64px); }
.foot__in { row-gap: 40px; }
.foot p, .foot li { font-size: var(--s-quiet); line-height: 1.5; }
.foot__name { grid-column: 1; color: var(--ink); max-width: 16em; }
.foot__where p + p { margin-top: 6px; color: var(--muted); }
.foot__links { display: grid; gap: 10px; }
.foot__links a { color: var(--ink); text-decoration-color: var(--link); }
.foot__links a:hover { color: var(--link); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gap); }
.legal p { font-size: var(--s-legal); line-height: 1.55; color: var(--muted); }
.legal a { color: var(--muted); }

/* ---------- very wide screens: the column stays capped at 1600px, the type grows into it ---------- */
@media (min-width: 2000px) {
  html { font-size: 112.5%; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .span-wide { grid-column: 2; }
  .col-main { grid-column: 2; }
  .col-side { grid-column: 2; margin-top: clamp(48px, 6vw, 72px); }
  .hero .col-side { margin-top: 48px; }
  .hero .hero__text, .hero .col-side { grid-column: 1 / -1; }
  .hero .card { max-width: 640px; }
  .why__stick { position: static; }
  .slip__row { grid-template-columns: minmax(0, 1fr); }
  .slip__row > div { margin-top: 14px; }
  .foot__links { margin-top: 0; }
  .foot .col-side { margin-top: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .label, .span-wide, .col-main, .col-side { grid-column: 1; }
  .label { padding-top: 0; margin-bottom: 14px; }
  .hero .label { padding-top: 0; }
  .top__in { flex-wrap: wrap; row-gap: 12px; padding-block: 14px; }
  .brand img { height: 52px; }
  .nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav a { padding-block: 8px; }
  .pair-list, .slip__row, .legal { grid-template-columns: minmax(0, 1fr); }
  .slip__row > div { margin-top: 14px; }
  .legal { row-gap: 16px; }
  .btn { width: auto; }
  .final__call { margin-top: 48px; }
}

/* ---------- pop-in on scroll (transform + opacity only, behind .js) ---------- */
.js [data-pop] {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-pop][data-pop-small] { transition-timing-function: var(--ease-out), var(--ease-pop); }
.js [data-pop].in, .js.pop-all [data-pop] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-pop] { opacity: 1; transform: none; transition: none; }
  .btn, a { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
