/* ==========================================================================
   Pista Royal — pistaroyal.com
   Design tokens, layout and components.
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fdf8f0;
  --cream-deep: #f5ecdd;
  --terracotta: #b8664a;
  --terracotta-bright: #c47a5a;
  --deep-green: #2d5a27;
  --pistachio: #7ba455;
  --gold: #c39a45;
  --charcoal: #1a1a1a;
  --charcoal-soft: #232323;
  --ink: #2b2b2b;
  --muted: #5f5f5f;
  --white: #fff;
  --line: rgba(0, 0, 0, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --radius: 6px;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.35);

  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-rtl: 'Vazirmatn', 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  /* The reveal animations start off-canvas (translateX / scale), which is
     transient sideways overflow. `clip` removes it WITHOUT creating a scroll
     container — `hidden` would, and that breaks position:sticky on the
     variety index. The `hidden` line is the fallback for Safari < 16. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-en);
  background-color: var(--charcoal);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* RTL languages use Vazirmatn for both body and display type */
html[lang='fa'] body,
html[lang='ar'] body {
  font-family: var(--font-rtl);
}
html[lang='fa'] h1, html[lang='fa'] h2, html[lang='fa'] h3, html[lang='fa'] h4,
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3, html[lang='ar'] h4 {
  font-family: var(--font-rtl);
  font-weight: 700;
  line-height: 1.35;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: inherit;
  text-wrap: balance;
}

p {
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: pretty;
}

a { color: inherit; }
img, picture, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* Focus ring — visible for keyboard users only */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-reader-only utility */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  z-index: 1400;
  pointer-events: none;
}
[dir='rtl'] .scroll-progress { transform-origin: right center; }

/* ---------- Reveal animations ---------- */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal { transform: translateY(48px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
[dir='rtl'] .reveal-left { transform: translateX(60px); }
[dir='rtl'] .reveal-right { transform: translateX(-60px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.img-scale-container { overflow: hidden; }
.img-scale {
  transition: transform 6s var(--ease);
  transform: scale(1.14);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.is-visible .img-scale { transform: scale(1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1300;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 50px);
  color: var(--white);
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}
.site-header.scrolled {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
html[lang='fa'] .brand, html[lang='ar'] .brand { font-family: var(--font-rtl); }
.brand svg { width: 26px; height: 26px; flex: none; color: var(--pistachio); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a {
  position: relative;
  font-size: 0.87rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  transition: color 0.25s ease;
}
html[lang='fa'] .nav-links a,
html[lang='ar'] .nav-links a { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current='true'] { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current='true']::after { width: 100%; }

.lang-switcher {
  display: flex;
  gap: 6px;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--line-light);
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.lang-btn:hover { color: var(--white); border-color: var(--line-light); }
.lang-btn[aria-pressed='true'] {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 22px 90px;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
/* <picture> is a real box in the layout: it must be stretched too, or the
   <img> inside it resolves height:100% against an auto-height parent. */
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 16, 16, 0.80) 0%,
    rgba(16, 16, 16, 0.70) 45%,
    rgba(16, 16, 16, 0.92) 100%
  );
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
html[lang='fa'] .eyebrow,
html[lang='ar'] .eyebrow { letter-spacing: 0.05em; text-transform: none; font-size: 0.92rem; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  color: var(--white);
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0 auto 40px;
}

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-bright); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.6);
}
.scroll-hint svg { width: 22px; height: 22px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal-soft);
  color: rgba(255, 255, 255, 0.72);
  padding: 26px clamp(20px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(24px, 5vw, 64px);
  border-block: 1px solid var(--line-light);
  font-size: 0.88rem;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 9px; }
.trust-bar svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}
/* Height is driven by content, not by a viewport fraction. The old 88vh left
   short copy floating in a very tall column. */
.split-media { position: relative; min-height: 560px; }
.split-media picture { position: absolute; inset: 0; display: block; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 84px);
  background: var(--cream);
}
/* Long copy needs a measure, not the full half-width of a 27" monitor. */
.split-body > * { max-width: 34rem; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-body { order: 1; }
.split.dark .split-body { background: var(--charcoal); }
.split.dark h2 { color: var(--white); }
.split.dark p { color: rgba(255, 255, 255, 0.65); }

.section-tag {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
html[lang='fa'] .section-tag,
html[lang='ar'] .section-tag { letter-spacing: 0.05em; text-transform: none; font-size: 0.9rem; }
.section-tag.gold { color: var(--gold); }

.split-body h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); margin-bottom: 22px; }
.split-body p + p { margin-top: 16px; }

.spec-list { margin-top: 28px; display: grid; gap: 11px; }
.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--muted);
}
.spec-list svg { width: 16px; height: 16px; margin-top: 5px; flex: none; color: var(--pistachio); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 54px);
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--deep-green);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang='fa'] .stat-label,
html[lang='ar'] .stat-label { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

/* ---------- Benefits ---------- */
.benefits {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 60px);
}
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
/* Colour is inherited from the section, so the same block works on the dark
   and the cream backgrounds without a hard-coded white. */
