/* ===================================
   AVINOAM HATTAL - MENTAL COACHING
   "Elevated Warm" - editorial, cinematic
   Hebrew RTL Landing Page
   =================================== */

/* ===================================
   TOKENS
   =================================== */
:root {
  /* Palette */
  --bg: #F8F3EC;
  --bg-2: #EFE5D8;
  --card: #FFFDF9;
  --text: #2B2B2B;
  --text-strong: #1A1A1A;
  --brown: #7A5C44;
  --brown-2: #A17C5B;
  --ink: #1E1611;
  --ink-2: #2A1F18;
  --cream: #F5EDE2;
  --glow: #D9A866;
  --muted: #6B6B6B;
  --line: #E3D8CA;
  --ok: #267C2C;
  --err: #A82222;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Type */
  --font-display: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  --spacing-3xl: 9rem;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Depth */
  --shadow-sm: 0 2px 10px rgba(58, 38, 22, 0.06);
  --shadow-md: 0 14px 40px -12px rgba(58, 38, 22, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(58, 38, 22, 0.3);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
}

/* ===================================
   RESET & BASE
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  overflow-x: clip;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

img { display: block; }

::selection {
  background: var(--glow);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-strong);
}

p { margin-bottom: var(--spacing-md); }

em {
  font-style: normal;
  color: var(--brown);
}

strong {
  font-weight: 700;
  color: var(--text-strong);
}

a {
  color: var(--brown);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover { color: var(--brown-2); }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
  border-radius: 6px;
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brown-2);
  text-underline-offset: 4px;
}

/* ===================================
   ATMOSPHERE
   =================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.14 0 0 0 0 0.08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================================
   LAYOUT
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--spacing-lg);
}

@media (max-width: 768px) {
  .container { padding-inline: 1.25rem; }
}

.section {
  position: relative;
  padding-block: var(--spacing-3xl);
}

@media (max-width: 768px) {
  .section { padding-block: var(--spacing-2xl); }
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--spacing-xl);
}

.section__head--center {
  align-items: center;
  text-align: center;
}

.section__num {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brown-2);
}

.section__num::after {
  content: '';
  width: 48px;
  height: 1px;
  background: currentColor;
}

.section__title {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* SplitText line masks */
.split-line { padding-bottom: 0.08em; }

/* ===================================
   SKIP LINK
   =================================== */
.skip-link {
  position: absolute;
  top: -100px;
  right: var(--spacing-md);
  z-index: 300;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  border-radius: var(--radius-full);
}

.skip-link:focus { top: var(--spacing-md); color: var(--cream); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================================
   PRELOADER
   =================================== */
.preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
}

.show-preloader .preloader {
  display: flex;
  pointer-events: none;
  animation: curtain 0.9s var(--ease-in-out) 1s forwards;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preloader__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  animation: preloader-in 0.8s var(--ease-out) both;
}

.preloader__line {
  width: 160px;
  height: 1px;
  background: var(--glow);
  transform-origin: center;
  animation: line-grow 0.6s var(--ease-in-out) 0.3s both;
}

.preloader__tag {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  color: var(--glow);
  animation: fade-in 0.4s ease 0.55s both;
}

@keyframes curtain {
  to { transform: translateY(-100%); visibility: hidden; }
}

@keyframes preloader-in {
  from { opacity: 0; transform: translateY(40%); }
}

@keyframes line-grow {
  from { transform: scaleX(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  transition: transform 500ms var(--ease-out), background-color 300ms ease, box-shadow 300ms ease;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 243, 236, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.header.scrolled::before { opacity: 1; }
.header.scrolled { box-shadow: 0 1px 0 rgba(122, 92, 68, 0.12); }
.header.is-hidden { transform: translateY(-100%); }

.header__container {
  position: relative;
  /* keep header actions clear of the NagishLi tab pinned top-left */
  padding-left: max(var(--spacing-lg), min(132px, calc(132px - (100vw - var(--container-max)) / 2)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  min-height: var(--header-height);
}

.header__logo img {
  height: 42px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  padding-block: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active { color: var(--brown); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--card);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  right: 13px;
  left: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 350ms var(--ease-out);
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to left, var(--brown), var(--glow));
  transform: scaleX(0);
  transform-origin: right;
}

@media (max-width: 1080px) {
  .header__nav { gap: 1.1rem; }
  .nav-link { font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }

  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    padding: var(--header-height) 2rem 2rem;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 600ms var(--ease-in-out), visibility 0s 600ms;
  }

  .menu-open .header__nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 600ms var(--ease-in-out), visibility 0s;
  }

  .header__nav .nav-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 500;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 400ms ease, transform 500ms var(--ease-out);
  }

  .menu-open .header__nav .nav-link {
    opacity: 1;
    transform: none;
  }

  .menu-open .header__nav .nav-link:nth-child(1) { transition-delay: 150ms; }
  .menu-open .header__nav .nav-link:nth-child(2) { transition-delay: 190ms; }
  .menu-open .header__nav .nav-link:nth-child(3) { transition-delay: 230ms; }
  .menu-open .header__nav .nav-link:nth-child(4) { transition-delay: 270ms; }
  .menu-open .header__nav .nav-link:nth-child(5) { transition-delay: 310ms; }
  .menu-open .header__nav .nav-link:nth-child(6) { transition-delay: 350ms; }
  .menu-open .header__nav .nav-link:nth-child(7) { transition-delay: 390ms; }

  .header__logo { position: relative; z-index: 2; }
  .header__actions { position: relative; z-index: 2; }
  .menu-open.header::before { opacity: 0; }
}

@media (max-width: 480px) {
  .header__actions .btn--whatsapp span { display: none; }
  .header__actions .btn--whatsapp { padding: 0.65rem; }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-body);
  font-size: 1.075rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms var(--ease-out), background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 300ms ease;
}

.btn:active { transform: scale(0.97); }

.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 30px -10px rgba(30, 22, 17, 0.55);
}

