/* ==========================================================================
   Rawan Kourani — Hijama for Women
   Landing page stylesheet
   Structure: 1.Tokens 2.Reset 3.Utilities 4.Components 5.Sections 6.Motion 7.Responsive
   ========================================================================== */

/* ── 1. Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand palette (taken from the reference artwork) — warm cream → deep brown */
  --sand-50:  #fbf5ec;
  --sand-100: #f7efe3;
  --sand-200: #f1e4d3;
  --sand-300: #e4cfb4;
  --sand-400: #d2b48c;
  --sand-500: #bc9767;
  --sand-600: #a17a4e;
  --sand-700: #57402a;
  --sand-800: #3f2e1d;
  --sand-900: #2a1d12;

  --ink:      #3a2a1c;
  --ink-soft: #7b6753;
  --line:     #ebddc9;
  --white:    #ffffff;

  --grad-brand: linear-gradient(135deg, var(--sand-700), var(--sand-900));
  --grad-soft:  linear-gradient(160deg, #fdf9f3 0%, #f5eadc 100%);
  --grad-hair:  linear-gradient(90deg, transparent, var(--sand-300), transparent);

  /* Typography */
  --font-ar: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --font-en: 'Cormorant Garamond', Georgia, serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.75rem);
  --fs-h2:   clamp(1.9rem, 3.6vw, 3rem);
  --fs-h3:   clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: clamp(0.98rem, 1.1vw, 1.06rem);

  /* Spacing & shape */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Layered shadows — a tight contact shadow plus a soft ambient one
     reads far more natural than a single large blur. */
  --shadow-sm: 0 1px 2px rgba(58, 42, 26, .04), 0 4px 14px rgba(122, 92, 58, .06);
  --shadow:    0 2px 4px rgba(58, 42, 26, .04), 0 14px 40px rgba(122, 92, 58, .10);
  --shadow-lg: 0 4px 8px rgba(58, 42, 26, .05), 0 30px 70px rgba(122, 92, 58, .15);
  --shadow-brand: 0 6px 14px rgba(122, 92, 58, .22), 0 16px 40px rgba(122, 92, 58, .20);

  --ease: cubic-bezier(.22, .68, .36, 1);
  --dur:  .45s;

  --header-h: 120px;
}

/* ── 2. Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  /* clip runaway decorative elements (floating badges, corner glows) on the
     x-axis. `clip` (unlike `hidden`) doesn't spawn a scroll container, so
     sticky/anchored scrolling still works — this is what actually kills the
     left/right drag on phones. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink);
  background: var(--sand-50);
  overflow-x: clip;
  /* hard cap: nothing may make the page wider than the screen */
  max-width: 100%;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em; line-height: 1.25; font-weight: 800;
  text-wrap: balance;              /* avoids lonely words on the last line */
}
p { text-wrap: pretty; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 3px solid var(--sand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--sand-300); color: var(--sand-900); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sand-100); }
::-webkit-scrollbar-thumb { background: var(--sand-400); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--sand-600); }

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 1rem;
  z-index: 999; padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--sand-700); color: #fff; transition: inset-block-start .3s;
}
.skip-link:focus { inset-block-start: 1rem; }

/* ── 3. Utilities ─────────────────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 92%); }

.section { padding-block: var(--space-section); position: relative; }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: var(--fs-h2); font-weight: 900; letter-spacing: -.5px; }
.section__title--en { font-family: var(--font-en); font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: 0; }
.section__text { color: var(--ink-soft); max-width: 62ch; }
.section__text--center { margin-inline: auto; }

/* Floral rule under centred section titles: a hairline with a bloom on top */
.section__head .section__title { position: relative; padding-bottom: 2.5rem; }
.section__head .section__title::after {
  content: '✿'; position: absolute; bottom: 1.05rem; left: 50%;
  transform: translateX(-50%);
  font-size: .85rem; line-height: 1; color: var(--sand-400);
}
.section__head .section__title::before {
  content: ''; position: absolute; bottom: .55rem; left: 50%;
  width: 160px; height: 1px; margin-left: -80px;
  background: var(--grad-hair);
}

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .88rem; font-weight: 700; color: var(--sand-600);
  letter-spacing: .5px; margin-bottom: .8rem;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand-500); box-shadow: 0 0 0 5px rgba(188, 151, 103, .18);
  animation: pulse 2.4s var(--ease) infinite;
}

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.5rem; margin-bottom: 1.1rem;
  background: var(--grad-brand); color: #fff;
  border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 700; letter-spacing: .4px;
  box-shadow: var(--shadow-brand);
}
.pill::before, .pill::after {
  content: '✦'; font-size: .7rem; color: var(--sand-300); line-height: 1;
}

