/* =========================================================================
   BCRAZY - Landing Page Stylesheet
   Brand: purple #822e81 · ink #231f20 · white · gold CTA #f59e0b · Rubik
   Concept: "Controlled Chaos" - precise grid + floating metallic orbs
   RTL Hebrew · Mobile-first · Respects prefers-reduced-motion
   ========================================================================= */

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Brand */
  --purple: #822e81;
  --purple-deep: #5c1f5b;
  --purple-darker: #3f1540;
  --purple-bright: #a23aa0;
  --purple-tint: #f4ecf4;
  --ink: #231f20;
  --ink-soft: #3a3436;
  --slate: #334155;
  --slate-900: #0f172a;
  --muted: #6b6570;
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f4eff4;
  --line: #e7e2ea;

  /* CTA accent (reserved for primary actions only) */
  --gold: #f59e0b;
  --gold-deep: #d97f06;
  --gold-soft: #fff6e6;

  /* WhatsApp */
  --wa: #25d366;
  --wa-deep: #1da851;

  /* Metallic hint */
  --chrome-1: #e9ecf2;
  --chrome-2: #b9c0cf;
  --chrome-3: #8b93a6;

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(35, 31, 32, .06);
  --sh: 0 10px 30px rgba(35, 31, 32, .08);
  --sh-md: 0 18px 44px rgba(35, 31, 32, .12);
  --sh-lg: 0 30px 70px rgba(63, 21, 64, .18);
  --sh-purple: 0 18px 40px rgba(130, 46, 129, .28);
  --sh-gold: 0 14px 30px rgba(245, 158, 11, .34);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 10vw, 120px);

  /* Type */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* z-index scale */
  --z-orbs: 1;
  --z-base: 10;
  --z-sticky: 40;
  --z-header: 50;
  --z-float: 60;
  --z-modal: 80;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------- Typography -------------------------------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
}
.h2 { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 800; }
.h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--slate); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  color: var(--purple); text-transform: uppercase;
}
.text-gold { color: var(--gold-deep); }
.text-purple { color: var(--purple); }
.text-white { color: #fff; }
strong { font-weight: 700; color: var(--ink); }

/* ---------------------------- Layout Utils ------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1340px; }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; }
.bg-soft { background: var(--bg); }
.bg-tint { background: var(--bg-alt); }

/* Section eyebrow badge */
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1.1em; border-radius: var(--r-pill);
  background: var(--purple-tint); color: var(--purple);
  font-weight: 700; font-size: .85rem; letter-spacing: .01em;
}
.pill--ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.pill--gold { background: var(--gold-soft); color: var(--gold-deep); }

/* --------------------------- Balloon Orbs ------------------------------- */
/* Signature "controlled chaos" motif - decorative floating spheres */
.orbs { position: absolute; inset: 0; overflow: hidden; z-index: var(--z-orbs); pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 70% 78%, rgba(0,0,0,.22), rgba(0,0,0,0) 55%),
    var(--orb-color, var(--purple));
  box-shadow: inset 0 -8px 18px rgba(0,0,0,.18), 0 20px 40px rgba(35,31,32,.16);
  opacity: .9;
  will-change: transform;
  animation: float var(--orb-dur, 9s) var(--ease) infinite alternate;
}
.orb::after { /* string */
  content: ""; position: absolute; top: 100%; inset-inline-start: 50%;
  width: 1px; height: 26px; background: linear-gradient(rgba(35,31,32,.28), transparent);
}
.orb--purple  { --orb-color: var(--purple); }
.orb--deep    { --orb-color: var(--purple-deep); }
.orb--gold    { --orb-color: var(--gold); }
.orb--chrome  {
  background:
    radial-gradient(circle at 30% 24%, #fff, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 72% 82%, rgba(40,48,66,.5), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, var(--chrome-1), var(--chrome-2) 55%, var(--chrome-3));
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0) rotate(-4deg); }
  100% { transform: translateY(-26px) translateX(8px) rotate(4deg); }
}

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.7em; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; line-height: 1;
  min-height: 52px; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
  cursor: pointer; position: relative;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: #3a2400; box-shadow: var(--sh-gold); font-weight: 800; }