/* Warm fill that sweeps in on hover */
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--brown) 0%, var(--brown-2) 100%);
  clip-path: inset(0 0 0 100%);
  transition: clip-path 450ms var(--ease-out);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30, 22, 17, 0.2);
}

.btn--ghost svg { transition: transform 300ms var(--ease-out); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: white;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { color: white; box-shadow: 0 18px 40px -12px rgba(122, 92, 68, 0.6); }
  .btn--primary:hover::before { clip-path: inset(0 0 0 0); }
  .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
  .btn--ghost:hover svg { transform: translateX(-4px); }
  .btn--outline:hover { border-color: var(--brown); color: var(--brown); }
  .btn--whatsapp:hover { background: var(--whatsapp-dark); color: white; }
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.925rem;
}

.btn--block { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn__loading { display: none; }
.btn.loading .btn__text { opacity: 0; }
.btn.loading .btn__loading { display: block; position: absolute; }

/* ===================================
   FLOATING WHATSAPP
   =================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: 0 14px 36px -8px rgba(18, 140, 126, 0.55);
  transition: transform 200ms var(--ease-out);
}

.floating-whatsapp:hover { color: white; }
.floating-whatsapp:active { transform: scale(0.94); }

.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--whatsapp);
  opacity: 0;
}

.floating-whatsapp.nudge::after { animation: ring 1.6s var(--ease-out) 3; }

@keyframes ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .floating-whatsapp:hover { transform: scale(1.08); }
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 1rem;
    left: 1rem;
    width: 54px;
    height: 54px;
  }
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  overflow: clip;
}

.hero__light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__light--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -120px;
  background: rgba(217, 168, 102, 0.28);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__light--2 {
  width: 440px;
  height: 440px;
  bottom: -160px;
  left: 20%;
  background: rgba(161, 124, 91, 0.2);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 40px) scale(1.15); }
}

.hero__container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--spacing-xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brown);
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 4px rgba(217, 168, 102, 0.25);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero__title-main {
  display: block;
  font-size: clamp(3.8rem, 10.5vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title-sub {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

.hero__title-sub em {
  color: var(--brown);
  font-weight: 500;
}

.hero__subtitle {
  max-width: 34ch;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--brown);
}

.hero__intro {
  max-width: 46ch;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__trust li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--brown-2);
}

/* Portrait */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
}

.hero__frame {
  position: relative;
  aspect-ratio: 560 / 696;
  border-radius: 58% 42% 50% 50% / 46% 50% 50% 54%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: breathe 14s ease-in-out infinite alternate;
  will-change: border-radius;
}

.hero__frame picture,
.hero__portrait {
  width: 100%;
  height: 100%;
}

.hero__portrait { object-fit: cover; }

@keyframes breathe {
  0% { border-radius: 58% 42% 50% 50% / 46% 50% 50% 54%; }
  50% { border-radius: 46% 54% 44% 56% / 54% 44% 56% 46%; }
  100% { border-radius: 52% 48% 58% 42% / 44% 56% 44% 56%; }
}

