/* ============================================
   Shiduchim — Bold Marketing Site
   Inspired by Yubo's layout architecture
   Mobile-First | Bold Yellow | Massive Type
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=Heebo:wght@400;500;600;700;800;900&display=swap');

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

/* ==================== TOKENS ==================== */
:root {
  /* Brand — Yubo audit exact values */
  --color-brand: #00D26A;
  --color-brand-dark: #00B85C;
  --color-dark: #111111;
  --color-dark-warm: #181818;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-purple: #996BFF;
  --color-text-on-brand: #000000;
  --color-text-on-dark: #FFFFFF;
  --color-text-body-dark: rgba(0, 0, 0, 0.7);
  --color-text-body-light: rgba(255, 255, 255, 0.7);
  --color-accent-stripe: #00D26A;

  /* Typography — Outfit matches Yubo's Right Grotesk (geometric grotesk, wide, heavy weights) */
  --font-heading: 'Outfit', 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Heebo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type */
  --text-hero: clamp(3.5rem, 8vw, 7rem);
  --text-h2: clamp(2.5rem, 6vw, 4.5rem);
  --text-h3: clamp(1.5rem, 3vw, 2rem);
  --text-body: clamp(1rem, 1.5vw, 1.25rem);
  --text-caption: 0.875rem;
  --text-small: 0.75rem;

  /* Spacing (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 80px;
  --sp-7: 120px;

  /* Radius */
  --r-pill: 999px;
  --r-btn: 60px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Transitions */
  --ease-fast: 150ms ease;
  --ease-base: 250ms ease;

  /* Layout */
  --max-w: 1400px;
  --pad: 24px;
  --header-h: 81px;
}

@media (min-width: 768px) {
  :root { --pad: 40px; --header-h: 90px; }
}
@media (min-width: 1200px) {
  :root { --pad: 60px; }
}

/* ==================== BASE ==================== */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-black);
  background: var(--color-brand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] button, [dir="rtl"] span {
  font-family: 'Heebo', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

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

:focus-visible { outline: 3px solid var(--color-black); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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

/* ==================== BUTTONS ==================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4.16px 33.28px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--r-btn);
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
  white-space: nowrap;
  min-height: 50px;
}

.btn-pill:hover { transform: scale(1.04); }
.btn-pill:active { transform: scale(0.97); }

.btn-white {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.15); }

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

/* Icon button (hamburger, store icons) */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black);
  transition: transform var(--ease-fast);
}
.btn-icon:hover { transform: scale(1.08); }
.btn-icon svg { fill: var(--color-white); width: 22px; height: 22px; }

/* Store icon pills in header — dark rounded rectangles like Yubo */
.header-store-icons {
  display: none;
  gap: 7px;
}
.header-store-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--color-black);
  transition: transform var(--ease-fast), background 0.35s ease;
}
.header-store-pill:hover { transform: scale(1.06); }
.header-store-pill svg { fill: var(--color-white); width: 22px; height: 22px; }

@media (min-width: 768px) {
  .header-store-icons { display: flex; }
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background 0.35s ease;
}

.site-header.on-dark {
  background: var(--color-dark);
}

.site-header.scrolled:not(.on-dark) {
  background: var(--color-brand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* 3-column header: hamburger | logo (center) | store icons */
.header-start { display: flex; align-items: center; flex: 1; }
.header-center { display: flex; align-items: center; justify-content: center; }
.header-end { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 9px; }

.header-logo {
  font-family: var(--font-heading);
  font-size: 1.97rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--color-black);
  transition: color 0.35s ease;
}

.site-header.on-dark .header-logo {
  color: var(--color-white);
}

/* On dark sections: swap hamburger + store pill colors */
.site-header.on-dark .menu-btn {
  background: var(--color-brand);
}
.site-header.on-dark .menu-btn .bar {
  background: var(--color-black);
}
.site-header.on-dark .header-store-pill {
  background: var(--color-brand);
}
.site-header.on-dark .header-store-pill svg {
  fill: var(--color-black);
}

/* Hamburger button — 2 bars (like Yubo's "=" icon), not 3 */
.menu-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  z-index: 200;
  transition: transform var(--ease-fast), background 0.35s ease;
}

.menu-btn:hover { transform: scale(1.06); }

.menu-btn .bar {
  display: block;
  width: 20px;
  height: 2.8px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-base), background 0.35s ease;
}