.btn-gold:hover { background: var(--gold-deep); color: #2a1a00; transform: translateY(-3px); box-shadow: 0 20px 40px rgba(245,158,11,.44); }

.btn-purple { background: var(--purple); color: #fff; box-shadow: var(--sh-purple); }
.btn-purple:hover { background: var(--purple-deep); transform: translateY(-3px); }

.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: translateY(-3px); }

.btn-outline { background: #fff; color: var(--purple); border: 1.5px solid var(--line); box-shadow: var(--sh-sm); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-deep); transform: translateY(-3px); box-shadow: var(--sh); }

.btn-wa { background: var(--wa); color: #05391a; font-weight: 800; box-shadow: 0 12px 26px rgba(37,211,102,.34); }
.btn-wa:hover { background: var(--wa-deep); color: #fff; transform: translateY(-3px); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.15em 2em; font-size: 1.06rem; min-height: 58px; }
.btn-icon { width: 54px; min-width: 54px; padding: 0; border-radius: 50%; flex: 0 0 auto; } /* icon-only circular button */

/* --------------------------- Header / Nav ------------------------------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-header);
  transition: background-color .3s var(--ease), box-shadow .3s, padding .3s;
  padding-block: 16px;
}
.header::before { content:""; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(15,8,18,.6), rgba(15,8,18,.12) 70%, transparent); opacity:1; transition: opacity .3s; pointer-events:none; }
.header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: var(--sh-sm); padding-block: 10px; }
.header.scrolled::before { opacity: 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; transition: height .3s; }
.header.scrolled .brand img { height: 34px; }
.brand .logo-neg { display: block; filter: brightness(0) invert(1); } /* white logo on dark/transparent header */
.brand .logo-pos { display: none; }
.header.scrolled .brand .logo-neg { display: none; }
.header.scrolled .brand .logo-pos { display: block; }

.nav { display: none; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: .98rem; color: #fff; opacity: .92; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; }
.header.scrolled .nav a { color: var(--ink); opacity: .8; }
.header.scrolled .nav a:hover { color: var(--purple); opacity: 1; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); color: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.header__phone:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.header.scrolled .header__phone { color: var(--purple); border-color: var(--line); }
.header.scrolled .header__phone:hover { background: var(--purple-tint); border-color: var(--purple); }
.header__phone svg { width: 20px; height: 20px; }

/* ------------------------------- Hero ----------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-block: 120px 60px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(35,20,45,.55), rgba(35,20,45,.1) 45%),
    linear-gradient(300deg, rgba(63,21,64,.86) 0%, rgba(92,31,91,.5) 40%, rgba(20,12,24,.35) 100%);
}
.hero .container { position: relative; z-index: var(--z-base); }
.hero__inner { max-width: 780px; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.14); padding: .5em 1.1em; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.hero h1 { color: #fff; margin-top: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 .hl { color: #ffd479; }
.hero .lead { color: rgba(255,255,255,.92); margin-top: 20px; max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2); }
.hero__trust .t { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .96rem; color: rgba(255,255,255,.94); }
.hero__trust .t b { font-weight: 800; font-size: 1.15rem; color: #fff; }
.hero__trust svg { width: 20px; height: 20px; color: #ffd479; }
.hero .orb { z-index: 1; }
.scroll-cue { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(50%); z-index: 5; color: rgba(255,255,255,.8); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .1em; }
.scroll-cue svg { width: 22px; height: 22px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* --------------------------- Client Marquee ----------------------------- */
.clients { padding-block: clamp(36px, 5vw, 56px); border-block-end: 1px solid var(--line); background: #fff; }
.clients__label { text-align: center; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 26px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(34px, 5vw, 68px); width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--ink); opacity: .34; white-space: nowrap; letter-spacing: -.01em; transition: opacity .2s; }
.marquee__item:hover { opacity: .8; }
@keyframes marquee { to { transform: translateX(50%); } } /* RTL: content duplicated */

/* ------------------------------ Stats ----------------------------------- */
.stats { background: linear-gradient(135deg, var(--purple-darker), var(--purple) 65%, var(--purple-bright)); color: #fff; position: relative; overflow: hidden; }
.stats .orbs { opacity: .5; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 48px) 20px; position: relative; z-index: var(--z-base); text-align: center; }
.stat__num { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.02em; }
.stat__num .suffix { color: #ffd479; }
.stat__label { margin-top: 10px; font-weight: 600; color: rgba(255,255,255,.86); font-size: 1rem; }

/* --------------------------- Solutions Bento ---------------------------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 18px; grid-auto-flow: dense; }
.card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink);
  min-height: 260px; box-shadow: var(--sh); isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s;
  border: 5px solid #fff; /* brand device: thin white frame */
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,10,22,.9) 0%, rgba(20,10,22,.35) 45%, rgba(20,10,22,.05) 75%); z-index: -1; }
.card__body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; color: #fff; min-height: 260px; }
.card__cat { align-self: flex-start; }
.card__title { color: #fff; font-size: 1.4rem; font-weight: 800; }
.card__desc { color: rgba(255,255,255,.9); font-size: .98rem; line-height: 1.5; }

/* ------------------------------ Gallery --------------------------------- */
.gallery { column-width: 270px; column-gap: 16px; }
.gallery__item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; break-inside: avoid;
  position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 4px solid #fff; box-shadow: var(--sh); background: var(--ink); line-height: 0;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.gallery__item img { display: block; width: 100%; height: auto; transition: transform .55s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; inset-block-end: 0; inset-inline: 0; padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgba(20,10,22,.88)); color: #fff;
  font-weight: 700; font-size: .96rem; line-height: 1.3; text-align: start;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(15,8,18,.94); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.lightbox.open { display: flex; animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: var(--r); box-shadow: var(--sh-lg); border: 5px solid #fff; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background-color .2s, transform .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { inset-block-start: clamp(14px, 3vw, 26px); inset-inline-end: clamp(14px, 3vw, 26px); }
.lightbox__prev, .lightbox__next { inset-block-start: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-end: clamp(10px, 2vw, 26px); } /* RTL: previous on the right */
.lightbox__next { inset-inline-start: clamp(10px, 2vw, 26px); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.08); }

/* --------------------------- Lead Magnet -------------------------------- */
.magnet { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--purple-deep), var(--purple) 60%, var(--purple-bright)); color: #fff; padding: clamp(32px, 6vw, 60px); box-shadow: var(--sh-lg); }
.magnet .orbs { opacity: .45; }
.magnet__grid { position: relative; z-index: var(--z-base); display: grid; gap: 28px; align-items: center; }
.magnet h2 { color: #fff; }
.magnet p { color: rgba(255,255,255,.9); margin-top: 12px; }
.magnet__form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.magnet__form input { flex: 1 1 220px; min-height: 54px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.96); color: var(--ink); font-size: 1rem; }
.magnet__form input::placeholder { color: #8a8290; }
.magnet__note { font-size: .85rem; color: rgba(255,255,255,.72); margin-top: 12px; }
.magnet__visual { display: none; }

/* ------------------------- In-House / Logistics ------------------------- */
.power__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
.power__media { position: relative; }
.power__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); border: 6px solid #fff; }
.power__badge { position: absolute; inset-block-end: -18px; inset-inline-start: -10px; background: var(--gold); color: #3a2400; font-weight: 800; padding: 14px 20px; border-radius: var(--r); box-shadow: var(--sh-gold); font-size: .98rem; line-height: 1.2; }
.power__badge span { display: block; font-size: 1.5rem; font-weight: 900; }
.pillars { display: grid; gap: 18px; margin-top: 26px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-tint); color: var(--purple); box-shadow: inset 0 0 0 1px rgba(130,46,129,.12); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pillar p { font-size: .98rem; color: var(--slate); }

/* ---------------------------- Testimonials ------------------------------ */
.tgrid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.tcard blockquote { font-size: 1.06rem; color: var(--ink); line-height: 1.6; font-weight: 500; }
.tcard__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.tcard__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--purple-tint); color: var(--purple); display: grid; place-items: center; font-weight: 800; flex: none; }
.tcard__meta b { display: block; color: var(--ink); font-weight: 700; }
.tcard__meta span { font-size: .88rem; color: var(--muted); }

/* ------------------------------ Process --------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm); }
.step__num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-bright)); box-shadow: var(--sh-purple); margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }

/* ------------------------------- Form ----------------------------------- */
.formwrap { display: grid; gap: clamp(28px, 4vw, 44px); align-items: start; }
.form-aside .lead { margin-top: 14px; }
.form-aside__list { display: grid; gap: 14px; margin-top: 26px; }
.form-aside__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.form-aside__list svg { width: 24px; height: 24px; color: var(--purple); flex: none; }
.form-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.leadform { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--purple); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 1rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(130,46,129,.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23822e81' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-inline-start: 44px; }
.field--invalid input, .field--invalid select { border-color: #dc2626; background: #fff5f5; }
.field__err { display: none; color: #dc2626; font-size: .84rem; margin-top: 6px; font-weight: 600; }
.field--invalid .field__err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; line-height: 1.5; }
.form-trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.form-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.form-trust svg { width: 16px; height: 16px; color: var(--wa-deep); }

/* Form states */
.form-msg { display: none; padding: 14px 16px; border-radius: var(--r); font-weight: 600; margin-bottom: 18px; }
.form-msg--err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.leadform.is-success .form-body { display: none; }
.form-success { display: none; text-align: center; padding: 20px 6px; }
.leadform.is-success .form-success { display: block; }
.form-success__icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.35); }
.form-success__icon svg { width: 40px; height: 40px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.btn--loading { color: transparent !important; pointer-events: none; }
.btn--loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(58,36,0,.35); border-top-color: #3a2400; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Footer ---------------------------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(48px, 7vw, 76px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer__brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); } /* white logo on dark footer */
.footer__brand p { max-width: 340px; font-size: .96rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer__links a, .footer__contact li { display: block; padding: 5px 0; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--purple-bright); flex: none; margin-top: 3px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }
.footer__bottom a { color: #fff; font-weight: 600; }
.footer__credit { display: inline-flex; align-items: center; gap: 9px; }
.footer__credit a { display: inline-flex; }
.juba-logo { height: 24px; width: auto; opacity: .82; transition: opacity .2s, transform .2s; vertical-align: middle; }
.footer__credit a:hover .juba-logo { opacity: 1; transform: translateY(-1px); }

/* ------------------- Floating WhatsApp + Mobile CTA bar ------------------ */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: var(--z-float);
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  z-index: -1; animation: wa-pulse 4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(1.9); opacity: 0; } }

.mobile-bar {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1px;
  background: var(--line); box-shadow: 0 -8px 24px rgba(35,31,32,.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 11px 6px; background: #fff; font-weight: 700; font-size: .82rem; color: var(--ink); min-height: 60px; }
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar .mb-call svg { color: var(--purple); }
.mobile-bar .mb-wa svg { color: var(--wa-deep); }
.mobile-bar .mb-quote { background: var(--gold); color: #3a2400; }
.mobile-bar .mb-quote svg { color: #3a2400; }

/* ------------------------- Scroll reveal -------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Curved brand arrow */
.brand-arrow { color: var(--purple); width: 76px; height: auto; }

/* ============================= Responsive ============================== */
/* Tablet */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .card--wide { grid-column: span 2; }
  .card--tall { grid-row: span 2; }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .magnet__grid { grid-template-columns: 1.3fr .7fr; }
  .magnet__visual { display: block; }
  .power__grid { grid-template-columns: 1fr 1fr; }
  .formwrap { grid-template-columns: .85fr 1.15fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .row-2 { gap: 0 16px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__phone { display: flex; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
  .card--big { grid-column: span 2; grid-row: span 2; }
  .wa-float { width: 66px; height: 66px; }
  .mobile-bar { display: none; }
  .hero__inner { max-width: 820px; }
}

/* Large */
@media (min-width: 1280px) {
  .bento { grid-auto-rows: 250px; }
}

/* Hide floating WA on desktop where mobile bar is gone? keep it - good on desktop too */
@media (max-width: 1023px) {
  .wa-float { inset-block-end: 76px; } /* clear the mobile CTA bar */
  body { padding-bottom: 0; }
  main { padding-bottom: 60px; } /* space for mobile bar */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .orb { animation: none !important; }
  .marquee__track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .wa-float::before { display: none; }
}

/* Print */
@media print { .header, .wa-float, .mobile-bar, .scroll-cue { display: none !important; } }
