:root {
  /* Premium Aesthetic Palette */
  --bg-color: #ffffff;
  --surface-color: #ffffff;
  --surface-alt: #f3f0eb;
  --text-primary: #092334;
  --text-secondary: #57534e;
  --text-tertiary: #a8a29e;

  --accent-olive: #6a8268;
  --accent-olive-dark: #50664e;
  --accent-sage: #dde3d6;
  --accent-sand: #e5e0d8;

  --border-color: #e7e5e4
  --border-dark: #d6d3d1;

  --font-serif-en: "Montserrat", sans-serif;
  --font-sans-en: "Montserrat", sans-serif;
  --font-serif-ar: "Montserrat", sans-serif;
  --font-sans-ar: "Montserrat", sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans-ar);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body {
  font-family: var(--font-sans-en);
}

/* ===== TYPOGRAPHY ===== */
.display-serif {
  font-family: var(--font-serif-ar);
  font-weight: 700;
  line-height: 1.15;
  color: #aa8f5e;
}
html[lang="en"] .display-serif {
  font-family: var(--font-serif-en);
}

h1.display-serif {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
h2.display-serif {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

/* Big hero headline */
.text-hero {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.h4 {
  font-size: 1.5rem;
}
.h5 {
  font-size: 1.125rem;
  font-weight: 600;
}
.text-lg {
  font-size: 1.125rem;
}
.text-sm,
.small {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-secondary);
}
.text-olive {
  color: var(--accent-olive);
}
.text-olive-light {
  color: #a3b896;
}
.text-white {
  color: #ffffff !important;
}

.font-weight-bold {
  font-weight: 700;
}
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tracking-wide {
  letter-spacing: 0.1em;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

html[lang="ar"] .text-left {
  text-align: right;
}
html[lang="en"] .text-left {
  text-align: left;
}

/* ===== BACKGROUNDS ===== */
.bg-light {
  background-color: var(--surface-color);
}
.bg-white {
  background-color: #ffffff;
}
.bg-olive {
  background-color: var(--accent-olive);
  color: #ffffff;
}
.bg-sage {
  background-color: var(--accent-sage);
}
.bg-sand {
  background-color: var(--accent-sand);
}
.bg-form-section {
  background-color: #092334;
}
.bg-dark-blue {
  background-color: var(--text-primary);
  color: #ffffff;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.max-w-sm {
  max-width: 24rem;
  margin-inline: auto;
}
.max-w-md {
  max-width: 44rem;
  margin-inline: auto;
}
.max-w-lg {
  max-width: 56rem;
  margin-inline: auto;
}

/* ===== SPACING ===== */
.py-2 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-5 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.py-8 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.pb-4 {
  padding-bottom: 2rem;
}
.pb-6 {
  padding-bottom: 6rem;
}
.pt-4 {
  padding-top: 2rem;
}
.pt-6 {
  padding-top: 6rem;
}
.p-5 {
  padding: 2.5rem;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}
.mb-6 {
  margin-bottom: 4rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}

.w-100 {
  width: 100%;
}
.w-50 {
  width: 50%;
}
.h-100 {
  height: 100%;
}

/* ===== FLEX & GRID ===== */
.d-block {
  display: block;
}
.d-inline-block {
  display: inline-block;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-align {
  display: flex;
  align-items: center;
}
.flex-split {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 2rem;
}
.gap-5 {
  gap: 4rem;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}

html[lang="en"] .pe-4 {
  padding-right: 2.5rem;
}
html[lang="ar"] .pe-4 {
  padding-left: 2.5rem;
}
html[lang="en"] .ps-4 {
  padding-left: 2.5rem;
}
html[lang="ar"] .ps-4 {
  padding-right: 2.5rem;
}

/* ===== BORDERS & RADII ===== */
.border-bottom {
  border-bottom: 1px solid var(--border-dark);
}
.border-bottom-subtle {
  border-bottom: 1px solid var(--border-color);
}
.border-top-subtle {
  border-top: 1px solid var(--border-color);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.overflow-hidden {
  overflow: hidden;
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}
.object-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.mix-blend-multiply {
  mix-blend-mode: multiply;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* === Image Aspect Ratios === */
/* Hero: fills full width, short cinematic ratio */
.aspect-hero {
  aspect-ratio: 16/7;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Landscape banner: wide and short */
.aspect-landscape {
  aspect-ratio: 21/9;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Portrait: slightly taller than wide */
.aspect-portrait {
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center;
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* Square */
.aspect-square {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-lg);
  display: block;
}

/* ===== BUTTONS ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 2.75rem;
}

.btn-primary {
  background-color: #6a8268;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #6a8268 ;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.btn-outline-olive {
  border-color: var(--accent-olive);
  color: var(--accent-olive);
  background: transparent;
}
.btn-outline-olive:hover {
  background-color: var(--accent-olive);
  color: #ffffff;
}

/* Language Toggle — same size/weight in both directions */
.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 700;
  margin: 0 1rem;
  color: #6a8268;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  color: #6a8268;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
/* ===== NAVBAR & FOOTER LOGO ===== */
.logo {
  font-family: var(--font-serif-en);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-img {
  max-height: 48px;
  width: auto;
  display: block;
}
html[lang="ar"] .logo {
  font-family: var(--font-serif-ar);
  letter-spacing: 0;
}
html[lang="en"] .logo {
  font-family: var(--font-serif-en);
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nav-links a:hover {
  color: var(--accent-olive);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== LOGO STRIP ===== */
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: var(--transition);
}
.logo-grid:hover {
  opacity: 0.75;
  filter: grayscale(40%);
}

/* ===== FEATURES ===== */
.icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(76, 106, 60, 0.1);
}

/* ===== SPLIT SECTION ===== */
.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.checklist {
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.icon-check {
  color: var(--accent-olive);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== PRICING ===== */
.pricing-section {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.pricing-table {
  max-width: 1000px;
  margin: 0 auto;
}
.p-header {
  font-family: var(--font-serif-ar);
  font-size: 1.2rem;
  color: var(--text-primary);
}
html[lang="en"] .p-header {
  font-family: var(--font-serif-en);
}
.p-row {
  font-size: 1rem;
  color: var(--text-secondary);
}
.p-row div {
  padding: 0.5rem 0;
}

/* ===== STEPS ===== */
.steps-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.step-card {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--surface-color);
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent-olive);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}
.step-number {
  font-size: 3.5rem;
  color: var(--border-dark);
  line-height: 1;
  opacity: 0.5;
}

/* ===== IMAGE DIMENSION LABELS ===== */
.img-dim-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background-color: rgba(28, 25, 23, 0.72);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  font-family: var(--font-sans-en);
}
/* In RTL, flip label to left side */
html[lang="ar"] .img-dim-label {
  right: auto;
  left: 12px;
}

/* ===== CONTACT FORM ===== */
.form-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
}
.form-card label {
  color: #4c6a3c;
  font-weight: 700;
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: #4c6a3c;
  box-shadow: 0 0 0 3px rgba(76, 106, 60, 0.12);
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 2rem;
  background-color: #6a8268;
  color: #ffffff;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 3rem;
}
.btn-whatsapp:hover {
  background-color: #6a8268;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.faq-item h3 {
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.75rem;
}
.faq-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--surface-color);
}
.footer-links a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-olive);
}

/* ===== PRICING TOGGLE PILL ===== */
.btn-pill {
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===== PREMIUM BUTTON EFFECTS ===== */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
}
.btn-shimmer:hover::after {
  left: 150%;
  transition: left 0.7s ease-in-out;
}

/* ===== PRICING CARDS (for future use) ===== */
.pricing-card {
  position: relative;
  background: var(--surface-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}
.pricing-card.best-seller {
  border: 2px solid #d4af37;
  transform: scale(1.03);
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .flex-split {
    flex-direction: column;
    gap: 2.5rem;
  }
  .split-text.w-50,
  .split-image.w-50 {
    width: 100%;
  }
  html[lang="en"] .pe-4,
  html[lang="ar"] .pe-4,
  html[lang="en"] .ps-4,
  html[lang="ar"] .ps-4 {
    padding: 0;
  }
  .split-image {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .pricing-table {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  .p-header,
  .p-row {
    min-width: 600px;
  }
  .aspect-hero {
    aspect-ratio: 4/5;
  }
  .aspect-landscape {
    aspect-ratio: 16/9;
  }
  .py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .py-8 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .logo-grid {
    gap: 2rem;
    justify-content: center;
  }
  .flex-between {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-actions {
    width: 100%;
    justify-content: center;
  }
  .navbar .flex-between {
    flex-direction: row;
  }
  .navbar .nav-actions {
    width: auto;
  }
  .hero-image-wrapper {
    padding: 0 1rem;
  }
  .container {
    padding: 0 1.25rem;
  }
  .form-card {
    padding: 2rem 1.5rem;
  }
  .text-hero {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}