/* Open state: 2 bars rotate into X */
.menu-btn.open .bar:nth-child(1) { transform: translateY(4.9px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { transform: translateY(-4.9px) rotate(-45deg); }

/* ==================== MENU OVERLAY ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  z-index: 150;
  background: var(--color-brand);
  padding: calc(var(--header-h) + 20px) var(--pad) var(--pad);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--ease-base);
}

[dir="rtl"] .mobile-menu { transform: translateX(-100%); }

.mobile-menu.open { transform: translateX(0); }

/* Desktop: 30% width panel + scrim */
@media (min-width: 768px) {
  .mobile-menu {
    width: 30%;
    min-width: 320px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  }
  [dir="rtl"] .mobile-menu {
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  }
}

/* Scrim behind menu on desktop */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease-base), visibility var(--ease-base);
}

.menu-scrim.open { opacity: 1; visibility: visible; }

/* Close button inside menu */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: var(--sp-3);
}

.mobile-menu-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  transition: background var(--ease-fast);
}

.mobile-menu-close:hover { background: rgba(0, 0, 0, 0.15); }

.mobile-menu-close svg { width: 18px; height: 18px; }

.menu-section { margin-block-end: var(--sp-3); }

.menu-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
  padding-block: 8px;
  width: 100%;
  text-align: start;
}

.menu-section-title svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease-fast);
}

.menu-section.open .menu-section-title svg { transform: rotate(180deg); }

.menu-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-base);
}

.menu-section.open .menu-links { max-height: 500px; }

.menu-links a {
  display: block;
  font-size: 1.0625rem;
  color: var(--color-text-body-dark);
  padding: 8px 0;
}

.menu-links a:hover { color: var(--color-black); }

/* ==================== HERO (Yellow BG) ==================== */
.hero {
  background: var(--color-brand);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-block-end: var(--sp-3);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--pad);
  padding-block-start: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9.5vw, 9.375rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -1px;
  color: var(--color-black);
  text-align: start;
}

.hero-body {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-body-dark);
  line-height: 1.5;
  max-width: 520px;
  margin-block: var(--sp-3) var(--sp-4);
}

/* Videos: horizontal row on mobile, absolute column on desktop */
.hero-videos {
  display: flex;
  gap: var(--sp-1);
  padding-inline: var(--pad);
  padding-block-start: calc(var(--header-h) + var(--sp-2));
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.hero-video-card {
  border-radius: var(--r-md);
  overflow: hidden;
  flex: 1;
}

.hero-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    align-items: flex-end;
    padding-block: var(--sp-4) var(--sp-5);
  }
  .hero-content {
    width: 65%;
    max-width: calc(var(--max-w) * 0.65);
    padding-inline: 5%;
    padding-block-start: var(--header-h);
    padding-block-end: var(--sp-6);
    margin-block-start: 0;
    flex: none;
  }
  .hero-videos {
    flex-direction: column;
    gap: var(--sp-2);
    position: absolute;
    top: 0;
    inset-inline-end: 3%;
    width: 28%;
    height: 100%;
    max-height: none;
    margin-block-end: 0;
    z-index: 1;
    padding: var(--header-h) 0 var(--sp-3) 0;
    justify-content: center;
    padding-inline-start: 0;
  }
  .hero-video-card {
    aspect-ratio: auto;
    min-height: 0;
    border-radius: var(--r-lg);
    --slide-offset: 0%;
    opacity: 0;
    animation: slideInVideo 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  }

  .hero-video-card:nth-child(1) { --slide-offset: 50%; animation-delay: 0.2s; }
  .hero-video-card:nth-child(2) { --slide-offset: 30%; animation-delay: 0.5s; }
  .hero-video-card:nth-child(3) { --slide-offset: 0%; animation-delay: 0.8s; }

  /* LTR: videos on right, slide in from right, rest inward (left) */
  @keyframes slideInVideo {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(calc(-1 * var(--slide-offset))); opacity: 1; }
  }

  /* RTL: videos on left, slide in from left, rest inward (right) */
  [dir="rtl"] .hero-video-card { animation-name: slideInVideoRtl; }

  @keyframes slideInVideoRtl {
    from { transform: translateX(-120%); opacity: 0; }
    to   { transform: translateX(var(--slide-offset)); opacity: 1; }
  }
}

/* ==================== ACCENT STRIPE ==================== */
.accent-stripe {
  height: 6px;
  background: var(--color-brand);
}

