/* ============================================================
   زرعتنا | Zr3tna — Main Styles
   Premium agricultural landing • RTL/LTR • Mobile-first
   ============================================================ */

/* ---------- CSS Variables (Brand) ---------- */
:root {
  --primary-green: #1f4d2b;
  --primary-green-rgb: 31, 77, 43;
  --cream: #fff3e7;
  --cream-rgb: 255, 243, 231;
  --natural-brown: #5b3d2f;
  --natural-brown-rgb: 91, 61, 47;
  --sand-accent: #dbb698;
  --sand-rgb: 219, 182, 152;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(var(--primary-green-rgb), 0.08);
  --shadow-hover: 0 12px 40px rgba(var(--primary-green-rgb), 0.15);
  --transition: 0.3s ease;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --font-heading-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-english: 'Poppins', sans-serif;
}

/* Habeba: add @font-face here if you have the .woff2 file */
/* @font-face {
  font-family: 'Habeba';
  src: url('../assets/fonts/Habeba.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
} */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background: var(--cream);
  color: var(--primary-green);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lang-en {
  font-family: var(--font-english);
}

body.lang-en .section-title,
body.lang-en .hero-title,
body.lang-en .hero-cinematic-line,
body.lang-en .service-title,
body.lang-en .contact-brand {
  font-family: var(--font-english);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(var(--cream-rgb), 0.98);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  color: var(--primary-green);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--cream);
  padding: 1rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin: 0 1rem;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link {
  padding: 0.5rem;
  color: var(--primary-green);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--natural-brown);
}

.lang-toggle {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  background: var(--sand-accent);
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.lang-toggle:hover {
  background: var(--primary-green);
  color: var(--white);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    background: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
  }

  .nav-link {
    padding: 0.25rem 0;
  }
}

/* ==================== HERO — Cinematic: LTR = image left, text right | RTL = text right, image left ==================== */
.hero-cinematic {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 1.5rem 0;
}

.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--cream) 0%, rgba(var(--sand-rgb), 0.25) 45%, rgba(var(--primary-green-rgb), 0.08) 100%);
  pointer-events: none;
}

/* Two-column layout on desktop: LTR = image left, text right. RTL = text right, image left. */
@media (min-width: 768px) {
  .hero-cinematic {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem 0;
    gap: 2rem;
  }

  /* LTR: image left (order 1), text right (order 2) */
  .hero-cinematic-character {
    order: 1;
  }

  .hero-cinematic-text-layer {
    order: 2;
  }

  /* RTL: text right (order 1), image left (order 2) */
  [dir="rtl"] .hero-cinematic-character {
    order: 2;
  }

  [dir="rtl"] .hero-cinematic-text-layer {
    order: 1;
  }
}

/* Character (z-index 1) — one side, 20% bigger, touches section bottom */
.hero-cinematic-character {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 260px;
  padding-bottom: 0;
  pointer-events: none;
}

.hero-cinematic-img {
  width: auto;
  height: clamp(336px, 66vh, 528px); /* 20% larger than 280/55vh/440 */
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 -8px 40px rgba(0, 0, 0, 0.08));
  display: block;
}

@media (min-width: 768px) {
  .hero-cinematic {
    padding: 3rem 2rem 0;
  }

  .hero-cinematic-character {
    width: 48%;
    min-height: 60vh;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
  }

  .hero-cinematic-img {
    height: clamp(384px, 68vh, 520px);
  }
}

/* Text (z-index 2) — other side, clear layout */
.hero-cinematic-text-layer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 0 0;
  width: 100%;
  max-width: 90%;
  pointer-events: none;
}

/* LTR: text on the right — align content to end (right) */
[dir="ltr"] .hero-cinematic-text-layer {
  align-items: flex-end;
  text-align: right;
}

@media (min-width: 768px) {
  .hero-cinematic-text-layer {
    width: 48%;
    max-width: 520px;
  }
}

.hero-cinematic-line {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.25;
  color: var(--primary-green);
  text-align: start;
  margin: 0;
  max-width: 20ch;
  opacity: 0;
  transform: translateX(-28px);
  animation: cineLineIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
  letter-spacing: -0.02em;
}

[dir="rtl"] .hero-cinematic-line {
  text-align: end;
  transform: translateX(28px);
}

[dir="ltr"] .hero-cinematic-line {
  text-align: right;
  max-width: 18ch;
  transform: translateX(28px);
}

.hero-cinematic-line-1 {
  animation-delay: 0.25s;
}

.hero-cinematic-line-2 {
  animation-delay: 0.65s;
  margin-top: 0.25em;
}

.hero-cinematic-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--natural-brown);
  margin-top: 1.25rem;
  max-width: 26ch;
  opacity: 0;
  animation: cineLineIn 0.9s ease-out 1s forwards;
  font-weight: 500;
  text-align: start;
}

[dir="rtl"] .hero-cinematic-sub {
  text-align: end;
}

[dir="ltr"] .hero-cinematic-sub {
  text-align: right;
}

