/* DentalFix demo, v2: more structure and rhythm than v1 (fact strip, icon cards, dark reviews band, team, quote
   block). Light display type, tight tracking. Colours from their reception: white wall, emerald velvet, backlit glass.
   Signature: the soft emerald glow under the hero photo. */

@font-face {
  font-family: "Onest";
  src: url(fonts/onest-latin.woff2) format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #f6f7f6;
  --bg-2: #eef1ef;
  --surface: #ffffff;
  --ink: #141a19;
  --ink-2: #47504d;     /* body copy, ~8:1 */
  --muted: #5d6663;     /* small text, ~5.7:1 */
  --line: #e0e5e2;
  --accent: #1e5a47;    /* emerald velvet */
  --accent-hover: #164536;
  --accent-soft: #e2eee8;
  --accent-ink: #ffffff;
  --on-dark: #9fd4bf;   /* emerald for the dark band */
  --glow: #e3efd9;      /* backlit glass */

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow-lg: 0 24px 50px -12px rgb(20 26 25 / .12);
  --glow-shadow: 0 1px 2px rgb(20 26 25 / .05), 0 32px 64px -28px rgb(30 90 71 / .5), 0 0 48px -8px rgb(227 239 217 / .9);
  --max: 75rem;
  --gap: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 10vw, 7rem);
  --header: 4.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Language: every string is a set of [lang] spans; hide the inactive ones. */
html:not([data-lang="en"]) [lang="en"]:not(html),
html:not([data-lang="es"]) [lang="es"]:not(html),
html:not([data-lang="ru"]) [lang="ru"]:not(html) { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; }

.wrap { width: min(100% - 2 * var(--gap), var(--max)); margin-inline: auto; }

/* Type */
h1, h2, h3 { font-family: var(--font); text-wrap: balance; }
h1, h2 { font-weight: 400; letter-spacing: -.03em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem;
  font-size: .875rem; font-weight: 500; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.125rem; height: 2px; background: currentColor; }
.sub { margin: 1rem 0 0; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 2.25rem; }
.nav-links { display: none; gap: 2rem; font-size: .9375rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding-block: .75rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 64rem) { .nav-links { display: flex; } }
.header-actions { display: flex; align-items: center; gap: .75rem; }

.lang-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.lang-toggle button {
  font: 600 .8125rem/1 var(--font); letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted);
  min-width: 44px; min-height: 44px; padding: 0 .7rem; border-radius: var(--pill); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.4rem;
  border-radius: var(--pill); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 500 1rem/1.1 var(--font); text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; font-size: .9375rem; }
@media (max-width: 45.99rem) { .header-actions .header-call { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { padding-block: clamp(2rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1fr 29rem; } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 42ch; margin: 1.5rem 0 2rem; color: var(--ink-2); }
.hero__photo { position: relative; margin: 0; }
/* Signature: the photo sits on a soft emerald glow, like the reception's backlit wall */
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius-lg); box-shadow: var(--glow-shadow);
}
@media (max-width: 55.99rem) {
  .hero__photo { order: -1; }
  .hero__photo img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
}
.badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border-radius: 14px; padding: .8rem 1.1rem .8rem .8rem;
  box-shadow: 0 20px 50px rgb(20 26 25 / .18); font-size: .875rem; color: var(--muted); line-height: 1.3;
}
.badge b { display: block; color: var(--ink); font-weight: 500; font-size: .9375rem; }
.badge__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.badge__icon .icon { fill: currentColor; stroke: none; }

/* Fact strip */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 56rem) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }
.facts p { margin: 0; padding: 1.4rem 0; font-size: .9375rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .15rem; }
.facts b { color: var(--ink); font-weight: 500; font-size: 1.0625rem; }
.facts a { font-weight: 500; color: var(--accent); text-underline-offset: .2em; transition: color .15s ease; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; margin-block: -.65rem; }
.facts p:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (max-width: 55.99rem) { .facts p:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (min-width: 56rem) { .facts p + p { padding-left: 1.75rem; border-left: 1px solid var(--line); } }

.facts a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

/* Sections */
section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); max-width: 44rem; }
.section-head--split { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 56rem) { .section-head--split { grid-template-columns: 1fr 1fr; } .section-head--split .sub { margin: 0; } }

