/* ============================================================
   SAASDAARI — Organic Luxury 3D design system
   Fonts: Fraunces (display) + Outfit (body)
   ============================================================ */

:root {
  /* Color tokens */
  --green-950: #081f15;
  --green-900: #0b2e20;
  --green-800: #123f2c;
  --green-700: #17573a;
  --green-600: #1e7a4e;
  --leaf: #7ed957;
  --leaf-soft: #b7ecab;
  --gold: #d9a441;
  --gold-soft: #f0d9a8;
  --cream: #f6f3ea;
  --cream-2: #efeadb;
  --white: #ffffff;
  --ink: #10241b;
  --ink-soft: #3d5548;
  --on-dark: #eef6ee;
  --on-dark-soft: #b9cfbf;

  /* Type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2.5rem, 5.5vw, 4.25rem);
  --fs-hero: clamp(2.75rem, 6.5vw, 5rem);

  /* Layout */
  --container: 74rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --nav-h: 5rem;

  /* Depth / 3D */
  --shadow-sm: 0 2px 10px rgba(8, 31, 21, 0.08);
  --shadow-md: 0 12px 30px -8px rgba(8, 31, 21, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(8, 31, 21, 0.45);
  --shadow-glow: 0 0 60px rgba(126, 217, 87, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--green-900);
  color: var(--on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font: 600 var(--fs-sm)/1 "Outfit", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--leaf {
  background: linear-gradient(135deg, var(--leaf) 0%, #5cc23e 100%);
  color: var(--green-950);
  box-shadow: 0 10px 24px -8px rgba(126, 217, 87, 0.55);
}
.btn--leaf:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -8px rgba(126, 217, 87, 0.65); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }

.btn--dark {
  background: var(--green-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}
.btn--dark:hover { background: var(--green-700); transform: translateY(-3px); }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav--scrolled {
  background: rgba(8, 31, 21, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}
.nav__logo img { height: 2.75rem; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin-inline-start: auto;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.12); }
.nav__links a[aria-current="page"] {
  background: rgba(126, 217, 87, 0.18);
  color: var(--leaf-soft);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone {
  color: var(--on-dark-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--leaf-soft); }

.nav__burger {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 63.99em) {
  .nav__burger { display: flex; margin-inline-start: auto; }
  .nav__phone { display: none; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(8, 31, 21, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    display: grid;
    gap: 0.5rem;
    transform: translateY(calc(-100% - var(--nav-h) - 2rem));
    visibility: hidden;
    transition: transform var(--t-med) var(--ease-out), visibility 0s var(--t-med);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .nav__menu.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--t-med) var(--ease-out), visibility 0s;
  }
  .nav__links { flex-direction: column; margin: 0; }
  .nav__links a { min-height: 3rem; font-size: var(--fs-base); }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { justify-content: center; }
}
@media (min-width: 64em) {
  .nav__menu { display: contents; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--on-dark);
  background: var(--green-950);
  overflow: hidden;
  perspective: 1200px;
}
.hero__bg,
.hero__bg::after {
  position: absolute;
  inset: -6%;
}
.hero__bg {
  background: url("../images/farm.jpg") center / cover no-repeat;
  transform: translateZ(0);
  will-change: transform;
}
.hero__bg::after {
  content: "";
  background:
    radial-gradient(ellipse 90% 70% at 22% 40%, rgba(8, 31, 21, 0.55) 0%, transparent 60%),
    linear-gradient(100deg, rgba(8, 31, 21, 0.96) 8%, rgba(8, 31, 21, 0.72) 42%, rgba(8, 31, 21, 0.35) 100%),
    linear-gradient(to top, var(--green-950) 0%, transparent 30%);
}
.hero__grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: calc(var(--nav-h) + 3rem) 6rem;
  perspective: 1100px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf-soft);
  background: rgba(126, 217, 87, 0.12);
  border: 1px solid rgba(126, 217, 87, 0.3);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 12px var(--leaf);
}
.hero h1 {
  font-size: var(--fs-hero);
  margin-block: 1.4rem 1.2rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--leaf) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: var(--fs-lg);
  color: var(--on-dark-soft);
  max-width: 34ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* 3D floating card stack */
.hero__stack {
  position: relative;
  height: min(34rem, 60vh);
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(7deg);
  transition: transform 500ms var(--ease-out);
}
.stack-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out), opacity 600ms;
  will-change: transform;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,31,21,0.45), transparent 55%);
}
.stack-card--1 { width: 72%; height: 62%; top: 4%; right: 4%; z-index: 3; transform: translateZ(40px); }
.stack-card--2 { width: 52%; height: 44%; bottom: 6%; left: 0; z-index: 4; transform: translateZ(120px); }
.stack-card--3 { width: 44%; height: 38%; top: 0; left: 6%; z-index: 2; opacity: 0.92; transform: translateZ(80px); }
/* extra depth edge so cards read as solid slabs */
.stack-card { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.15); }
.stack-card__tag {
  position: absolute;
  z-index: 2;
  bottom: 0.9rem;
  left: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-dark-soft);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(to bottom, var(--leaf), transparent);
  animation: drip 2s var(--ease-out) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 63.99em) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: calc(var(--nav-h) + 2.5rem) 5.5rem;
  }
  /* Keep the 3D depth on mobile: a fanned pair with real perspective */
  .hero__stack {
    height: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.9rem;
    align-items: stretch;
    perspective: 900px;
    transform: none;
  }
  .stack-card { position: static; width: auto; height: auto; }
  .stack-card--1 { aspect-ratio: 16 / 11; transform: rotateY(9deg) translateZ(10px); transform-origin: right center; }
  .stack-card--2 { aspect-ratio: auto; transform: rotateY(-11deg) translateZ(28px); transform-origin: left center; }
  .stack-card--3 { display: none; }
  .stack-card img { height: 100%; }
}