.section-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); color: inherit; margin-bottom: 18px; }
.section-head p { color: var(--muted); }
.benefits .section-head p,
.journey .section-head p { color: rgba(255, 255, 255, 0.62); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  max-width: 1240px;
  margin: 0 auto;
}
.card {
  background: var(--charcoal);
  padding: clamp(30px, 3.4vw, 46px);
  transition: background-color 0.35s ease;
}
.card:hover { background: var(--charcoal-soft); }
.card svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 18px; }
.card h3 { font-size: 1.24rem; color: var(--white); margin-bottom: 11px; }
.card p { font-size: 0.96rem; color: rgba(255, 255, 255, 0.58); }

/* ---------- Marquee ---------- */
.marquee-section {
  background: var(--cream-deep);
  padding: clamp(60px, 7vw, 96px) 0;
  text-align: center;
  overflow: hidden;
}
.marquee-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 46px;
  padding-inline: 20px;
}
.marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-mask:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item svg { width: 19px; height: 19px; color: var(--terracotta); flex: none; }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--cream);
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 60px);
}
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
html[lang='fa'] .faq-item summary,
html[lang='ar'] .faq-item summary { font-family: var(--font-rtl); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--terracotta);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 26px; }
.faq-answer p { font-size: 1rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 70px);
  align-items: start;
}
.contact h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); color: var(--white); margin-bottom: 20px; }
.contact-info > p { color: rgba(255, 255, 255, 0.62); margin-bottom: 38px; }

.contact-details { display: grid; gap: 4px; }
.contact-details a,
.contact-details div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
.contact-details a:hover { color: var(--gold); }
.contact-details svg { width: 18px; height: 18px; flex: none; color: var(--terracotta); }
/* Phone numbers & emails stay LTR even in RTL layouts */
.ltr-num { direction: ltr; unicode-bidi: isolate; }

.contact-form {
  position: relative;   /* contains the honeypot above */
  background: #202020;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(28px, 3.6vw, 52px);
}
.form-group { margin-bottom: 24px; }
.form-group > label,
.fieldset-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
html[lang='fa'] .form-group > label, html[lang='ar'] .form-group > label,
html[lang='fa'] .fieldset-label, html[lang='ar'] .fieldset-label {
  letter-spacing: 0; text-transform: none; font-size: 0.9rem;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 11px 2px;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  transition: border-color 0.25s ease;
}
.form-group textarea { min-height: 108px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.form-group input:user-invalid,
.form-group textarea:user-invalid { border-bottom-color: #e07a6a; }

fieldset { border: 0; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.checkbox-row label:hover { border-color: rgba(255, 255, 255, 0.42); }
.checkbox-row input { accent-color: var(--pistachio); margin: 0; }
.checkbox-row input:checked + span { color: var(--white); }
.checkbox-row label:has(input:checked) {
  border-color: var(--pistachio);
  background: rgba(123, 164, 85, 0.14);
}

/* Honeypot — hidden from humans, still present for naive bots.
   Parked ABOVE the page, never off to the side: a negative `left` is
   SCROLLABLE overflow in an RTL document, which shifted the whole Persian and
   Arabic layout sideways by 10,000px. Overflow past the top edge is not
   scrollable in any writing direction. */
.hp-field {
  position: absolute !important;
  top: -9999px;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius);
  padding: 17px 28px;
  font-size: 0.95rem;
}
.submit-btn:hover:not(:disabled) { background: var(--terracotta-bright); }
.submit-btn:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }
.submit-btn.is-ok { background: var(--pistachio); }
.submit-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.72);
}
.form-status.error { color: #eb9284; }
.form-status.success { color: var(--pistachio); }
.form-note { margin-top: 14px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.45);
  padding: 40px clamp(20px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--line-light);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split,
  .contact { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split.reverse .split-body { order: 0; }
  .split-media { min-height: 58vh; }
  .split { min-height: 0; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 10px 24px 26px;
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a {
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header:has(.nav-links.open) {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(18px);
  }
  .lang-switcher { padding-inline-start: 0; border: 0; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .trust-bar { justify-content: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .img-scale { transform: none; }
  .marquee-track { animation: none; }
}

@media print {
  .site-header, .wa-float, .scroll-progress, .scroll-hint, .contact-form { display: none; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
}

/* ---------- Utilities used in place of inline styles ----------------------
   Keeping every style in this file lets the CSP forbid inline styles
   entirely (style-src 'self', no 'unsafe-inline').
   -------------------------------------------------------------------------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.on-cream { color: var(--ink); }

[data-delay='08'] { transition-delay: 0.08s; }
[data-delay='15'] { transition-delay: 0.15s; }
[data-delay='16'] { transition-delay: 0.16s; }
[data-delay='24'] { transition-delay: 0.24s; }
[data-delay='3']  { transition-delay: 0.30s; }
[data-delay='32'] { transition-delay: 0.32s; }
[data-delay='4']  { transition-delay: 0.40s; }
[data-delay='45'] { transition-delay: 0.45s; }

/* ---------- 404 page ---------- */
.nf {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--charcoal);
  color: var(--white);
  padding: 40px 20px;
}
.nf h1 { font-size: clamp(3rem, 12vw, 7rem); color: var(--gold); margin-bottom: 8px; }
.nf h2 { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--white); margin-bottom: 18px; }
.nf p { color: rgba(255, 255, 255, 0.6); margin-bottom: 34px; }


/* ==========================================================================
   JOURNEY — farm to customer: the film, five stages, assurances
   ========================================================================== */
.journey {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 60px);
}
.journey .section-head h2 { color: var(--white); }
.journey .section-head p { color: rgba(255, 255, 255, 0.62); }

/* ---------- The wide film ---------- */
.video-figure {
  max-width: 1100px;
  margin: 0 auto clamp(56px, 7vw, 90px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;         /* reserves the space: no layout shift */
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d0d0d;
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-lg);
}
.video-frame picture,
.video-frame img,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame img { transition: transform 1.2s var(--ease), filter 0.5s ease; }
.video-frame:hover img { transform: scale(1.03); filter: brightness(0.82); }
/* Once playing, the poster and button are gone and the player owns the box. */
.video-frame.is-playing img,
.video-frame.is-playing picture { display: none; }
.video-frame video { object-fit: contain; background: #000; }

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(
    180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.55) 100%);
  border: 0;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.video-play:hover { background-color: rgba(10, 10, 10, 0.12); }

.video-play-ring {
  position: relative;
  width: clamp(64px, 8vw, 86px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
}
.video-play-ring svg {
  width: 34%;
  height: 34%;
  color: var(--white);
  margin-inline-start: 8%;      /* optically centre the triangle */
}
.video-play:hover .video-play-ring,
.video-play:focus-visible .video-play-ring {
  transform: scale(1.08);
  background: var(--terracotta);
  border-color: var(--terracotta);
}
/* A soft pulse that stops the moment someone hovers or prefers less motion. */
.video-play-ring::after {
  content: '';
  position: absolute;
  width: clamp(64px, 8vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: ring-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
.video-play:hover .video-play-ring::after { animation: none; opacity: 0; }
@keyframes ring-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.video-play-text { text-align: center; }
.video-play-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.video-play-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
html[lang='fa'] .video-play-meta,
html[lang='ar'] .video-play-meta { letter-spacing: 0; text-transform: none; font-size: 0.88rem; }

.video-figure figcaption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- Five stages ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  max-width: 1240px;
  margin: 0 auto;
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; }
/* The connecting rule that turns five boxes into one journey. */
.step::before {
  content: '';
  position: absolute;
  top: 7px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: var(--line-light);
}
.step:first-child::before { inset-inline-start: 0; width: 100%; }
.step::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}
.step-icon { width: 24px; height: 24px; color: var(--pistachio); margin-bottom: 14px; }
.step h3 { font-size: 1.18rem; color: var(--white); margin-bottom: 9px; }
.step p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.56); }

/* ---------- Assurances ---------- */
.assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(24px, 4vw, 52px);
  max-width: 1240px;
  margin: clamp(48px, 6vw, 76px) auto 0;
  padding-top: clamp(32px, 4vw, 46px);
  border-top: 1px solid var(--line-light);
}
.assurances li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.66);
}
.assurances svg { width: 16px; height: 16px; flex: none; color: var(--pistachio); }