/* ==================== SECTION: DARK WITH PHONE MOCKUP ==================== */
.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
  padding-block: var(--sp-6);
  position: relative;
}

.section-dark-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

.section-dark .big-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--color-brand);
}

.section-dark .body-text {
  color: var(--color-text-body-light);
  margin-block: var(--sp-3);
  max-width: 480px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: var(--sp-3);
}

.store-badge-link {
  display: block;
  height: 48px;
  transition: transform var(--ease-fast);
}

.store-badge-link:hover { transform: scale(1.05); }

.store-badge-link img {
  height: 100%;
  width: auto;
}

/* Phone mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
  padding: var(--sp-3);
}

.phone-frame {
  position: relative;
  width: 280px;
  max-width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid #333;
  background: #000;
}

.phone-frame img, .phone-frame video {
  width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .section-dark-grid {
    grid-template-columns: 1fr 1fr;
  }
  .phone-frame { width: 360px; }
}

@media (min-width: 1200px) {
  .phone-frame { width: 420px; }
}

/* ==================== SECTION: FEATURE (text + images) ==================== */
.section-feature {
  padding-block: var(--sp-6);
}

.section-feature.bg-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-feature.bg-brand {
  background: var(--color-brand);
  color: var(--color-black);
}

.feature-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

.feature-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
}

.feature-body {
  margin-block: var(--sp-3);
  max-width: 520px;
  line-height: 1.6;
}

.section-feature.bg-dark .feature-body { color: var(--color-text-body-light); }
.section-feature.bg-brand .feature-body { color: var(--color-text-body-dark); }

.feature-image {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
}

/* Image collage: 2 images stacked/overlapping */
.feature-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.feature-collage .collage-img {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-collage .collage-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.feature-collage .collage-img:nth-child(2) {
  transform: translateY(var(--sp-4));
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid.reversed .feature-text { order: 2; }
  .feature-grid.reversed .feature-media { order: 1; }
}

/* ---------- Match Media Hero (score badge + image) ---------- */
.match-media-hero {
  position: relative;
}

.match-media-hero .collage-img {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.match-media-hero .collage-img img {
  width: 100%;
  height: auto;
}

.match-score-badge {
  text-align: center;
  margin-block-end: var(--sp-2);
}

.match-score-badge__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-black);
  line-height: 1;
}

.match-score-badge__pct {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1;
}

.match-score-badge__label {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-black);
  margin-inline-start: 0.15em;
  text-transform: uppercase;
}

/* ==================== BLOG SECTION ==================== */
.section-blog {
  background: var(--color-dark);
  color: var(--color-white);
  padding-block: var(--sp-6);
}

.blog-heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  margin-block-end: var(--sp-4);
}

.blog-grid {
  display: grid;
  gap: var(--sp-3);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-dark-warm);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease-base), border-color var(--ease-base);
  text-decoration: none;
  color: var(--color-white);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-base);
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }

.blog-pill {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-block-end: var(--sp-1);
  width: fit-content;
}

.blog-pill.yellow { background: rgba(255,227,10,0.15); color: var(--color-brand); }
.blog-pill.green { background: rgba(52,211,153,0.15); color: #34D399; }
.blog-pill.blue { background: rgba(96,165,250,0.15); color: #60A5FA; }

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.15;
  margin-block-end: auto;
  padding-block-end: var(--sp-2);
}

.blog-card-meta {
  font-size: var(--text-caption);
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== FOOTER (Dark bg — Yubo audit) ==================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 49.9px 0;
}

.footer-grid { display: grid; gap: 0; }

.footer-col { border-block-end: 1px solid rgba(255,255,255,0.1); }

.footer-col-btn {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-white);
  padding-block: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
}

.footer-col-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ease-fast);
  flex-shrink: 0;
}

.footer-col.open .footer-col-btn svg { transform: rotate(180deg); }

.footer-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease-base);
}

.footer-col.open .footer-links { max-height: 500px; }

.footer-links li { padding-block: 6px; }

.footer-links a {
  font-size: 1rem;
  color: var(--color-text-body-light);
  transition: color var(--ease-fast);
}

.footer-links a:hover { color: var(--color-white); }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
  .footer-col { border: none; }
  .footer-col-btn { cursor: default; padding-block: 0 var(--sp-2); color: var(--color-white); }
  .footer-col-btn svg { display: none; }
  .footer-links { max-height: none; overflow: visible; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-5);
  padding-block-start: var(--sp-3);
  border-block-start: 1px solid rgba(255,255,255,0.1);
}

