/*
Theme Name: aerotill
Theme URI: https://terraedge.com
Author: TerraEdge AgriTech
Author URI: https://terraedge.com
Description: aerotill — the mechanical tilling of the future. Air-injection plow technology reducing traction force by 40% and TCO by 31%.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terraedge
Tags: agriculture, technology, business, one-page, responsive
*/

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
  /* Earth-inspired color palette */
  --color-soil: hsl(25, 35%, 22%);
  --color-soil-light: hsl(28, 25%, 35%);
  --color-verdant: hsl(145, 45%, 28%);
  --color-verdant-light: hsl(142, 40%, 45%);
  --color-cream: hsl(40, 30%, 97%);
  --color-cream-dark: hsl(38, 35%, 92%);
  --color-wheat: hsl(42, 85%, 55%);
  --color-wheat-dark: hsl(38, 75%, 45%);
  --color-foreground: hsl(30, 25%, 12%);
  --color-muted: hsl(30, 15%, 45%);
  --color-border: hsl(35, 20%, 85%);

  /* Gradients */
  --gradient-earth: linear-gradient(135deg, hsl(25, 35%, 22%), hsl(145, 45%, 28%));
  --gradient-hero: linear-gradient(180deg, hsl(40, 30%, 97%) 0%, hsl(38, 35%, 92%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(42, 85%, 55%), hsl(38, 75%, 45%));

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(30, 25%, 12%, 0.08);
  --shadow-card: 0 8px 30px -8px hsl(30, 25%, 12%, 0.12);
  --shadow-elevated: 0 20px 50px -15px hsl(30, 25%, 12%, 0.15);
  --shadow-glow: 0 0 40px hsl(145, 45%, 28%, 0.2);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --radius: 12px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.text-gradient-earth {
  background: var(--gradient-earth);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section--dark {
  background: var(--gradient-earth);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--color-cream);
}

.section--alt {
  background-color: var(--color-cream-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-earth);
  color: var(--color-cream);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn--accent {
  background: var(--gradient-accent);
  color: var(--color-foreground);
  box-shadow: var(--shadow-card);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn--outline {
  background: transparent;
  color: var(--color-verdant);
  border: 2px solid var(--color-verdant);
}

.btn--outline:hover {
  background: var(--color-verdant);
  color: var(--color-cream);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ========================================
   BADGE / PILL
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--green {
  background: hsl(145, 45%, 28%, 0.12);
  color: var(--color-verdant);
  border: 1px solid hsl(145, 45%, 28%, 0.2);
}

.badge--wheat {
  background: hsl(42, 85%, 55%, 0.15);
  color: var(--color-wheat-dark);
  border: 1px solid hsl(42, 85%, 55%, 0.3);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-card);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-foreground);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-earth);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-verdant);
  background: hsl(145, 45%, 28%, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Strip any UL/LI that WordPress might inject into main-nav */
.main-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.main-nav li { display: contents; }
.main-nav li a { padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--color-muted); transition: color 0.2s ease, background 0.2s ease; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(145, 45%, 28%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsl(42, 85%, 55%, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 36px;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.stat-item {}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-verdant);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-image-placeholder .placeholder-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-badge-float.top-right {
  top: -16px;
  right: -16px;
}

.hero-badge-float.bottom-left {
  bottom: -16px;
  left: -16px;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-icon--green { background: hsl(145, 45%, 28%, 0.12); }
.float-icon--wheat { background: hsl(42, 85%, 55%, 0.15); }

/* ========================================
   FEATURES / BENEFITS
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: hsl(145, 45%, 28%, 0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: hsl(145, 45%, 28%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-foreground);
  font-family: var(--font-body);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========================================
   TECHNOLOGY SECTION
   ======================================== */
.tech-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.tech-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.tech-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tech-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tech-point-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.tech-point-content p {
  font-size: 0.9rem;
}

.tech-visual {
  background: var(--gradient-earth);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.tech-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.tech-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.metric-value {
  color: var(--color-wheat);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.metric-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  margin: 0 20px;
  overflow: hidden;
}

.metric-bar {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 100px;
  transition: width 1s ease;
}

/* ========================================
   SECTION HEADER (reusable)
   ======================================== */
.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header.left-align {
  margin-left: 0;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-verdant);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* ========================================
   STATS / IMPACT SECTION
   ======================================== */
.stats-section {
  background: var(--gradient-earth);
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-block {
  position: relative;
}

.stat-block::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-block:last-child::after { display: none; }

.stat-big-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-wheat);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-big-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.testimonial-stars {
  color: var(--color-wheat);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--color-foreground);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-earth);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-foreground);
}

.author-role {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: var(--gradient-earth);
  border-radius: 24px;
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-section {
  padding: 80px 0;
  background: var(--color-cream-dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: hsl(145, 45%, 28%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 0.875rem;
  margin: 0;
}

.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background: var(--color-cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-verdant);
  box-shadow: 0 0 0 3px hsl(145, 45%, 28%, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-soil);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  color: white;
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.2);
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-wheat);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-inner,
  .tech-content,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .cta-box {
    padding: 48px 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(251, 248, 243, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

  .mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-foreground);
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-block::after { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-badge-float { display: none; }

  .tech-visual { padding: 32px; }

  .cta-box { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 120px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */
.wp-post-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Navigation menu styles */
.wp-block-navigation { display: flex; gap: 8px; }

/* Gutenberg alignment */
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.alignwide { max-width: 1400px; margin: 0 auto; }

/* Comments */
.comments-area {
  max-width: 800px;
  margin: 48px auto;
  padding: 0 24px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--color-verdant);
  border-color: var(--color-verdant);
  color: white;
}

/* ========================================
   HERO — updated styles
   ======================================== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(145, 45%, 28%, 0.1);
  color: var(--color-verdant);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-pulse {
  width: 8px;
  height: 8px;
  background: var(--color-verdant);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  margin: 20px 0 24px;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero-trust-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.hero-trust-logos {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-trust-logos span {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(30, 15%, 65%);
  letter-spacing: -0.01em;
}

.hero-image-wrap {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: -32px;
  background: hsl(145, 45%, 28%, 0.1);
  border-radius: 24px;
  filter: blur(40px);
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gradient-earth);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 4rem;
}

.hero-img-placeholder small {
  font-size: 0.875rem;
}

.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: white;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--color-border);
  animation: float 4s ease-in-out infinite;
}

.hero-float-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-verdant);
  line-height: 1;
}

.hero-float-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 2px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========================================
   STATS BANNER
   ======================================== */
.stats-banner {
  background: var(--gradient-earth);
  padding: 64px 0;
}

.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-banner-item {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.stats-banner-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stats-banner-item:last-child::after { display: none; }

.stats-banner-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-banner-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ========================================
   BENEFITS GRID (4-col)
   ======================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.benefit-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: hsl(145, 45%, 28%, 0.2);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: hsl(145, 45%, 28%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: hsl(145, 45%, 28%, 0.2);
}

.benefit-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-foreground);
  font-family: var(--font-body);
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ========================================
   TECHNOLOGY SECTION
   ======================================== */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-image-wrap {
  position: relative;
}

.tech-image-glow {
  position: absolute;
  inset: -32px;
  background: hsl(42, 85%, 55%, 0.2);
  border-radius: 28px;
  filter: blur(40px);
  pointer-events: none;
}

.tech-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.tech-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-cream-dark);
  border: 2px dashed var(--color-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 3rem;
}

.tech-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--gradient-accent);
  color: var(--color-foreground);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.tech-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 40px;
}

.tech-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-foreground);
  line-height: 1.5;
}