/* ============ Sections ============ */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--dark { background: var(--green-950); color: var(--on-dark); }
.section--cream { background: var(--cream); }

.section-head { max-width: 46rem; margin-bottom: 3.25rem; }
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green-600);
  display: block;
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: var(--leaf); }
.section-head h2 { font-size: var(--fs-3xl); text-wrap: balance; }
.section-head p { margin-top: 1.1rem; color: var(--ink-soft); font-size: var(--fs-lg); }
.section--dark .section-head p { color: var(--on-dark-soft); }

/* ============ Product category cards (3D tilt) ============ */
.cards-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  perspective: 900px;
}
/* Persistent 3D lean at rest — makes the raised icon read as extruded, even on touch */
.tilt-card.reveal { transform: translateY(38px) rotateX(20deg) scale(0.96); }
.tilt-card.reveal.is-in { transform: rotateX(9deg); }
.tilt-card { transform-origin: 50% 100%; }
.tilt-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
  text-decoration: none;
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 14rem;
  overflow: hidden;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(24rem 14rem at var(--mx, 50%) var(--my, 0%), rgba(126, 217, 87, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.tilt-card:hover { border-color: rgba(126, 217, 87, 0.45); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.tilt-card:hover::before { opacity: 1; }

.tilt-card__icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(126,217,87,0.22), rgba(126,217,87,0.06));
  border: 1px solid rgba(126, 217, 87, 0.3);
  transform: translateZ(46px);
  box-shadow: 0 14px 24px -10px rgba(0,0,0,0.5);
}
.tilt-card__icon img { width: 2.5rem; height: 2.5rem; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35)); }
.tilt-card h3 {
  font-size: var(--fs-xl);
  transform: translateZ(34px);
}
.tilt-card p {
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
  transform: translateZ(24px);
}
.tilt-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  transform: translateZ(30px);
}
.tilt-card__link svg { width: 1.1em; height: 1.1em; transition: transform var(--t-fast) var(--ease-out); }
.tilt-card:hover .tilt-card__link svg { transform: translateX(5px); }

.badge-soon {
  position: absolute;
  top: 1.1rem;
  inset-inline-end: 1.1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transform: translateZ(40px);
}

