:root {
  --green-950: #052b06;
  --green-900: #0e620c;
  --green-800: #147a12;
  --green-600: #2f9a2a;
  --green-300: #a9dfa0;
  --green-100: #e6f5e1;
  --beige: #e8dcce;
  --beige-light: #f7f1e7;
  --cream: #fffdf9;
  --ink: #17251a;
  --ink-soft: #4a5a4d;
  --shadow: 0 20px 50px rgba(5, 43, 6, 0.15);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Cairo', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, .logo-word {
  font-family: 'Playfair Display', serif;
}

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

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 43, 6, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 12px 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 40px; width: 40px; object-fit: cover; border-radius: 10px; }
.nav-brand span { color: #fff; font-weight: 700; letter-spacing: 0.5px; font-size: 1.05rem; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: #eafbe6;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--green-300);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  position: relative;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,43,6,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 190;
}
.nav-backdrop.active { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, var(--green-800) 0%, var(--green-950) 65%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(169,223,160,0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(47,154,42,0.18) 0%, transparent 50%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-2%, 2%) scale(1.05); }
}
.hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.hero-logo {
  width: 150px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.hero h1 em { color: var(--green-300); font-style: normal; }
.hero p {
  color: #d9ecd6;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}
.hero-tag {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #eafbe6;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 3px;
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-beige { background: var(--beige-light); }
.eyebrow {
  display: inline-block;
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 22px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 680px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--green-900), var(--green-950));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-visual img { width: 55%; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)); }
.about-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(169,223,160,0.25), transparent 60%);
}
.about-visual-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform 0.7s var(--ease);
}
.about-visual-photo:hover img { transform: scale(1.06); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 13px 26px;
  border: 1.5px solid var(--green-900);
  border-radius: 999px;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-outline:hover { background: var(--green-900); color: #fff; transform: translateX(4px); }

.lab-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 44px 0 10px;
  aspect-ratio: 21 / 9;
}
.lab-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.lab-photo:hover img { transform: scale(1.04); }

.nav-active { opacity: 1 !important; }
.nav-active::after { width: 100% !important; }
.stat-row { display: flex; gap: 36px; margin-top: 34px; }
.stat-row div strong {
  display: block;
  font-size: 1.8rem;
  color: var(--green-900);
  font-family: 'Playfair Display', serif;
}
.stat-row div span { color: var(--ink-soft); font-size: 0.85rem; }

/* Approach / cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}
.card {
  background: var(--cream);
  border: 1px solid rgba(14,98,12,0.08);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--green-900);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7; }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.products-grid.reverse { grid-template-columns: 1fr 1.1fr; }
.products-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.products-img img { transition: transform 0.6s var(--ease); }
.products-img:hover img { transform: scale(1.06); }
.note-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--green-100);
  border-left: 3px solid var(--green-800);
  border-radius: 10px;
  color: var(--green-950);
  font-size: 0.92rem;
}

/* Lab features */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.lab-feature {
  text-align: center;
  padding: 30px 18px;
}
.lab-feature .icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-950);
  color: var(--green-300);
  display: flex; align-items: center; justify-content: center;
}
.lab-feature h3 { font-size: 1rem; margin-bottom: 8px; }
.lab-feature p { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.6; }

/* Location */
.location-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}
.location-info h3 { font-size: 1.3rem; margin-bottom: 14px; }
.location-info p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 8px; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Contact / Footer */
.footer {
  background: var(--green-950);
  color: #cfe8ca;
  padding: 80px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 46px; width: 46px; border-radius: 10px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 10px;
  color: #cfe8ca; font-size: 0.95rem;
  transition: color 0.25s;
}
.contact-list a:hover { color: var(--green-300); }
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.social-row a:hover { background: var(--green-800); transform: translateY(-4px); }
.footer-bottom {
  padding-top: 26px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(207,232,202,0.6);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: 0.12s; }