@keyframes cineLineIn {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RTL: text slides in from right */
[dir="rtl"] .hero-cinematic-line,
[dir="rtl"] .hero-cinematic-sub {
  animation-name: cineLineInRtl;
}

@keyframes cineLineInRtl {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* LTR: text on right slides in from right */
[dir="ltr"] .hero-cinematic-line,
[dir="ltr"] .hero-cinematic-sub {
  animation-name: cineLineInRtl;
}

.hero-cinematic-cta {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  animation: cineLineIn 0.8s ease-out 1.4s forwards;
}

[dir="rtl"] .hero-cinematic-cta {
  transform: translateX(50%);
}

.hero-cinematic-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--primary-green);
  animation: bounce 2s infinite;
}

[dir="rtl"] .hero-cinematic-scroll {
  transform: translateX(50%);
}

.hero-cinematic-scroll-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 auto;
}

[dir="ltr"] .hero-cinematic-scroll-icon {
  transform: rotate(-135deg);
}

@media (min-width: 768px) {
  .hero-cinematic {
    padding: 4rem 2rem 5rem;
  }

  .hero-cinematic-img {
    height: clamp(384px, 74.4vh, 576px); /* 20% larger */
  }
}

/* ---------- Video section (second) ---------- */
.video-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 4rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(var(--primary-green-rgb), 0.6), rgba(var(--primary-green-rgb), 0.75));
}

.video-section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 3rem;
}

.video-section-tag {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.video-section-progress {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-section-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.video-section-progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.video-section-progress-value {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sand-accent);
  min-width: 3ch;
}

.video-section-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.video-section-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sand-accent), var(--white));
  transition: width 0.05s linear;
}

.video-section-scroll {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
}

[dir="rtl"] .video-section-scroll {
  transform: translateX(50%);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

[dir="rtl"] .hero-cinematic-scroll {
  animation: bounceRtl 2s infinite;
}

@keyframes bounceRtl {
  0%, 20%, 50%, 80%, 100% { transform: translateX(50%) translateY(0); }
  40% { transform: translateX(50%) translateY(-8px); }
  60% { transform: translateX(50%) translateY(-4px); }
}

/* ---------- WhatsApp float (hero) ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

[dir="rtl"] .whatsapp-float {
  left: auto;
  right: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

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

.whatsapp-float::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(var(--primary-green-rgb), 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(31, 77, 43, 0.35);
}

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

.btn-secondary {
  background: var(--sand-accent);
  color: var(--primary-green);
}

.btn-block {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0 auto;
}

[dir="ltr"] .hero-scroll-icon {
  transform: rotate(-135deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- About ---------- */
.about {
  background: var(--cream);
}

.about-lead {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  text-align: center;
}

.about-text {
  color: var(--natural-brown);
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-list {
  max-width: 400px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.about-list li {
  position: relative;
  padding: 0.5rem 0;
  padding-inline-start: 1.75rem;
  color: var(--primary-green);
  font-weight: 500;
}

.about-list.reveal li {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[dir="ltr"] .about-list.reveal li {
  transform: translateX(-12px);
}

.about-list.reveal.revealed li {
  opacity: 1;
  transform: translateX(0);
}

.about-list.reveal li:nth-child(1) { transition-delay: 0.1s; }
.about-list.reveal li:nth-child(2) { transition-delay: 0.2s; }
.about-list.reveal li:nth-child(3) { transition-delay: 0.3s; }
.about-list.reveal li:nth-child(4) { transition-delay: 0.4s; }

.about-list li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary-green);
  font-weight: 700;
}

/* ---------- Services ---------- */
.services {
  background: linear-gradient(180deg, rgba(var(--sand-rgb), 0.2) 0%, var(--cream) 100%);
}

.services .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ==================== بطاطس نصف مقلية — Standalone full-bleed section ==================== */
.service-block {
  margin-top: 0;
}

.pack-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.pack-section-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--cream) 0%, rgba(var(--sand-rgb), 0.2) 50%, rgba(var(--primary-green-rgb), 0.08) 100%);
  pointer-events: none;
}

.pack-section-accent {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--sand-rgb), 0.2) 0%, transparent 65%);
  pointer-events: none;
  top: 50%;
  transform: translate(-30%, -50%);
}

[dir="rtl"] .pack-section-accent {
  transform: translate(30%, -50%);
}

.pack-section-inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .pack-section-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    padding: 0 3rem;
  }

  [dir="rtl"] .pack-section-inner {
    direction: rtl;
  }
}

.pack-section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

@media (min-width: 992px) {
  .pack-section-visual {
    min-height: 70vh;
    justify-content: center;
  }
}

.pack-section-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pack-section-shadow {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 32px;
  background: radial-gradient(ellipse 75% 40% at 50% 50%, rgba(var(--primary-green-rgb), 0.25), transparent 65%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.pack-section-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.14)) drop-shadow(0 12px 28px rgba(var(--primary-green-rgb), 0.18));
  transform: perspective(900px) rotateY(-3deg) translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  animation: packSectionFloat 6s ease-in-out infinite;
}

