/* ------------------------------
   GLOBAL ROOT + RESET
------------------------------ */

:root {
  --green: #3ea02b;
  --dark: #111111;
  --muted: #6e6e6e;
  --footer-bg: #404040;
  --radius: 16px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  --font: "Poppins", Arial;
  --max-container: 1200px;
}
/* =========================
   ARABIC FONT OVERRIDE
========================= */

html[lang="ar"] {
  --font: "Cairo", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-container);
  padding: 0 32px;
  margin: 0 auto;
}

/* ============================
   SLIDING HERO (RIGHT → LEFT)
============================ */
/* SLIDER CONTAINER */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* FLEX TRACK */
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 1.2s ease-in-out;
}

/* EACH SLIDE */
.hero-slide {
  width: 100%; /* important */
  height: 100%;
  flex-shrink: 0; /* VERY important */
  object-fit: cover;
}

/* ------------------------------
   HEADER (DESKTOP + MOBILE)
------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
}

.primary-nav {
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-contact {
  background: var(--green);
  padding: 10px 24px;
  color: white;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  margin-left: 12px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.desktop-contact:hover {
  box-shadow: 0 10px 24px rgba(62, 160, 43, 0.35);
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
}

/* ------------------------------
   MOBILE DRAWER
------------------------------ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1990 !important;
}

.mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 2000 !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-logo {
  height: 46px;
}

.drawer-close {
  font-size: 34px;
  font-weight: 300;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
}

.drawer-links {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.drawer-link {
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
}

.drawer-link.active,
.drawer-link:hover {
  color: var(--green);
}

.drawer-contact {
  margin-top: 80px;
  background: var(--green);
  padding: 12px;
  color: white;
  text-align: center;
  border-radius: 999px;
  font-size: 19px;
  text-decoration: none;
}

/* ------------------------------
   HERO SECTION
------------------------------ */

.hero {
  position: relative;
  height: 95vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 31.83%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    linear-gradient(0deg, rgba(255, 255, 255, 0) 62.08%, #ffffff 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-title {
  color: white;
  font-size: 45px;
  font-weight: 500;
  margin-bottom: 22px;
  width: 65%;
}

.hero-card {
  background: #eeeeee12;
  backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  width: 65%; /* matches your screenshot proportions */
}

.hero-card-right {
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  color: #f5f5f5;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: white;
  padding: 10px 20px 10px 24px;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(62, 160, 43, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(62, 160, 43, 0.45);
}

.btn-icon {
  background: #000;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------
   ABOUT SECTION
------------------------------ */

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 6px;
}

.title-underline {
  width: 42px;
  height: 4px;
  background: var(--green);
  border-radius: 999px;
  margin-bottom: 30px;
}

.about-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
}

.about-icon {
  width: 120px;
  margin-top: 40px;
}

.about-right p {
  font-size: 22px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.btn-about {
  background: white;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 16px;
  color: black;
  cursor: pointer;
}

.btn-about:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(150, 150, 150, 0.45);
}

/* ------------------------------
   BUSINESS LINE
------------------------------ */

.business-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.b-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 310px;
  overflow: hidden;
}

/* Image cards */
.img-card {
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

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

/* Text cards */
.text-card {
  background: #eee;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
}

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

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 21px;
  font-weight: 600;
}

.card-title.green {
  color: var(--green);
}
.card-title.white {
  color: white;
}

.card-sub {
  font-size: 16px;
  color: var(--muted);
}

.card-sub.light {
  color: #e9ffe0;
}

.card-arrow {
  display: flex; /* ensures proper centering */
  align-items: center;
  justify-content: center;
  text-decoration: none; /* remove underline from <a> */
  background: #111;
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.card-arrow:hover {
  opacity: 0.8;
}

.card-arrow.light {
  background: white;
  color: #000;
}

.card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.card-desc.dark {
  color: #000;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  background: var(--footer-bg);
  padding: 50px 0 24px;
  color: white;
  text-align: center;
}

.footer-logo {
  height: 70px;
  margin: 0 auto 22px auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: white;
  opacity: 0.9;
  font-size: 16px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--green);
}

.footer-divider {
  height: 1px;
  background: #737373;
  margin: 34px auto 30px;
}

.footer-copy {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.85;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #3ea02b;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2500; /* above everything */
}

.scroll-top {
  transition: opacity 0.3s ease;
}