/* ============ Story split ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
@media (max-width: 56em) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}
.split__media { position: relative; perspective: 1000px; }
.frame-3d {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out);
}
.split--flip .frame-3d { transform: rotateY(6deg) rotateX(2deg); }
.split__media:hover .frame-3d { transform: rotateY(0deg) rotateX(0deg); }
.frame-3d img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.frame-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.14) 0%, transparent 32%);
  pointer-events: none;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 12% -6% -6% 12%;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  z-index: -1;
  transform: translateZ(-80px);
}
.split__media::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--leaf), #4aa32f);
  top: -2.25rem;
  inset-inline-end: -1.5rem;
  z-index: -1;
  opacity: 0.85;
  filter: blur(2px);
}
.split__body h2 { font-size: var(--fs-3xl); margin-bottom: 1.4rem; text-wrap: balance; }
.split__body p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.section--dark .split__body p { color: var(--on-dark-soft); }
.split__body .btn { margin-top: 1.25rem; }

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-md);
  position: absolute;
  z-index: 2;
  bottom: -1.5rem;
  inset-inline-start: clamp(0.5rem, 4vw, 2.5rem);
}
.stat-chip strong {
  font-family: "Fraunces", serif;
  font-size: var(--fs-xl);
  color: var(--green-700);
  line-height: 1;
}
.stat-chip span { font-size: var(--fs-xs); color: var(--ink-soft); max-width: 11ch; line-height: 1.3; }

/* ============ Values band ============ */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 36, 27, 0.06);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.value-card__num {
  font-family: "Fraunces", serif;
  font-size: var(--fs-2xl);
  color: var(--leaf);
  -webkit-text-stroke: 1px var(--green-700);
  line-height: 1;
}
.value-card h3 { font-size: var(--fs-lg); margin-block: 1rem 0.6rem; }
.value-card p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ============ Showcase strip (3D coverflow) ============ */
.showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  perspective: 1600px;
}
.showcase a {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: rotateY(calc(var(--i) * 7deg - 14deg)) translateZ(calc((2 - max(var(--i), calc(4 - var(--i)))) * 0px));
  transition: transform 500ms var(--ease-out), box-shadow 500ms;
  display: block;
}
.showcase a:hover { transform: rotateY(0) translateZ(50px) scale(1.05); box-shadow: var(--shadow-lg); z-index: 2; }
.showcase img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
@media (max-width: 56em) {
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; perspective: 900px; }
  /* Keep a subtle alternating 3D tilt on mobile instead of flat */
  .showcase a { transform: rotateY(7deg); transform-origin: right center; }
  .showcase a:nth-child(even) { transform: rotateY(-7deg); transform-origin: left center; }
  .showcase a:nth-child(5) { display: none; }
}

/* ============ Gallery grid ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.1rem;
  perspective: 1600px;
}
.gallery-grid button {
  border: 0;
  padding: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.gallery-grid button:hover { transform: translateZ(34px) rotateX(2deg); box-shadow: var(--shadow-lg); }
/* 3D rotate-in on scroll — visible on touch as tiles enter */
.gallery-grid button.reveal { transform: translateY(30px) rotateX(16deg) scale(0.95); }
.gallery-grid button.reveal.is-in { transform: none; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery-grid button:hover img { transform: scale(1.06); }
.gallery-grid button::after {
  content: "⤢";
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 31, 21, 0.65);
  color: var(--on-dark);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--t-fast);
  backdrop-filter: blur(6px);
}
.gallery-grid button:hover::after,
.gallery-grid button:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: rgba(4, 16, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(64rem, 92vw);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lb-in 320ms var(--ease-spring);
}
@keyframes lb-in {
  from { transform: scale(0.9) translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--on-dark);
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--on-dark);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--green-950);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--green-950) 4%, rgba(8,31,21,0.55) 45%, rgba(8,31,21,0.35) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--nav-h) + 4rem) 4rem;
}
.page-hero h1 { font-size: var(--fs-hero); text-wrap: balance; }
.page-hero .eyebrow { color: var(--leaf); }
.page-hero p { max-width: 52ch; margin-top: 1.2rem; color: var(--on-dark-soft); font-size: var(--fs-lg); }

