/* =====================================================
   DESIGN TOKENS
===================================================== */

:root {
  /* Colors existing */
  --bg: #f5f9f7;
  --surface: #ffffff;
  --surface-soft: #eef3f0;

  --primary: #0d5c3b;
  --primary-dark: #0a472d;

  --text: #1f2c26;
  --text-soft: #4b5a52;

  --border: rgba(0,0,0,0.08);

  /* Layout existing */
  --max-width: 1240px;
  --radius: 14px;

  /* Shadows existing */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);

  /* Spacing scale existing */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 20px;
  --s-5: 28px;
  --s-6: 40px;

  /* Safe aliases for consistency */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-soft: var(--surface-soft);

  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-dark);

  --color-text: var(--text);
  --color-text-soft: var(--text-soft);

  --color-border: var(--border);

  --container-max: var(--max-width);
  --radius-md: var(--radius);

  /* Accessibility and interaction tokens */
  --color-on-primary: #ffffff;
  --color-link: var(--primary);
  --color-link-hover: var(--primary-dark);

  --color-border-strong: rgba(0,0,0,0.14);
  --color-divider: rgba(0,0,0,0.06);

  --shadow-lg: 0 14px 40px rgba(0,0,0,0.10);

  --focus-ring: 0 0 0 3px rgba(13,92,59,0.25);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-med: 200ms;

  /* Typography base */
  --font-sans: Inter, system-ui, Arial, sans-serif;
}
/* =====================================*/



.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 16px;
}

.home-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 18px;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-note {
  font-size: 0.9rem;
  color: #6b7b72;
  margin-top: 10px;
}

.list {
  margin: 12px 0 0 0;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.value-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
}

.value-card h3 {
  margin: 0 0 8px 0;
  color: #0b3f2a;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3f0;
  color: #0b3f2a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.mini-title {
  font-weight: 700;
  color: #0b3f2a;
  margin-top: 10px;
}

.support-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #eef3f0;
}

.support-title {
  display: block;
  color: #0b3f2a;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
}
/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   TYPOGRAPHY
   Safe refinement, no breaking changes
===================================================== */

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.65rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-soft);
  max-width: 75ch;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* =====================================================
   GLOBAL LAYOUT
   Safe refinement, no breaking changes
===================================================== */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-main {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 90px);
  min-height: 70vh;
  display: block;
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }
}
/* =====================================================
   MODERN HEADER SYSTEM
   Production version, no breaking changes
   Fixes nav duplication by styling layout only here
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(13,92,59,0.95);
  backdrop-filter: blur(8px);

  color: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.site-header a {
  color: inherit;
}

/* -----------------------------------------------------
   MAIN ROW
----------------------------------------------------- */

.header-row {
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: var(--s-4);
}

/* -----------------------------------------------------
   BRAND
----------------------------------------------------- */

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;
  max-width: 70%;

  text-decoration: none;
  color: white;
}

.site-brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 10px;
}

.site-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* -----------------------------------------------------
   DESKTOP NAV
   Layout only, link styling lives in .site-nav a
----------------------------------------------------- */

.desktop-nav .site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -----------------------------------------------------
   MOBILE BUTTON
----------------------------------------------------- */

.nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;

  background: rgba(255,255,255,0.15);
  cursor: pointer;

  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.20);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: white;
  position: relative;
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: white;
  left: 0;
  transition: transform .22s ease, top .22s ease, opacity .22s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.active span {
  background: transparent;
}

.nav-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* -----------------------------------------------------
   MOBILE MENU PANEL
----------------------------------------------------- */

.mobile-menu {
  display: none;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.mobile-menu.show {
  display: block;
}

.mobile-menu-inner {
  padding: 10px 0 14px;
}

/* Layout only, link styling lives in .site-nav a */
.mobile-menu .site-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Only mobile specific sizing, keep the rest in .site-nav a */
.mobile-menu .site-nav a {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
}

/* -----------------------------------------------------
   MOBILE BREAKPOINT
----------------------------------------------------- */

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-brand {
    max-width: calc(100% - 60px);
  }

  .site-title {
    font-size: 0.95rem;
  }
}

/* SMALL DEVICES */

@media (max-width: 480px) {
  .header-row {
    height: 64px;
  }

  .site-logo {
    width: 32px;
    height: 32px;
  }

  .site-title {
    font-size: 0.9rem;
  }
}
/* =====================================================
   NAVIGATION
   Safe refinement, no breaking changes
===================================================== */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

.site-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.2;
  transition: background var(--dur-med, 200ms) var(--ease-standard, ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.14);
}

.site-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
/* =====================================================
   CONTENT COMPONENTS
   Safe refinement, no breaking changes
===================================================== */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: var(--s-5);
}

.card:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: var(--s-4);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast, 120ms) var(--ease-standard, ease),
              opacity var(--dur-med, 200ms) var(--ease-standard, ease);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* =====================================================
   FOOTER
   Safe refinement, no breaking changes
===================================================== */

.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  padding-block: var(--s-5);
  margin-top: var(--s-6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

.footer-inner a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================
   LANGUAGE TOGGLE
========================================= */

.index-lang{
    display:inline-flex;
    gap:6px;
    background:#f4f6f4;
    padding:4px;
    border-radius:999px;
    margin-bottom:18px;
}

.index-lang .lang-btn{
    text-decoration:none;
    padding:6px 14px;
    font-size:14px;
    font-weight:600;
    color:#2a3f2f;
    border-radius:999px;
    transition:all .25s ease;
    background:transparent;
}

.index-lang .lang-btn:hover{
    background:rgba(47,122,79,0.12);
    color:#1f5a39;
}

.index-lang .lang-btn.active{
    background:#2f7a4f;
    color:#fff;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
}
/* =====================================================
   UTILITIES
===================================================== */

.text-center { text-align:center; }
.mt-20 { margin-top:20px; }
.mb-20 { margin-bottom:20px; }

/* =====================================================
   RESPONSIVE
   Safe refinement, no breaking changes
===================================================== */

@media (max-width: 900px) {

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 12px;
  }

  .site-nav {
    width: 100%;
  }

  .site-main {
    padding-block: 32px;
  }
}

@media (max-width: 600px) {

  .site-title {
    font-size: 1rem;
  }

  .card {
    padding: var(--s-4);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}