/* Background decoration */
.bg-decor { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob--1 { width: 46vw; height: 46vw; background: #f2e3cd; top: -12vw; inset-inline-start: -10vw; animation: drift 22s var(--ease) infinite alternate; }
.blob--2 { width: 38vw; height: 38vw; background: #efe2cf; top: 45%; inset-inline-end: -12vw; animation: drift 28s var(--ease) infinite alternate-reverse; }
.blob--3 { width: 34vw; height: 34vw; background: #e9d8bd; bottom: -10vw; inset-inline-start: 25%; animation: drift 26s var(--ease) infinite alternate; }

.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; inset-block-start: -6vh;
  color: var(--sand-300); font-size: 1rem; opacity: .55;
  animation: fall linear infinite;
}

/* ── 4. Components ────────────────────────────────────────────────────── */

/* Buttons */
.btn {
  --btn-bg: var(--grad-brand);
  --arrow-dir: -1;                       /* RTL: forward motion is leftward */
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: .9rem 2.1rem;
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: .2px;
  white-space: nowrap; text-align: center;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn--sm  { min-height: 42px; padding: .55rem 1.4rem; font-size: .92rem; }
.btn--lg  { min-height: 60px; font-size: 1.06rem; }
.btn--full{ width: 100%; }

/* Arrow that leans into the direction of travel on hover */
.btn__arrow {
  flex: none; width: 18px; height: 18px;
  transition: transform var(--dur) var(--ease);
}
/* The glyph points left (RTL forward); flipping it in LTR also flips the
   local axis, so the same translate keeps moving it "forward" either way. */
[dir="ltr"] .btn__arrow { rotate: 180deg; }
.btn:hover .btn__arrow { transform: translateX(calc(var(--arrow-dir) * 5px)); }

/* Light sweep on hover — shared by every variant */
.btn::before {
  content: ''; position: absolute; top: 0; left: -60%; z-index: 1;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left .7s var(--ease);
}
.btn:hover::before { left: 120%; }
/* keep label + icons above both pseudo layers */
.btn > * { position: relative; z-index: 2; }

/* — Primary: filled gradient — */
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--sand-500), var(--sand-700));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(122,92,58,.26), 0 22px 46px rgba(122,92,58,.32);
}
.btn--primary:hover::after { opacity: 1; }

/* — Ghost: outlined, fills with brand on hover — */
.btn--ghost {
  background: #fff; color: var(--sand-700);
  box-shadow: inset 0 0 0 1.5px var(--sand-200), var(--shadow-sm);
}
.btn--ghost::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.btn--ghost:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: inset 0 0 0 1.5px transparent, var(--shadow-brand);
}
.btn--ghost:hover::after { transform: scaleX(1); }

/* — On the dark featured card: white button that inverts — */
.plan--featured .btn--primary {
  background: #fff; color: var(--sand-700);
  box-shadow: 0 6px 16px rgba(58, 42, 26, .28);
}
.plan--featured .btn--primary::after { background: var(--sand-900); }
.plan--featured .btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(58, 42, 26, .4); }
.plan--featured .btn--primary::before { background: linear-gradient(100deg, transparent, rgba(122,92,58,.14), transparent); }

/* Shared states */
.btn:active { transform: translateY(0) scale(.985); transition-duration: .08s; }
.btn:focus-visible { outline: 3px solid var(--sand-500); outline-offset: 3px; }
.btn[disabled], .btn.is-loading { pointer-events: none; }
.btn[disabled] { opacity: .6; }
.btn.is-loading { opacity: .9; }
.btn.is-loading .btn__label, .btn.is-loading .btn__arrow { opacity: .55; }

.btn__spinner {
  display: none; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }

