/* ========== CSS VARIABLES ========== */
:root {
  --primary: #1B4332;
  --secondary: #52B788;
  --accent: #F4A261;
  --white: #FFFFFF;
  --dark: #0A2E1A;
  --text: #1A1A1A;
  --light-bg: #F0F7F2;
  --shadow: 0 4px 24px rgba(27,67,50,0.10);
  --shadow-lg: 0 8px 40px rgba(27,67,50,0.18);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageLoad 0.5s ease 0.1s forwards;
}
@keyframes pageLoad { to { opacity: 1; } }

h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 0.5em; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: #555; max-width: 600px; margin: 0 auto 3rem; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmerSweep { 0%{background-position:-200% center;} 100%{background-position:200% center;} }
@keyframes heroZoom { 0%{transform:scale(1);} 100%{transform:scale(1.1);} }
@keyframes pulse { 0%,100%{opacity:0.55;} 50%{opacity:0.7;} }
@keyframes badgeSlide { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
@keyframes wordReveal { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
@keyframes float { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-20px) rotate(10deg);} }
@keyframes trailFade { 0%{opacity:0.5;transform:scale(1);} 100%{opacity:0;transform:scale(0.2);} }
@keyframes successCheck { 0%{transform:scale(0) rotate(-45deg);opacity:0;} 70%{transform:scale(1.2) rotate(5deg);} 100%{transform:scale(1) rotate(0);opacity:1;} }
@keyframes slideDown { from{opacity:0;transform:translateY(-20px);} to{opacity:1;transform:translateY(0);} }

/* Scroll reveal */
.fade-in { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

/* ========== TOP BAR ========== */
.topbar { background: var(--dark); color: var(--white); font-size: 0.85rem; padding: 8px 0; z-index: 1001; position: relative; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-right { gap: 16px; }
.topbar .badge { background: rgba(82,183,136,0.2); padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; }

/* ========== NAVBAR ========== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 30px rgba(0,0,0,0.10);
  border-bottom-color: var(--accent);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--primary);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem; color: var(--text);
  position: relative; transition: color var(--transition);
}
.nav-links a:not(.btn-quote):hover { color: var(--secondary); }
.nav-links a:not(.btn-quote)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--secondary); transition: width var(--transition);
}
.nav-links a:not(.btn-quote):hover::after,
.nav-links a:not(.btn-quote).active-link::after { width: 100%; }
.nav-links a:not(.btn-quote).active-link { color: var(--secondary); }

.btn-quote {
  background: var(--accent); color: var(--text); font-weight: 700;
  padding: 10px 24px; border-radius: 50px; font-size: 0.95rem; border: none; cursor: pointer;
  transition: var(--transition); font-family: 'Montserrat', sans-serif;
  display: inline-flex; align-items: center; gap: 6px; position: relative; overflow: hidden;
}
.btn-quote::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}
.btn-quote:hover::before { left: 100%; }
.btn-quote:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(244,162,97,0.45); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ========== HERO ========== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--dark); }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,46,26,0.78) 0%, rgba(27,67,50,0.58) 100%);
  animation: pulse 6s ease-in-out infinite;
}
/* Particle canvas */
#heroCanvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: var(--white); padding: 2rem 1rem; max-width: 860px;
}
/* Word-by-word animated headline */
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  line-height: 1.15;
}
.hero-word {
  display: inline-block; opacity: 0;
  animation: wordReveal 0.55s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-content h1 .accent-word { color: var(--accent); }
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  margin-bottom: 2rem; opacity: 0; line-height: 1.75;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeInUp 0.6s ease 1.5s forwards; }

.btn-hero-primary {
  background: var(--accent); color: var(--text); font-weight: 700;
  padding: 15px 38px; border-radius: 50px; font-size: 1.05rem; border: none; cursor: pointer;
  transition: var(--transition); font-family: 'Montserrat', sans-serif;
  position: relative; overflow: hidden;
}
.btn-hero-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left 0.5s ease;
}
.btn-hero-primary:hover::before { left: 100%; }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(244,162,97,0.55); }

.btn-hero-secondary {
  background: transparent; color: var(--white); font-weight: 600;
  padding: 15px 38px; border-radius: 50px; font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,0.8); cursor: pointer;
  transition: var(--transition); font-family: 'Montserrat', sans-serif; position: relative; overflow: hidden;
}
.btn-hero-secondary::before {
  content: ''; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.btn-hero-secondary:hover::before { transform: scaleX(1); }
.btn-hero-secondary:hover { color: var(--primary); }
.btn-hero-secondary span { position: relative; z-index: 1; }

/* Trust Badges — staggered */
.trust-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 3rem; }
.trust-badge {
  background: rgba(255,255,255,0.11); backdrop-filter: blur(10px);
  padding: 10px 20px; border-radius: 50px; font-size: 0.88rem;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,0.18); color: var(--white);
  opacity: 0; animation: badgeSlide 0.5s ease forwards;
}
.trust-badge:nth-child(1) { animation-delay: 1.7s; }
.trust-badge:nth-child(2) { animation-delay: 1.9s; }
.trust-badge:nth-child(3) { animation-delay: 2.1s; }
.trust-badge:nth-child(4) { animation-delay: 2.3s; }
.trust-badge .check { color: var(--secondary); font-weight: 700; }