.social-icons { display: flex; gap: var(--sp-2); }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: transform var(--ease-fast), background var(--ease-fast);
}

.social-icon:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }
.social-icon svg { width: 20px; height: 20px; fill: var(--color-white); }

.lang-select-wrapper { position: relative; }

/* Legacy lang-select (hidden by .custom-select select { display: none } after JS wraps it) */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--color-white);
  border: 2px solid #3A3800;
  border-radius: var(--r-pill);
  padding: 10px 36px 10px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

[dir="rtl"] .lang-select { padding: 10px 16px 10px 36px; }

.lang-select-wrapper::after {
  content: '';
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--color-brand);
  border-block-end: 2px solid var(--color-brand);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

/* Hide wrapper chevron once custom-select takes over */
.lang-select-wrapper:has(.custom-select)::after { display: none; }

.footer-copyright {
  font-size: var(--text-caption);
  color: var(--color-text-body-light);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==================== SCROLL ANIMATION ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-in:nth-child(2) { transition-delay: 100ms; }
.stagger > .fade-in:nth-child(3) { transition-delay: 200ms; }

/* ==================== SUB-PAGE COMPONENTS ==================== */

/* ---------- Page Hero (Yellow, bold heading) ---------- */
.page-hero {
  background: var(--color-brand);
  padding: calc(var(--header-h) + 80px) 0 50px;
  text-align: start;
}

.page-hero .container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad); }

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--color-black);
}

.page-hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.66rem);
  font-weight: 600;
  color: var(--color-black);
  margin-block-start: 20px;
}

.page-hero-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.6);
  margin-block-start: 16px;
}

/* ---------- Tab Navigation ---------- */
.tab-nav {
  background: var(--color-brand);
  padding: 0 0 var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
}

.tab-nav .container {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.tab-nav-btn {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.5vw, 1.45rem);
  font-weight: 700;
  border-radius: 50px;
  padding: 0 16.6px 3px 16.6px;
  min-height: 44px;
  white-space: nowrap;
  transition: background var(--ease-fast), color var(--ease-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-nav-btn.active {
  background: var(--color-black);
  color: var(--color-white);
}

.tab-nav-btn:not(.active) {
  background: transparent;
  color: var(--color-black);
}

.tab-nav-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ---------- Page Layout: Sidebar + Content ---------- */
.page-layout {
  display: grid;
  min-height: 60vh;
}

.page-sidebar {
  background: #FAF9F5;
  padding: var(--sp-4) var(--sp-3);
  display: none;
}

.page-sidebar-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 20px); }

.sidebar-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-black);
  padding: 10px 16px;
  border-radius: 50px;
  transition: background var(--ease-fast), color var(--ease-fast);
  display: block;
  text-decoration: none;
}

.sidebar-link:hover { background: rgba(0, 0, 0, 0.05); }

.sidebar-link.active {
  background: var(--color-black);
  color: var(--color-white);
}

.page-content {
  background: var(--color-white);
  padding: var(--sp-4) var(--pad);
}

@media (min-width: 768px) {
  .page-layout {
    grid-template-columns: 280px 1fr;
  }
  .page-sidebar { display: block; }
  .page-content { padding: var(--sp-5) var(--sp-6); }
}

/* ---------- Prose Typography ---------- */
.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 6.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--color-black);
  margin-block-start: var(--sp-6);
  margin-block-end: var(--sp-4);
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--color-black);
  margin-block-start: var(--sp-6);
  margin-block-end: var(--sp-3);
}

.prose h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-black);
  margin-block-start: var(--sp-5);
  margin-block-end: var(--sp-2);
}

.prose p {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-black);
  margin-block-end: var(--sp-2);
}

.prose ul, .prose ol {
  margin-inline-start: 24px;
  margin-block-end: var(--sp-2);
}

.prose li {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-black);
  margin-block-end: 10px;
}

.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }

.prose a {
  color: var(--color-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--color-black); }

.prose strong { font-weight: 700; }

.prose .section-number {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-block-start: var(--sp-4);
  margin-block-end: var(--sp-1);
}

/* ---------- Blog Card v2 (dark bg, brown cards) ---------- */
.blog-section-v2 {
  background: var(--color-dark);
  padding-block: var(--sp-6);
}