[dir="rtl"] .pack-section-img {
  transform: perspective(900px) rotateY(3deg) translateY(0);
  animation: packSectionFloatRtl 6s ease-in-out infinite;
}

.pack-section-stage:hover .pack-section-img {
  transform: perspective(900px) rotateY(0deg) translateY(-12px) scale(1.03);
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.18)) drop-shadow(0 16px 36px rgba(var(--primary-green-rgb), 0.22));
  animation: none;
}

@keyframes packSectionFloat {
  0%, 100% { transform: perspective(900px) rotateY(-3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-3deg) translateY(-10px); }
}

@keyframes packSectionFloatRtl {
  0%, 100% { transform: perspective(900px) rotateY(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(3deg) translateY(-10px); }
}

@media (min-width: 768px) {
  .pack-section-img {
    max-width: 380px;
  }
}

@media (min-width: 1200px) {
  .pack-section-img {
    max-width: 420px;
  }
}

.pack-section-content {
  text-align: center;
  padding: 0 0.5rem;
}

@media (min-width: 992px) {
  .pack-section-content {
    text-align: start;
    padding: 2rem 0;
  }

  [dir="rtl"] .pack-section-content {
    text-align: right;
  }
}

.pack-section-tag {
  display: inline-block;
  font-family: var(--font-heading-ar);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand-accent);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.9rem;
  background: rgba(var(--sand-rgb), 0.25);
  border-radius: 999px;
}

.pack-section-title {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: var(--primary-green);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.pack-section-desc {
  font-size: 1.1rem;
  color: var(--natural-brown);
  line-height: 1.7;
  margin: 0;
  max-width: 420px;
}

@media (min-width: 992px) {
  .pack-section-desc {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }

  [dir="rtl"] .pack-section-desc {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

.service-block-title {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.service-block-desc {
  font-size: 1rem;
  color: var(--natural-brown);
  line-height: 1.6;
}

/* بطاطس خام: wooden box banner */
.service-raw {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-raw-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

@media (min-width: 768px) {
  .service-raw-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }

  [dir="rtl"] .service-raw-inner {
    direction: rtl;
  }
}

.service-raw-banner {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
  min-height: 240px;
}

[dir="rtl"] .service-raw-banner {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.service-raw-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  transition: transform 0.8s ease;
}

.service-raw:hover .service-raw-banner img {
  transform: scale(1.05);
}

.service-raw-content {
  padding: 2rem;
}

/* استيراد وتصدير: block with image */
.service-export {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-export-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

@media (min-width: 768px) {
  .service-export-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }

  [dir="rtl"] .service-export-inner {
    direction: rtl;
  }
}

.service-export-banner {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
  min-height: 240px;
}

[dir="rtl"] .service-export-banner {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.service-export-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  transition: transform 0.8s ease;
}

.service-export:hover .service-export-banner img {
  transform: scale(1.05);
}

.service-export-content {
  padding: 2rem;
}

/* Legacy card (if used elsewhere) */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--natural-brown);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--natural-brown);
  line-height: 1.5;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.revealed .pack-section-img {
  transition: transform 0.6s ease, filter 0.5s ease;
}

/* Stagger delays for service block elements */
.pack-section .reveal:nth-child(1) { transition-delay: 0.15s; }
.pack-section .reveal:nth-child(2) { transition-delay: 0.4s; }
.service-raw .reveal:nth-child(1) { transition-delay: 0.1s; }
.service-raw .reveal:nth-child(2) { transition-delay: 0.3s; }
.service-export .reveal:nth-child(1) { transition-delay: 0.1s; }
.service-export .reveal:nth-child(2) { transition-delay: 0.3s; }
.section-title.reveal { transition-delay: 0s; }

/* ---------- Contact ---------- */
.contact {
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-brand {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.contact-meta {
  font-size: 0.9rem;
  color: var(--natural-brown);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-link {
  color: var(--natural-brown);
  word-break: break-all;
}

.contact-link:hover {
  color: var(--primary-green);
}

.contact-map-wrap {
  margin-top: 1.5rem;
}

.contact-map-wrap iframe {
  width: 100%;
  min-height: 220px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-weight: 600;
  color: var(--primary-green);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--natural-brown-rgb), 0.3);
  border-radius: var(--radius);
  font: inherit;
  color: var(--primary-green);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: rgba(var(--natural-brown-rgb), 0.6);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.15);
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-green);
  color: var(--white);
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: opacity var(--transition);
}

.footer-logo:hover .footer-logo-img {
  opacity: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.social-link:hover {
  background: var(--sand-accent);
  color: var(--primary-green);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-powered {
  display: block;
  margin-top: 0.35rem;
}

.footer-powered a {
  color: var(--sand-accent);
}

.footer-powered a:hover {
  text-decoration: underline;
}

/* ---------- RTL / LTR ---------- */
[dir="ltr"] .about-text,
[dir="ltr"] .about-list {
  margin-left: auto;
  margin-right: auto;
}

[dir="ltr"] .about-list li {
  padding-left: 1.75rem;
  padding-right: 0;
}

[dir="ltr"] .about-list li::before {
  left: 0;
  right: auto;
}

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