/* ==========================================================================
   DAREZINI NATURDÄRME - DESIGN SYSTEM & BRAND STYLESHEET
   Ref: DESIGN.md - Premium Industrial Heritage
   Strict Light-Mode, Premium Manufacturing & Food Safety Authority
   ========================================================================== */

/* Import Google Fonts & JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..900;1,300..900&family=Inter:wght@100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* Color System */
  --color-surface: #fcf9f8;
  --color-surface-dim: #dcd9d9;
  --color-surface-bright: #fcf9f8;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f6f3f2;
  --color-surface-container: #f0eded;
  --color-surface-container-high: #eae7e7;
  --color-surface-container-highest: #e5e2e1;
  --color-on-surface: #1c1b1b;
  --color-on-surface-variant: #40493f;
  --color-inverse-surface: #313030;
  --color-inverse-on-surface: #f3f0ef;
  --color-outline: #707a6e;
  --color-outline-variant: #bfc9bc;
  --color-surface-tint: #1f6c35;

  --color-primary: #005221;
  --color-on-primary: #ffffff;
  --color-primary-container: #1e6b34;
  --color-on-primary-container: #9be9a4;
  --color-inverse-primary: #8bd895;

  --color-secondary: #6a5f00;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #f6e14c;
  --color-on-secondary-container: #6f6300;

  --color-tertiary: #792a3f;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #974156;
  --color-on-tertiary-container: #ffcad2;

  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;

  --color-success: #1f6c35;
  --color-on-success: #ffffff;

  /* Typography Scales */
  --font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-technical: 'JetBrains Mono', monospace;

  /* Shapes & Corner Radii */
  --rounded-sm: 4px;
  --rounded-default: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-full: 9999px;

  /* Spacing Grid (4px baseline) */
  --spacing-unit: 4px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --section-padding: 120px;
  --container-max: 1280px;

  /* Shadow Elevation (Soft Ambient) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 8px 30px rgba(0, 82, 33, 0.04);
  --shadow-hover: 0 12px 40px rgba(0, 82, 33, 0.08);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Translation Selector bindings */
[data-lang] { display: none !important; }
html[lang="en"] [data-lang="en"],
html[lang="de"] [data-lang="de"],
html[lang="ar"] [data-lang="ar"],
html[lang="fr"] [data-lang="fr"] {
  display: inline !important;
}
html[lang="en"] div[data-lang="en"], html[lang="de"] div[data-lang="de"], html[lang="ar"] div[data-lang="ar"], html[lang="fr"] div[data-lang="fr"],
html[lang="en"] p[data-lang="en"], html[lang="de"] p[data-lang="de"], html[lang="ar"] p[data-lang="ar"], html[lang="fr"] p[data-lang="fr"],
html[lang="en"] h1[data-lang="en"], html[lang="de"] h1[data-lang="de"], html[lang="ar"] h1[data-lang="ar"], html[lang="fr"] h1[data-lang="fr"],
html[lang="en"] h2[data-lang="en"], html[lang="de"] h2[data-lang="de"], html[lang="ar"] h2[data-lang="ar"], html[lang="fr"] h2[data-lang="fr"],
html[lang="en"] h3[data-lang="en"], html[lang="de"] h3[data-lang="de"], html[lang="ar"] h3[data-lang="ar"], html[lang="fr"] h3[data-lang="fr"],
html[lang="en"] h4[data-lang="en"], html[lang="de"] h4[data-lang="de"], html[lang="ar"] h4[data-lang="ar"], html[lang="fr"] h4[data-lang="fr"] {
  display: block !important;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.headline-lg {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

.headline-md {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-on-surface);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-on-surface-variant);
}

.body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
}

.technical-sm {
  font-family: var(--font-technical);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.label-caps {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ==========================================================================
   LAYOUT & GRID SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.section {
  padding-top: calc(var(--section-padding) / 1.5);
  padding-bottom: calc(var(--section-padding) / 1.5);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-1 { grid-column: span 1; }

/* Flex Utility classes */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--rounded-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 8px;
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 82, 33, 0.03);
  border-color: var(--color-primary-container);
  transform: translateY(-2px);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-outline-variant);
  font-size: 11px;
}