.tech-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-verdant);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 2px;
}

.tech-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.tech-mini-stat {}

.tech-mini-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-verdant);
  line-height: 1;
  margin-bottom: 4px;
}

.tech-mini-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ========================================
   PEOPLE (FOUNDERS + ADVISORS) — shared
   ======================================== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}

.person-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease;
}

.person-card:hover {
  box-shadow: var(--shadow-elevated);
}

/* Founders: larger avatar */
.person-avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}

/* Advisors: slightly smaller */
.person-avatar-wrap--sm {
  width: 144px;
  height: 144px;
}

.person-glow {
  position: absolute;
  inset: 0;
  background: hsl(145, 45%, 28%, 0.2);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.person-card:hover .person-glow {
  opacity: 1;
}

.person-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-cream-dark);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease;
}

.person-card:hover .person-avatar {
  border-color: hsl(145, 45%, 28%, 0.4);
}

.person-avatar-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-earth);
  border: 4px solid var(--color-cream-dark);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  transition: border-color 0.3s ease;
}

.person-avatar-placeholder--sm {
  font-size: 1.875rem;
}

.person-card:hover .person-avatar-placeholder {
  border-color: hsl(145, 45%, 28%, 0.4);
}

.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 4px;
}

.person-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-verdant);
  margin-bottom: 4px;
}