.hero__ring {
  position: absolute;
  inset: -22px;
  border: 1px solid rgba(161, 124, 91, 0.45);
  border-radius: 48% 52% 55% 45% / 52% 45% 55% 48%;
  animation: spin 40s linear infinite;
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  bottom: 6%;
  left: -6%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.hero__badge-ring {
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.hero__badge-ring text {
  /* textPath bidi differs between engines: the markup holds the Hebrew pre-reversed, laid out as-is */
  direction: ltr;
  unicode-bidi: bidi-override;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  fill: var(--cream);
}

.hero__badge-core {
  position: absolute;
  inset: 50%;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 20px var(--glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--brown);
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(122, 92, 68, 0.2);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brown);
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 6rem; }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero__visual {
    order: -1;
    width: min(72%, 340px);
  }

  .hero__badge { width: 96px; height: 96px; left: -10%; }
  .hero__badge-ring text { font-size: 11px; }
  .hero__scroll { display: none; }
}

/* Hero entrance: pure CSS so it starts at first paint, independent of the JS libraries.
   On a first visit it waits for the preloader curtain (--intro). */
.show-preloader { --intro: 1.25s; }

.hero .mask {
  display: inline-block;
  /* clip only the bottom edge, so ascenders (ל) stay visible while words rise */
  clip-path: inset(-60% -15% 0 -15%);
  padding-bottom: 0.06em;
}

.js-motion .hero .rise {
  display: inline-block;
  animation: rise 1.25s var(--ease-out) both;
  animation-delay: calc(var(--intro, 0s) + 0.2s + var(--d, 0) * 0.12s);
}

.js-motion [data-hero="eyebrow"] {
  animation: fade-up 0.9s var(--ease-out) both;
  animation-delay: calc(var(--intro, 0s) + 0.1s);
}

.js-motion [data-hero="fade"] {
  animation: fade-up 1.1s var(--ease-out) both;
  animation-delay: calc(var(--intro, 0s) + 0.7s + var(--d, 0) * 0.09s);
}

.js-motion .hero__frame {
  animation:
    reveal-up 1.6s var(--ease-in-out) calc(var(--intro, 0s)) both,
    breathe 14s ease-in-out infinite alternate;
}

.js-motion .hero__portrait {
  animation: settle 2s var(--ease-out) calc(var(--intro, 0s) + 0.2s) both;
}

.js-motion .hero__ring {
  animation:
    fade-in 1.6s ease calc(var(--intro, 0s) + 0.5s) both,
    spin 40s linear infinite;
}

.js-motion [data-hero="badge"] {
  animation: badge-in 1.4s var(--ease-out) calc(var(--intro, 0s) + 1s) both;
}

.js-motion .hero__scroll span {
  animation: fade-in 1s ease calc(var(--intro, 0s) + 1.4s) both;
}

@keyframes rise {
  from { transform: translateY(115%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
}

/* Negative insets leave room for the drop shadow once revealed */
@keyframes reveal-up {
  from { clip-path: inset(100% -20% -20% -20%); }
  to { clip-path: inset(-20% -20% -20% -20%); }
}

@keyframes settle {
  from { transform: scale(1.35); }
}

@keyframes badge-in {
  from { opacity: 0; transform: scale(0.6) rotate(-120deg); }
}

/* ===================================
   STORY: STUCK -> MOVING
   =================================== */
.story {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: clip;
}

.story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(217, 168, 102, 0.12), transparent 70%);
  pointer-events: none;
}

.story__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) 1.25rem;
  text-align: center;
}

.story__lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1200px, 120vw);
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.story__lines path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story__tangle {
  stroke: rgba(161, 124, 91, 0.55);
  stroke-width: 2;
}

.story__flow {
  stroke: var(--glow);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(217, 168, 102, 0.7));
}

/* Without motion: a calm stacked layout, with the resolved line between the two halves */
html:not(.js-motion) .story__tangle { display: none; }
html:not(.js-motion) .story__block--before { order: 1; }
html:not(.js-motion) .story__lines { position: static; order: 2; width: 100%; max-width: 900px; margin-inline: auto; transform: none; }
html:not(.js-motion) .story__block--after { order: 3; }

.story__block { position: relative; }

.story__lead {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 400;
  color: rgba(245, 237, 226, 0.75);
}