.btn-tertiary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-container-low);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

/* Input Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-technical);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-on-surface-variant);
  text-transform: uppercase;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-default);
  background-color: var(--color-surface-container-lowest);
  color: var(--color-on-surface);
  transition: var(--transition-smooth);
  outline: none;
}

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

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 33, 0.15);
}

/* Cards */
.card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-outline);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--rounded-default);
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--color-surface-container-low);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-img {
  transform: scale(1.05);
}

/* Certificate Badges & Cards */
.badge-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: rgba(246, 225, 76, 0.15);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  border-radius: var(--rounded-sm);
  font-family: var(--font-technical);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.cert-card {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--color-outline-variant);
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-md);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 30px rgba(106, 95, 0, 0.08);
}

.cert-icon-seal {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-surface) 50%, var(--color-surface-container-low) 100%);
  border: 2px dashed var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.cert-card:hover .cert-icon-seal {
  transform: rotate(15deg);
  background: var(--color-secondary-container);
}

/* Data Tables */
.table-specs-container {
  overflow-x: auto;
  border-radius: var(--rounded-default);
  border: 1px solid var(--color-outline-variant);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.table-specs {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
}

.table-specs th {
  background-color: var(--color-surface-container-low);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-outline-variant);
}

.table-specs td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-outline-variant);
  color: var(--color-on-surface);
}

.table-specs tbody tr:last-child td {
  border-bottom: none;
}

.table-specs tbody tr:hover {
  background-color: rgba(0, 82, 33, 0.02);
}

.table-code {
  font-family: var(--font-technical);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
}

/* Timeline Component */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--color-outline-variant);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-img-side, .timeline-content-side {
  width: 45%;
}

.timeline-badge-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-surface-container-lowest);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-family: var(--font-technical);
  font-size: 14px;
  font-weight: bold;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-badge-center {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 6px rgba(0, 82, 33, 0.15);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-card {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HEADER & FOOTER (PERSISTENT UI)
   ========================================================================== */
.header-top {
  background-color: var(--color-surface-container-low);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-outline-variant);
  font-size: 12px;
}

.eu-badge {
  background-color: var(--color-surface-container-highest);
  color: var(--color-on-surface);
  font-family: var(--font-technical);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--rounded-sm);
  border: 1px solid var(--color-outline);
  font-weight: bold;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-technical);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  color: var(--color-on-surface-variant);
  transition: var(--transition-fast);
}

.lang-btn.active {
  color: var(--color-primary);
  font-weight: bold;
  border-bottom: 2px solid var(--color-primary);
}

.lang-btn:hover {
  color: var(--color-primary);
}

.header-main {
  background-color: rgba(252, 249, 248, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer .logo-image {
  height: 52px;
  filter: brightness(0) invert(1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo-subtext {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-on-surface-variant);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

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

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.footer {
  background-color: #00220c;
  border-top: 4px solid var(--color-secondary);
  color: #f3f0ef;
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer .logo-brand {
  color: #ffffff !important;
}

.footer .logo-subtext {
  color: #dcd078 !important;
}

.footer p.body-md {
  color: #bfc9bc;
}

.footer-nav-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
}

.footer-nav-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-secondary);
}

html[dir="rtl"] .footer-nav-col h4::after {
  left: auto;
  right: 0;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a {
  font-size: 14px;
  color: #bfc9bc;
  transition: all 0.2s ease;
}

.footer-nav-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

html[dir="rtl"] .footer-nav-col a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #bfc9bc;
}

.footer-bottom a {
  color: #bfc9bc;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer .eu-badge {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-contact-info i {
  color: #dcd078;
}

/* ==========================================================================
   PAGE VIEWS & ROUTING SYSTEM
   ========================================================================== */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PAGE: HOMEPAGE (HERO, COUNTERS, ETC.)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--color-surface-container-lowest);
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 80px 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: linear-gradient(to right, var(--color-surface-container-lowest) 0%, rgba(252, 249, 248, 0.4) 100%), url('assets/hero_factory.png');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-bar {
  background-color: var(--color-surface-container-lowest);
  border-bottom: 1px solid var(--color-outline-variant);
  padding: 24px 0;
}

.trust-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  background-color: var(--color-surface-container-low);
  padding: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--color-outline-variant);
  margin-top: 40px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface-variant);
}

