/* ==========================================================================
   Dr. Haya Hodali Clinic — landing page
   Tokens come from the clinic brand system (design-tokens/dr_haya_clinic.design-tokens.json)
   ========================================================================== */

/* ---- Fonts: El Messiri (Arabic) + Alexandria (Latin & numerals), one family via unicode-range ---- */
@font-face {
  font-family: "Haya";
  src: url("../assets/fonts/ElMessiri-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Haya";
  src: url("../assets/fonts/Alexandria-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-05FF, U+2000-206F, U+2190-2193;
}
@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Navy theme */
  --navy-deep: #062036;
  --navy-glow: #123559;
  --navy-night: #021427;
  --navy-text: #0b2d4f;
  /* Light theme */
  --ivory: #f4eee0;
  --linen: #fbf9f5;
  --silk: #e4ebed;
  --silk-deep: #dce5e8;
  --leaf: #b9c7cf;
  --slate: #7a8c9c;
  --slate-deep: #5f7385;
  --gold-deep: #a8843f;
  --bronze: #8a6a2e;
  /* Gold family */
  --gold-text: #c7a35c;
  --gold-light: #d9bd7b;
  --gold-coin: linear-gradient(135deg, #f1db98, #c9a45c 50%, #a0803f);
  --gold-rim: linear-gradient(135deg, #f6e6a8, #c9a24f 35%, #8e6c31 65%, #e7cc84);
  --gold-fade: linear-gradient(90deg, rgba(199, 163, 92, 0), #c7a35c);

  --font: "Haya", "Noto Sans Arabic", "Avenir Next", Arial, sans-serif;
  --font-num: "Alexandria", "Avenir Next", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 72px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-deep);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.num { font-family: var(--font-num); letter-spacing: 0.1em; font-variant-numeric: lining-nums; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.icon--arrow { width: 1em; height: 1em; }
html[dir="ltr"] .icon--arrow { transform: scaleX(-1); }
/* the arrow glyph points left (Arabic reading direction) */

.skip-link {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ivory); color: var(--navy-text);
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---- Buttons ---- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.5em; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.btn::after { /* soft sheen on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 1.9em; font-size: 1.0625rem; }

.btn--gold {
  color: var(--navy-text);
  background: linear-gradient(135deg, #e6cd88, #c9a45c 55%, #b8914a);
  box-shadow: 0 10px 28px -10px rgba(201, 164, 92, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(201, 164, 92, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn--ghost {
  color: var(--ivory);
  background: rgba(244, 238, 224, 0.04);
  box-shadow: inset 0 0 0 1.5px rgba(199, 163, 92, 0.55);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(244, 238, 224, 0.1); box-shadow: inset 0 0 0 1.5px var(--gold-text); }

.btn--navy {
  color: var(--ivory); background: var(--navy-text);
  box-shadow: 0 14px 30px -14px rgba(6, 32, 54, 0.7);
}
.btn--navy:hover { transform: translateY(-2px); background: var(--navy-deep); }

/* ---- Header ---- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(6, 32, 54, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(199, 163, 92, 0.25);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; color: var(--ivory); margin-inline-end: auto; }
.brand__lead { font-size: 0.8125rem; font-weight: 500; color: var(--gold-text); }
.brand__name { font-size: 1.375rem; font-weight: 700; }
html[lang="en"] .brand__name { font-size: 1.1875rem; font-weight: 600; }

.nav__list { display: flex; gap: 6px; }
.nav__list a {
  position: relative; display: block; padding: 8px 14px; color: var(--ivory); font-weight: 500; font-size: 1rem; opacity: 0.88;
  transition: opacity 0.3s, color 0.3s;
}
.nav__list a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 1.5px;
  background: var(--gold-fade); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
html[dir="ltr"] .nav__list a::after { transform-origin: left; background: linear-gradient(270deg, rgba(199, 163, 92, 0), #c7a35c); }
.nav__list a:hover { opacity: 1; color: var(--gold-light); }
.nav__list a:hover::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  min-width: 44px; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-num); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1;
  color: var(--ivory); background: transparent; border: 1px solid rgba(199, 163, 92, 0.5);
  transition: background-color 0.3s, border-color 0.3s;
}
.lang-toggle:hover { background: rgba(244, 238, 224, 0.1); border-color: var(--gold-text); }
html[lang="en"] .lang-toggle { font-family: var(--font); font-size: 0.9375rem; letter-spacing: 0; font-weight: 600; }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.menu-toggle__bars, .menu-toggle__bars::before {
  position: absolute; inset-inline-start: 12px; width: 20px; height: 1.8px; background: var(--ivory); border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle__bars { top: 19px; }
.menu-toggle__bars::before { content: ""; top: 7px; inset-inline-start: 0; width: 20px; }
.is-open .menu-toggle__bars { top: 23px; transform: rotate(45deg); }
.is-open .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }

/* ---- Hero (navy theme) ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 96px;
  color: var(--ivory);
  background:
    radial-gradient(900px 620px at 12% 8%, rgba(18, 53, 89, 0.95), rgba(18, 53, 89, 0) 70%),
    radial-gradient(700px 500px at 82% 55%, rgba(18, 53, 89, 0.55), rgba(18, 53, 89, 0) 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-night));
}
.hero__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; transform: translateY(calc(var(--shift, 0px) * -1)); will-change: transform; }
.hero__hair { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner {
  direction: ltr; /* seal stays on the right in both languages; lockup text direction is restored below */
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.hero__lockup { direction: rtl; text-align: center; display: flex; flex-direction: column; align-items: center; }
html[dir="ltr"] .hero__lockup { direction: ltr; }

.hero__lead { position: relative; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; color: var(--gold-text); padding-bottom: 12px; }
.hero__lead::after {
  content: ""; position: absolute; inset-inline: -15%; bottom: 0; height: 1.3px;
  background: linear-gradient(90deg, rgba(199, 163, 92, 0), #c7a35c 50%, rgba(199, 163, 92, 0));
}
.hero__name {
  margin-top: 14px; font-size: clamp(4rem, 9.2vw, 7.25rem); font-weight: 700; line-height: 1.15; color: #fffdf7;
  text-shadow: 0 3px 3px rgba(0, 10, 24, 0.6);
}
html[lang="en"] .hero__name { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 600; line-height: 1.1; }

.hero__specialty {
  display: flex; align-items: center; gap: 22px; width: min(100%, 440px); margin-top: 12px;
  font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; color: var(--gold-text);
}
.hero__specialty::before, .hero__specialty::after { content: ""; flex: 1; height: 1.4px; }
.hero__specialty::before { background: linear-gradient(270deg, #c7a35c, rgba(199, 163, 92, 0)); }
.hero__specialty::after { background: linear-gradient(90deg, #c7a35c, rgba(199, 163, 92, 0)); }

.hero__tagline { max-width: 30em; margin-top: 22px; font-size: 1.125rem; color: rgba(244, 238, 224, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.hero__number { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 0.9375rem; color: var(--slate); }
.hero__number-label { color: rgba(244, 238, 224, 0.72); padding-inline-end: 14px; border-inline-end: 1.6px solid var(--gold-text); }
.hero__number .num { font-size: 1.25rem; font-weight: 400; color: var(--ivory); }
.hero__number .num:hover { color: var(--gold-light); }

/* Seal: the approved way to place the logo on navy */
.seal { position: relative; width: clamp(280px, 34vw, 430px); aspect-ratio: 1; animation: float 9s ease-in-out infinite; }
.seal::before { /* warm bloom */
  content: ""; position: absolute; inset: -14%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 241, 204, 0.3), rgba(255, 241, 204, 0) 72%);
  filter: blur(14px);
}
.seal__rim {
  width: 100%; height: 100%; padding: 5px; border-radius: 50%; background: var(--gold-rim);
  box-shadow: 0 24px 50px -14px rgba(0, 10, 24, 0.75);
}
.seal__disc {
  position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fffef9, #f9f4ea 55%, #efe6d3);
}
.seal__disc::before { /* inner bevel line */
  content: ""; position: absolute; inset: 16px; border-radius: 50%;
  border: 1px solid rgba(205, 187, 152, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.seal__logo { width: 76%; height: auto; margin-top: -1%; transform: translateZ(40px); }
.seal { perspective: 1000px; }
.seal__rim { transform-style: preserve-3d; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__scroll {
  position: absolute; inset-inline: 0; bottom: 28px; margin-inline: auto; width: 28px; height: 46px;
  border: 1.5px solid rgba(199, 163, 92, 0.6); border-radius: 16px; opacity: 0.85;
}
.hero__scroll span { position: absolute; top: 9px; inset-inline-start: calc(50% - 2px); width: 4px; height: 8px; border-radius: 2px; background: var(--gold-text); animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero entrance */
.js .hero__lockup > *, .js .seal { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.js .seal { animation: rise 1.1s 0.1s var(--ease) forwards, float 9s 1.4s ease-in-out infinite; }
.js .hero__lead { animation-delay: 0.15s; }
.js .hero__name { animation-delay: 0.28s; }
.js .hero__specialty { animation-delay: 0.42s; }
.js .hero__tagline { animation-delay: 0.52s; }
.js .hero__actions { animation-delay: 0.62s; }
.js .hero__number { animation-delay: 0.72s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Sections ---- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section--linen { background: var(--linen); }
.section--silk { background: linear-gradient(180deg, var(--silk), var(--silk-deep)); }
.section--navy {
  color: var(--ivory);
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(18, 53, 89, 0.9), rgba(18, 53, 89, 0) 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-night));
}
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1rem; font-weight: 600; color: var(--bronze); }
.eyebrow::before { content: ""; width: 36px; height: 1.5px; background: currentColor; opacity: 0.7; }
.eyebrow--gold { color: var(--gold-text); }
.h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; line-height: 1.3; color: var(--navy-text); text-wrap: balance; }
html[lang="en"] .h2 { font-weight: 600; line-height: 1.2; font-size: clamp(1.75rem, 3.6vw, 2.625rem); }
.section--navy .h2 { color: #fffdf7; }
.h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.4; color: var(--navy-text); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* About */
.about { overflow: hidden; }
.leaf { position: absolute; top: 0; inset-inline-start: -30px; width: 240px; pointer-events: none; opacity: 0.8; }
html[dir="rtl"] .leaf { transform: scaleX(-1); }
.about__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.about__text > * + * { margin-top: 20px; }
.about__text .h2 { margin-top: 0; }
.lead { font-size: 1.25rem; color: var(--navy-text); line-height: 1.85; }
html[lang="en"] .lead { font-size: 1.1875rem; line-height: 1.7; }

.care__panel {
  position: relative; padding: clamp(32px, 5vw, 56px); text-align: center; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, var(--silk) 130%);
  border: 1.5px solid #fff; box-shadow: 0 30px 60px -34px rgba(11, 45, 79, 0.35), 0 0 0 1px rgba(185, 199, 207, 0.5);
}
.care__panel::before { /* soft silk curve */
  content: ""; position: absolute; width: 140%; aspect-ratio: 1; inset-inline-start: -20%; bottom: -88%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 229, 232, 0.9), rgba(220, 229, 232, 0)); pointer-events: none;
}
.care__label { font-size: 1rem; font-weight: 500; color: var(--bronze); }
.care__value { margin-top: 6px; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.2; color: var(--navy-text); }
html[lang="en"] .care__value { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 600; }
.care__rule { display: block; width: 120px; height: 1.6px; margin: 14px auto 18px; background: linear-gradient(90deg, rgba(168, 132, 63, 0), #b8914a, rgba(168, 132, 63, 0)); }
.care__note { position: relative; max-width: 22em; margin-inline: auto; }
.care__link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--navy-text); border-bottom: 1.5px solid #b8914a; padding-bottom: 3px; transition: gap 0.3s var(--ease), color 0.3s; }
.care__link:hover { gap: 14px; }

/* Section sub-line */
.section__sub { margin-top: 14px; font-size: 1.125rem; }

/* Services — 3D tilt cards */
.services__grid { --gap: clamp(16px, 2vw, 28px); --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); perspective: 1200px; }
.services__grid > li { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.svc {
  position: relative; height: 100%; padding: 36px 26px 32px; text-align: center; border-radius: 26px; overflow: hidden;
  background: linear-gradient(165deg, #fff, #f3f6f7);
  box-shadow: 0 28px 50px -30px rgba(11, 45, 79, 0.45), 0 0 0 1px rgba(185, 199, 207, 0.55), inset 0 1px 0 #fff;
}
.svc__coin { width: 64px; height: 64px; margin: 0 auto 22px; }
.svc__coin .icon { width: 30px; height: 30px; }
.svc .h3 { margin-bottom: 8px; font-size: 1.5rem; }
.svc p { font-size: 1rem; line-height: 1.7; }
.services__note { margin-top: 40px; text-align: center; color: var(--bronze); font-weight: 500; }

/* 3D tilt (driven by js/main.js) */
[data-tilt] {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform 0.5s var(--ease), box-shadow 0.5s; will-change: transform;
}
[data-tilt].is-tilting { transition: transform 0.08s linear; }
[data-tilt]::after { /* moving glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;
}
[data-tilt].is-tilting::after { opacity: 1; }
.svc .coin, .svc .h3 { transform: translateZ(34px); }
.svc p { transform: translateZ(18px); }

/* Doctor */
.doctor { overflow: hidden; }
.doctor::before { /* soft silk glow */
  content: ""; position: absolute; inset-inline-end: -12%; top: 10%; width: 520px; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(228, 235, 237, 0.9), rgba(228, 235, 237, 0));
}
.doctor .container { position: relative; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); perspective: 1200px; margin-bottom: clamp(56px, 8vw, 96px); }
.stat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 34px 24px 30px; text-align: center; border-radius: 26px; overflow: hidden; color: var(--ivory);
  background: radial-gradient(420px 260px at 20% 0%, rgba(18, 53, 89, 0.95), rgba(18, 53, 89, 0) 70%), linear-gradient(170deg, var(--navy-deep), var(--navy-night));
  box-shadow: 0 30px 50px -28px rgba(6, 32, 54, 0.8), inset 0 0 0 1px rgba(199, 163, 92, 0.4);
}
.stat::before { content: ""; position: absolute; inset-inline: 22% ; top: 0; height: 2px; background: linear-gradient(90deg, rgba(199, 163, 92, 0), #e9cf86, rgba(199, 163, 92, 0)); }
.stat__num { font-size: clamp(3rem, 5vw, 4.25rem); font-weight: 300; letter-spacing: 0.02em; line-height: 1.1; color: var(--gold-light); transform: translateZ(40px); }
.stat__txt { font-size: 1.1875rem; font-weight: 600; color: #fffdf7; transform: translateZ(22px); }
.stat__sub { max-width: 20em; font-size: 0.9375rem; line-height: 1.6; color: rgba(244, 238, 224, 0.72); transform: translateZ(12px); }

.doctor__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px); align-items: start; perspective: 1400px; }

.timeline { position: relative; display: grid; gap: 36px; padding-inline-start: 56px; }
.timeline::before { /* gold spine */
  content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 1.6px;
  background: linear-gradient(180deg, rgba(184, 145, 74, 0), #b8914a 8%, #d9bd7b 50%, #b8914a 92%, rgba(184, 145, 74, 0));
}
.tl { position: relative; }
.tl::before { /* node */
  content: ""; position: absolute; top: 10px; inset-inline-start: -52px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-coin); box-shadow: 0 0 0 5px var(--linen), 0 0 0 6.5px #c9a45c;
}
.tl__year { display: inline-block; margin-bottom: 4px; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0.1em; color: var(--bronze); }
.tl__year--label { letter-spacing: 0; font-family: var(--font); font-weight: 500; }
.tl .h3 { margin-bottom: 6px; }
.tl p { max-width: 38em; font-size: 1rem; line-height: 1.8; }
.text-link.text-link--dark { color: var(--navy-text); border-bottom: 1.5px solid #b8914a; padding-bottom: 2px; }
.text-link.text-link--dark:hover { color: var(--bronze); }

.creds {
  position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; overflow: hidden; color: var(--ivory);
  background: radial-gradient(520px 320px at 85% 0%, rgba(18, 53, 89, 0.95), rgba(18, 53, 89, 0) 70%), linear-gradient(170deg, var(--navy-deep), var(--navy-night));
  box-shadow: 0 40px 70px -34px rgba(6, 32, 54, 0.85), inset 0 0 0 1px rgba(199, 163, 92, 0.4);
}
.creds__title { margin-bottom: 8px; font-size: 1.5rem; font-weight: 700; color: #fffdf7; transform: translateZ(26px); }
.creds ul li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(199, 163, 92, 0.25); }
.creds ul li:first-child { margin-top: 12px; }
.creds .coin { width: 48px; height: 48px; transform: translateZ(30px); }
.creds .coin .icon { width: 24px; height: 24px; }
.creds h4 { margin: 0; font-size: 1.0625rem; font-weight: 600; color: #fffdf7; line-height: 1.45; }
.creds p { font-size: 0.9375rem; color: rgba(244, 238, 224, 0.75); line-height: 1.5; }

.skills { margin-top: clamp(56px, 8vw, 88px); text-align: center; }
.skills__title { margin-bottom: 22px; font-size: 1.375rem; font-weight: 600; color: var(--navy-text); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 920px; margin-inline: auto; }
.chips li {
  padding: 9px 18px; border-radius: 999px; font-size: 0.9375rem; line-height: 1.4; color: var(--navy-text);
  background: #fff; box-shadow: inset 0 0 0 1px rgba(184, 145, 74, 0.55); transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.chips li:hover { transform: translateY(-2px); background: var(--ivory); box-shadow: inset 0 0 0 1px #b8914a, 0 10px 20px -12px rgba(11, 45, 79, 0.4); }

/* Privacy */
.privacy { overflow: hidden; }
.privacy__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.privacy__lead { margin-top: 18px; font-size: 1.1875rem; color: rgba(244, 238, 224, 0.86); line-height: 1.85; }
.prv-list { display: grid; gap: 28px; margin-top: 38px; }
.prv-list li { display: flex; gap: 18px; align-items: flex-start; padding-top: 26px; border-top: 1px solid rgba(199, 163, 92, 0.28); }
.prv-list .h3 { color: #fffdf7; margin-bottom: 4px; }
.prv-list p { color: rgba(244, 238, 224, 0.78); font-size: 1rem; line-height: 1.7; }

.privacy__stage { display: grid; place-items: center; perspective: 1000px; }
.vault {
  position: relative; display: grid; place-items: center; align-content: center; gap: 22px;
  width: min(100%, 380px); aspect-ratio: 1; border-radius: 36px;
  background: linear-gradient(150deg, rgba(244, 238, 224, 0.13), rgba(244, 238, 224, 0.03));
  box-shadow: inset 0 0 0 1px rgba(199, 163, 92, 0.45), 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bob 7s ease-in-out infinite;
}
.vault__ring { position: absolute; top: 8%; width: 66%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(217, 189, 123, 0.5); transform: translateZ(20px); animation: spin 28s linear infinite; border-top-color: #fbefc2; }
.vault__core { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--gold-coin); color: #fff; transform: translateZ(60px); box-shadow: 0 20px 36px -12px rgba(0, 0, 0, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.vault__core .icon { width: 52px; height: 52px; }
.vault__label { position: absolute; bottom: 7%; font-size: 1.125rem; font-weight: 500; color: var(--gold-light); transform: translateZ(40px); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Visit / walk-in */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); max-width: 980px; margin-inline: auto; }
.fact { text-align: center; padding-top: 4px; }
.fact .coin { width: 60px; height: 60px; margin: 0 auto 20px; }
.fact .h3 { margin-bottom: 8px; }
.fact p { max-width: 17em; margin-inline: auto; font-size: 1rem; line-height: 1.7; }
.visit__cta { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 64px); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact__lead { margin-top: 16px; font-size: 1.125rem; color: rgba(244, 238, 224, 0.82); }
.address { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(199, 163, 92, 0.3); }
.address__main { font-size: 1.375rem; font-weight: 600; color: #fffdf7; line-height: 1.5; }
.address__sub { color: rgba(244, 238, 224, 0.78); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--gold-light); transition: gap 0.3s var(--ease), color 0.3s; }
.text-link:hover { gap: 14px; color: #fbefc2; }

.coin {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-coin); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.coin .icon { width: 26px; height: 26px; }

.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; padding-inline: 14px 22px; border-radius: 22px;
  background: rgba(244, 238, 224, 0.045); box-shadow: inset 0 0 0 1px rgba(199, 163, 92, 0.22);
  transition: transform 0.4s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.channel:hover { transform: translateY(-2px); background: rgba(244, 238, 224, 0.09); box-shadow: inset 0 0 0 1px rgba(199, 163, 92, 0.6); }
.channel--primary { background: rgba(244, 238, 224, 0.1); box-shadow: inset 0 0 0 1.5px rgba(199, 163, 92, 0.65); }
.channel__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.channel__label { font-size: 0.9375rem; color: rgba(244, 238, 224, 0.72); }
.channel__value { font-size: 1.375rem; font-weight: 400; color: var(--ivory); overflow-wrap: anywhere; }
.channel__value--sm { font-family: var(--font-num); font-size: 1.0625rem; letter-spacing: 0.02em; }
.channel__value--name { font-size: 1.125rem; font-weight: 500; letter-spacing: 0; }
html[lang="en"] .channel__value--name { font-family: var(--font-num); font-size: 1.0625rem; font-weight: 400; letter-spacing: 0.02em; }
.channel__go { margin-inline-start: auto; color: var(--gold-text); transition: transform 0.35s var(--ease); }
.channel:hover .channel__go { transform: translateX(-4px); }
html[dir="ltr"] .channel:hover .channel__go { transform: scaleX(-1) translateX(-4px); }

/* Footer */
.site-footer { color: rgba(244, 238, 224, 0.78); background: var(--navy-night); border-top: 1px solid rgba(199, 163, 92, 0.25); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 32px 56px; align-items: center; padding: 48px 0 32px; }
.site-footer__brand { line-height: 1.3; }
.site-footer__lead { font-size: 0.9375rem; color: var(--gold-text); font-weight: 500; }
.site-footer__name { font-size: 1.75rem; font-weight: 700; color: #fffdf7; }
html[lang="en"] .site-footer__name { font-size: 1.5rem; font-weight: 600; }
.site-footer__spec { font-size: 0.9375rem; }
.site-footer__nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-footer__nav a { padding: 6px 0; transition: color 0.3s; }
.site-footer__nav a:hover { color: var(--gold-light); }
.social { display: flex; gap: 10px; }
.social__link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold-light);
  box-shadow: inset 0 0 0 1.2px rgba(199, 163, 92, 0.5); transition: background-color 0.3s, color 0.3s, transform 0.35s var(--ease);
}
.social__link:hover { background: var(--gold-text); color: var(--navy-deep); transform: translateY(-2px); }
.site-footer__legal { padding: 20px 0 28px; font-size: 0.875rem; border-top: 1px solid rgba(199, 163, 92, 0.15); color: rgba(244, 238, 224, 0.62); }

/* Mobile dock */
.dock { display: none; }

/* ---- Reveal on scroll ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--3d { transform: perspective(900px) translateY(30px) rotateX(-14deg); transform-origin: 50% 100%; }
.js .reveal--3d.is-in { transform: none; }
.js li.reveal:nth-child(2), .js .channels li:nth-child(2) { transition-delay: 0.1s; }
.js li.reveal:nth-child(3), .js .channels li:nth-child(3) { transition-delay: 0.2s; }
.js li.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .services__grid { --cols: 2; }
  .nav__list a { padding-inline: 10px; }
  .hero__inner { gap: 40px; }
}

/* ---- Mobile / small tablet ---- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }

  .menu-toggle { display: block; }
  .site-header__cta { display: none; }
  .nav {
    position: absolute; inset-inline: 0; top: var(--header-h);
    background: rgba(6, 32, 54, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(199, 163, 92, 0.25); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.45s var(--ease), visibility 0s 0.45s;
  }
  .is-open .nav { max-height: 360px; visibility: visible; transition: max-height 0.45s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px; }
  .nav__list a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid rgba(199, 163, 92, 0.15); }
  .nav__list a::after { display: none; }

  .hero { align-items: flex-start; min-height: auto; padding: calc(var(--header-h) + 20px) 0 112px; }
  .hero__ribbon { top: auto; bottom: 0; height: 140px; }
  .hero__inner { grid-template-columns: 1fr; gap: 22px; justify-items: center; }
  .seal { order: -1; width: min(52vw, 214px); }
  .hero__name { font-size: clamp(3.5rem, 17vw, 5rem); }
  html[lang="en"] .hero__name { font-size: clamp(2.5rem, 12vw, 3.75rem); }
  .hero__tagline { font-size: 1.0625rem; margin-top: 18px; }
  .hero__actions { width: 100%; flex-direction: column; margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__number { margin-top: 22px; }
  .hero__scroll { display: none; }

  .about__grid, .contact__grid, .privacy__grid, .doctor__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; margin-bottom: 56px; }
  .creds { position: relative; top: 0; }
  .timeline { padding-inline-start: 48px; }
  .tl::before { inset-inline-start: -44px; }
  .facts { grid-template-columns: 1fr; gap: 32px; max-width: 420px; }
  .vault { width: min(80%, 300px); margin-inline: auto; }
  .leaf { width: 150px; opacity: 0.6; }
  .visit__cta .btn { width: 100%; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .site-footer { padding-bottom: 76px; }

  /* Persistent contact bar */
  .dock {
    position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
    display: flex; gap: 10px; padding: 8px; border-radius: 999px;
    background: rgba(6, 32, 54, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px -12px rgba(0, 10, 24, 0.7), inset 0 0 0 1px rgba(199, 163, 92, 0.35);
    transform: translateY(140%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s; pointer-events: none;
  }
  .dock.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .dock__btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--gold-light); box-shadow: inset 0 0 0 1.4px rgba(199, 163, 92, 0.6); }
  .dock__wa { flex: 1; min-height: 48px; padding: 0 1em; font-size: 1rem; }
}

@media (max-width: 640px) {
  .services__grid { --cols: 2; --gap: 12px; }
  .svc { padding: 28px 14px 24px; }
  .svc .h3 { font-size: 1.25rem; }
  .svc p { font-size: 0.9375rem; }
  .channel { padding: 12px 16px 12px 12px; padding-inline: 12px 16px; gap: 14px; }
  .channel__value { font-size: 1.1875rem; }
  .channel__value--sm { font-size: 0.875rem; letter-spacing: 0; }
  .channel__value--name { font-size: 1rem; }
  .channel__go { display: none; }
  .coin { width: 46px; height: 46px; }
  .coin .icon { width: 23px; height: 23px; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1.1875rem; }
  .channel__value--sm { font-size: 0.8125rem; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__lockup > *, .js .seal { opacity: 1; transform: none; }
  .hero__hair { stroke-dashoffset: 0; }
}
