/* ==========================================================================
   Amera Training — public site
   Palette: pearl, plum ink, orchid. Type: Bricolage Grotesque + Figtree (Readex Pro for Arabic)
   ========================================================================== */

:root {
  --bg: #FAF6F7;
  --surface: #FFFFFF;
  --tint: #F4EAEE;
  --ink: #2B1630;
  --ink-2: #4A3550;
  --muted: #76637A;
  --line: #E8DCE2;
  --accent: #B4447A;
  --accent-ink: #FFFFFF;
  --accent-soft: #F6E1EA;
  --gold: #C9A46A;
  --ok: #2F7D5B;
  --ok-soft: #E1F2E9;
  --warn: #9A5B12;
  --warn-soft: #FBEEDB;
  --err: #B3261E;
  --err-soft: #FBE4E2;
  --deep: #2B1630;           /* dark sections in light mode */
  --deep-ink: #F8EEF4;

  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgb(43 22 48 / .05), 0 12px 32px -12px rgb(43 22 48 / .18);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --head-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170D1A; --surface: #21142A; --tint: #1D1122; --ink: #F6EDF3; --ink-2: #DCCBD9; --muted: #B4A0B8;
    --line: #3A2A40; --accent: #E583B4; --accent-ink: #2B1630; --accent-soft: #3A2040; --gold: #E0C08C;
    --ok: #7BD3A6; --ok-soft: #173426; --warn: #F0B86A; --warn-soft: #3A2A12; --err: #FF8A80; --err-soft: #3D1A1A;
    --deep: #0F0812; --deep-ink: #F6EDF3;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #170D1A; --surface: #21142A; --tint: #1D1122; --ink: #F6EDF3; --ink-2: #DCCBD9; --muted: #B4A0B8;
  --line: #3A2A40; --accent: #E583B4; --accent-ink: #2B1630; --accent-soft: #3A2040; --gold: #E0C08C;
  --ok: #7BD3A6; --ok-soft: #173426; --warn: #F0B86A; --warn-soft: #3A2A12; --err: #FF8A80; --err-soft: #3D1A1A;
  --deep: #0F0812; --deep-ink: #F6EDF3;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

[dir="rtl"] { --f-display: "Readex Pro", system-ui, sans-serif; --f-body: "Readex Pro", system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.ico { flex-shrink: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* ---------- Type scale ---------- */
.display {
  font-weight: 800; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .94;
  letter-spacing: -.045em; font-variation-settings: "opsz" 96;
}
.display-md { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
[dir="rtl"] .display { letter-spacing: 0; line-height: 1.15; font-weight: 700; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.h4 { font-size: 1rem; font-weight: 650; margin-top: 1.25rem; margin-bottom: .5rem; }
[dir="rtl"] .h2, [dir="rtl"] .h3 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.prose { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose-lg { font-size: 1.15rem; line-height: 1.7; }
.text-link { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-thickness: 2.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 1.6em; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--deep-ink); color: var(--deep); }
.btn-light:hover { background: var(--accent); color: var(--accent-ink); }
.btn-wa { background: #1FAF54; color: #fff; }
.btn-wa:hover { background: #178E44; }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 32px; background: var(--accent); border-radius: 13px 13px 3px 3px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--f-body); font-weight: 500; font-size: .7rem; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; font-weight: 550; font-size: .94rem; color: var(--ink-2); }
.main-nav a:hover { color: var(--ink); background: var(--tint); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-mobile-only { display: none; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn {
  min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  text-decoration: none; font-size: .88rem; font-weight: 600;
}
.tool-btn:hover { border-color: var(--ink); }
.icon-btn { padding: 0; width: 40px; }
.lang-btn { font-family: "Readex Pro", var(--f-body); }
.menu-btn { display: none; }
.when-dark, .when-open { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-flex; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
.menu-open .when-open { display: inline-flex; }
.menu-open .when-closed { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 39;
    flex-direction: column; gap: 0; margin: 0; padding: 16px var(--gutter) 40px;
    background: var(--bg); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .menu-open .main-nav { visibility: visible; opacity: 1; }
  .main-nav a { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .main-nav a[aria-current="page"] { color: var(--accent); }
  .nav-mobile-only { display: block; }
  .head-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) { .head-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--deep); color: var(--deep-ink); }
.section-ink .h2 { color: var(--deep-ink); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 640px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.section-foot { margin-top: 28px; }
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-head .lead { margin-top: 20px; }
.page-head-tight { padding-bottom: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .split, .two-col { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--accent); }
.tag::before { content: ""; width: 10px; height: 13px; background: currentColor; border-radius: 5px 5px 2px 2px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats div { display: flex; flex-direction: column-reverse; padding-inline-end: 32px; margin-inline-end: 32px; border-inline-end: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dt { font-size: .9rem; color: var(--muted); }
.hero-stats dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; display: flex; align-items: center; gap: 4px; }
.star { color: var(--gold); display: inline-flex; }
.hero-visual { position: relative; padding-bottom: 28px; }

/* The arch — the one signature shape of the brand */
.arch {
  margin: 0; position: relative; aspect-ratio: 4 / 5; width: 100%;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: var(--accent-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-empty {
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(180 68 122 / .55), transparent 70%),
    linear-gradient(180deg, #2B1630 0%, #4E2148 100%);
  display: grid; place-items: center;
}
.arch-empty::before, .arch-empty::after {
  content: ""; position: absolute; inset: 9% 9% -1px; border: 1.5px solid rgb(255 255 255 / .22);
  border-bottom: 0; border-radius: 999px 999px 0 0;
}
.arch-empty::after { inset: 20% 20% -1px; border-color: rgb(255 255 255 / .14); }
.arch-initial { font-family: var(--f-display); font-weight: 800; font-size: clamp(7rem, 16vw, 12rem); color: #FBEFF5; line-height: 1; position: relative; z-index: 1; letter-spacing: -.05em; }
.arch-hero { max-width: 460px; margin-inline-start: auto; }
.slot-card {
  position: absolute; bottom: 0; inset-inline-start: -8%; display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow); text-decoration: none; max-width: 340px; transition: border-color .2s;
}
.slot-card:hover { border-color: var(--accent); }
.slot-card small { display: block; color: var(--muted); font-size: .82rem; }
.slot-card strong { display: block; font-size: .98rem; line-height: 1.3; }
.slot-card-time { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.slot-card-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; width: 100%; margin-inline: auto; padding-bottom: 56px; }
  .arch-hero { margin-inline: auto; }
  .slot-card { inset-inline-start: 50%; transform: translateX(-50%); width: max-content; }
  [dir="rtl"] .slot-card { transform: translateX(50%); }
  .hero-stats div { padding-inline-end: 20px; margin-inline-end: 20px; }
  .hero-stats dd { font-size: 1.6rem; }
}

.spec-strip { margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--line); }
.spec-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; padding-block: 20px; }
.spec-strip li { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--ink-2); }
.spec-strip li::before { content: ""; width: 7px; height: 9px; border-radius: 4px 4px 1px 1px; background: var(--accent); }

/* ---------- Trainer intro ---------- */
.trainer-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -.04em; line-height: 1; margin: 20px 0 8px; color: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chips li { padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; }
.chips-lg li { font-size: .98rem; padding: 10px 18px; background: var(--accent-soft); border-color: transparent; }

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-copy { display: grid; gap: 20px; }
.arch-about { max-width: 420px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .arch-about { max-width: 320px; margin-inline: auto; } }
.cert-list { list-style: none; margin-top: 20px; }
.cert-list li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.cert-list .ico { color: var(--accent); }
.two-col .h3 + .chips { margin-top: 20px; }

/* ---------- Services (rows, not cards) ---------- */
.service-rows { list-style: none; border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.service-main h3, .service-main h2 { margin-bottom: 6px; }
.service-main p { color: var(--muted); max-width: 56ch; }
.service-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.price small { font-family: var(--f-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
@media (max-width: 680px) {
  .service-row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .service-ico { width: 44px; height: 44px; }
  .service-meta { grid-column: 2; align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
}

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 48px; counter-reset: none; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step-num { font-family: var(--f-display); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 18px; letter-spacing: -.04em; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.rating-line { display: inline-flex; gap: 8px; align-items: center; color: color-mix(in srgb, var(--deep-ink) 75%, transparent); }
.rating-line .ico { color: var(--gold); }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.quote { margin: 0; scroll-snap-align: start; padding: 32px; border-radius: var(--r-lg); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.quote figcaption span { color: color-mix(in srgb, var(--deep-ink) 65%, transparent); }

/* ---------- CTA ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 48px; border-block: 1px solid var(--line); }
.cta .h2 { max-width: 18ch; margin-bottom: 10px; }

/* ---------- Programs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group legend { font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 550; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .9rem; font-weight: 550; background: var(--surface); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.search { margin-inline-start: auto; }
.search input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.search input { min-width: 220px; border-radius: var(--r-pill); min-height: 40px; padding: 8px 18px; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.program { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.program[hidden] { display: none; }
.program-cover { position: relative; aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.program-cover img { width: 100%; height: 100%; object-fit: cover; }
.program-cover-empty::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 50%; width: 38%; aspect-ratio: 3/4; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: var(--accent); opacity: .9; }
[dir="rtl"] .program-cover-empty::after { transform: translateX(50%); }
.program-cover-empty.lvl-beginner::after { width: 26%; opacity: .55; }
.program-cover-empty.lvl-intermediate::after { width: 32%; opacity: .75; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: .8rem; font-weight: 650; }
.program-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-facts { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; }
.program-facts span { padding: 3px 10px; border-radius: var(--r-pill); background: var(--tint); color: var(--ink-2); font-weight: 550; }
.program-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.empty { text-align: center; padding: 64px 0; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.empty[hidden] { display: none; }

.dialog { border: 0; padding: 0; border-radius: var(--r-lg); width: min(560px, calc(100% - 32px)); max-height: 88vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgb(23 13 26 / .55); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-body { padding: 36px 32px 32px; display: grid; gap: 12px; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.dialog-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--accent); margin-top: 4px; }

/* ---------- Nutrition ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-size: .95rem; margin-bottom: 32px; }
.notice .ico { margin-top: 3px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.plan { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--accent); }
.plan-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.price-card .ticks { margin: 8px 0 20px; flex: 1; }
.price-card .btn { width: 100%; }
.price-big { font-family: var(--f-display); font-weight: 800; font-size: 3rem; letter-spacing: -.04em; line-height: 1; }
.price-big small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-card.is-featured { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.price-card.is-featured .h3, .price-card.is-featured .price-big small, .price-card.is-featured .muted { color: var(--deep-ink); }
.price-card.is-featured .muted { opacity: .75; }
.price-card.is-featured .ticks .ico { color: var(--gold); }
.ribbon { align-self: flex-start; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: .8rem; font-weight: 650; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.booking-pick { display: grid; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.booking-form { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } .booking-form { position: static; } }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.booking-form .step-title { margin-bottom: 0; }
.step-title span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .9rem; font-family: var(--f-body); }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head strong { font-family: var(--f-display); font-size: 1.15rem; }
.cal-head button:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
@media (max-width: 400px) { .cal-day { width: 38px; height: 38px; } }
.cal-dow { font-size: .78rem; color: var(--muted); text-align: center; margin-bottom: 6px; font-weight: 600; }
.cal-day {
  height: 44px; width: 44px; justify-self: center; border-radius: 50%; border: 1.5px solid transparent; background: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; display: grid; place-items: center; position: relative; transition: background .15s, color .15s;
}
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:disabled { color: var(--muted); opacity: .4; cursor: not-allowed; font-weight: 400; }
.cal-day.is-today { border-color: var(--line); }
.cal-day.is-selected { background: var(--ink); color: var(--bg); }
.cal-day.is-holiday { text-decoration: line-through; }

.slot-date { font-weight: 600; margin-bottom: 14px; color: var(--ink-2); min-height: 1.6em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slots > p { grid-column: 1 / -1; }
.slot {
  min-height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 650; cursor: pointer; transition: border-color .15s, background .15s, color .15s; direction: ltr;
}
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { cursor: not-allowed; color: var(--muted); background: var(--tint); text-decoration: line-through; border-style: dashed; }
.slot.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot-skel { min-height: 46px; border-radius: var(--r-sm); background: var(--tint); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.tz { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 16px; }

.selected-box { padding: 14px 18px; border-radius: var(--r-md); background: var(--accent-soft); display: grid; gap: 2px; }
.selected-box small { color: var(--muted); font-size: .82rem; }
.selected-box strong { font-size: 1.02rem; }
.selected-box.is-set { background: var(--ink); color: var(--bg); }
.selected-box.is-set small { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-err { color: var(--err); font-size: .86rem; font-weight: 550; }
.form-alert { padding: 12px 16px; border-radius: var(--r-sm); background: var(--err-soft); color: var(--err); font-weight: 550; font-size: .94rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check a { color: var(--accent); }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; display: grid; justify-items: center; gap: 20px; max-width: 640px; }
.confirm .lead { margin-inline: auto; }
.confirm-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.receipt { width: 100%; margin: 12px 0; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 28px; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.receipt div:last-child { border: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: end; }
.receipt .ref { font-family: var(--f-display); font-size: 1.3rem; color: var(--accent); letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .2s, background .2s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; inset: 50% 8px auto; height: 1.5px; background: currentColor; transform: translateY(-50%); }
.faq-plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s; }
.faq-item[open] .faq-plus { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-item[open] .faq-plus::after { transform: translateY(-50%) rotate(0); }
.faq-a { padding-bottom: 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.contact-list .ico { color: var(--accent); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.map { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }
#contact-form { display: grid; gap: 16px; }
.sent { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 48px 0; font-weight: 600; }

/* ---------- Client bookings ---------- */
.lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 24px; }
@media (max-width: 680px) { .lookup { grid-template-columns: 1fr; } }
.booking-list { list-style: none; display: grid; gap: 10px; }
.booking-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); flex-wrap: wrap; }
.booking-list li > div { display: grid; gap: 2px; }
.booking-list-end { justify-items: end; }
.status { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 650; background: var(--tint); }
.status-confirmed, .status-completed { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-cancelled, .status-no-show { background: var(--err-soft); color: var(--err); }

/* ---------- Footer ---------- */
.site-foot { background: var(--deep); color: var(--deep-ink); padding-top: 72px; }
.site-foot .brand-name small, .site-foot .brand-name { color: var(--deep-ink); }
.site-foot .brand-name small { opacity: .6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.foot-brand p { opacity: .7; max-width: 30ch; }
.foot-h { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--deep-ink); opacity: .55; margin-bottom: 16px; }
.foot-links { list-style: none; display: grid; gap: 10px; }
.foot-links a { text-decoration: none; opacity: .85; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { margin-top: 4px; opacity: .6; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; opacity: .6; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: #1FAF54; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgb(31 175 84 / .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- One orchestrated load moment: the hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .display, .hero .lead, .hero .actions, .hero-stats { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead { animation-delay: .08s; }
  .hero .actions { animation-delay: .16s; }
  .hero-stats { animation-delay: .24s; }
  .arch-hero { animation: archIn 1s cubic-bezier(.2, .7, .2, 1) both; }
  .slot-card { animation: rise .7s .5s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes archIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); } to { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); } }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .slot-card { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 480px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .hero-stats div { padding-inline-end: 14px; margin-inline-end: 14px; }
  .hero-stats dd { font-size: 1.45rem; }
  .hero-stats dt { font-size: .8rem; }
}