.story__word {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 21vw, 17rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.story__word span { display: inline-block; }

.story__word--stuck { color: rgba(245, 237, 226, 0.9); }

.story__word--move {
  color: var(--glow);
  text-shadow: 0 0 60px rgba(217, 168, 102, 0.35);
}

.story__caption {
  max-width: 30ch;
  margin: 1rem auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(245, 237, 226, 0.65);
}

/* Motion: overlapping, pinned stage */
.js-motion .story__stage {
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 1.25rem;
}

.js-motion .story__block {
  grid-area: 1 / 1;
  z-index: 1;
}

.js-motion .story__lines { z-index: 0; }

/* ===================================
   FIT
   =================================== */
.fit__list {
  list-style: none;
  counter-reset: fit;
}

.fit-row {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: var(--spacing-md);
  padding-block: 2rem;
  cursor: default;
}

.fit-row::before,
.fit-row:last-child::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(122, 92, 68, 0.25);
  transform-origin: right;
}

.fit-row::before { top: 0; transform: scaleX(var(--line, 1)); }
.fit-row:last-child::after { bottom: 0; }

.fit-row__num {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brown-2);
}

.fit-row__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  transition: transform 500ms var(--ease-out), color 300ms ease;
}

.fit-row__icon {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--brown);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 600ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .fit-row:hover .fit-row__text { transform: translateX(-14px); color: var(--brown); }
  .fit-row:hover .fit-row__icon { transform: rotate(-12deg) scale(1.1); }
}

@media (max-width: 640px) {
  .fit-row { grid-template-columns: 2.5rem 1fr 44px; gap: 0.75rem; padding-block: 1.5rem; }
  .fit-row__icon { width: 44px; height: 44px; }
}

/* ===================================
   CARD (paper)
   =================================== */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(122, 92, 68, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===================================
   OFFER
   =================================== */
.offer__bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.offer__main {
  grid-row: 1 / 3;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink);
  color: var(--cream);
  border: none;
  overflow: hidden;
}

.offer__label {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--glow);
  border: 1px solid rgba(217, 168, 102, 0.4);
  border-radius: var(--radius-full);
}

.offer__heading {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 500;
  color: var(--cream);
}

.offer__list {
  position: relative;
  z-index: 1;
  list-style: none;
}

.offer__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  border-top: 1px solid rgba(245, 237, 226, 0.12);
}

.offer__bullet {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 14px rgba(217, 168, 102, 0.8);
}

.offer__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 168, 102, 0.35), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.offer__bonus {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  transition: transform 400ms var(--ease-out), box-shadow 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .offer__bonus:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}

.offer__bonus-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

/* WhatsApp typing bubble */
.offer__bubble {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(37, 211, 102, 0.12);
  border-radius: 22px 22px 22px 6px;
}

.offer__bubble span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--whatsapp-dark);
  animation: typing 1.3s ease-in-out infinite;
}

.offer__bubble span:nth-child(2) { animation-delay: 0.15s; }
.offer__bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Phone with ripples */
.offer__phone {
  position: relative;
  align-self: flex-start;
  width: 56px;
  height: 56px;
}

.offer__phone svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--brown);
  stroke-width: 2;
  stroke-linecap: round;
}

.offer__wave {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--brown-2);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 2.6s var(--ease-out) infinite;
}

.offer__wave + .offer__wave { animation-delay: 1.3s; }

@keyframes ripple {
  0% { transform: scale(0.7); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.offer__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: var(--spacing-xl);
}

@media (max-width: 820px) {
  .offer__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .offer__main { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 480px) {
  .offer__bento { grid-template-columns: 1fr; }
}

/* ===================================
   RESULTS
   =================================== */
.results {
  background: var(--bg-2);
  overflow: clip;
}

.results__statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.results__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.results__line:nth-child(2) { color: var(--brown); }

.results__line:nth-child(3) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.results__text {
  max-width: 34ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.5;
  text-align: center;
}

/* ===================================
   ABOUT
   =================================== */
.about__container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: var(--spacing-2xl);
}

.about__image {
  position: relative;
}

.about__frame {
  aspect-ratio: 500 / 585;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__frame picture,
.about__portrait {
  width: 100%;
  height: 100%;
}

.about__portrait {
  object-fit: cover;
}

.about__caption {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--brown-2);
  text-align: center;
}

.about__mission {
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.about__mission em { color: var(--brown); font-weight: 700; }

.about__quote {
  position: relative;
  padding-right: 1.75rem;
  border-right: 2px solid var(--glow);
}

.about__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--brown);
}

