/*
 * Refraktiv — demo clinic landing page.
 *
 * Deliberately self-contained: no web fonts, no CDN, no external images.
 * Every byte is served from this origin, so the browser's network panel
 * shows exactly two third-party things during a test — the widget script
 * and the booking iframe.
 */

:root {
  --ink: #10262b;
  --ink-soft: #47616a;
  --teal: #0f3d46;
  --teal-bright: #14666f;
  --sand: #e8b07a;
  --sand-deep: #c98a4e;
  --paper: #fbf8f4;
  --paper-alt: #f3ede5;
  --line: #ddd3c7;
  --white: #fff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }

a { color: var(--teal-bright); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 760px); }

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

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--primary { background: var(--sand); color: #37220e; }
.btn--primary:hover { background: var(--sand-deep); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--teal); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); }
.btn:active { transform: translateY(1px); }

/* ── Top bar + header ────────────────────────────────────────────────── */

.topbar {
  background: var(--teal);
  color: #cfe3e6;
  font-size: 13.5px;
}
.topbar__in { display: flex; align-items: center; gap: 10px; padding: 9px 0; flex-wrap: wrap; }
.topbar strong { color: #fff; }
.topbar__sep { opacity: .4; }
.topbar__tel { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; }
.topbar__tel:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 244, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 28px; padding: 15px 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .005em; }
.brand--light { color: var(--sand); }
.brand--light .brand__word { color: #fff; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal); border-bottom-color: var(--sand); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding: 76px 0 68px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.eyebrow {
  margin: 0 0 14px;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sand-deep);
}

.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.06; color: var(--teal); }

.lead { margin: 0 0 30px; font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.lead strong { color: var(--ink); }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin: 42px 0 0; padding: 26px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.stats strong { display: block; font-family: var(--serif); font-size: 27px; color: var(--teal); }
.stats span { font-size: 13.5px; color: var(--ink-soft); }

.hero__art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 48px rgba(15, 61, 70, .22)); }

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding: 74px 0; }
.section--alt { background: var(--paper-alt); }
.section__title { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--teal); }
.section__intro { margin: 0 0 40px; font-size: 18px; color: var(--ink-soft); max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card__icon { width: 34px; height: 34px; color: var(--teal-bright); margin-bottom: 16px; display: block; }
.card h3 { margin: 0 0 10px; font-size: 21px; color: var(--teal); }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card__price {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px !important; color: var(--sand-deep) !important;
}

.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.reasons h3 { margin: 0 0 7px; font-size: 18px; color: var(--teal); }
.reasons p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: s; }
.steps li { padding-top: 20px; border-top: 3px solid var(--sand); }
.steps__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 50%; background: var(--teal); color: #fff;
  font: 600 15px/1 var(--sans);
}
.steps h3 { margin: 0 0 8px; font-size: 19px; color: var(--teal); }
.steps p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote {
  margin: 0; padding: 32px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { font-size: 14px; color: var(--ink-soft); }
.quote figcaption strong { display: block; color: var(--teal); font-size: 15px; }

/* ── Booking ─────────────────────────────────────────────────────────── */

.booking { background: var(--teal); color: #dfeced; }
.booking .eyebrow { color: var(--sand); }
.booking .section__title { color: #fff; }
.booking .section__intro { color: #b9d2d5; }
.booking__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: #cfe3e6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--sand); border-bottom: 2px solid var(--sand);
  transform: rotate(-45deg);
}

/* min-height keeps the card from collapsing while the iframe loads; low
   enough that the widget's fallback notice does not sit in a white void. */
.booking__widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  min-height: 130px;
  box-shadow: 0 20px 50px rgba(4, 26, 30, .3);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 30px 18px 0; position: relative;
  font-family: var(--serif); font-size: 19px; color: var(--teal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  font-family: var(--sans); font-size: 24px; color: var(--sand-deep);
}
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; max-width: 60ch; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer { background: #0b2d34; color: #a9c4c8; font-size: 14.5px; padding: 56px 0 30px; }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f9298; }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer a { color: #cfe3e6; }
.site-footer__note { margin-top: 14px !important; max-width: 26em; }

.site-footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1b444c; }
.site-footer__legal nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__legal nav a { font-size: 13.5px; text-decoration: none; }
.site-footer__legal nav a:hover { text-decoration: underline; }
.site-footer__demo { margin-top: 16px !important; font-size: 12.5px; color: #6f9298; max-width: 70ch; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero__in, .two-col, .booking__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; margin-inline: auto; }
  .cards, .steps, .quotes, .reasons { grid-template-columns: 1fr; }
  .site-footer__in { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .hero { padding: 52px 0 44px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { gap: 26px; }
  .site-footer__in { grid-template-columns: 1fr; }
  .topbar__in { font-size: 12.5px; }
  .topbar__tel { margin-left: 0; }
}