/* Custom Process Flow Timeline Widget (Horizontal on Desktop) */
.process-timeline-horizontal {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 50px 0;
  padding: 0 20px;
}

.process-timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: var(--color-outline-variant);
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 12%;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.process-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-surface-container-lowest);
  border: 2px solid var(--color-outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-surface-variant);
  font-family: var(--font-technical);
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.process-step:hover .process-icon-wrapper,
.process-step.active .process-icon-wrapper {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 0 0 6px rgba(0, 82, 33, 0.12);
  transform: scale(1.1);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-on-surface);
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.process-step:hover .process-step-title,
.process-step.active .process-step-title {
  color: var(--color-primary);
}

.process-step-desc {
  font-size: 11px;
  color: var(--color-on-surface-variant);
  line-height: 1.3;
}

.process-detail-box {
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 24px;
  margin-top: 30px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.process-detail-box.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   PAGE: PRODUCTS (FILTER & CATALOG)
   ========================================================================== */
.catalog-filters {
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 24px;
  margin-bottom: 40px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.casing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-technical);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
  font-weight: bold;
  z-index: 10;
}

/* B2B Comparison Drawer */
.comparison-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface-container-lowest);
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 20px 0;
}

.comparison-drawer.open {
  transform: translateY(0);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.comparison-item-pill {
  background-color: var(--color-surface-container-low);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-default);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.comparison-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-error);
  font-weight: bold;
}

/* Comparison Overlay Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 27, 27, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--rounded-md);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-on-surface-variant);
}

.modal-close-btn:hover {
  color: var(--color-error);
}

/* ==========================================================================
   PAGE: TRACEABILITY (BATCH LOOKUP & DIAGRAM)
   ========================================================================== */
.traceability-banner {
  background: linear-gradient(135deg, var(--color-surface-container-lowest) 50%, rgba(0, 82, 33, 0.05) 100%);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-md);
  padding: 40px;
  margin-bottom: 40px;
}

.batch-search-box {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin-top: 20px;
}

.trace-flow-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 40px;
  margin-top: 30px;
}

.trace-flow-vertical::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 14px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: var(--color-outline-variant);
}

.trace-node {
  position: relative;
  background-color: var(--color-surface-container-lowest);
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--rounded-default);
  padding: 16px 20px;
  transition: var(--transition-smooth);
}

.trace-node::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-surface-container-lowest);
  border: 3px solid var(--color-outline);
  transition: var(--transition-smooth);
  z-index: 2;
}

.trace-node.verified::before {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.trace-node.verified {
  border-color: var(--color-primary-container);
  box-shadow: 0 4px 15px rgba(0, 82, 33, 0.04);
}

/* ==========================================================================
   PAGE: DISTRIBUTORS & CORPORATE CLIENTS
   ========================================================================== */
.benefit-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.benefit-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-sm);
  background-color: rgba(0, 82, 33, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Multistep Form Styling */
.step-container {
  display: none;
}

.step-container.active {
  display: block;
}

.form-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.form-steps-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-outline-variant);
  z-index: 1;
}

.form-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-surface-container-low);
  border: 2px solid var(--color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-family: var(--font-technical);
  font-size: 13px;
  font-weight: bold;
  color: var(--color-on-surface-variant);
  transition: var(--transition-smooth);
}

