/* ==========================================================================
   Raqeeb Aryobi Production & Packaging Company
   Design system: deep navy + gold, warm neutral surfaces
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Plus+Jakarta+Sans:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300..700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1240px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* Arabic-script languages (Dari / Pashto) */
html[lang='fa'],
html[lang='ps'] {
  --font-display: 'Vazirmatn', 'Iowan Old Style', Tahoma, serif;
  --font-body: 'Vazirmatn', Tahoma, sans-serif;
}

:root,
[data-theme='light'] {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-surface-2: #f5f3ee;
  --color-surface-offset: #eeebe3;
  --color-divider: #e2ded4;
  --color-border: #d5d0c4;

  --color-text: #0b1f3a;
  --color-text-muted: #56657a;
  --color-text-faint: #94a0b0;
  --color-text-inverse: #f7f6f2;

  --color-navy: #0b1f3a;
  --color-navy-2: #12304f;
  --color-navy-deep: #071527;

  --color-primary: #0b1f3a;
  --color-primary-hover: #12304f;

  --color-gold: #a8813a;
  --color-gold-bright: #c8a24a;
  --color-gold-soft: #f0e6cf;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.07);
  --shadow-md: 0 6px 20px rgba(11, 31, 58, 0.09);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.14);

  --header-bg: rgba(251, 250, 247, 0.96);
}

[data-theme='dark'] {
  --color-bg: #08131f;
  --color-surface: #0d1e30;
  --color-surface-2: #112538;
  --color-surface-offset: #162c40;
  --color-divider: #1c3448;
  --color-border: #24405a;

  --color-text: #e7ecf3;
  --color-text-muted: #9aabbe;
  --color-text-faint: #6b7d92;
  --color-text-inverse: #08131f;

  --color-navy: #0d1e30;
  --color-navy-2: #16324c;
  --color-navy-deep: #050d16;

  --color-primary: #d8b45f;
  --color-primary-hover: #e6c780;

  --color-gold: #d8b45f;
  --color-gold-bright: #e6c780;
  --color-gold-soft: #2a2418;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

  --header-bg: rgba(8, 19, 31, 0.96);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}

html[lang='fa'] h1,
html[lang='fa'] h2,
html[lang='fa'] h3,
html[lang='fa'] h4,
html[lang='ps'] h1,
html[lang='ps'] h2,
html[lang='ps'] h3,
html[lang='ps'] h4 {
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.4;
}

html[lang='fa'] body,
html[lang='ps'] body {
  line-height: 1.85;
}

p,
li {
  text-wrap: pretty;
}

::selection {
  background: var(--color-gold-soft);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

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

a,
button,
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.wrap--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.section--surface {
  background: var(--color-surface-2);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

html[lang='fa'] .eyebrow,
html[lang='ps'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  flex: none;
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-head h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--color-text-muted);
  max-width: 62ch;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

[data-theme='dark'] .btn--primary {
  color: #08131f;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.btn--gold {
  background: var(--color-gold-bright);
  color: #0b1f3a;
}

.btn--gold:hover {
  background: #d9b968;
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.arrow {
  display: inline-block;
  transition: transform var(--transition-interactive);
}

html[dir='rtl'] .arrow {
  transform: scaleX(-1);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

html[dir='rtl'] .btn:hover .arrow {
  transform: scaleX(-1) translateX(3px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
  margin-inline-end: auto;
}

.brand__mark {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  flex: none;
}

[data-theme='dark'] .brand__mark {
  color: var(--color-gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
}

html[lang='fa'] .brand__sub,
html[lang='ps'] .brand__sub {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}

.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-gold);
}

/* Language switcher */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.lang__btn:hover {
  color: var(--color-text);
  border-color: var(--color-gold);
}

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: none;
  z-index: 70;
}

.lang__menu[data-open='true'] {
  display: block;
}

.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.lang__menu a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.lang__menu a[aria-current='true'] {
  color: var(--color-gold);
  font-weight: 600;
}

.burger {
  display: none;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6) var(--space-8);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 200ms ease,
      transform 200ms ease;
  }

  .nav[data-open='true'] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
  }

  .burger {
    display: grid;
  }
}

/* Compact header for small phones: the brand, language, theme and menu
   controls must all fit on one row without horizontal overflow. */
@media (max-width: 700px) {
  .header__inner {
    gap: var(--space-3);
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__name {
    font-size: var(--text-sm);
  }

  .brand__sub {
    display: none;
  }

  .lang__btn {
    padding-inline: var(--space-3);
  }

  .lang__btn [data-lang-current] {
    display: none;
  }

  .header__tools {
    gap: var(--space-1);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  background: var(--color-navy-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(5, 13, 22, 0.94) 0%,
    rgba(5, 13, 22, 0.72) 38%,
    rgba(5, 13, 22, 0.34) 72%,
    rgba(5, 13, 22, 0.45) 100%
  );
}

.hero__inner {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  width: 100%;
}

.hero__content {
  max-width: 46rem;
}

.hero .eyebrow {
  color: var(--color-gold-bright);
}

.hero .eyebrow::before {
  background: var(--color-gold-bright);
}

.hero h1 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-5);
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  line-height: 1.55;
  margin-bottom: var(--space-8);
}

