/* ============================================
   TERRA2VITA v2 — Minimalist Design System
   Inspired by Linear, Notion, Stripe docs
   Palette: near-white bg, dark green text,
   subtle sage accents, clean whitespace
============================================ */

:root {
  --green-deep:   #1a3a2a;
  --teal-deep:    #1f4a36;
  --blue-deep:    #1e3a4c;
  --green-teal:   #2a7a6a;
  --green-mid:    #2d5a45;
  --sage-light:   #f0f4f0;
  --cream:        #fafaf8;
  --white:        #ffffff;
  --text-dark:    #111827;
  --text-mid:     #4b5563;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --nav-height:   68px;
  --transition:   0.25s ease;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --max-width:    1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; color: var(--green-deep); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; }
p { color: var(--text-mid); line-height: 1.75; font-size: 0.95rem; }
a { text-decoration: none; color: inherit; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), border-bottom var(--transition);
}
.navbar.scrolled, .navbar.solid {
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled .nav-logo,
.navbar.solid .nav-logo { color: var(--green-deep); }
.navbar.scrolled .nav-links a,
.navbar.solid .nav-links a { color: var(--text-mid); }
.navbar.scrolled .nav-links a:hover,
.navbar.solid .nav-links a:hover { color: var(--green-deep); }
.navbar.scrolled .hamburger span,
.navbar.solid .hamburger span { background: var(--green-deep); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); border: 1px solid var(--border);
  min-width: 170px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 0.65rem 1.1rem; color: var(--text-mid) !important; font-size: 0.85rem; transition: background var(--transition), color var(--transition); }
.dropdown-menu a:hover { background: var(--sage-light); color: var(--green-deep) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: var(--transition); }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.25rem 5%; z-index: 999; flex-direction: column; gap: 0.75rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-mid); font-size: 0.95rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }

/* ---- BUTTONS ---- */
.btn { display: inline-block; padding: 0.7rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem; transition: all var(--transition); cursor: pointer; border: none; font-family: 'Inter', sans-serif; letter-spacing: 0.1px; }
.btn-primary { background: var(--blue-deep); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,58,42,0.2); }
.btn-outline { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }

/* ---- HERO ---- */
.hero { position: relative; height: 100vh; min-height: 580px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* ★ REPLACE THIS WITH YOUR HERO IMAGE:
     background-image: url('images/hero.jpg');
     background-size: cover; background-position: center; */
  background: linear-gradient(160deg, #0f2419 0%, #1a3a2a 55%, #1f4a36 100%);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(8,20,13,0.45); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 0 2rem; }
.hero-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }
.hero-content h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1.25rem; font-weight: 700; }
.hero-content p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 500px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-line { width: 1px; height: 36px; background: rgba(255,255,255,0.25); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.2} 50%{opacity:0.7} }

/* ---- IMPACT STRIP ---- */
.impact-strip { background: var(--green-deep); display: grid; grid-template-columns: repeat(4,1fr); }
.impact-item { padding: 2.5rem 1.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.impact-item:last-child { border-right: none; }
.impact-item .number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.impact-item .label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.4rem; letter-spacing: 0.3px; }

/* ---- SECTIONS ---- */
.section { padding: 6rem 5%; }
.section-alt { background: var(--sage-light); }
.section-dark { background: var(--green-deep); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }

.section-header { max-width: 560px; margin: 0 auto 4rem; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--green-teal); margin-bottom: 0.75rem; }
.section-header p { margin-top: 0.75rem; font-size: 0.95rem; }

/* ---- CARDS ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }
.card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: rgba(255,255,255,0.45); font-style: italic; padding: 1rem; text-align: center; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green-teal); margin-bottom: 0.6rem; }
.card-body h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card-body p { font-size: 0.875rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1.25rem; color: var(--green-teal); font-weight: 600; font-size: 0.85rem; transition: gap var(--transition); }
.card-link:hover { gap: 0.5rem; }

/* ---- RECOGNITION ---- */
.recognition-strip { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; padding: 2rem 5%; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.recognition-item { font-size: 0.78rem; color: var(--text-mid); font-weight: 500; padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 50px; background: var(--cream); }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- FOOTER ---- */
footer { background: var(--green-deep); color: rgba(255,255,255,0.6); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; max-width: 260px; line-height: 1.65; }
.footer-tagline { font-style: italic; color: rgba(255,255,255,0.35); margin-top: 0.75rem; font-size: 0.8rem; }
.footer-col h4 { color: rgba(255,255,255,0.9); margin-bottom: 1rem; font-size: 0.8rem; letter-spacing: 0.5px; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.78rem; flex-wrap: wrap; gap: 1rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.75rem; transition: all var(--transition); }
.social-links a:hover { border-color: var(--green-teal); color: var(--white); }

/* ---- PAGE HERO ---- */
.page-hero { background: var(--green-deep); padding: 9rem 5% 5rem; text-align: center; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 1rem auto 0; font-size: 1rem; }

/* ---- TWO COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: var(--max-width); margin: 0 auto; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---- IMAGE PLACEHOLDER ---- */
.img-placeholder { border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.75rem; font-style: italic; color: rgba(255,255,255,0.4); padding: 1rem; min-height: 300px; }

/* ---- STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.step { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--green-deep); color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; }

/* ---- FORM ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.825rem; font-weight: 600; color: var(--green-deep); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text-dark); background: var(--white); transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green-teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-max { max-width: 600px; margin: 0 auto; }

/* ---- VALUES ---- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.25rem; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.value-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-card h4 { margin-bottom: 0.4rem; font-size: 0.95rem; }
.value-card p { font-size: 0.85rem; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }
.blog-card-body { padding: 1.5rem; }
.blog-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.5rem; font-weight: 500; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p { font-size: 0.875rem; }

/* ---- INLINE STAT ROW ---- */
.stat-row { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.stat-cell { flex: 1; padding: 1.75rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.stat-cell .lbl { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }

/* ---- DARK CARD ---- */
.card-dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.6); }
.card-dark .card-tag { color: var(--green-teal); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .impact-strip { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; }
  .stat-cell { min-width: 50%; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .impact-strip { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 5%; }
  .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
