/* ============================================================
   iPlant — Agriculture & Hydroponics theme
   Shared by EN (LTR) and AR (RTL) pages
   ============================================================ */

:root {
  --forest: #08361f;
  --forest-2: #0d5230;
  --leaf: #2fb56b;
  --leaf-bright: #56d689;
  --leaf-light: #a8e6b5;
  --aqua: #18a89b;
  --aqua-deep: #0d7d74;
  --cream: #f6f8f3;
  --sand: #eef3e6;
  --ink: #10241a;
  --muted: #55705f;
  --white: #ffffff;
  --grad: linear-gradient(120deg, var(--forest-2) 0%, var(--leaf) 60%, var(--aqua) 120%);
  --grad-soft: linear-gradient(120deg, rgba(13, 82, 48, .95), rgba(47, 181, 107, .88));
  --shadow-sm: 0 4px 14px rgba(8, 54, 31, .08);
  --shadow-md: 0 12px 34px rgba(8, 54, 31, .14);
  --shadow-lg: 0 24px 60px rgba(8, 54, 31, .22);
  --radius: 18px;
  --font-head: 'Poppins', 'Cairo', sans-serif;
  --font-body: 'Open Sans', 'Cairo', sans-serif;
  --main-color: #0d5230; /* legacy vars kept for old inline styles */
  --sec-color: #2fb56b;
}

html[dir="rtl"] body { --font-head: 'Cairo', sans-serif; --font-body: 'Cairo', sans-serif; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--forest); line-height: 1.3; }

a { color: var(--leaf); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--aqua); text-decoration: none; }

img { max-width: 100%; }

::selection { background: var(--leaf); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--leaf), var(--aqua)); border-radius: 8px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ============================================================
   Reveal-on-scroll animations
   ============================================================ */
[data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
[data-reveal="up"]    { transform: translateY(46px); }
[data-reveal="down"]  { transform: translateY(-46px); }
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"]  { transform: scale(.86); }
[data-reveal="flip"]  { transform: perspective(900px) rotateY(28deg); }
[data-reveal].revealed { opacity: 1; transform: none; }

html[dir="rtl"] [data-reveal="left"]  { transform: translateX(56px); }
html[dir="rtl"] [data-reveal="right"] { transform: translateX(-56px); }
html[dir="rtl"] [data-reveal].revealed { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 999;
  padding: 14px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
  background: linear-gradient(180deg, rgba(5, 32, 19, .55), transparent);
}
.site-header.solid, .site-header.always-solid {
  background: rgba(7, 43, 25, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(4, 24, 14, .35);
  padding: 8px 0;
}
.site-header .container { display: flex; align-items: center; gap: 22px; }
.brand { display: block; transition: transform .4s ease; }
.brand img { height: 48px; width: auto; display: block; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .35)); }
.brand:hover { transform: scale(1.05); }

.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.main-nav a {
  position: relative; display: block; padding: 10px 16px;
  color: #eaf6ee; font-family: var(--font-head); font-weight: 500; font-size: 15px;
  border-radius: 10px; transition: color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 5px; height: 2px;
  background: var(--leaf-bright); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .35s ease;
}
.main-nav a:hover, .main-nav li.active a { color: var(--leaf-bright); }
.main-nav a:hover::after, .main-nav li.active a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: transparent;
  color: #eaf6ee; font-family: var(--font-head); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.lang-btn:hover { background: rgba(255,255,255,.12); border-color: var(--leaf-bright); color: #fff; }
.lang-btn img { width: 18px; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff !important;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 10px 24px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 181, 107, .45);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.btn-cta::before {
  content: ""; position: absolute; top: 0; inset-inline-start: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: inset-inline-start .55s ease;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(47, 181, 107, .55); }
