/* ============================================
   CLIMATE DECODE &mdash; GLOBAL DESIGN SYSTEM
   Upload to: Design Manager > css/climate-decode-global.css
   ============================================ */

/* ---------- Google Fonts (also add via Settings > Website > Pages > Header HTML) ----------
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap" rel="stylesheet">
   ---------- */

:root {
  /* Primary Palette */
  --cd-dark: #0A2A2E;
  --cd-dark-deep: #09152B;
  --cd-teal: #008080;
  --cd-teal-mid: #175358;
  --cd-teal-light: #1B7A7A;
  --cd-gold: #C5A55A;
  --cd-gold-hover: #D4B76A;
  --cd-gold-light: rgba(197,165,90,0.15);
  --cd-gold-light2: rgba(197,165,90,0.2);
  --cd-green-accent: #00BDA5;

  /* Neutrals */
  --cd-white: #FFFFFF;
  --cd-off-white: #F7FAFA;
  --cd-gray-100: #F3F4F6;
  --cd-gray-200: #E5E7EB;
  --cd-gray-300: #D1D5DB;
  --cd-gray-400: #9CA3AF;
  --cd-gray-500: #6B7280;
  --cd-gray-600: #4B5563;
  --cd-gray-700: #374151;
  --cd-gray-800: #1F2937;
  --cd-gray-900: #111827;
  --cd-text: #1B1B1B;
  --cd-text-secondary: #555555;
  --cd-text-muted: #888888;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--cd-text);
  background: var(--cd-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-utility {
  background: var(--cd-white);
  border-bottom: 1px solid var(--cd-gray-200);
  padding: 6px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
.nav-utility-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.nav-utility a {
  font-size: 12px;
  color: var(--cd-gray-500);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-utility a:hover { color: var(--cd-teal); }

.nav {
  position: fixed;
  top: 30px;
  left: 0; right: 0;
  z-index: 1000;
  background: var(--cd-white);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
  padding: 16px 0;
}
.nav.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--cd-gray-200);
  padding: 12px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 80px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--cd-gray-800);
  position: relative;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
}
a.nav-link:hover { color: var(--cd-gray-800); text-decoration: none; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--cd-teal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--cd-teal); }
.nav-link:hover::after,
.nav-dropdown:hover > .nav-link::after { transform: scaleX(1); }
.nav-link.active { color: var(--cd-teal); }
.nav-link.active::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-search {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--cd-gray-600);
  font-size: 18px;
  transition: color 0.2s;
}
.nav-search:hover { color: var(--cd-teal); }
.btn-demo {
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-white);
  padding: 10px 24px;
  background: var(--cd-teal);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-demo:hover {
  background: var(--cd-teal-mid);
  box-shadow: 0 4px 16px rgba(0,128,128,0.25);
}

/* Mega Dropdown */
.nav-dropdown { position: static; padding-bottom: 16px; margin-bottom: -16px; }
.mega-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cd-white);
  border-bottom: 1px solid var(--cd-gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
  padding: 40px 0;
}
/* Invisible bridge above mega menu to prevent hover-gap */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
}
.nav-dropdown:hover .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.mega-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.mega-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--cd-teal);
  padding-top: 4px;
}
.mega-links { display: flex; flex-direction: column; }
.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--cd-gray-200);
  font-size: 16px; font-weight: 500;
  color: var(--cd-teal);
  transition: all 0.2s;
}
.mega-link:last-child { border-bottom: none; }
.mega-link:hover { color: var(--cd-teal-mid); padding-left: 6px; }
.mega-link .arrow { font-size: 18px; color: var(--cd-gray-400); transition: transform 0.2s, color 0.2s; }
.mega-link:hover .arrow { transform: translateX(4px); color: var(--cd-teal); }
.mega-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mega-card { border-radius: 10px; overflow: hidden; transition: transform 0.3s; }
.mega-card:hover { transform: translateY(-2px); }
.mega-card-img {
  height: 120px;
  background: linear-gradient(135deg, var(--cd-dark) 0%, var(--cd-teal-mid) 100%);
  display: flex; align-items: center; justify-content: center;
}
.mega-card-img.gold-bg { background: linear-gradient(135deg, #1A3A2A 0%, #2D5A3E 100%); }
.mega-card-tag {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--cd-gold);
  background: var(--cd-gold-light2);
  padding: 4px 12px; border-radius: 20px;
}
.mega-card-body { padding: 14px 0 0; }
.mega-card-body h5 { font-size: 14px; font-weight: 700; color: var(--cd-gray-900); margin-bottom: 6px; line-height: 1.3; }
.mega-card-cta { font-size: 13px; font-weight: 600; color: var(--cd-teal); display: inline-flex; align-items: center; gap: 4px; }
.mega-card-cta:hover { gap: 8px; }
.mega-integrity {
  background: var(--cd-teal);
  padding: 14px 0;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.mega-integrity-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.mega-integrity-inner svg { flex-shrink: 0; }
.mega-integrity-inner a { color: var(--cd-white); font-weight: 600; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mega-integrity-inner a:hover { opacity: 0.8; }

/* Mobile toggle */
.mobile-toggle { display: none; width: 28px; cursor: pointer; }
.mobile-toggle span { display: block; height: 2px; background: var(--cd-gray-800); margin: 6px 0; border-radius: 2px; }

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cd-gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  color: var(--cd-gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 17px;
  color: var(--cd-text-secondary);
  max-width: 640px;
  line-height: 1.7;
}
.section-desc.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header-centered { text-align: center; margin-bottom: 56px; }
.section-header-centered .section-desc { margin: 0 auto; }

/* ============================================
   CTA BANNER (shared across pages)
   ============================================ */
.cta-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(145deg, var(--cd-dark) 0%, var(--cd-teal-mid) 60%, var(--cd-teal) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,189,165,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(197,165,90,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  color: var(--cd-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex; gap: 16px; justify-content: center;
}
.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--cd-gold);
  color: var(--cd-white);
  font-size: 15px; font-weight: 600;
  border-radius: 8px; border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.hero-btn-primary:hover {
  background: var(--cd-gold-hover);
  box-shadow: 0 6px 24px rgba(197,165,90,0.35);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--cd-dark-deep);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand .footer-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 14px;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--cd-teal); color: var(--cd-white); }
.footer-col h5 {
  font-size: 13px; font-weight: 700; color: var(--cd-white);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 14px; padding: 5px 0;
  color: rgba(255,255,255,0.5); transition: color 0.2s;
}
.footer-col a:hover { color: var(--cd-gold); }
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--cd-teal); }
.footer-bottom a:hover { color: var(--cd-gold); }

/* ============================================
   RESPONSIVE &mdash; GLOBAL
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-utility { display: none; }
  .nav { top: 0; }
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  /* Mobile menu &mdash; shown when hamburger is tapped */
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cd-white);
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 999;
    gap: 0;
    border-top: 1px solid var(--cd-gray-200);
  }
  .nav-links.show .nav-dropdown { width: 100%; }
  .nav-links.show .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cd-gray-900);
    border-bottom: 1px solid var(--cd-gray-100);
  }
  .nav-links.show .mega-menu { display: none; }
  .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