@media (max-width: 900px) {
  .about__container { grid-template-columns: 1fr; gap: var(--spacing-xl); }
  .about__image { width: min(80%, 380px); margin-inline: auto; }
}

/* ===================================
   CERTIFICATIONS
   =================================== */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  transition: transform 400ms var(--ease-out), box-shadow 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .cert-card:hover .cert-card__mark { transform: rotate(-10deg); }
}

.cert-card__mark {
  width: 64px;
  height: 64px;
  fill: rgba(217, 168, 102, 0.14);
  stroke: var(--brown);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 600ms var(--ease-out);
}

.cert-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

.cert-card__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  direction: rtl;
}

.certs__helper {
  max-width: 60ch;
  margin: var(--spacing-xl) auto 0;
  font-size: 1.2rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .certs__grid { gap: 0.75rem; }
  .cert-card { padding: 1.5rem 1.1rem; gap: 1rem; }
  .cert-card__mark { width: 48px; height: 48px; }
  .cert-card__title { font-size: 1.2rem; }
  .cert-card__subtitle { font-size: 0.875rem; }
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials {
  background: var(--ink);
  color: var(--cream);
  overflow: clip;
}

.testimonials .section__title { color: var(--cream); }
.testimonials .section__num { color: var(--glow); }

.testimonials__hero {
  margin: 0 auto var(--spacing-2xl);
  text-align: center;
}

.testimonials__hero p {
  max-width: 14ch;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--cream);
}

.testimonials__hero cite {
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--glow);
}

/* WhatsApp screenshots: three explicit columns on desktop (grouped in the
   markup so heights balance in every browser), a swipe row below that. */
.wa-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 1.25rem;
}

.wa-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wa-shot {
  margin: 0;
  padding: 0.5rem;
  background: rgba(245, 237, 226, 0.05);
  border: 1px solid rgba(245, 237, 226, 0.12);
  border-radius: var(--radius-lg);
}

.wa-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 0.5rem);
}

@media (max-width: 1100px) {
  .wa-gallery {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-inline: calc(-1 * var(--spacing-lg));
    padding: 0 var(--spacing-lg) 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--spacing-lg);
    scrollbar-width: none;
  }

  .wa-gallery::-webkit-scrollbar { display: none; }

  .wa-col { display: contents; }

  .wa-shot {
    flex: 0 0 min(82vw, 380px);
    scroll-snap-align: center;
  }
}

@media (max-width: 768px) {
  .wa-gallery {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
  }
}

/* ===================================
   FAQ
   =================================== */
.faq__container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: var(--spacing-2xl);
}

.faq__head {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.faq__aside {
  margin-top: 0.5rem;
  color: var(--muted);
}

.faq-item {
  border-bottom: 1px solid rgba(122, 92, 68, 0.22);
}

.faq-item:first-child { border-top: 1px solid rgba(122, 92, 68, 0.22); }

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color 250ms ease;
}

.faq-item__question::-webkit-details-marker { display: none; }

@media (hover: hover) and (pointer: fine) {
  .faq-item__question:hover { color: var(--brown); }
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(122, 92, 68, 0.3);
  border-radius: 50%;
  transition: transform 400ms var(--ease-out), background-color 300ms ease, border-color 300ms ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: var(--ink);
  transition: background-color 300ms ease;
}

.faq-item__icon::after { transform: rotate(90deg); }

.faq-item[open] .faq-item__icon {
  transform: rotate(135deg);
  background: var(--ink);
  border-color: var(--ink);
}

.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after {
  background: var(--cream);
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer p {
  max-width: 60ch;
  margin: 0;
  padding-bottom: 1.75rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .faq__container { grid-template-columns: 1fr; gap: var(--spacing-lg); }
  .faq__head { position: static; }
}

/* ===================================
   CONTACT
   =================================== */
.contact {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #4A3627 100%);
  color: var(--cream);
  overflow: clip;
}

.contact__light {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 168, 102, 0.22), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact__container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-2xl);
}

.contact .section__num { color: var(--glow); }

.contact__title {
  margin: 0.75rem 0 1.5rem;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  font-weight: 800;
  color: var(--cream);
}

.contact__lead {
  max-width: 38ch;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: rgba(245, 237, 226, 0.75);
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1px solid rgba(217, 168, 102, 0.5);
  transition: color 250ms ease, border-color 250ms ease;
}