.btn-cta:hover::before { inset-inline-start: 130%; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 991px) {
  .main-nav {
    position: fixed; top: 0; inset-inline-end: -290px; width: 280px; height: 100vh;
    background: var(--forest); padding: 90px 26px 30px; margin: 0;
    transition: inset-inline-end .45s cubic-bezier(.22,.61,.36,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.35); z-index: 1000;
  }
  .main-nav.open { inset-inline-end: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { font-size: 17px; padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; margin-inline-start: auto; z-index: 1001; }
  .main-nav ~ .header-actions { margin-inline-start: 0; }
  .header-actions .btn-cta { padding: 8px 16px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(4,20,12,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .4s; z-index: 998; }
  .nav-overlay.show { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; filter: saturate(1.15);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5, 33, 19, .62) 0%, rgba(6, 40, 23, .45) 45%, rgba(246, 248, 243, .0) 82%, var(--cream) 100%),
              radial-gradient(ellipse at center, rgba(8, 54, 31, .18), rgba(5, 30, 17, .6));
}
.hero-content { position: relative; z-index: 3; padding: 120px 20px 140px; max-width: 900px; }
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--leaf-light); font-family: var(--font-head); font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; font-size: 13px;
  animation: fadeDown 1s ease both;
}
.hero-content .eyebrow::before, .hero-content .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--leaf-light); opacity: .7;
}
.hero-content h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 18px 0 10px;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
  animation: fadeUp 1s .15s ease both;
}
.hero-content h1 .grad-word {
  background: linear-gradient(90deg, var(--leaf-bright), #b8f0c8, var(--aqua));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.hero-content .lead-1 {
  color: #eaf6ee; font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-family: var(--font-head); font-weight: 500;
  animation: fadeUp 1s .35s ease both;
}
.hero-content .lead-2 {
  color: #cfe8d8; font-size: clamp(.95rem, 2vw, 1.15rem); margin-top: 10px;
  animation: fadeUp 1s .55s ease both;
}
.hero-content .hero-btns { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s .75s ease both; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 12px 28px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.6);
  transition: background .3s, transform .3s;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-3px); }
.btn-cta.lg, .btn-ghost.lg { padding: 13px 32px; font-size: 15px; }

@keyframes fadeUp   { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes shimmer  { to { background-position: 200% center; } }

/* Floating leaves */
.leaves { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.leaf-p {
  position: absolute; top: -6%;
  color: rgba(168, 230, 181, .8); font-size: 18px;
  animation: leafFall linear infinite;
}
@keyframes leafFall {
  0%   { transform: translateY(-5vh) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translateY(55vh) translateX(-40px) rotate(200deg); }
  92%  { opacity: .8; }
  100% { transform: translateY(112vh) translateX(30px) rotate(390deg); opacity: 0; }
}

/* Scroll-down indicator */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: #fff; opacity: .85; font-size: 22px;
  animation: bounceHint 2s infinite;
}
@keyframes bounceHint {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 12px); }
}

/* Wave divider */
.wave { display: block; width: 100%; margin-top: -2px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 90px 0; position: relative; }
.section.tinted { background: var(--sand); }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--aqua-deep); font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
}
.section-head .kicker i { color: var(--leaf); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 8px 0 14px; }
.section-head .divider {
  width: 90px; height: 4px; margin: 0 auto 18px; border-radius: 4px;
  background: var(--grad); position: relative; overflow: visible;
}
.section-head .divider::after {
  content: "\f06c"; font-family: FontAwesome; color: var(--leaf);
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: inherit; background: transparent; font-size: 15px;
  animation: leafSway 3.4s ease-in-out infinite;
}
@keyframes leafSway { 0%,100% { transform: translateX(-50%) rotate(-8deg); } 50% { transform: translateX(-50%) rotate(10deg); } }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.intro-copy p { font-size: 1.05rem; color: #2c4437; margin-bottom: 18px; }
.intro-copy p.strong { font-weight: 700; font-size: 1.12rem; color: var(--forest); }

/* ============================================================
   Flip cards (home offerings)
   ============================================================ */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 26px; margin-top: 20px; }
