/* Valz homepage, light edition. Font: Shabnam (OFL, 400 + 700 only, so no synthesized weights).
   Colour encodes meaning: amber = an appointment (the clinic's moment), lilac = the interval between (Valz's work). */

@font-face { font-family: 'Shabnam'; font-weight: 400; font-display: swap; src: url('fonts/shabnam-regular.woff2') format('woff2'); }
@font-face { font-family: 'Shabnam'; font-weight: 700; font-display: swap; src: url('fonts/shabnam-bold.woff2') format('woff2'); }

:root {
  --ink: #12163a;
  --muted: #565c80;
  --bg: #f8f8fc;
  --white: #fff;
  --mist: #eef0fa;
  --line: #dfe2f2;
  --beat: #f5b544;
  --beat-soft: #fff1cf;
  --rest: #7b89f5;
  --rest-ink: #3f4cc2;
  --rest-soft: #e6e9ff;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: 'Shabnam', system-ui, 'Segoe UI', Tahoma, sans-serif;
  /* multi-layer soft shadow, flat single-layer shadows read cheap */
  --shadow: 0 1px 2px rgba(18, 22, 58, .05), 0 8px 24px rgba(18, 22, 58, .07), 0 24px 56px rgba(63, 76, 194, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.95 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--rest-ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; background: var(--beat); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(56px, 7.5vw, 96px); }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn-beat { background: var(--beat); color: var(--ink); box-shadow: 0 6px 18px rgba(245, 181, 68, .35); }
.btn-beat:hover { background: #ffc766; }
.btn-ghost { border-color: rgba(18, 22, 58, .22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 248, 252, .88); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; }
.brand-fa { font-size: .9rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--mist); }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; background: transparent;
  border: 1.5px solid var(--line); cursor: pointer; }
.header-cta { min-height: 44px; padding: 0 20px; font-size: .95rem; box-shadow: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px); overflow: clip;
  background:
    radial-gradient(60% 70% at 8% 18%, rgba(123, 137, 245, .14), transparent 70%),
    radial-gradient(50% 60% at 96% 92%, rgba(245, 181, 68, .16), transparent 70%),
    var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--beat); border-radius: 3px; }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.75rem); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(245, 181, 68, .55) 62% 92%, transparent 92%); padding-inline: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { margin-top: 24px; max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-visual::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(145deg, var(--rest-soft), var(--beat-soft)); opacity: .9; }