/* ========== SECTION DIVIDERS ========== */
.grass-divider { width: 100%; line-height: 0; overflow: hidden; }
.grass-divider svg { display: block; width: 100%; }

/* ========== MOBILE NAV (shared across breakpoints) ========== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ========== CURSOR TRAIL ========== */
.cursor-trail {
  position: fixed; pointer-events: none; z-index: 9999;
  font-size: 1.1rem; opacity: 0;
  animation: trailFade 0.5s ease forwards;
  transform-origin: center; will-change: transform, opacity;
}
@media (hover: none) { .cursor-trail { display: none; } }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  cursor: pointer; border: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary); transform: translateY(-4px) scale(1.08); }

/* ============================================================
   RESPONSIVE BREAKPOINTS — Every screen size covered
   xs:  < 360px  (tiny/old phones)
   sm:  360–479px (small phones)
   md:  480–767px (large phones)
   lg:  768–1023px (tablets / large tablets)
   xl:  1024–1199px (small laptops)
   2xl: 1200–1439px (standard desktops)
   3xl: 1440–1919px (large desktops / 2K)
   4xl: 1920px+   (ultra-wide / 4K)
   ============================================================ */

/* ---------- ULTRA-WIDE / 4K (1920px+) ---------- */
@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  .section-title { font-size: 3.4rem; }
  .section-subtitle { font-size: 1.25rem; max-width: 800px; }
  .hero-content h1 { font-size: 5rem; }
  .hero-content p { font-size: 1.45rem; }
  .btn-hero-primary, .btn-hero-secondary { padding: 18px 52px; font-size: 1.2rem; }
  .topbar { font-size: 1rem; padding: 10px 0; }
  .nav-links { gap: 38px; }
  .nav-links a { font-size: 1.05rem; }
  .back-to-top { width: 58px; height: 58px; font-size: 1.6rem; bottom: 40px; right: 40px; }
}

/* ---------- LARGE DESKTOP / 2K (1440px–1919px) ---------- */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { max-width: 1360px; }
  .section-title { font-size: 3rem; }
  .hero-content h1 { font-size: 4.5rem; }
  .nav-links { gap: 34px; }
}

/* ---------- STANDARD DESKTOP (1200px–1439px) ---------- */
@media (min-width: 1200px) and (max-width: 1439px) {
  .container { max-width: 1160px; }
}

/* ---------- SMALL LAPTOP (1024px–1199px) ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container { width: 92%; max-width: 980px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.88rem; }
  .btn-quote { padding: 9px 18px; font-size: 0.88rem; }
  .hero-content h1 { font-size: clamp(2.4rem, 4.5vw, 3.2rem); }
}

/* ---------- TABLET (768px–1023px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { width: 92%; }

  /* Navbar: switch to hamburger on tablets too */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--white); flex-direction: column;
    padding: 90px 36px 36px; gap: 26px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(.4,0,.2,1); z-index: 999;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; z-index: 1001; }

  /* Top bar */
  .topbar .container { flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-content { max-width: 680px; padding: 2rem 1.5rem; }
  .hero-content h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-content p { font-size: 1.05rem; }
  .trust-badges { gap: 10px; }
  .trust-badge { font-size: 0.82rem; padding: 9px 16px; }
}

/* ---------- LARGE PHONE (480px–767px) ---------- */
@media (max-width: 767px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column;
    padding: 80px 32px 32px; gap: 24px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(.4,0,.2,1); z-index: 999;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; z-index: 1001; }

  .topbar { font-size: 0.78rem; padding: 6px 0; }
  .topbar .container { justify-content: center; text-align: center; flex-direction: column; gap: 4px; }
  .topbar-right { display: none; }

  .hero { min-height: 92vh; }
  .hero-content { padding: 1.5rem 1rem; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-content p { font-size: 0.98rem; margin-bottom: 1.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; padding: 14px 24px; font-size: 0.98rem; }
  .trust-badges { gap: 8px; margin-top: 2rem; }
  .trust-badge { font-size: 0.75rem; padding: 7px 12px; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-subtitle { font-size: 0.95rem; }

  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.1rem; }
}

/* ---------- SMALL PHONE (360px–479px) ---------- */
@media (max-width: 479px) {
  html { scroll-padding-top: 70px; }
  .container { width: 94%; }

  .topbar { font-size: 0.72rem; }
  .nav-logo { font-size: 1rem; }
  .nav-logo svg { width: 30px; height: 30px; }
  .navbar .container { padding: 12px 0; }

  .hero-content h1 { font-size: clamp(1.55rem, 9vw, 2.1rem); line-height: 1.2; }
  .hero-content p { font-size: 0.92rem; }
  .trust-badge { font-size: 0.7rem; padding: 6px 10px; }

  .section-title { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }
}

/* ---------- TINY / OLD PHONES (< 360px) ---------- */
@media (max-width: 359px) {
  .container { width: 96%; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.88rem; }
  .hero-buttons { gap: 10px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 12px 18px; font-size: 0.9rem; }
  .trust-badge { font-size: 0.68rem; padding: 5px 9px; }
  .back-to-top { width: 40px; height: 40px; font-size: 1rem; bottom: 14px; right: 14px; }
  .section-title { font-size: 1.35rem; }
  .section-subtitle { font-size: 0.85rem; }
  .nav-logo { font-size: 0.9rem; }
  .nav-logo svg { width: 26px; height: 26px; }
}
