/* ============================================================
   Agorali — Shared Stylesheet
   Fonts : Outfit (headings) + DM Sans (body)
   Fonts loaded via <link> in each HTML page for better performance.
   All pages import this file via <link rel="stylesheet" href="style.css">
   Page-specific overrides stay in each page's own <style> tag.
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Design tokens ---- */
:root {
  --green:       #2D6A4F;
  --green-deep:  #1F4F39;
  --green-light: #52B788;
  --green-pale:  #D8F3DC;
  --amber:       #E9C46A;
  --amber-pale:  #FFF8E7;
  --text:        #1B2821;
  --text-muted:  #44554A;
  --bg:          #FAFDF8;
  --white:       #FFFFFF;
  --radius-xl:   30px;
  --radius-lg:   22px;
  --radius-md:   16px;
  --shadow:      0 16px 42px rgba(45, 106, 79, 0.10);
  --shadow-lg:   0 18px 48px rgba(45, 106, 79, 0.12);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ---- Layout ---- */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Fade-in animation ---- */
.fade-in-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.10);
}

nav .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo img { width: 42px; height: 42px; display: block; }

.nav-center,
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-center { flex-wrap: wrap; }

.nav-center a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-center a:hover { color: var(--green); }

.lang-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* .lang-select replaced by .lang-picker injected by i18n.js */

/* ---- Hamburger toggle ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-toggle svg { display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(45, 106, 79, 0.22);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  border: 2px solid rgba(45, 106, 79, 0.20);
  color: var(--green);
  background: transparent;
}
.btn-secondary:hover { background: var(--green-pale); }

/* ---- Eyebrow / badge ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(45, 106, 79, 0.12);
}

/* ---- Section shared ---- */
.section { padding: 24px 0 72px; }

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--green-light);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-sub { color: var(--text-muted); font-size: 1rem; }

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 106, 79, 0.10);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p   { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Hero (inner pages) ---- */
.hero { padding: 74px 0 42px; }

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-links a:hover { text-decoration: underline; }

/* ---- CTA block ---- */
.cta { padding: 10px 0 92px; }

.cta-shell {
  background: linear-gradient(180deg, var(--green-pale) 0%, #effaf2 100%);
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 30px;
  padding: 38px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.cta p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 22px;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid rgba(45, 106, 79, 0.10);
  padding: 28px 0 40px;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--green); }

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .nav-right,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-links,
html[dir="rtl"] .cta-actions,
html[dir="rtl"] .footer-links { flex-direction: row-reverse; }
html[dir="rtl"] .logo,
html[dir="rtl"] .nav-center,
html[dir="rtl"] .nav-right { text-align: right; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .nav-center {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  /* Nav-toggle (hamburger) always visible, placed after lang picker */
  .nav-toggle { display: flex; align-items: center; order: 2; }

  nav .container { flex-wrap: wrap; }

  /* Logo stays left (order 0 default), lang picker next (order 1), hamburger last (order 2) */
  .nav-right {
    order: 1;
    margin-left: auto;
  }

  .nav-center {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 6px;
    order: 10;
    border-top: 1px solid rgba(45, 106, 79, 0.08);
  }
  .nav-center a {
    padding: 8px 0;
    font-size: 1rem;
  }
  nav.nav-open .nav-center { display: flex; }

  .lang-field { width: auto; }
  .lang-picker-btn { justify-content: center; }
  /* Keep lang picker text visible on mobile (flag + abbreviated name) */
  .lang-picker-name { display: inline; max-width: 50px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .btn { width: 100%; }
  .cta-actions, footer .container { flex-wrap: wrap; }
  .cta-shell { padding: 24px 20px; }
  footer .container { flex-direction: column; text-align: center; }
}