/* Header */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur);
}
.header.is-stuck {
  background: rgba(253, 247, 239, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(122, 92, 58, .07);
}
.header.is-stuck .header__inner { block-size: calc(var(--header-h) - 8px); }
.header__inner { transition: block-size var(--dur) var(--ease); }
.header__inner {
  display: flex; align-items: center; justify-content: flex-start; gap: 1.6rem;
  block-size: var(--header-h);
}
.header__progress {
  height: 3px; width: 0%;
  background: var(--grad-brand);
  transition: width .1s linear;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
/* Full logo lockup shown whole so the name + tagline stay legible. */
.brand__logo {
  display: block;
  height: 104px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.04); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.1rem; font-weight: 900; }
.brand__text small { font-size: .68rem; color: var(--ink-soft); letter-spacing: .4px; font-family: var(--font-en); }

.nav { display: flex; align-items: center; gap: 1.6rem; flex: 1 1 auto; }
.nav__list { display: flex; gap: 1.35rem; }
.nav__cta { margin-inline-start: auto; }
.nav__link {
  position: relative; font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: color .3s;
}
.nav__link::after {
  content: ''; position: absolute; inset-block-end: -6px; inset-inline-start: 0;
  width: 0; height: 2px; border-radius: 2px; background: var(--grad-brand);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--sand-700); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: #fff; box-shadow: var(--shadow-sm);
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--sand-700); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. Sections ──────────────────────────────────────────────────────── */

/* Hero */
.hero { padding-block: calc(var(--header-h) + 4rem) 5rem; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__home-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1.2rem; padding: .55rem 1.2rem;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--sand-200); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 700; color: var(--sand-700);
}
.hero__title { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -2px; margin-bottom: 1.1rem; }
.hero__lead strong { color: var(--sand-700); font-weight: 800; }
.hero__lead { color: var(--ink-soft); max-width: 54ch; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-block: 2rem 2.6rem; }

.hero__stats { display: flex; gap: clamp(1rem, 3vw, 2.6rem); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--sand-700); line-height: 1.1; }
.hero__stats span { font-size: .85rem; color: var(--ink-soft); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero__ring {
  position: absolute; width: min(430px, 85%); aspect-ratio: 1;
  border-radius: 50%; border: 1.5px dashed var(--sand-300);
  animation: spin 44s linear infinite;
}
.hero__card {
  position: relative; z-index: 1;
  width: min(340px, 80%); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--sand-100) 65%, var(--sand-200));
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  overflow: visible;               /* badges sit outside the circle */
}

/* Hero photo — the landscape shot is cropped to the circle; the offset keeps
   the cups (lower-centre of the frame) inside the visible disc. */
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.6);
}

.hero__badge {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  box-shadow: var(--shadow); font-size: .82rem; font-weight: 700;
  white-space: nowrap;
}
.hero__badge--1 { inset-block-start: 6%;  inset-inline-start: -6%;  animation: floaty 5s var(--ease) infinite; }
.hero__badge--2 { inset-block-start: 42%; inset-inline-end: -12%;   animation: floaty 6s var(--ease) infinite .6s; }
.hero__badge--3 { inset-block-end: 4%;    inset-inline-start: 2%;   animation: floaty 5.5s var(--ease) infinite 1.2s; }

.hero__scroll { display: grid; justify-items: center; gap: .5rem; margin-top: 3rem; color: var(--ink-soft); font-size: .8rem; }
.hero__mouse {
  width: 24px; height: 38px; border-radius: 14px; border: 2px solid var(--sand-400);
  position: relative;
}
.hero__mouse::after {
  content: ''; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 7px; border-radius: 3px; background: var(--sand-500);
  transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite;
}

/* Marquee */
.marquee {
  overflow: hidden; padding-block: 1rem;
  background: var(--grad-brand); color: #fff;
  transform: rotate(-1.2deg); margin-block: 1rem;
}
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  animation: marquee 34s linear infinite;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.marquee__track i { color: var(--sand-300); font-style: normal; }

/* About */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__photo {
  border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/5;
  background: var(--grad-soft);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  height: 100%; display: grid; place-content: center; text-align: center; gap: .5rem;
  color: var(--ink-soft); font-size: .9rem;
}
.about__placeholder span { font-size: 3rem; }
.about__placeholder code { background: var(--sand-100); padding: .15rem .45rem; border-radius: 6px; font-size: .8rem; }
.about__chip {
  position: absolute; inset-block-end: -1.4rem; inset-inline-start: -1.4rem;
  background: #fff; border-radius: var(--radius); padding: 1rem 1.4rem;
  box-shadow: var(--shadow); text-align: center;
}
.about__chip strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--sand-700); line-height: 1; }
.about__chip span { font-size: .78rem; color: var(--ink-soft); }