.flip-card { perspective: 1200px; min-height: 280px; }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 280px;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.34,1.2,.4,1);
}
.flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
html[dir="rtl"] .flip-card:hover .flip-inner, html[dir="rtl"] .flip-card:focus-within .flip-inner, html[dir="rtl"] .flip-card.flipped .flip-inner { transform: rotateY(-180deg); }
.flip-face {
  position: absolute; inset: 0; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 24px;
}
.flip-front {
  background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid #e3ecdd; overflow: hidden;
}
.flip-front::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 5px;
  background: var(--grad); transform: scaleX(.35); transition: transform .5s;
}
.flip-card:hover .flip-front::after { transform: scaleX(1); }
.flip-front .icon-wrap {
  width: 92px; height: 92px; border-radius: 26px;
  background: linear-gradient(145deg, #ecf7ef, #d9efdf);
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: inset 0 2px 8px rgba(8,54,31,.06);
  transition: transform .5s ease;
}
.flip-card:hover .icon-wrap { transform: translateY(-6px) scale(1.06); }
.flip-front .icon-wrap img { width: 54px; height: 54px; object-fit: contain; }
.flip-front h3 { font-size: 1.12rem; }
.flip-front .flip-hint { margin-top: 14px; font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.flip-back {
  background: var(--grad-soft); color: #fff;
  transform: rotateY(180deg); box-shadow: var(--shadow-md);
}
html[dir="rtl"] .flip-back { transform: rotateY(-180deg); }
.flip-back h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.flip-back p { font-size: .95rem; color: #eaf6ee; }

/* ============================================================
   CTA parallax band
   ============================================================ */
.cta-band {
  position: relative; padding: 110px 0; color: #fff; text-align: center;
  background-image: linear-gradient(rgba(6, 38, 22, .82), rgba(9, 58, 33, .85)), url('../img/call-to-action-bg.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
  overflow: hidden;
}
.cta-band p { font-family: var(--font-head); font-size: clamp(1.05rem, 2.4vw, 1.45rem); font-weight: 500; max-width: 920px; margin: 0 auto 18px; color: #f0f9f2; }
.cta-band .btn-cta { margin-top: 16px; }
@media (max-width: 768px) { .cta-band { background-attachment: scroll; } }

/* ============================================================
   Vision split (home)
   ============================================================ */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vision-grid .pic { position: relative; }
.vision-grid .pic img {
  width: 100%; border-radius: 28px 90px 28px 90px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.vision-grid .pic::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 130px; height: 130px;
  border: 3px dashed var(--leaf); border-radius: 50%; opacity: .5;
  animation: spinSlow 22s linear infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.vision-grid h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.65; color: var(--forest-2); }
.vision-grid h2::first-letter { color: var(--leaf); }
@media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ============================================================
   Accordion (Research Collaboration)
   ============================================================ */
.accordion { max-width: 880px; margin: 0 auto; display: grid; gap: 16px; }
.acc-item {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm);
  border: 1px solid #e3ecdd; overflow: hidden;
  transition: box-shadow .35s ease, transform .35s ease;
}
.acc-item.open { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.acc-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; text-align: start;
  font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--forest);
  transition: color .3s;
}
.acc-head:hover { color: var(--leaf); }
.acc-head .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, #ecf7ef, #d9efdf); color: var(--forest-2);
  display: grid; place-items: center; font-size: .95rem; transition: background .4s, color .4s, transform .4s;
}
.acc-item.open .num { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.acc-head .chev { margin-inline-start: auto; color: var(--leaf); transition: transform .45s cubic-bezier(.34,1.3,.4,1); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.22,.61,.36,1); }
.acc-body-inner { padding: 0 24px 24px; color: var(--muted); }
.acc-body-inner p { margin-bottom: 12px; }
.acc-body-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   Page hero (subpages)
   ============================================================ */
.page-hero {
  position: relative; padding: 190px 0 120px; text-align: center; color: #fff;
  background-image: linear-gradient(120deg, rgba(6, 38, 22, .88), rgba(13, 82, 48, .72)), var(--ph-img, url('../img/call-to-action-bg.jpg'));
  background-size: cover; background-position: center;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 4px 26px rgba(0,0,0,.4); animation: fadeUp .9s ease both; }
.page-hero .crumb { color: var(--leaf-light); font-family: var(--font-head); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; animation: fadeDown .9s ease both; }
.page-hero .leaves .leaf-p { color: rgba(255,255,255,.5); }

/* ============================================================
   Products page — alternating rows
   ============================================================ */
.product-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 60px 0;
}
.product-row + .product-row { border-top: 1px dashed #d7e5d0; }
.product-row .p-img { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.product-row .p-img img { width: 100%; height: 360px; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.product-row .p-img:hover img { transform: scale(1.08) rotate(.6deg); }
.product-row .p-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform 1s ease;
  pointer-events: none;
}
.product-row .p-img:hover::after { transform: translateX(120%); }
.product-row .p-num {
  position: absolute; top: 16px; inset-inline-start: 16px;
  background: rgba(255, 255, 255, .92); color: var(--forest-2);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
}
.product-row .p-num i { color: var(--leaf); }
.product-row h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; position: relative; display: inline-block; }
.product-row h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 10px; }
.product-row p { color: var(--muted); font-size: 1.04rem; }
.product-row:nth-child(even) .p-img { order: 2; }
@media (max-width: 900px) {
  .product-row { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .product-row:nth-child(even) .p-img { order: 0; }
  .product-row .p-img img { height: 260px; }
}

/* ============================================================
   About page
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.about-grid .pic { position: sticky; top: 110px; }
.about-grid .pic img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); }
.about-grid .pic .badge-leaf {
  position: absolute; bottom: -22px; inset-inline-end: -14px;
  background: var(--grad); color: #fff; border-radius: 18px;
  padding: 16px 22px; font-family: var(--font-head); font-weight: 600;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  animation: floaty 5s ease-in-out infinite;
}
.about-grid .copy p { color: #2c4437; margin-bottom: 18px; font-size: 1.04rem; }
.about-grid .copy p.strong { font-weight: 700; color: var(--forest); font-size: 1.1rem; }
.about-grid .copy h2 { margin: 26px 0 14px; font-size: 1.5rem; position: relative; padding-inline-start: 18px; }
.about-grid .copy h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 5px;
  border-radius: 4px; background: var(--grad);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-grid .pic { position: static; } }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-intro h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-intro p { color: var(--muted); }
.info-card {
  background: #fff; border-radius: 16px; padding: 20px 22px;
  border: 1px solid #e3ecdd; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card .ic {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(145deg, #ecf7ef, #d9efdf); color: var(--forest-2);
  display: grid; place-items: center; font-size: 22px; transition: background .4s, color .4s, transform .4s;
}
.info-card:hover .ic { background: var(--grad); color: #fff; transform: rotate(-8deg); }
.info-card p { margin: 0; color: var(--ink); font-weight: 600; font-size: .98rem; direction: ltr; }
html[dir="rtl"] .info-card p.addr { direction: rtl; }

.contact-form-card {
  background: #fff; border-radius: 22px; padding: 34px;
  border: 1px solid #e3ecdd; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.contact-form-card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 6px; background: var(--grad);
}
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row2 { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid #dbe7d5; border-radius: 12px;
  padding: 13px 16px; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: #fbfdf9; transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 181, 107, .14);
}
.check-line { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; color: var(--muted); font-size: .95rem; }
.check-line input { accent-color: var(--leaf); width: 17px; height: 17px; cursor: pointer; }
#sendmessage { display: none; background: #e7f8ee; border: 1px solid var(--leaf); color: var(--forest-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
#sendmessage.show { display: block; animation: fadeUp .5s ease both; }
#errormessage { color: #c0392b; margin-bottom: 10px; }

.map-wrap { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid #e3ecdd; margin-top: 50px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }

.social-band { text-align: center; margin-top: 56px; }
.social-band p { color: var(--muted); max-width: 720px; margin: 0 auto 22px; }
.social-band .socials { display: flex; justify-content: center; gap: 16px; }
.social-band .socials a {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; border: 1px solid #e3ecdd; color: var(--forest-2); font-size: 22px;
  box-shadow: var(--shadow-sm); transition: transform .35s, background .35s, color .35s;
}
.social-band .socials a:hover { background: var(--grad); color: #fff; transform: translateY(-6px) rotate(-6deg); }

/* ============================================================
   Login page
   ============================================================ */
.login-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 130px 20px 80px; position: relative; overflow: hidden;
  background-image: linear-gradient(120deg, rgba(6, 38, 22, .9), rgba(13, 82, 48, .78)), url('../img/advanced-feature-2.jpg');
  background-size: cover; background-position: center;
}
.login-card {
  width: min(430px, 100%); background: rgba(255, 255, 255, .96);
  border-radius: 26px; padding: 42px 38px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2; backdrop-filter: blur(8px);
  animation: fadeUp .8s ease both;
}
.login-card .plant-ic {
  width: 72px; height: 72px; margin: -78px auto 16px; border-radius: 22px;
  background: var(--grad); color: #fff; font-size: 30px;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(47,181,107,.5);
  animation: floaty 5s ease-in-out infinite;
}
.login-card h1 { text-align: center; font-size: 1.6rem; margin-bottom: 26px; }
.login-card .field input { padding-inline-start: 46px; }
.login-card .field .f-ic {
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  color: var(--leaf); font-size: 16px;
}
.login-card .btn-cta { width: 100%; justify-content: center; padding: 13px; font-size: 15px; margin-top: 6px; }
.login-card .btn-alt {
  width: 100%; justify-content: center; padding: 12px; font-size: 14px; margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; color: var(--forest-2); border: 1.5px solid var(--leaf);
  border-radius: 999px; font-family: var(--font-head); font-weight: 600;
  transition: background .3s, color .3s, transform .3s;
}
.login-card .btn-alt:hover { background: var(--forest-2); color: #fff; border-color: var(--forest-2); transform: translateY(-2px); }
.error_status_label { display: block; min-height: 22px; text-align: center; margin-top: 12px; font-size: .92rem; }
.error_status_label_color { color: #c0392b; font-weight: 600; }
#loading { visibility: hidden; margin: 10px auto 0; width: 26px; height: 26px; border: 3px solid #d9efdf; border-top-color: var(--leaf); border-radius: 50%; animation: spinSlow 1s linear infinite; }
.feedback { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, #062817, var(--forest)); color: #bcd6c5;
  padding: 54px 0 26px; margin-top: 0; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--grad);
}
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .f-brand { display: inline-block; }
.site-footer img.f-logo { height: 42px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .35)); }
.site-footer .copyright { font-size: .95rem; }
.site-footer .copyright strong { color: var(--leaf-bright); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #bcd6c5; font-size: .92rem; position: relative; }
.footer-links a::after { content: ""; position: absolute; bottom: -3px; inset-inline: 0; height: 1px; background: var(--leaf-bright); transform: scaleX(0); transition: transform .3s; }
.footer-links a:hover { color: var(--leaf-bright); }
.footer-links a:hover::after { transform: scaleX(1); }

/* Back to top */
.back-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 18px;
  display: grid; place-items: center; cursor: pointer; border: none;
  box-shadow: 0 10px 24px rgba(47, 181, 107, .5);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* Grow-line decoration between sections */
.grow-divider { display: flex; justify-content: center; padding: 6px 0 0; }
.grow-divider i { color: var(--leaf); font-size: 20px; opacity: .55; animation: leafSway 4s ease-in-out infinite; }

/* ============================================================
   Legal pages (Privacy Policy / Terms of Use)
   ============================================================ */
.legal .container { max-width: 860px; }
.legal .updated {
  text-align: center; color: var(--muted); font-size: .92rem;
  margin: -30px 0 46px; font-family: var(--font-head);
}
.legal .updated i { color: var(--leaf); margin-inline-end: 6px; }
.legal-block {
  background: #fff; border: 1px solid #e3ecdd; border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 28px 32px; margin-bottom: 18px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.legal-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.legal-block h2 {
  font-size: 1.18rem; margin-bottom: 10px; position: relative; padding-inline-start: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.legal-block h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: 4px; background: var(--grad);
}
.legal-block h2 .lnum { color: var(--leaf); font-size: .95rem; }
.legal-block p { color: var(--muted); margin: 0; }
.legal-block a { font-weight: 600; }

/* ============================================================
   Language dropdown
   ============================================================ */
.lang-dd { position: relative; }
.lang-dd .lang-btn .car { transition: transform .35s ease; font-size: 12px; }
.lang-dd.open .lang-btn .car { transform: rotate(180deg); }
.lang-dd .lang-btn .globe { animation: spinSlow 14s linear infinite; display: inline-block; }
.lang-menu {
  position: absolute; top: calc(100% + 12px); inset-inline-end: 0; min-width: 185px;
  background: rgba(7, 43, 25, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 8px; z-index: 1002;
  box-shadow: 0 18px 44px rgba(4, 24, 14, .45);
  opacity: 0; transform: translateY(-12px) scale(.94); transform-origin: top;
  pointer-events: none; visibility: hidden;
  transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.3,.4,1), visibility 0s .35s;
}
.lang-dd.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.lang-menu::before {
  content: ""; position: absolute; top: -7px; inset-inline-end: 26px;
  width: 14px; height: 14px; transform: rotate(45deg);
  background: rgba(7, 43, 25, .92); border-top: 1px solid rgba(255,255,255,.16); border-inline-start: 1px solid rgba(255,255,255,.16);
}
.lang-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 11px;
  color: #eaf6ee; font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  opacity: 0; transform: translateX(14px);
  transition: opacity .35s ease, transform .4s ease, background .25s ease;
}
html[dir="rtl"] .lang-menu a { transform: translateX(-14px); }
.lang-dd.open .lang-menu a { opacity: 1; transform: none; }
.lang-dd.open .lang-menu a:nth-child(1) { transition-delay: .06s; }
.lang-dd.open .lang-menu a:nth-child(2) { transition-delay: .13s; }
.lang-dd.open .lang-menu a:nth-child(3) { transition-delay: .2s; }
.lang-menu a:hover { background: rgba(255, 255, 255, .1); color: var(--leaf-bright); }
.fl {
  display: inline-block; width: 26px; height: 18px; border-radius: 4px;
  position: relative; overflow: hidden; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 1px 3px rgba(0,0,0,.35);
  transition: transform .3s ease;
}
.fl-en {
  background:
    linear-gradient(45deg, transparent 40%, #fff 40% 45%, #C8102E 45% 55%, #fff 55% 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, #fff 40% 45%, #C8102E 45% 55%, #fff 55% 60%, transparent 60%),
    #012169;
}
.fl-ar { background: linear-gradient(180deg, #000 0 33%, #fff 33% 66%, #007A3D 66% 100%); }
.fl-ar::before {
  content: ""; position: absolute; top: 0; left: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 11px solid #CE1126;
}
html[dir="rtl"] .fl-ar::before { left: auto; right: 0; border-left: none; border-right: 11px solid #CE1126; }
.fl-it { background: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #CE2B37 66% 100%); }
.fl.lg { width: 48px; height: 33px; border-radius: 6px; }
.fl.lg.fl-ar::before { border-top-width: 17px; border-bottom-width: 17px; border-left-width: 20px; }
.lang-menu a:hover .fl { transform: scale(1.18) rotate(-6deg); }
.lang-menu a.current { background: linear-gradient(120deg, rgba(47,181,107,.22), rgba(24,168,155,.16)); color: var(--leaf-bright); }
.lang-menu a.current .tick { margin-inline-start: auto; color: var(--leaf-bright); font-size: 12px; }
.lang-menu a:not(.current) .tick { display: none; }

/* ============================================================
   Language switch transition overlay
   ============================================================ */
.lang-swap {
  position: fixed; inset: 0; z-index: 99999;
  background: linear-gradient(135deg, #062817 0%, var(--forest-2) 45%, var(--leaf) 120%);
  display: grid; place-items: center;
  clip-path: circle(0% at var(--sx, 90%) var(--sy, 6%));
  transition: clip-path .65s cubic-bezier(.6,.05,.28,.99);
  pointer-events: none;
}
.lang-swap.show { clip-path: circle(150% at var(--sx, 90%) var(--sy, 6%)); pointer-events: auto; }
.lang-swap.covered { clip-path: circle(150% at 50% 50%); transition: none; }
.lang-swap.hide { clip-path: circle(0% at 50% -20%); transition: clip-path .7s cubic-bezier(.6,.05,.28,.99) .15s; }
.lang-swap .swap-inner { text-align: center; color: #fff; }
.lang-swap .swap-leaf {
  font-size: 54px; color: var(--leaf-light);
  display: inline-block; animation: swapSpin 1.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.lang-swap .swap-label {
  display: block; margin-top: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; letter-spacing: 1px;
  animation: fadeUp .5s ease both .15s;
}
.lang-swap .swap-flag { font-size: 30px; display: block; margin-top: 6px; animation: fadeUp .5s ease both .28s; }
@keyframes swapSpin {
  0%   { transform: rotate(-12deg) scale(1); }
  50%  { transform: rotate(14deg) scale(1.18); }
  100% { transform: rotate(-12deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lang-swap { display: none !important; }
}