.contact__link:hover { color: var(--glow); border-color: var(--glow); }

.contact__panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
}

.required { color: var(--err); }

.form-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.form-input::placeholder { color: #A89A8B; }

.form-input:focus {
  outline: none;
  background: white;
  border-color: var(--brown);
  box-shadow: 0 0 0 4px rgba(122, 92, 68, 0.12);
}

.form-input.error { border-color: var(--err); }
.form-input.error:focus { box-shadow: 0 0 0 4px rgba(168, 34, 34, 0.1); }

.form-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--err);
}

.form-group--checkbox { margin-top: 1.5rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1.5px solid var(--brown-2);
  border-radius: 6px;
  background: white;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--ink);
  border-color: var(--ink);
}

.checkbox-label input:checked + .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.checkbox-label input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.checkbox-text {
  font-size: 0.925rem;
  line-height: 1.6;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.925rem;
  text-align: center;
}

.form-status:empty { display: none; }
.form-status.error { color: var(--err); }

.form-success {
  text-align: center;
}

.form-success:not([hidden]) {
  animation: pop-in 700ms var(--ease-out) both;
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.success-icon {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--ok);
}

.success-icon polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw 600ms 300ms var(--ease-out) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.success-title {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.success-text {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.spinner { animation: spin 0.8s linear infinite; }

@media (max-width: 900px) {
  .contact__container { grid-template-columns: 1fr; gap: var(--spacing-xl); }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  position: relative;
  padding: 0 0 2rem;
  background: #140F0B;
  color: rgba(245, 237, 226, 0.8);
  overflow: clip;
}

.footer__mark {
  position: relative;
  padding-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 30vw, 26rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: center;
  user-select: none;
}

.footer__mark-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 237, 226, 0.22);
}

.footer__mark-fill {
  position: absolute;
  inset: 0;
  padding-top: 2rem;
  background: linear-gradient(180deg, var(--glow), var(--brown));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js-motion .footer__mark-fill { clip-path: inset(0 0 0 100%); }

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: var(--spacing-xl);
  padding-block: var(--spacing-xl);
  border-top: 1px solid rgba(245, 237, 226, 0.1);
}

.footer__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(0.93) sepia(0.2);
}

.footer__tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
}

.footer__heading {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--glow);
}

.footer__contact p { margin-bottom: 0.4rem; }

.footer__link {
  color: rgba(245, 237, 226, 0.8);
  transition: color 200ms ease;
}

.footer__link:hover { color: var(--glow); }

.footer__location { color: rgba(245, 237, 226, 0.55); font-size: 0.95rem; }

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 237, 226, 0.2);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out);
}

.social-link:active { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  .social-link:hover { background: var(--glow); border-color: var(--glow); color: var(--ink); }
}

.social-icon {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 237, 226, 0.1);
  font-size: 0.875rem;
  color: rgba(245, 237, 226, 0.5);
}

.footer__bottom p { margin: 0; }

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__link--btn {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.footer__credit-name { color: rgba(245, 237, 226, 0.85); }

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--spacing-lg); text-align: center; }
  .footer__logo img { margin-inline: auto; }
  .footer__social { justify-content: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ===================================
   LEGAL SECTIONS
   =================================== */
.legal-section {
  padding: var(--spacing-2xl) 0;
  background: var(--card);
}

.legal-section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content { max-width: 800px; }

/* ===================================
   COOKIE BANNER
   =================================== */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 420px;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 2rem));
  transition: transform 600ms var(--ease-out);
}

.cookie-banner[aria-hidden="false"] { transform: translateY(0); }

.cookie-banner p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .cookie-banner { left: 1rem; max-width: none; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ===================================
   MODAL
   =================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 11, 0.6);
  backdrop-filter: blur(6px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop-in 400ms var(--ease-out) both;
}

.modal__content h2 { margin-bottom: 1rem; font-size: 1.8rem; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 640px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.75rem;
    --spacing-2xl: 4.5rem;
    --spacing-3xl: 5.5rem;
    --header-height: 68px;
  }

  body { font-size: 1.05rem; }

  .hero__cta .btn { flex: 1 1 100%; }
}

/* ===================================
   PRINT
   =================================== */
@media print {
  .header,
  .floating-whatsapp,
  .cookie-banner,
  .modal,
  .grain,
  .preloader,
  .footer__mark {
    display: none;
  }
}