.checklist { display: grid; gap: .7rem; margin-block: 1.6rem 2rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; }
.checklist li::before {
  content: '✓'; flex: none;
  width: 24px; height: 24px; margin-top: .28rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-100); color: var(--sand-700);
  font-size: .78rem; font-weight: 900;
}

/* Benefits cards */
.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2.2rem 1.6rem 2.6rem; text-align: center;
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
/* top accent rule */
.card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
/* soft radial wash that blooms from the icon on hover */
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, var(--sand-100), transparent 65%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sand-300); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after  { opacity: 1; }

.card__icon {
  position: relative;
  display: grid; place-items: center; margin-inline: auto; margin-bottom: 1.2rem;
  width: 88px; height: 88px; border-radius: 50%; font-size: 2.1rem;
  background: radial-gradient(circle at 35% 30%, #fff, var(--sand-100));
  box-shadow: inset 0 0 0 1px var(--sand-200), var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* expanding halo ring */
.card__icon::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--sand-300);
  opacity: 0; transform: scale(.86);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover .card__icon { transform: translateY(-4px) scale(1.06); box-shadow: inset 0 0 0 1px var(--sand-300), var(--shadow); }
.card:hover .card__icon::after { opacity: 1; transform: scale(1); }

.card__title { font-size: var(--fs-h3); color: var(--sand-700); margin-bottom: .5rem; }
.card__text { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.card__heart {
  position: absolute; bottom: .9rem; left: 50%;
  transform: translateX(-50%); color: var(--sand-400); font-size: .9rem;
  transition: color var(--dur), transform var(--dur) var(--ease);
}
.card:hover .card__heart { color: var(--sand-600); transform: translateX(-50%) scale(1.25); }

.quote {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 760px;
  position: relative; text-align: center; overflow: hidden;
  padding: 3rem 2.6rem;
  background: var(--grad-soft);
  border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 700; line-height: 2;
  box-shadow: var(--shadow);
}
.quote::before {
  content: ''; position: absolute; top: 0; inset-inline: 15%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--grad-brand);
}
.quote__mark { position: absolute; font-size: 3.4rem; color: var(--sand-300); line-height: 1; }
.quote__mark { inset-block-start: .6rem; inset-inline-start: 1.4rem; }
.quote__mark--end { inset-block-start: auto; inset-block-end: .2rem; inset-inline-start: auto; inset-inline-end: 1.4rem; }

/* Services / plans (LTR) */
.services { background: linear-gradient(180deg, transparent, rgba(244,233,216,.7), transparent); }
.plans { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 2.2rem 1.9rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan--featured {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  transform: scale(1.03);                 /* lifts the recommended tier */
}
.plan--featured:hover { transform: scale(1.03) translateY(-8px); }
/* subtle sheen in the corner */
.plan--featured::before {
  content: ''; position: absolute; top: -40%; inset-inline-end: -20%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.12); pointer-events: none;
}
.plan--featured .plan__desc, .plan--featured .plan__list li { color: rgba(255,255,255,.86); }
.plan__tag {
  position: absolute; inset-block-start: 1.1rem; inset-inline-end: 1.1rem;
  background: rgba(255,255,255,.2); padding: .25rem .8rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.plan__ico {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.1rem;
  border-radius: 18px; font-size: 1.5rem;
  background: radial-gradient(circle at 35% 30%, #fff, var(--sand-100));
  box-shadow: inset 0 0 0 1px var(--sand-200), var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.plan--featured .plan__ico { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.plan:hover .plan__ico { transform: rotate(-8deg) scale(1.06); }

.plan__name { font-size: 1.5rem; font-weight: 900; margin-bottom: .1rem; }
.plan__name-en {
  font-family: var(--font-en); font-size: 1.02rem; font-style: italic;
  color: var(--sand-500); margin-bottom: .7rem; letter-spacing: .3px;
}
.plan--featured .plan__name-en { color: var(--sand-200); }
.plan__desc { color: var(--ink-soft); font-size: .92rem; }

.plan__price {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  font-size: 2.8rem; font-weight: 900; line-height: 1;
  margin: 1.1rem 0 1.3rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.plan--featured .plan__price { border-color: rgba(255,255,255,.25); }
.plan__price span { font-size: 1.25rem; vertical-align: super; }
.plan__price small { font-size: .82rem; font-weight: 600; opacity: .72; }

/* ── Wet-cupping card: centred head + body-map tier rows ─────────────── */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.plan--wet { padding-inline: 1.6rem; }
.plan--wet .plan__head {
  text-align: center;
  margin-block: 2.4rem 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.plan--wet .plan__name { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.plan--wet .plan__name-en { font-size: 1.15rem; margin-bottom: 1rem; }
.plan--wet .plan__desc { margin: 0 auto; max-width: 34ch; }
/* the icon is absolutely placed, so it must not push the head down */
.plan--wet .plan__ico {
  position: absolute; top: 1.3rem; inset-inline-start: 1.4rem; margin: 0;
  width: 52px; height: 52px;
}

.tiers { display: grid; margin-bottom: 1.8rem; }
.tier {
  display: flex; align-items: center; gap: .9rem;
  padding-block: 1.05rem;
  border-bottom: 1px dashed rgba(255,255,255,.22);
}
.tier:last-child { border-bottom: 0; }

.tier__map { flex: none; width: 42px; height: 50px; color: rgba(255,255,255,.7); }
.tier__dots circle { r: 2.4; fill: var(--sand-300); }
.tier__dots circle:nth-child(odd) { fill: #fff; }

.tier__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.tier__label { font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.tier__desc  { font-size: .82rem; line-height: 1.6; opacity: .78; }

.tier__from { font-size: .78rem; opacity: .8; margin-inline-start: auto; white-space: nowrap; }
/* rows without a "from" label still push the price to the far edge */
.tier__from + .tier__price { margin-inline-start: 0; }
.tier__price {
  flex: none; margin-inline-start: auto;
  min-width: 92px; padding: .7rem .5rem; text-align: center;
  background: #fff; color: var(--sand-700);
  border-radius: 14px;
  font-size: 1.5rem; font-weight: 900; letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(58, 42, 26, .18);
  transition: transform var(--dur) var(--ease);
}
.tier:hover .tier__price { transform: scale(1.05); }

/* tier rows outside the featured card keep the light theme */
.plan:not(.plan--featured) .tier { border-bottom-color: var(--line); }
.plan:not(.plan--featured) .tier__map { color: var(--sand-400); }
.plan:not(.plan--featured) .tier__dots circle { fill: var(--sand-500); }
.plan:not(.plan--featured) .tier__dots circle:nth-child(odd) { fill: var(--sand-700); }
.plan:not(.plan--featured) .tier__price { box-shadow: inset 0 0 0 1.5px var(--sand-200); }

/* "includes transport" marker */
.plan__incl {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: 1.4rem; padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--sand-100); color: var(--sand-700);
  font-size: .8rem; font-weight: 800;
}
.plan--featured .plan__incl { background: rgba(255,255,255,.16); color: #fff; }
.plan--wet .plan__incl { margin-top: 1rem; }

.plan__list { display: grid; gap: .6rem; margin-bottom: 1.8rem; font-size: .92rem; }
.plan__list li { display: flex; gap: .55rem; align-items: center; }
.plan__list li::before { content: '✦'; color: var(--sand-400); }
.plan--featured .plan__list li::before { color: var(--sand-200); }
.plan .btn { margin-top: auto; }

/* Pricing footnote */
.price-note {
  display: flex; align-items: flex-start; gap: .9rem;
  max-width: 860px; margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1.3rem 1.7rem;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-inline-start: 4px solid var(--sand-500);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft); font-size: .93rem; line-height: 1.9;
}
.price-note b { color: var(--sand-700); }
.price-note__ico { flex: none; font-size: 1.1rem; margin-top: .2rem; }
/* the featured card's white button is styled with the other button variants */

/* ── Home service band ───────────────────────────────────────────────── */
.homecare {
  position: relative; overflow: hidden;
  margin-block: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--sand-900), var(--sand-700) 55%, var(--sand-800));
  color: rgba(255,255,255,.9);
}
/* faint arabesque-style corner glows */
.homecare::before, .homecare::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,110,.22), transparent 70%);
}
.homecare::before { width: 460px; height: 460px; top: -180px; inset-inline-start: -120px; }
.homecare::after  { width: 380px; height: 380px; bottom: -170px; inset-inline-end: -110px; }

.homecare__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.section__title--plain { padding-bottom: 0; }
.section__title--plain::before, .section__title--plain::after { display: none; }
.homecare .section__title { color: #fff; }

.text-gold {
  background: linear-gradient(120deg, #e8c98a, #c9a227 55%, #f0dcae);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill--gold {
  background: linear-gradient(120deg, #c9a227, #a8841c);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.pill--gold::before, .pill--gold::after { color: rgba(255,255,255,.75); }

.homecare__lead { font-size: 1.06rem; max-width: 52ch; }

.homecare__features { display: grid; gap: .85rem; margin-block: 1.8rem 2.2rem; }
.homecare__features li { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: #fff; }
.homecare__features span {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(212,175,110,.2); color: #e8c98a;
  font-size: .85rem; font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(232,201,138,.35);
}

.homecare__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.btn--gold {
  background: linear-gradient(120deg, #d4af6e, #c9a227);
  color: #4a2410;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, #f0dcae, #d4af6e);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.36); }
.btn--gold:hover::after { opacity: 1; }

.homecare__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid rgba(232,201,138,.5);
  padding-bottom: .2rem;
  transition: color .3s, border-color .3s;
}
.homecare__phone:hover { color: #e8c98a; border-color: #e8c98a; }

/* right-hand panel */
.homecare__panel {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}
.homecare__price { text-align: center; padding-bottom: 1.6rem; border-bottom: 1px dashed rgba(255,255,255,.25); }
.homecare__price small { display: block; font-size: .88rem; opacity: .85; }
.homecare__price strong {
  display: block; margin-block: .3rem;
  font-size: clamp(3rem, 7vw, 4.2rem); font-weight: 900; line-height: 1;
  background: linear-gradient(120deg, #f0dcae, #c9a227);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.homecare__price-note { display: block; font-size: .82rem; opacity: .8; }

.areas { margin-top: 1.6rem; }
.areas__title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: #fff; margin-bottom: .9rem; }
.areas__list { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.areas__list li {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.09);
  font-weight: 700; color: #fff;
}
.areas__list li::before { content: '✦'; color: #e8c98a; font-size: .8rem; }
.areas__more { margin: 0; font-size: .84rem; line-height: 1.8; opacity: .8; }

/* Process steps */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  position: relative; padding: 2.2rem 1.6rem 1.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
/* dotted connector to the next step (hidden on the last one and when wrapped) */
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 3.4rem; inset-inline-end: -1.4rem;
  width: 1.4rem; border-top: 2px dotted var(--sand-300);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sand-300); }
.step__num {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 18px;
  background: var(--grad-brand); color: #fff;
  font-weight: 900; font-size: 1.05rem;
  box-shadow: var(--shadow-brand);
  transition: transform var(--dur) var(--ease);
}
.step:hover .step__num { transform: rotate(-8deg) scale(1.06); }
.step__title { font-size: var(--fs-h3); color: var(--sand-700); }
.step__text { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* Testimonials (LTR) */
.testi-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.testi {
  position: relative; margin: 0; padding: 2.2rem 1.9rem;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
/* oversized quote glyph as a watermark */
.testi::before {
  content: '"'; position: absolute; top: .4rem; inset-inline-end: 1.4rem;
  font-family: var(--font-en); font-size: 5rem; line-height: 1;
  color: var(--sand-200); pointer-events: none;
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sand-300); }
.testi__stars { color: #f0a830; letter-spacing: 3px; margin-bottom: .8rem; }
.testi blockquote { margin: 0 0 1.4rem; font-family: var(--font-en); font-size: 1.2rem; font-style: italic; line-height: 1.6; color: var(--ink); }
.testi figcaption { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.testi figcaption small { color: var(--ink-soft); }
.testi__avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-weight: 800;
}

/* FAQ accordion */
.accordion { display: grid; gap: .85rem; }
.acc {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
/* Brand accent rail on the reading edge — grows when the panel opens */
.acc::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: var(--grad-brand);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur) var(--ease);
}
.acc:hover { border-color: var(--sand-300); }
.acc.is-open {
  border-color: var(--sand-300);
  background: linear-gradient(180deg, #fff, var(--sand-50));
  box-shadow: var(--shadow);
}
.acc.is-open::before { transform: scaleY(1); }

.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.35rem 1.6rem; text-align: start;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
  transition: color .3s;
}
.acc__btn:hover, .acc.is-open .acc__btn { color: var(--sand-700); }

.acc__icon {
  flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand-100);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* NOTE: physical `left/top` on purpose — logical `inset-inline-start`
   flips the anchor in RTL and breaks the translate(-50%) centering. */
.acc__icon::before, .acc__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 13px; height: 2px; margin: -1px 0 0 -6.5px;
  background: var(--sand-700); border-radius: 2px;
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon { background: var(--sand-700); transform: rotate(135deg); }
.acc.is-open .acc__icon::before,
.acc.is-open .acc__icon::after { background: #fff; }

.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > p {
  overflow: hidden; margin: 0;
  padding-inline: 1.6rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.95;
  transition: padding var(--dur) var(--ease);
}
.acc.is-open .acc__panel > p { padding-block: .2rem 1.5rem; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contact__list { display: grid; gap: 1.1rem; margin-block: 2rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__ico {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.15rem;
  background: #fff; box-shadow: var(--shadow-sm);
}
.contact__list b { display: block; font-size: .85rem; color: var(--sand-700); }
.contact__list a, .contact__list span { color: var(--ink-soft); font-size: .95rem; transition: color .3s; }
.contact__list a:hover { color: var(--sand-700); }

.socials { display: flex; gap: .6rem; }
.social {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--sand-700); font-size: .8rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur);
}
.social:hover { transform: translateY(-4px); background: var(--grad-brand); color: #fff; }

/* Form */
.form {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: var(--grad-brand);
}
.form__title {
  font-size: 1.4rem; color: var(--sand-700); margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 700; margin-bottom: .4rem; }
.field label span { color: var(--sand-600); }

.field input, .field select, .field textarea {
  padding: .85rem 1.1rem;
  background: var(--sand-50);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #b4a189; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--sand-400); box-shadow: 0 0 0 4px rgba(210, 180, 140, .18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d9455b; background: #fdf6ef; }
.field__error {
  min-height: 1.1em; margin-top: .3rem; font-size: .8rem; color: #c62d43;
  display: flex; align-items: center; gap: .3rem;
}
.field__error:not(:empty)::before { content: '⚠'; font-size: .85em; }

/* select: replace the OS arrow with a brand chevron (RTL-aware side) */
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a81e4b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1.1rem center;
  background-size: 12px;
  /* the chevron sits on the inline-END edge in both directions */
  padding-inline-end: 2.6rem; padding-inline-start: 1.1rem;
}
[dir="ltr"] .field select { background-position: right 1.1rem center; }

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-soft); margin-block: .4rem .3rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .28rem; accent-color: var(--sand-700); flex: none; }

.hp { position: absolute !important; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }

.form__status { margin: 1rem 0 0; font-size: .92rem; font-weight: 700; text-align: center; min-height: 1.4em; }
.form__status.is-ok    { color: #1e8a5f; }
.form__status.is-error { color: #d9455b; }

.disclaimer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1.2rem 1.6rem; border-radius: var(--radius);
  background: var(--sand-100); border: 1px dashed var(--sand-300);
  color: var(--ink-soft); font-size: .9rem; text-align: center; justify-content: center;
}

/* Footer */
.footer {
  position: relative; margin-top: var(--space-section);
  background: var(--grad-brand); color: rgba(255,255,255,.85);
}
/* thin gradient hairline capping the footer */
.footer::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--sand-400), var(--sand-200), var(--sand-400));
}
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__brand strong { display: block; color: #fff; font-size: 1.5rem; font-weight: 900; margin-bottom: .7rem; }
.footer__brand p { max-width: 40ch; font-size: .93rem; }
.footer ul { display: grid; gap: .55rem; font-size: .93rem; }
.footer a { transition: color .3s, padding .3s; }
.footer a:hover { color: #fff; padding-inline-start: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center;
  padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.18);
  font-size: .84rem;
}
.footer__bottom p { margin: 0; }
.footer__note { opacity: .75; }

/* Floating actions */
.wa-float {
  position: fixed; inset-block-end: 1.4rem; inset-inline-start: 1.4rem; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform var(--dur) var(--ease);
  animation: floaty 4s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.1); }

.to-top {
  position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity var(--dur), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ── 6. Motion ────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.float { animation: floaty 5s var(--ease) infinite; }

@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { box-shadow: 0 0 0 5px rgba(188,151,103,.18); } 50% { box-shadow: 0 0 0 10px rgba(188,151,103,0); } }
@keyframes drift   { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vh) scale(1.14); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,14px); } }
@keyframes fall {
  0%   { transform: translateY(-6vh) rotate(0deg); opacity: 0; }
  10%  { opacity: .6; }
  100% { transform: translateY(108vh) rotate(420deg); opacity: 0; }
}

/* ── 7. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid, .about__grid, .contact__grid, .homecare__grid { grid-template-columns: 1fr; }
  /* the step row wraps here, so the connectors would point at nothing */
  .step:not(:last-child)::after { display: none; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-8px); }
  .hero__visual { order: -1; min-height: 320px; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  /* tame the tight hero letter-spacing before it clips on narrow screens */
  .hero__title { letter-spacing: -1px; }
  /* trim the big vertical rhythm so phones don't feel like endless scrolling */
  :root { --space-section: clamp(3.2rem, 8vw, 5rem); }
  .hero { padding-block: calc(var(--header-h) + 2.4rem) 3.2rem; }
  .hero__visual { min-height: 300px; }
  /* pull the floating badges inward so they can't spill past the viewport */
  .hero__badge { font-size: .76rem; padding: .5rem .8rem; }
  .hero__badge--1 { inset-inline-start: 0; }
  .hero__badge--2 { inset-inline-end: -4%; }
  .hero__badge--3 { inset-inline-start: 4%; }
  .marquee__track { font-size: .92rem; gap: 1.6rem; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 5% 2rem;
    background: rgba(253, 247, 239, .97); backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(122, 92, 58, .12);
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path .45s var(--ease), opacity .3s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
    .nav__cta { margin-top: 1.2rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  :root { --header-h: 78px; }
  .brand__logo { height: 60px; }
  /* keep badges inside the disc so they never clip on the frame edge */
  .hero__badge--1 { inset-inline-start: 2%; }
  .hero__badge--2 { inset-inline-end: 0; }
  .hero__badge--3 { inset-inline-start: 6%; }
  .field-row { grid-template-columns: 1fr; }
  /* stop long emails / links from forcing the page wider */
  .contact__list a, .contact__list span { word-break: break-word; overflow-wrap: anywhere; }
  .plan__price { font-size: 2.4rem; }
  /* let the two footer-bottom lines stack cleanly */
  .footer__bottom { justify-content: center; text-align: center; }
  /* tier rows get tight on phones — drop the body map, shrink the chip */
  .tier__map { display: none; }
  .tier { gap: .7rem; }
  .tier__price { min-width: 78px; font-size: 1.25rem; padding: .55rem .4rem; }
  .tier__from { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .quote { padding-inline: 1.6rem; }
  .about__chip { inset-inline-start: -.6rem; inset-block-end: -1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* three stat blocks in an even row instead of an uneven wrap */
  .hero__stats { justify-content: space-between; gap: 1rem; }
  .hero__title { letter-spacing: -.5px; }
  /* full-width call-to-action buttons everywhere they appear */
  .homecare__actions .btn { flex: 1 1 100%; }
}

/* ── Small phones (≤400px) ────────────────────────────────────────────── */
@media (max-width: 400px) {
  .container, .container--narrow { width: 90%; }
  .brand__text small { display: none; }        /* keep the logo compact */
  .hero__stats { gap: .6rem; }
  .hero__stats strong { font-size: 1.5rem; }
  .hero__stats span { font-size: .74rem; }
  /* stack the price chip under the tier text so nothing gets squeezed */
  .tier { flex-wrap: wrap; }
  .tier__price { min-width: 68px; font-size: 1.15rem; }
  .btn--lg { min-height: 54px; font-size: 1rem; }
  .quote { padding-inline: 1.1rem; }
  /* one floating badge is plenty on the smallest screens — the rest crowd the photo */
  .hero__badge--2 { display: none; }
  .plan { padding: 1.9rem 1.4rem; }
  .plan--wet { padding-inline: 1.2rem; }
  .plan__price { font-size: 2.1rem; }
  .form { padding: 1.4rem 1.2rem; }
  /* nudge the floating buttons in so they don't hug the very edge */
  .wa-float, .to-top { inset-block-end: 1rem; }
  .wa-float { inset-inline-start: 1rem; width: 52px; height: 52px; }
  .to-top { inset-inline-end: 1rem; }
}

/* ── Accessibility: reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .petals { display: none; }
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
  .header, .nav, .wa-float, .to-top, .marquee, .bg-decor, .petals, .hero__scroll { display: none !important; }
  body { background: #fff; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