.footer-link a.active {
  color: #3ea02b !important;
}

.drawer-link.active {
  color: #3ea02b !important;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ------------------------------
   MOBILE FIXES (NO DESKTOP CHANGES)
------------------------------ */

@media (max-width: 768px) {
  /* Show burger */
  .hamburger {
    display: block !important;
  }

  /* Hide desktop menu + contact */
  .primary-nav,
  .desktop-contact {
    display: none !important;
  }

  /* Fix header spacing */
  .header-inner {
    justify-content: space-between;
  }

  /* Fix ABOUT section */
  .about-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 5px;
  }

  .business {
    padding: 0 0 80px;
  }

  .about-left,
  .business .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-right p {
    font-size: 18px;
  }

  .about-icon {
    margin: 20px auto;
    position: absolute;
    z-index: -1;
    top: 40px;
    left: 30px;
  }

  .hero-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
    width: 100% !important;
  }

  /* Fix HERO */
  .hero-title,
  .hero-card {
    width: 100% !important;
  }

  .hero-card {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }

  .hero-card-right {
    justify-content: flex-start !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  /* BUSINESS GRID FIX */
  .business-grid {
    grid-template-columns: 1fr !important;
  }

  /* FOOTER FIX */
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }

  .scroll-top {
    display: flex;
  }
}

/* ===============================
   black PAGE — HEADER OVERRIDES
   WHEN SCROLLED
=============================== */

.black-page .site-header {
  background: transparent !important;
}

.black-page .nav-link {
  color: #ffffff !important;
}

.black-page .nav-link.active,
.black-page .nav-link:hover {
  color: #3ea02b !important; /* same green highlight */
}

.black-page .brand-logo {
  content: url("../images/SOYANA-Logo-White.png") !important;
}

.black-page .nav-link .brand-logo {
  content: url("../images/SOYANA-Logo.png") !important;
}

/* Hamburger icon on black page */
.black-page .hamburger {
  color: white !important;
}

.black-page .site-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.black-page .site-header.scrolled .nav-link {
  color: #111111 !important;
}

.black-page .site-header.scrolled .nav-link.active {
  color: #3ea02b !important;
}

.black-page .site-header.scrolled .brand-logo {
  content: url("../images/SOYANA-Logo.png") !important; /* back to dark logo */
}

.black-page .site-header.scrolled .hamburger img {
  filter: brightness(0) invert(0);
}

.black-page .site-header.scrolled .desktop-contact {
  background: #3ea02b !important;
  border: none !important;
  color: white !important;
}

.black-page .site-header.scrolled .hamburger {
  color: #111111 !important;
}

.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.b-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.b-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.card-arrow {
  transition: transform 0.35s ease;
}

.card-arrow:hover {
  transform: rotate(45deg) scale(1.1);
}

.btn-icon {
  transition: transform 0.35s ease;
}

.btn-product:hover .btn-icon {
  transform: rotate(45deg) scale(1.1);
}

.site-header.scrolled {
  opacity: 0.97;
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}
.site-footer {
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hamburger img {
  width: 40px;
}

.black-page .hamburger img {
  filter: brightness(0) invert(1);
}

.drawer-links a {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-drawer.open .drawer-links a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-drawer.open .drawer-links a:nth-child(1) {
  transition-delay: 0.05s;
}
.mobile-drawer.open .drawer-links a:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-drawer.open .drawer-links a:nth-child(3) {
  transition-delay: 0.15s;
}
.mobile-drawer.open .drawer-links a:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-drawer.open .drawer-links a:nth-child(5) {
  transition-delay: 0.25s;
}

/* Drawer hidden state */
.mobile-drawer {
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Drawer visible state */
.mobile-drawer.open {
  transform: translateX(0);
  opacity: 1;
}

/* Overlay fade */
.mobile-overlay {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-overlay.show {
  opacity: 1;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.lang-switch {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-decoration: none;
  margin-right: 12px;
  transition: color 0.2s ease;
  font-family: "Cairo";
}

.black-page .lang-switch {
  color: #ffffff !important;
}

.black-page .site-header.scrolled .lang-switch {
  color: var(--dark) !important;
}

.black-page .lang-switch:hover {
  color: var(--green);
}

.lang-switch:hover {
  color: var(--green);
}

/* RTL adjustment */

html[lang="ar"] .lang-switch {
  margin-right: 0;
  margin-left: 12px;
}