.reveal-delay-2.visible { transition-delay: 0.24s; }
.reveal-delay-3.visible { transition-delay: 0.36s; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .products-grid, .products-grid.reverse, .location-wrap { grid-template-columns: 1fr; }
  .products-grid.reverse .products-img { order: -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: 78%; max-width: 320px;
    background: linear-gradient(165deg, var(--green-950), #03210a);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 6px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 200;
    box-shadow: -20px 0 60px rgba(0,0,0,0.35);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .nav-links a::after { left: 50%; transform: translateX(-50%); }
  .nav-links.open a { opacity: 0.92; transform: translateY(0); }
  .nav-links.open a:nth-child(1) { transition-delay: .08s; }
  .nav-links.open a:nth-child(2) { transition-delay: .14s; }
  .nav-links.open a:nth-child(3) { transition-delay: .20s; }
  .nav-links.open a:nth-child(4) { transition-delay: .26s; }
  .nav-links.open a:nth-child(5) { transition-delay: .32s; }
  .nav-links.open a:nth-child(6) { transition-delay: .38s; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .lab-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .footer-top { flex-direction: column; }
  .page-hero h1 { font-size: 2.1rem; }
  .hero-logo { width: 110px; }
  .stat-row { flex-wrap: wrap; gap: 22px; }
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { white-space: nowrap; flex-shrink: 0; }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 90px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,43,6,0.82) 0%, rgba(5,43,6,0.92) 100%);
}
.page-hero-inner { position: relative; z-index: 2; padding: 0 24px; }
.page-hero .eyebrow { color: var(--green-300); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-bottom: 16px;
}
.page-hero p {
  color: #d9ecd6;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* ---------- Filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: -30px auto 60px;
  position: relative;
  z-index: 3;
}
.filter-tab {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(14,98,12,0.15);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 6px 18px rgba(5,43,6,0.08);
}
.filter-tab:hover { color: var(--green-900); border-color: var(--green-800); }
.filter-tab.active { background: var(--green-900); border-color: var(--green-900); color: #fff; }

/* ---------- Product list (alternating rows) ---------- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.product-row {
  display: flex;
  align-items: center;
  gap: 48px;
}
.product-row.reverse { flex-direction: row-reverse; }
.product-row.hidden-item { display: none; }

.product-row-img {
  flex: 0 1 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.2;
  max-height: 300px;
}
.product-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-row:hover .product-row-img img { transform: scale(1.07); }

.product-row-content { flex: 1 1 320px; }
.product-row-content h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 6px 0 12px;
  color: var(--ink);
}
.product-row-content p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 380px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 500;
}

@media (max-width: 760px) {
  .product-row, .product-row.reverse { flex-direction: column; gap: 22px; }
  .product-row-img { flex-basis: auto; width: 100%; max-height: none; }
  .product-row-content p { max-width: none; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  margin-top: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-900), var(--green-950));
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }
.cta-banner p { color: #d9ecd6; max-width: 480px; margin: 0 auto 26px; font-weight: 300; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--green-950); }

@media (max-width: 900px) {
  .product-row, .product-row.reverse { gap: 40px; }
}

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid rgba(14,98,12,0.08);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon.green { background: var(--green-100); color: var(--green-900); }
.contact-card .icon.whatsapp { background: #dcf8e5; color: #1fa855; }
.contact-card h4 { font-size: 0.98rem; margin-bottom: 3px; }
.contact-card p, .contact-card span { color: var(--ink-soft); font-size: 0.9rem; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.6;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- Trust badges ---------- */
.trust-strip { padding: 80px 0; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--cream);
  border: 1px solid rgba(14,98,12,0.1);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(5,43,6,0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.badge:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.badge-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.badge span { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

@media (max-width: 640px) {
  .trust-strip { padding: 60px 0; }
  .badge { padding: 12px 18px; }
  .badge span { white-space: normal; }
}