.blog-grid-v2 {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

.blog-card-v2 {
  background: #654245;
  border-radius: 40px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease-base);
}

.blog-card-v2:hover { transform: translateY(-6px); }

.blog-card-v2-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-v2-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-badge {
  display: inline-block;
  background: var(--color-brand);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  width: fit-content;
  margin-block-end: var(--sp-2);
}

.blog-card-v2-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 3.12rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--color-white);
  margin-block-end: auto;
  padding-block-end: var(--sp-2);
}

.blog-card-v2-meta {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-block: var(--sp-4);
  background: var(--color-dark);
}

.page-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  transition: background var(--ease-fast), color var(--ease-fast);
}

.page-num.active {
  background: var(--color-brand);
  color: var(--color-black);
}

.page-num:not(.active) {
  background: var(--color-white);
  color: var(--color-black);
}

.page-num:not(.active):hover { background: rgba(255, 255, 255, 0.8); }

/* ---------- Category Filter Buttons ---------- */
.filter-nav {
  background: var(--color-brand);
  padding-block-end: var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-nav .container { display: flex; gap: 8px; flex-wrap: nowrap; }

.filter-btn {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.5vw, 1.45rem);
  font-weight: 700;
  border-radius: 50px;
  padding: 0 16.6px 3px 16.6px;
  min-height: 44px;
  white-space: nowrap;
  transition: background var(--ease-fast), color var(--ease-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-btn.active { background: var(--color-black); color: var(--color-white); }
.filter-btn:not(.active) { background: transparent; color: var(--color-black); }
.filter-btn:not(.active):hover { background: rgba(0, 0, 0, 0.08); }

/* ---------- Dark CTA Section ---------- */
.section-cta {
  background: var(--color-dark);
  padding: 66.55px 0 33.275px;
  text-align: center;
}

.section-cta .cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -1px;
  color: var(--color-brand);
  margin-block-end: var(--sp-4);
}

.section-cta .btn-pill { margin-block-start: var(--sp-2); }

.btn-yellow {
  background: var(--color-brand);
  color: var(--color-black);
}

.btn-yellow:hover { box-shadow: 0 6px 24px rgba(255, 227, 10, 0.3); }

/* ---------- Green Section (Careers/Mission) ---------- */
.section-green {
  background: #00C25E;
  color: var(--color-black);
  padding-block: var(--sp-6);
}

.section-green .big-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.12rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--color-black);
  margin-block-end: var(--sp-3);
}

.section-green .body-text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-black);
  max-width: 700px;
}

/* ---------- Contact Form on Dark ---------- */
.contact-form {
  max-width: 600px;
  margin-inline: auto;
}

.form-field {
  margin-block-end: var(--sp-2);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-block-end: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: start;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--color-white);
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  transition: border-color var(--ease-fast);
  text-align: start;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--color-black);
  font-weight: 700;
}

/* Legacy select fallback (hidden by custom-select JS) */
select.form-input { cursor: pointer; }

.form-textarea { min-height: 140px; resize: vertical; }

/* ---------- Simple Content Page (no sidebar) ---------- */
.page-content-simple {
  background: var(--color-white);
  padding: var(--sp-5) var(--pad);
}

.page-content-simple .container {
  max-width: 800px;
}

/* ---------- Article Detail ---------- */
.article-hero { padding-block-end: var(--sp-3); }

.article-hero .blog-badge { margin-block-end: var(--sp-2); }

.article-hero-meta {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--text-caption);
  color: rgba(0, 0, 0, 0.5);
  margin-block-start: var(--sp-2);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-block-end: var(--sp-3);
  padding: 8px 0;
}

.article-back:hover { color: var(--color-purple); }

/* ---------- Global Modal ---------- */
.global-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.global-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.global-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-4);
}

.global-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease-fast);
}

.global-modal__close:hover { background: rgba(0, 0, 0, 0.15); }

.global-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  margin-block-end: var(--sp-1);
}

.global-modal__subtitle {
  color: var(--color-text-body-dark);
  margin-block-end: var(--sp-3);
  line-height: 1.5;
}

.global-modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.global-modal__field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-block-end: 4px;
  text-align: start;
}

.global-modal__field input,
.global-modal__field select,
.global-modal__field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color var(--ease-fast);
  text-align: start;
}