.form-step-dot.active {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.form-step-dot.completed {
  border-color: var(--color-primary);
  background-color: var(--color-primary-container);
  color: var(--color-on-primary);
}

/* ==========================================================================
   PAGE: CONTACT & MAP
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
}

.office-card {
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
  margin-bottom: 24px;
}

/* Interactive SVG Distribution Map Styling */
.distribution-map-svg {
  width: 100%;
  height: auto;
  background-color: #f0eded;
  border-radius: var(--rounded-md);
  border: 1px solid var(--color-outline-variant);
}

.map-land {
  fill: #e5e2e1;
  stroke: #ffffff;
  stroke-width: 1;
}

.map-hub {
  fill: var(--color-primary);
  stroke: var(--color-on-primary);
  stroke-width: 2;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-hub:hover {
  fill: var(--color-secondary-container);
  r: 10;
}

.map-connection {
  stroke: var(--color-primary-container);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
  opacity: 0.5;
}

/* ==========================================================================
   ANIMATIONS & REVEALS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Breakpoints)
   ========================================================================== */

/* Tablet & Smaller (Max-width: 1024px) */
@media (max-width: 1024px) {
  .display-lg { font-size: 38px; }
  .headline-lg { font-size: 28px; }
  .grid-12 { gap: 16px; }
  .col-4 { grid-column: span 6; }
  .col-3 { grid-column: span 6; }
  .col-2 { grid-column: span 6; }
  .col-9 { grid-column: span 12; }
  .col-3 { grid-column: span 12; }
  
  .hero::after {
    width: 100%;
    opacity: 0.15;
  }
  .hero-content {
    max-width: 100%;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline-horizontal {
    flex-direction: column;
    gap: 20px;
  }
  .process-timeline-horizontal::before {
    display: none;
  }
  .process-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
  .process-icon-wrapper {
    margin-bottom: 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (Max-width: 767px) */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
  }
  .display-lg { font-size: 32px; }
  .headline-lg { font-size: 24px; }
  .grid-12 { display: flex; flex-direction: column; }
  
  .header-main .flex-between {
    flex-direction: column;
    gap: 16px;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .trust-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FOOTER NEWSLETTER FORM
   ========================================================================== */
.footer-newsletter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter-container p {
  color: #bfc9bc !important;
  margin-top: 8px;
}

.footer-newsletter-input-group {
  display: flex;
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-newsletter-input {
  flex-grow: 1;
  padding: 12px 14px;
  border: none;
  background-color: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: var(--transition-fast);
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-newsletter-input-group button {
  border: none;
  border-radius: 0;
  background-color: var(--color-primary-container);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-newsletter-input-group button:hover {
  background-color: #247c3f;
}

/* ==========================================================================
   RTL OVERRIDES (ARABIC LANGUAGE SUPPORT)
   ========================================================================== */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .office-card {
  border-left: none;
  border-right: 3px solid var(--color-primary);
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

html[dir="rtl"] .timeline-badge-center {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

html[dir="rtl"] .btn i {
  transform: scaleX(-1);
}

html[dir="rtl"] .casing-badge {
  left: 16px;
  right: auto;
}

html[dir="rtl"] .form-steps-indicator::before {
  left: 0;
  right: 0;
}

html[dir="rtl"] .hero::after {
  left: 0;
  right: auto;
  background-image: linear-gradient(to left, var(--color-surface-container-lowest) 0%, rgba(252, 249, 248, 0.4) 100%), url('assets/hero_factory.png');
}

html[dir="rtl"] .hero-content {
  margin-left: auto;
  margin-right: 0;
}

.legal-tab-btn.active {
  background-color: var(--color-primary) !important;
  color: var(--color-on-primary) !important;
  border-color: var(--color-primary) !important;
}

/* RTL sidebar adjustments */
html[dir="rtl"] .legal-tab-btn {
  text-align: right !important;
  justify-content: flex-start !important;
}
html[dir="rtl"] .legal-tab-btn i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}