/* Treatment cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
/* Lift on hover: shadow fades in on a pseudo-element, so only transform and opacity animate */
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } .card:hover::after { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card, .card::after { transition: none; } .card:hover { transform: none; } }
.card__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.4rem; }
.card__icon .icon { width: 1.4rem; height: 1.4rem; }
.card p { margin: .5rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.card p.card__quote { color: var(--accent); }

/* Dark reviews band */
.dark { background: var(--ink); color: #fff; }
.dark .eyebrow { color: var(--on-dark); }
.dark .sub { color: rgb(255 255 255 / .72); }
.reviews { display: grid; gap: 1.125rem; }
@media (min-width: 56rem) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0; padding: 1.75rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .12);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.review figcaption { font-size: .875rem; color: rgb(255 255 255 / .68); padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .12); }

/* Team */
.team { display: grid; gap: 1.125rem; }
@media (min-width: 46rem) { .team { grid-template-columns: 1fr 1fr; } }
.person { margin: 0; display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.person__initial {
  flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; font-weight: 500;
}
.person__role { margin: .3rem 0 1.1rem; color: var(--ink-2); font-size: .9375rem; }
.person blockquote { margin: 0 0 .5rem; padding-left: 1rem; border-left: 2px solid var(--accent-soft); font-size: 1rem; }
.person__source { margin: 0; font-size: .8125rem; color: var(--muted); padding-left: 1rem; }

/* Clinic: reception photo + quote block, then a row of photos */
.clinic { background: var(--bg-2); }
.band { display: grid; gap: 1.125rem; }
@media (min-width: 56rem) { .band { grid-template-columns: 1.4fr 1fr; } }
.band__photo { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.band__quote {
  margin: 0; background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.band__quote blockquote { margin: 0; }
.band__quote p { margin: 0; color: rgb(255 255 255 / .85); }
.band__quote .band__big { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin-bottom: 1.25rem; text-wrap: balance; }
.band__quote figcaption { font-size: .875rem; color: rgb(255 255 255 / .8); }
.gallery { display: grid; gap: 1.125rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.125rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 39.99rem) { .gallery { gap: .5rem; margin-top: .5rem; } .gallery img { border-radius: 12px; } }

/* Visit */
.visit__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .visit__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.details { display: grid; grid-template-columns: 1fr; margin: 2rem 0 0; }
.details dt { color: var(--muted); font-size: .875rem; padding-top: .9rem; }
.details dd { margin: 0; padding: .2rem 0 .9rem; border-bottom: 1px solid var(--line); }
@media (min-width: 36rem) {
  .details { grid-template-columns: 9rem 1fr; }
  .details dt { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .details dd { padding: .9rem 0; }
}
.call-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--glow-shadow);
}
.call-card__label { margin: 0; color: var(--muted); font-size: .9375rem; }
.call-card__number {
  display: inline-flex; align-items: center; min-height: 44px; margin: .4rem 0 1.75rem; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.03em; line-height: 1.1;
  text-decoration: none; font-variant-numeric: tabular-nums; transition: color .15s ease;
}
.call-card__number:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 7rem; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
@media (min-width: 46rem) { .site-footer { padding-bottom: 2.5rem; } }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem;
  padding: .6rem var(--gap) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.action-bar { transition: transform .25s ease, visibility .25s; }
.bar-off .action-bar { transform: translateY(100%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .action-bar { transition: none; } }
@media (min-width: 46rem) { .action-bar { display: none; } }

/* Demo banner: remove when the site goes live */
.demo-banner {
  background: var(--ink); color: #fff;
  font-size: .8125rem; text-align: center; padding: .5rem var(--gap);
}