.person-affiliation {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.advisor-divider {
  width: 40px;
  height: 1px;
  background: var(--color-border);
  margin: 16px auto;
}

.person-bio {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.person-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Founder social icon buttons */
.person-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.person-social-link:hover {
  background: var(--color-verdant);
  color: white;
  border-color: var(--color-verdant);
}

/* Advisor "Connect" CTA */
.advisor-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.advisor-linkedin-btn:hover {
  color: var(--color-verdant);
}

.advisor-linkedin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.advisor-linkedin-btn:hover .advisor-linkedin-icon {
  background: var(--color-verdant);
  color: white;
  border-color: var(--color-verdant);
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner,
  .tech-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .stats-banner-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stats-banner-item::after { display: none; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .tech-features { grid-template-columns: 1fr; }
  .tech-mini-stats { grid-template-columns: repeat(3, 1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-float-card { display: none; }
}

@media (max-width: 480px) {
  .stats-banner-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-mini-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}

/* ========================================
   4-COLUMN TEAM GRID
   ======================================== */
@media (max-width: 1100px) {
  .people-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .people-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
}

/* Problem section 2-col responsive */
@media (max-width: 900px) {
  #problem .container > div[style*="grid-template-columns:1fr 1fr"],
  #market .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   MOBILE OVERFLOW FIX
   ======================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero,
.section,
.stats-banner,
.contact-section,
.site-footer {
  overflow-x: hidden;
}

/* Fix grid/flex children that can overflow on mobile */
@media (max-width: 768px) {
  .hero-inner,
  .tech-layout,
  .contact-inner,
  .footer-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  /* Fix inline grids in problem/market sections */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}
	
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .stats-banner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
  }

  .people-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-float-card {
    display: none;
  }

  .tech-features {
    grid-template-columns: 1fr !important;
  }

  .tech-mini-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Ensure all containers don't bleed */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ========================================
   TCO INTERACTIVE TABLE
   ======================================== */
.tco-section {
  padding: 80px 0;
  background: var(--color-cream);
}

.tco-chart-wrap {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tco-chart-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--color-foreground);
}

.tco-chart-wrap .tco-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.tco-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 320px;
  border-bottom: 2px solid var(--color-border);
  border-left: 2px solid var(--color-border);
  padding: 0 8px 0 0;
  position: relative;
  min-width: 560px;
}

.tco-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
}

.tco-bar-group:hover .tco-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.tco-bar-stack {
  width: 100%;
  max-width: 72px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  transition: filter 0.2s ease;
  position: relative;
}

.tco-bar-group:hover .tco-bar-stack {
  filter: brightness(1.08);
}

.tco-bar-group.prototype .tco-bar-stack {
  outline: 3px solid var(--color-verdant);
  outline-offset: 2px;
}

.tco-bar-segment {
  width: 100%;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tco-bar-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  color: var(--color-foreground);
  line-height: 1.3;
}

.tco-bar-total {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-foreground);
  text-align: center;
  margin-bottom: 6px;
}

.tco-prototype-badge {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-verdant);
  color: white;
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tco-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-foreground);
  color: white;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-elevated);
}

.tco-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-foreground);
}

.tco-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.tco-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.tco-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.tco-savings-callout {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.tco-callout {
  flex: 1;
  background: hsl(145,45%,28%,0.06);
  border: 1px solid hsl(145,45%,28%,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}

.tco-callout-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-verdant);
  line-height: 1;
  margin-bottom: 4px;
}

.tco-callout-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ========================================
   EXIST LOGO SECTION — enhanced
   ======================================== */
.exist-badge {
  margin-top: 56px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.exist-badge-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.exist-badge img {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.exist-badge-text {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .exist-badge {
    padding: 24px 20px;
  }
  .tco-savings-callout {
    flex-direction: column;
  }
}

/* ========================================
   FOOTER WIDGET AREA
   ======================================== */
.footer-widgets {
  background: var(--color-foreground);
  padding: 60px 0 0;
}

.footer-widget-area {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget-area .widget-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 16px;
}

.footer-widget-area .widget,
.footer-widget-area .textwidget {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-widget-area .widget a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-widget-area .widget a:hover {
  color: white;
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-area ul li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .footer-widget-area {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   FOOTER WIDGET TITLE — force body font
   ======================================== */
.footer-widget-area h1,
.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area h4,
.footer-widget-area h5,
.footer-widget-area .widget-title {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white !important;
  margin-bottom: 16px;
}

/* EXIST badge — smaller image, no extra text */
.exist-badge {
  max-width: 560px;
}

.exist-badge-text {
  display: none; /* remove redundant text — info already on image */
}

/* Ensure SVG chart container doesn't get clipped */
.tco-chart-wrap svg {
  display: block;
  overflow: visible;
}

/* ========================================
   FOOTER COLUMN LAYOUT FIX
   ======================================== */
.footer-widget-area {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 48px !important;
  align-items: start;
}

.footer-widget-col {
  min-width: 0; /* prevent overflow in grid */
}

@media (max-width: 900px) {
  .footer-widget-area {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .footer-widget-area {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
