/* ===================================================
   CARBOVEXX — Global Design System (PREMIUM LIGHT THEME)
   Soft whites · Forest greens · Gold accents · Dark navbar
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ─────────────────────── */
:root {
  /* Brand greens */
  --green-primary:   #1a7a4e;
  --green-deep:      #0f5232;
  --green-accent:    #25c474;
  --green-mid:       #22a85e;
  --green-glow:      rgba(37, 196, 116, 0.28);
  --green-subtle:    rgba(26, 122, 78, 0.08);
  --green-light:     rgba(26, 122, 78, 0.05);
  --green-border:    rgba(26, 122, 78, 0.18);

  /* Surfaces — Light Theme */
  --bg-page:         #f9fafb;
  --bg-section-alt:  #f0f6f2;
  --bg-section-cream:#fdfefe;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f4faf7;
  --bg-input:        #ffffff;

  /* Dark nav */
  --nav-bg:          #0c1410;
  --nav-border:      rgba(37,196,116,0.15);

  /* Borders */
  --border-light:    #dde8e3;
  --border-green:    rgba(26,122,78,0.18);
  --border-card:     #e4ede8;

  /* Text */
  --text-primary:    #0a1a12;
  --text-secondary:  #1d382b;
  --text-muted:      #3d5c4b;
  --text-subtle:     #527562;
  --text-on-dark:    #f2f5f3;

  /* Backward-compatible aliases */
  --charcoal-border: #dde8e3;
  --charcoal-mid:    #f0f6f2;
  --charcoal-light:  #ffffff;
  --charcoal:        #ffffff;
  --white-dim:       #1d382b;

  /* Gold accent */
  --gold:            #c9a227;
  --gold-light:      rgba(201,162,39,0.15);

  /* Shadows */
  --shadow-xs:       0 1px 4px rgba(26,122,78,0.06);
  --shadow-sm:       0 2px 14px rgba(26,122,78,0.08);
  --shadow-card:     0 4px 28px rgba(26,122,78,0.10);
  --shadow-hover:    0 14px 48px rgba(26,122,78,0.16);
  --shadow-green:    0 8px 32px rgba(37,196,116,0.28);
  --shadow-nav:      0 4px 40px rgba(0,0,0,0.32);

  --white:           #ffffff;
  --font-body:       'Inter', sans-serif;
  --font-display:    'Rajdhani', sans-serif;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  --transition-fast:   0.18s cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 0.38s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   0.65s cubic-bezier(0.4,0,0.2,1);

  --nav-height: 78px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #edf2ef; }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-deep); }
::selection { background: var(--green-primary); color: #fff; }

/* ─── Container ──────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ─── Typography Utilities ───────────────────────── */
.text-green   { color: var(--green-primary); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.font-display { font-family: var(--font-display); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green-primary);
  text-transform: uppercase;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-title span { color: var(--green-primary); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.78;
}

/* ─── Breadcrumb Navigation ──────────────────────── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--green-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--green-deep);
  text-decoration: underline;
}
.breadcrumb .sep {
  color: var(--text-muted);
  opacity: 0.8;
  font-weight: 700;
}
.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 700;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-deep) 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(26,122,78,0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-outline {
  background: rgba(255,255,255,0.95);
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ─── NAVBAR (dark) ──────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(12,20,16,0.0);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10,17,13,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid rgba(37,196,116,0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-normal);
}
.nav-logo-img {
  height: 52px; width: auto;
  transition: all var(--transition-normal);
}
.nav-logo:hover .nav-logo-img,
.navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(37,196,116,0.65)) drop-shadow(0 0 24px rgba(37,196,116,0.28));
}
.nav-logo-text { display: flex; flex-direction: column; }
.logo-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f2f5f3;
  line-height: 1;
}
.logo-brand span { color: var(--green-accent); }
.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Nav links — dark on transparent hero, white when scrolled */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-primary);
  position: relative;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}
.nav-link:hover, .nav-link.active { color: var(--green-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }

/* When scrolled — switch to white links */
.navbar.scrolled .nav-link {
  color: rgba(255,255,255,0.80);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: #fff;
}
.navbar.scrolled .nav-link::after {
  background: var(--green-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.navbar.scrolled .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10,17,13,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav .nav-link { font-size: 1.6rem; font-weight: 700; color: #fff; }

/* ─── Sections ───────────────────────────────────── */
section { padding: 100px 0; position: relative; }
section:first-of-type { padding-top: 0; }
.section-light  { background: var(--bg-page); }
.section-alt    { background: var(--bg-section-alt); }
.section-white  { background: #ffffff; }
.section-cream  { background: var(--bg-section-cream); }

/* ─── Card ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.card:hover {
  border-color: rgba(26,122,78,0.22);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.card:hover::before { opacity: 1; }

/* ─── Grids ──────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ─── Divider ────────────────────────────────────── */
.divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-accent), transparent);
  border-radius: 2px;
  margin: 16px 0 32px;
}
.divider-center { margin: 16px auto 32px; }

/* ─── Icon Box ───────────────────────────────────── */
.icon-box {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}
.card:hover .icon-box {
  background: rgba(26,122,78,0.14);
  border-color: var(--green-primary);
  box-shadow: 0 0 20px rgba(26,122,78,0.14);
}
.icon-box svg { width: 24px; height: 24px; color: var(--green-primary); }

/* ─── Stat Grid ──────────────────────────────────── */
.stats-bar { background: #fff; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  background: #fff;
  padding: 40px 24px;
  text-align: center;
  transition: background var(--transition-fast);
}
.stat-item:hover { background: var(--bg-section-alt); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ─── FAQ Accordion ──────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  gap: 16px;
}
.faq-question:hover { color: var(--green-primary); }
.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-primary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-muted);
  line-height: 1.82;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 22px; }

/* ─── Form Styles ────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition: all var(--transition-fast);
  outline: none;
}
.form-control::placeholder { color: #6f8f7f; }
.form-control:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(26,122,78,0.10);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

/* ─── Footer (dark green) ────────────────────────── */
footer {
  background: #08140e;
  border-top: 1px solid rgba(37,196,116,0.15);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 64px;
}
.footer-brand p {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  line-height: 1.82;
  margin-top: 16px;
  max-width: 280px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.76); font-size: 0.9rem; font-weight: 500; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--green-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.70); font-size: 0.82rem; }
.footer-bottom a { color: var(--green-accent); font-size: 0.82rem; font-weight: 600; }

/* ─── Scroll Reveal ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.visible      { opacity: 1; transform: translate(0); }

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ─── Page Transition ────────────────────────────── */
.page-transition {
  position: fixed; inset: 0;
  background: var(--bg-page);
  z-index: 9999;
  pointer-events: none;
  transform-origin: top;
  transform: scaleY(0);
}

/* ─── Badge ──────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-green { background: var(--green-subtle); color: var(--green-primary); border: 1px solid var(--green-border); }

/* ─── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-primary);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: 0 8px 40px rgba(26,122,78,0.14);
  z-index: 9000;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
  max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast-title { font-weight: 700; color: var(--green-primary); margin-bottom: 4px; font-family: var(--font-display); font-size: 1rem; }

/* ─── Responsive ─────────────────────────────────── */
/* Responsive overrides are managed centrally in css/responsive.css */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
}
@media (max-width: 480px) {
  .container { width: 94%; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}