/* Page hero (interior pages) */
.pagehero {
  position: relative;
  color: #fff;
  background: var(--color-navy-deep);
  isolation: isolate;
  overflow: hidden;
}

.pagehero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pagehero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.pagehero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(5, 13, 22, 0.95),
    rgba(5, 13, 22, 0.7) 60%,
    rgba(5, 13, 22, 0.6)
  );
}

.pagehero__inner {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.pagehero h1 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 34ch;
}

.pagehero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__value span {
  font-size: 0.55em;
  color: var(--color-gold);
  margin-inline-start: 0.15em;
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card--link:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

.card h3 {
  font-size: var(--text-lg);
}

.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-gold-soft);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

[data-theme='dark'] .card__icon {
  background: var(--color-surface-offset);
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  box-shadow: var(--shadow-md);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 800px) {
  .split--reverse .split__media {
    order: 0;
  }
}

.split__body h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.split__body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ---------- Feature list ---------- */
.ticklist {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.ticklist li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.ticklist svg {
  flex: none;
  margin-top: 0.3em;
  color: var(--color-gold);
}

/* ---------- Product cards ---------- */
.product {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product:hover .product__media img {
  transform: scale(1.04);
}

.product__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product__body h3 {
  font-size: var(--text-lg);
}

.product__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
}

/* ---------- Spec table ---------- */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec caption {
  text-align: start;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  padding-bottom: var(--space-3);
}

html[lang='fa'] .spec caption,
html[lang='ps'] .spec caption {
  letter-spacing: 0;
  text-transform: none;
}

.spec th,
.spec td {
  padding: var(--space-4) var(--space-5);
  text-align: start;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: none;
}

.spec th {
  font-weight: 500;
  color: var(--color-text-muted);
  width: 42%;
  font-family: var(--font-body);
}

.spec td {
  font-weight: 600;
  color: var(--color-text);
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Quote / band ---------- */
.band {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .band {
  border: 1px solid var(--color-border);
}

.band::before {
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.22), transparent 70%);
  pointer-events: none;
}

.band h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
  max-width: 30ch;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.band .eyebrow {
  color: var(--color-gold-bright);
}

.band .eyebrow::before {
  background: var(--color-gold-bright);
}

.quote {
  border-inline-start: 3px solid var(--color-gold);
  padding-inline-start: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text);
  max-width: 46ch;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Feature gallery keeps a clean two-up rhythm at every width. */

/* ---------- Timeline / process ---------- */
.steps {
  display: grid;
  gap: var(--space-1);
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-divider);
  align-items: start;
}

.step:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.step__n {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  line-height: 1;
}

.step h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 560px) {
  .step {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.contact-list {
  display: grid;
  gap: var(--space-6);
}

.contact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.contact-item svg {
  color: var(--color-gold);
  margin-top: 0.2em;
}

.contact-item__label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

html[lang='fa'] .contact-item__label,
html[lang='ps'] .contact-item__label {
  letter-spacing: 0;
  text-transform: none;
}

.contact-item a,
.contact-item p {
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--color-gold);
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  display: grid;
  gap: var(--space-5);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}

.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  font-size: var(--text-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  padding-bottom: var(--space-12);
}

@media (min-width: 560px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  }
}

.footer__grid > * {
  min-width: 0;
}

.footer li,
.footer a {
  overflow-wrap: anywhere;
}

.footer .brand__name {
  color: #fff;
}

.footer .brand__sub {
  color: rgba(255, 255, 255, 0.45);
}

.footer .brand__mark {
  color: var(--color-gold-bright);
}

.footer p {
  max-width: 34ch;
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

html[lang='fa'] .footer h4,
html[lang='ps'] .footer h4 {
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-sm);
}

.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-gold-bright);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

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

.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.social a:hover {
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
  background: rgba(200, 162, 74, 0.12);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  inset-block-end: var(--space-6);
  inset-inline-end: var(--space-6);
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ---------- Reveal on scroll ---------- */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal,
  html.has-js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Bidi isolation — phone numbers, emails and Latin identifiers must always
   render left-to-right, even inside Dari / Pashto right-to-left text.
   -------------------------------------------------------------------------- */
[data-site='phone'],
[data-site='phone2'],
[data-site='whatsapp'],
[data-site='email'],
[data-site='emailSales'] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