.global-modal__field input::placeholder,
.global-modal__field textarea::placeholder {
  color: var(--color-black);
  font-weight: 700;
}

.global-modal__field input:focus,
.global-modal__field select:focus,
.global-modal__field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.global-modal__field textarea { resize: vertical; min-height: 80px; }

/* Legacy modal select fallback (hidden by custom-select JS) */
.global-modal__field select { cursor: pointer; }

.global-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

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

.global-modal__success {
  display: none;
  text-align: center;
  padding: var(--sp-4) 0;
}

.global-modal__success.is-visible { display: block; }

/* ==================== CUSTOM SELECT DROPDOWN ==================== */
.custom-select {
  position: relative;
}

.custom-select select { display: none; }

/* Trigger */
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: start;
  border: none;
  background: none;
  padding: 0;
}

.custom-select__trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: start;
}

.custom-select__chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--ease-fast);
}

.custom-select.is-open .custom-select__chevron { transform: rotate(180deg); }

/* Options panel */
.custom-select__options {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.15s ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-select.is-open .custom-select__options {
  max-height: 280px;
  overflow-y: auto;
  opacity: 1;
}

.custom-select__option {
  cursor: pointer;
  transition: background var(--ease-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__option[aria-disabled="true"] { display: none; }

/* ---------- Variant: dark form (contact, affiliates) ---------- */
.custom-select--dark .custom-select__trigger {
  background: var(--color-white);
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: var(--color-black);
}

.custom-select--dark .custom-select__trigger:focus {
  outline: none;
  border-color: var(--color-brand);
}

.custom-select--dark .custom-select__trigger-text.is-placeholder { color: var(--color-black); font-weight: 700; }

.custom-select--dark .custom-select__chevron { color: var(--color-black); }

.custom-select--dark .custom-select__options {
  top: calc(100% + 4px);
  background: var(--color-white);
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-select--dark .custom-select__option {
  padding: 12px 16px;
  color: var(--color-black);
  font-size: 1rem;
}

.custom-select--dark .custom-select__option:hover,
.custom-select--dark .custom-select__option.is-selected {
  background: rgba(255, 227, 10, 0.15);
  color: var(--color-black);
}

/* ---------- Variant: modal (light bg) ---------- */
.custom-select--light .custom-select__trigger {
  background: var(--color-white);
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  padding: 12px;
  color: var(--color-black);
}

.custom-select--light .custom-select__trigger:focus {
  outline: none;
  border-color: var(--color-brand);
}

.custom-select--light .custom-select__trigger-text.is-placeholder { color: var(--color-black); font-weight: 700; }

.custom-select--light .custom-select__chevron { color: var(--color-black); }

.custom-select--light .custom-select__options {
  top: calc(100% + 4px);
  background: var(--color-white);
  border: 1px solid #D5D5D5;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-select--light .custom-select__option {
  padding: 12px;
  color: var(--color-black);
  font-size: 1rem;
}

.custom-select--light .custom-select__option:hover,
.custom-select--light .custom-select__option.is-selected {
  background: rgba(255, 227, 10, 0.15);
  color: var(--color-black);
}

/* ---------- Variant: lang (footer pill) ---------- */
.custom-select--lang .custom-select__trigger {
  background: transparent;
  border: 2px solid #3A3800;
  border-radius: var(--r-pill);
  padding: 10px 16px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
}

.custom-select--lang .custom-select__trigger:focus {
  outline: none;
  border-color: var(--color-brand);
}

.custom-select--lang .custom-select__chevron { color: var(--color-brand); }

.custom-select--lang .custom-select__options {
  bottom: calc(100% + 6px);
  top: auto;
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.custom-select--lang .custom-select__option {
  padding: 10px 16px;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
}

.custom-select--lang .custom-select__option:hover,
.custom-select--lang .custom-select__option.is-selected {
  background: rgba(255, 227, 10, 0.12);
  color: var(--color-brand);
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 88px;
  left: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 24px rgba(37, 211, 102, 0.5));
}

.whatsapp-float-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: contain;
}

/* RTL: a11y toggle moves to right, so WhatsApp can sit at bottom-left */
[dir="rtl"] .whatsapp-float,
html[dir="rtl"] .whatsapp-float {
  bottom: 20px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 80px;
    left: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  [dir="rtl"] .whatsapp-float,
  html[dir="rtl"] .whatsapp-float {
    bottom: 16px;
  }
}