/* ============ Prose ============ */
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.35rem; color: var(--ink-soft); }
.prose .lead {
  font-family: "Fraunces", serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.section--dark .prose p { color: var(--on-dark-soft); }
.section--dark .prose .lead { color: var(--on-dark); }

/* ============ Contact ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 56em) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med);
}
.contact-info__item:hover { transform: translateY(-4px); border-color: rgba(126,217,87,0.4); }
.contact-info__item svg { width: 1.5rem; height: 1.5rem; color: var(--leaf); flex: none; margin-top: 0.2rem; }
.contact-info__item h3 { font-size: var(--fs-base); font-family: "Outfit", sans-serif; font-weight: 600; }
.contact-info__item p, .contact-info__item a { color: var(--on-dark-soft); font-size: var(--fs-sm); text-decoration: none; }
.contact-info__item a:hover { color: var(--leaf-soft); }

.form-3d {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.25rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 40em) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.02em;
}
.field .req { color: var(--gold-soft); }
.field input,
.field textarea {
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(8, 31, 21, 0.4);
  color: var(--on-dark);
  font: 400 var(--fs-base)/1.5 "Outfit", sans-serif;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(185, 207, 191, 0.55); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.18);
  background: rgba(8, 31, 21, 0.6);
}
.field .error-msg {
  display: none;
  font-size: var(--fs-xs);
  color: #ffb4a2;
}
.field.has-error input,
.field.has-error textarea { border-color: #ff8a70; }
.field.has-error .error-msg { display: block; }
.form-success {
  display: none;
  background: rgba(126, 217, 87, 0.14);
  border: 1px solid rgba(126, 217, 87, 0.45);
  color: var(--leaf-soft);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
}
.form-success.is-visible { display: block; }

/* ============ CTA band ============ */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.5rem);
  background:
    radial-gradient(60rem 24rem at 85% 0%, rgba(126,217,87,0.25), transparent 60%),
    linear-gradient(140deg, var(--green-800), var(--green-950));
  color: var(--on-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-band h2 { font-size: var(--fs-2xl); max-width: 22ch; text-wrap: balance; }
.cta-band p { color: var(--on-dark-soft); margin-top: 0.5rem; }

/* ============ Footer ============ */
.footer {
  background: var(--green-950);
  color: var(--on-dark-soft);
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50rem 20rem at 10% 0%, rgba(126,217,87,0.07), transparent 60%);
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 56em) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36em) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 3rem; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { font-size: var(--fs-sm); max-width: 30ch; }
.footer h3 {
  font-family: "Outfit", sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer ul a {
  color: var(--on-dark-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer ul a:hover { color: var(--leaf-soft); transform: translateX(4px); }
.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--on-dark-soft);
  transition: all var(--t-fast) var(--ease-out);
}
.socials a:hover {
  color: var(--green-950);
  background: var(--leaf);
  border-color: var(--leaf);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -6px rgba(126,217,87,0.5);
}
.socials svg { width: 1.2rem; height: 1.2rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: var(--fs-xs);
}
.footer__bottom a { color: var(--on-dark-soft); text-decoration: none; }
.footer__bottom a:hover { color: var(--leaf-soft); }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.1rem;
  background: var(--green-900);
  color: var(--on-dark-soft);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__track em { color: var(--leaf); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Mobile ============ */
@media (max-width: 48em) {
  :root {
    --nav-h: 4.25rem;
    --fs-hero: clamp(1.7rem, 7.6vw, 2.5rem);
    --fs-3xl: clamp(1.7rem, 6.6vw, 2.4rem);
    --fs-2xl: 1.75rem;
    --radius-lg: 1.4rem;
  }
  .container { width: min(var(--container), 100% - 2rem); }
  .nav__logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .nav__logo img { height: 2.25rem; }
  .nav__burger {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section { padding-block: 3.5rem; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head p { font-size: var(--fs-base); }

  /* Compact hero: content-sized, no dead space, cards fully visible */
  .hero { min-height: 0; }
  .hero__inner {
    gap: 1.9rem;
    padding-block: calc(var(--nav-h) + 1.9rem) 3rem;
  }
  .hero__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
    padding: 0.45rem 0.9rem;
  }
  .hero h1 { margin-block: 1.1rem 0.9rem; overflow-wrap: break-word; }
  .hero__sub { font-size: var(--fs-base); margin-bottom: 1.6rem; }
  .hero__actions { gap: 0.75rem; }
  .hero__actions .btn { flex: 1 1 10rem; justify-content: center; }
  .hero__scroll { display: none; }

  .marquee { padding-block: 0.85rem; }
  .marquee__track { font-size: var(--fs-xs); gap: 2rem; }
  .marquee__track span { gap: 2rem; }

  .cards-3d { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .tilt-card { padding: 1.35rem 1.1rem; min-height: 0; gap: 0.7rem; }
  .badge-soon { position: static; order: -1; align-self: flex-start; }
  .tilt-card__icon { width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; }
  .tilt-card__icon img { width: 1.9rem; height: 1.9rem; }
  .tilt-card h3 { font-size: var(--fs-lg); }
  .tilt-card h3 br { display: none; }
  .tilt-card p { font-size: var(--fs-xs); }
  .tilt-card__link { font-size: var(--fs-xs); }

  .split { gap: 2rem; }
  /* Keep a gentle 3D tilt on the framed photos (was flattened) */
  .frame-3d { transform: perspective(900px) rotateY(-9deg) rotateX(3deg); }
  .split--flip .frame-3d { transform: perspective(900px) rotateY(9deg) rotateX(3deg); }
  .split__media::after { display: none; }
  .split__media::before { inset: 10% -5% -5% 10%; }
  .stat-chip {
    position: static;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 36, 27, 0.08);
  }

  .values { grid-template-columns: 1fr; gap: 0.9rem; }
  .value-card { padding: 1.5rem 1.35rem; }
  .value-card:hover { transform: none; }

  .contact-info { gap: 0.9rem; }
  .contact-info__item { padding: 1.1rem 1.2rem; }
  .contact-info__item a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-block: -0.5rem;
  }
  .form-3d { padding: 1.4rem 1.15rem; }

  /* Native-feeling touch: kill blue flash, add press feedback */
  a, button, .btn { -webkit-tap-highlight-color: transparent; }
  .nav__links a:active,
  .footer ul a:active,
  .footer__bottom a:active,
  .contact-info__item a:active,
  .tilt-card:active { opacity: 0.62; }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 1.4rem;
  }
  .cta-band .btn { justify-content: center; }

  .page-hero { min-height: 46vh; }
  .page-hero__inner { padding-block: calc(var(--nav-h) + 3rem) 2.5rem; }
  .page-hero p { font-size: var(--fs-base); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }

  .prose .lead { font-size: var(--fs-lg); }

  .footer { padding-top: 3rem; }
  .footer__grid { gap: 1.75rem; padding-bottom: 2rem; }
  /* Touch targets: footer nav links to 44px min */
  .footer ul { gap: 0.15rem; }
  .footer ul a { min-height: 2.75rem; padding-inline: 0.6rem; margin-inline-start: -0.6rem; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    padding-top: 1.25rem;
  }
  .footer__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.4rem;
  }

  .lightbox { padding: 0.75rem; }
  .lightbox img { max-width: 94vw; max-height: 76vh; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
  .lightbox__nav { width: 2.75rem; height: 2.75rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}

/* ============ Language toggle ============ */
.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.nav__lang:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--leaf); color: var(--leaf-soft); }