/* ==========================================================================
   VARIETIES — heading, sticky index, numerals
   ========================================================================== */
.on-cream-block {
  background: var(--cream);
  margin: 0;
  max-width: none;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 60px) clamp(28px, 3vw, 40px);
}
.on-cream-block > * { max-width: 720px; margin-inline: auto; }

/* Sticky pill row: a buyer who wants Akbari should not scroll past four
   others to reach it. */
.variety-index {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
  padding: 13px clamp(16px, 4vw, 40px);
}
.variety-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.variety-index a b {
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--terracotta);
  letter-spacing: 0.08em;
}
.variety-index a:hover { color: var(--ink); border-color: var(--line); }
.variety-index a[aria-current='true'] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.variety-index a[aria-current='true'] b { color: var(--gold); }

.split.variety { scroll-margin-top: calc(var(--header-h) + 58px); }
.variety-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 0.9;
  color: var(--terracotta);
  opacity: 0.16;
  margin-bottom: 6px;
}
.split.dark .variety-num { color: var(--gold); opacity: 0.28; }

/* ==========================================================================
   RESPONSIVE — journey + varieties
   ========================================================================== */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
  .step::before { display: none; }
  .step { padding-top: 0; padding-inline-start: 22px; }
  .step::after { top: 8px; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .video-play-ring::after { display: none; }
  .variety-index {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-inline: 16px;
  }
  .variety-index::-webkit-scrollbar { display: none; }
  .assurances { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   HERO — ambient background loop
   ========================================================================== */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  z-index: 0;
}
/* main.js adds this only once the loop is genuinely playing, so the still
   image is never replaced by a black box. */
.hero-video.is-ready { opacity: 1; }
.hero-media::after { z-index: 1; }   /* the darkening gradient sits on top */

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .video-play-ring::after { animation: none; display: none; }
  .video-frame:hover img { transform: none; }
}