.media { overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hero-visual:has(.hero-photo)::before { display: none; }
.hero-visual:has(.hero-photo) .phone { position: absolute; inset-block-end: -20px; inset-inline-end: 16px; }

.phone { position: relative; width: min(300px, 84%); background: var(--white); border: 1px solid var(--line); border-radius: 36px;
  padding: 10px; box-shadow: var(--shadow); }
.phone-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.phone-bar svg { width: 34px; height: 34px; padding: 6px; background: var(--ink); border-radius: 12px; }
.phone-bar strong { display: block; font-size: .95rem; line-height: 1.5; }
.phone-bar small { display: block; font-size: .78rem; color: #2e9d6a; line-height: 1.4; }
.chat { display: grid; gap: 10px; padding: 16px 12px 20px; background: var(--bg); border-radius: 26px; min-height: 300px; align-content: start; font-size: .9rem; line-height: 1.8; }
.msg { max-width: 86%; padding: 8px 14px; border-radius: 18px; }
.msg.bot { background: var(--white); border: 1px solid var(--line); border-end-start-radius: 6px; justify-self: start; }
.msg.me { background: var(--rest-ink); color: #fff; border-end-end-radius: 6px; justify-self: end; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick span { padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--rest-ink); color: var(--rest-ink); font-size: .85rem; }
.phone-cap { text-align: center; font-size: .78rem; color: var(--muted); padding-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .js .chat > * { opacity: 0; transform: translateY(10px); animation: pop .55s var(--ease) forwards; animation-delay: var(--d, 0s); }
}
@keyframes pop { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-block: 24px 8px; }
  .hero-visual:has(.hero-photo) { padding-bottom: 60px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* ---------- shared heads ---------- */
.kicker { display: block; color: var(--rest-ink); font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.4; max-width: 22ch; text-wrap: balance; }
.section-lead { margin-top: 16px; max-width: 54ch; color: var(--muted); }

/* ---------- scroll-scrubbed month (frame by frame) ---------- */
.scrub { position: relative; height: 340vh; background: var(--white); }
.scrub-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; align-content: center; gap: clamp(24px, 6.5vh, 64px); }
.scrub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dayno { text-align: end; line-height: 1; flex: none; }
.dayno small { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.dayno b { display: block; font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 700; color: var(--rest-ink); font-variant-numeric: tabular-nums; min-width: 2ch; }

.rail { position: relative; height: 72px; margin-block: clamp(4px, 2vh, 20px); }
.rail-track { position: absolute; inset-inline: 0; top: 30px; height: 6px; border-radius: 6px; background: var(--rest-soft); overflow: hidden; }
.rail-fill { position: absolute; inset: 0; transform-origin: right center; transform: scaleX(var(--p, 0)); background: linear-gradient(to left, var(--rest-ink), var(--rest)); border-radius: 6px; }
.rail-beat, .rail-tick { position: absolute; top: 33px; translate: 50% -50%; border-radius: 50%; transition: transform .3s var(--ease), background-color .3s, box-shadow .3s; }
.rail-beat { width: 28px; height: 28px; background: var(--white); border: 3px solid var(--beat); }
.rail-beat.on { background: var(--beat); box-shadow: 0 0 0 8px rgba(245, 181, 68, .25); transform: scale(1.05); }
.rail-tick { width: 14px; height: 14px; background: var(--white); border: 3px solid var(--rest); }
.rail-tick.on { background: var(--rest-ink); border-color: var(--rest-ink); }
.rail-label { position: absolute; top: 56px; translate: 50% 0; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.playhead { position: absolute; top: 14px; height: 38px; width: 2px; background: var(--ink); border-radius: 2px; }
.playhead::after { content: ""; position: absolute; top: -4px; inset-inline-start: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

.events { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.event { background: var(--bg); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: clamp(16px, 3.2vh, 32px) 18px; opacity: .55;
  transition: opacity .35s var(--ease), background-color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.event .d { display: inline-block; font-size: .82rem; color: var(--rest-ink); background: var(--rest-soft); border-radius: 999px; padding: 0 10px; margin-bottom: 8px; }
.event p { font-size: 1.05rem; line-height: 1.8; font-weight: 700; }
.event.on { opacity: 1; background: var(--white); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.event.now { border-color: var(--beat); transform: translateY(-4px); }

.scrub.no-scrub { height: auto; padding-block: clamp(56px, 7.5vw, 96px); }
.no-scrub .scrub-stage { position: static; height: auto; }
.no-scrub .dayno, .no-scrub .rail { display: none; }
.no-scrub .event { opacity: 1; background: var(--bg); border-style: solid; }

@media (max-width: 1000px) { .events { grid-template-columns: repeat(2, 1fr); } .events .event:last-child { grid-column: 1 / -1; } }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 52px); }
.svc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc .media { aspect-ratio: 4 / 3; border-radius: calc(var(--r-lg) - 8px); margin-bottom: 20px; }
.svc-body { padding-inline: 16px; display: flex; flex-direction: column; flex: 1; }
.svc:not(:has(.media)) { padding-top: 28px; }
.svc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--rest-soft); display: grid; place-items: center; color: var(--rest-ink); }
.svc-icon svg { width: 24px; height: 24px; }
.svc-gap { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.svc h3 { font-size: 1.4rem; line-height: 1.5; }
.svc ul { margin-top: 14px; display: grid; gap: 8px; color: var(--muted); font-size: 1rem; }
.svc li { position: relative; padding-inline-start: 22px; line-height: 1.8; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .9em; width: 10px; height: 3px; border-radius: 3px; background: var(--rest-ink); }

/* ---------- process ---------- */
.steps { margin-top: clamp(40px, 6vw, 60px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 28px 0 0; padding-inline-end: 28px; border-top: 2px solid var(--ink); }
.step::before { content: attr(data-n); position: absolute; top: -17px; inset-inline-start: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--beat); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .95rem; line-height: 1; }
.step h3 { font-size: 1.25rem; line-height: 1.5; margin-top: 10px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { padding-inline-end: 0; } }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(32px, 5vw, 52px); }
.work-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); }
.work-card h3 { font-size: 1.25rem; line-height: 1.55; }
.work-card p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.work-type { display: inline-block; margin-bottom: 12px; padding: 0 12px; font-size: .85rem; border-radius: 999px; background: var(--rest-soft); color: var(--rest-ink); font-weight: 700; }
.work-card.featured { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); display: grid; grid-template-columns: 1.1fr .9fr;
  column-gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 44px); }
.work-card.featured .kicker { color: #aab3ff; }
.work-card.featured h3 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.3; }
.work-card.featured p { color: #c5c9e6; margin-top: 12px; }
.work-card.featured ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.work-card.featured li { padding: 2px 14px; font-size: .875rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); }
.work-card.featured .btn { margin-top: 26px; }
.work-card.featured .media { aspect-ratio: 7 / 5; border-radius: var(--r-md); }
.work-card.featured:not(:has(.media)) { grid-template-columns: 1fr; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } .work-card.featured { grid-template-columns: 1fr; } .work-card.featured .media { order: -1; margin-bottom: 20px; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 48px); }
.rules li { padding-block: 20px; border-top: 2px solid var(--ink); }
.rules h3 { font-size: 1.15rem; line-height: 1.6; }
.rules p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); transition: background-color .2s, box-shadow .2s; }
.faq details[open] { background: var(--white); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; min-height: 56px; font-weight: 700; font-size: 1.08rem; line-height: 1.7;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--rest-ink); border-bottom: 2px solid var(--rest-ink);
  transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -5px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- contact ---------- */
.cta { background: var(--beat-soft); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.4; max-width: 16ch; }
.cta .lead { margin-top: 16px; max-width: 44ch; color: #4a4a5e; }
.contact-list { display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--white); border: 1px solid rgba(18, 22, 58, .08);
  border-radius: var(--r-md); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; min-height: 64px; }
.contact-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-row .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--rest-soft); color: var(--rest-ink); display: grid; place-items: center; }
.contact-row .ic svg { width: 22px; height: 22px; }
.contact-row span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.contact-row b { display: block; font-weight: 700; direction: ltr; text-align: start; unicode-bidi: plaintext; line-height: 1.5; }
.contact-row.primary { background: var(--ink); color: #fff; }
.contact-row.primary span { color: #c5c9e6; }
.contact-row.primary .ic { background: var(--beat); color: var(--ink); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 28px; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .svc.reveal.in:hover { transform: translateY(-4px); }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .js .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; }
  .header-cta, .brand-fa { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .scrub-head { flex-direction: column; align-items: flex-start; }
}
