:root {
  /* Colors */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-dark: #111111;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent: #008559;
  --accent-hover: #006644;
  --border-light: #E5E5E5;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: clamp(2.5rem, 6vw, 4rem);
  --space-xl: clamp(4rem, 10vw, 8rem);

  /* Layout */
  --container-width: 1200px;
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p { margin-bottom: var(--space-sm); color: var(--text-secondary); font-size: 0.85rem; }

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px; /* Pill shape like screenshot */
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 133, 89, 0.2);
}

.btn-secondary {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: rgba(0,0,0,0.1);
}

/* Header & Nav */
header {
    background-color: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    max-width: 900px;
    margin: 0 auto 20px auto;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
  }

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--text-primary);
}

.nav-links a.active {
  background-color: rgba(0, 133, 89, 0.1);
  color: var(--accent);
}

.nav-links a:hover:not(.btn) {
  background-color: rgba(0, 133, 89, 0.05);
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

  @media (max-width: 992px) {
    .nav-container {
      justify-content: flex-start;
      gap: 0.5rem;
      padding: 0.5rem;
    }
    
    .logo img {
      height: 24px !important;
    }

    .nav-links {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: flex-start;
      align-items: center;
      background-color: transparent;
      padding: 0;
      box-shadow: none;
      width: auto;
      gap: 0.25rem;
      position: static;
      transform: none; /* FIX: Prevent the desktop -50% translation from squashing this over the logo */
      overflow-x: auto; /* Allow horizontal scrolling if it gets too tight on tiny screens */
      scrollbar-width: none; /* Hide scrollbar in Firefox */
      margin-right: auto; /* Pushes the nav-right CTA to the far right */
    }
    .nav-links::-webkit-scrollbar {
      display: none; /* Hide scrollbar in Chrome/Safari */
    }
    
    .nav-links a {
      font-size: 0.65rem;
      padding: 0.25rem;
    }
  
    .menu-toggle {
      display: none;
    }
    
    .nav-right {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
    
    .nav-right .btn-secondary {
      display: none; /* Hide 'Get a plan' text on mobile */
    }
    
    .nav-right .btn-icon {
      padding: 0.4rem;
    }
    
    .nav-right .btn-icon svg {
      width: 14px;
      height: 14px;
    }
  }

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
}

.section-dark h2, .section-dark h3, .section-dark p {
  color: var(--bg-primary);
}

.section-dark .text-secondary {
  color: #A3A3A3;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1), 
    0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15), 
    0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-dark {
  background-color: #1A1A1A;
  border-color: #333333;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3), 
    0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-dark:hover {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4), 
    0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Cards */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12), 
    0 8px 16px rgba(0, 0, 0, 0.08),
    inset 0 4px 10px rgba(255, 255, 255, 0.6);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.glass-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.glass-card p {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.15), 
    0 12px 24px rgba(0, 0, 0, 0.1),
    inset 0 4px 15px rgba(255, 255, 255, 0.9);
}

/* Utilities */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: 8rem; }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.875rem; }

/* Micro-copy */
.micro-copy {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  color: #475569;
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.site-footer .logo {
  color: var(--text-primary);
}

.site-footer .logo svg {
  fill: var(--text-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2rem;
  margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer ul a, .site-footer p {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.6;
  margin-bottom: 0;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.site-footer .text-accent {
  color: var(--accent); /* Back to standard accent */
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f1f5f9;
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.social-icon:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  color: #64748b;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Specific Section Styles */
.hero {
  padding: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero p {
  max-width: 800px;
  margin: 0 auto var(--space-md);
  font-size: 0.95rem;
}

.trust-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(0, 133, 89, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

/* Case Study Format */
.case-metric {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.case-metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 992px) {
  .mobile-reverse-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: var(--space-md);
  }
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background-color: var(--bg-primary);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.form-input::placeholder {
  color: #A3A3A3;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.btn-icon {
  padding: 0.6rem;
  border-radius: 50%;
  aspect-ratio: 1/1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg {
  margin: 0 !important;
  width: 20px;
  height: 20px;
}