/* ============ Arabic / RTL ============ */
[dir="rtl"] body { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display,
[dir="rtl"] .stat-chip strong, [dir="rtl"] .prose .lead,
[dir="rtl"] .value-card__num {
  font-family: "El Messiri", "Tajawal", serif;
}
[dir="rtl"] .hero h1 em { font-style: normal; }
/* Arabic doesn't want the wide Latin tracking */
[dir="rtl"] .eyebrow, [dir="rtl"] .hero__eyebrow, [dir="rtl"] .section-head .eyebrow,
[dir="rtl"] .tilt-card__link, [dir="rtl"] .btn, [dir="rtl"] .nav__links a,
[dir="rtl"] .footer h3, [dir="rtl"] .stack-card__tag, [dir="rtl"] .marquee__track {
  letter-spacing: 0;
}

/* Directional arrows flip */
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .tilt-card:hover .tilt-card__link .i-arrow { transform: scaleX(-1) translateX(5px); }

/* Mirror the hero collage (desktop) */
[dir="rtl"] .hero__stack { transform: rotateY(20deg) rotateX(7deg); }
[dir="rtl"] .stack-card--1 { right: auto; left: 4%; }
[dir="rtl"] .stack-card--2 { left: auto; right: 0; }
[dir="rtl"] .stack-card--3 { left: auto; right: 6%; }
[dir="rtl"] .stack-card__tag { left: auto; right: 1rem; }

/* Mirror hero lighting so the dark side stays under the text column */
[dir="rtl"] .hero__bg::after {
  background:
    radial-gradient(ellipse 90% 70% at 78% 40%, rgba(8,31,21,0.55) 0%, transparent 60%),
    linear-gradient(260deg, rgba(8,31,21,0.96) 8%, rgba(8,31,21,0.72) 42%, rgba(8,31,21,0.35) 100%),
    linear-gradient(to top, var(--green-950) 0%, transparent 30%);
}

/* Mirror the framed-photo depth block + tilt (desktop) */
[dir="rtl"] .frame-3d { transform: rotateY(6deg) rotateX(2deg); }
[dir="rtl"] .split--flip .frame-3d { transform: rotateY(-6deg) rotateX(2deg); }
[dir="rtl"] .split__media::before { inset: 12% 12% -6% -6%; }

@media (max-width: 63.99em) {
  [dir="rtl"] .hero__stack { transform: none; }
  [dir="rtl"] .stack-card--1 { transform: rotateY(-9deg) translateZ(10px); transform-origin: left center; }
  [dir="rtl"] .stack-card--2 { transform: rotateY(11deg) translateZ(28px); transform-origin: right center; }
}
@media (max-width: 48em) {
  [dir="rtl"] .frame-3d { transform: perspective(900px) rotateY(9deg) rotateX(3deg); }
  [dir="rtl"] .split--flip .frame-3d { transform: perspective(900px) rotateY(-9deg) rotateX(3deg); }
  [dir="rtl"] .split__media::before { inset: 10% 10% -5% -5%; }
}

/* ============ Reduced motion ============ */
@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 { opacity: 1; transform: none; }
  .hero__bg, .page-hero__bg, .stack-card, .frame-3d { transform: none !important; }
}
