/**
 * ==========================================================================
 * Tire Green LLC — Core Design System & Stylesheet
 * Brand: Tire Green LLC | Domain: www.tiregreen.us
 * Reference: tglogo.png (#00BF63 bright green, #231F20 near-black, "Doorstep Tire Recycling")
 * Modern, clean, professional, industrial-meets-eco.
 * ==========================================================================
 */

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

/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Brand Colours (from tglogo.png) */
  --color-brand-green: #00BF63;          /* Bright signature brand green */
  --color-brand-green-hover: #00A855;    /* Deepened hover green */
  --color-green-accessible: #006C36;     /* Darkened accessible green for text (WCAG AA > 5.2:1 contrast on white & light grey) */
  --color-green-tint: #E6F9F0;           /* Soft green highlight background */
  --color-green-glow: rgba(0, 191, 99, 0.28);

  /* Industrial Charcoal & Near-Black (from tglogo.png text) */
  --color-charcoal-dark: #231F20;        /* Exact logo text charcoal */
  --color-charcoal-black: #161516;       /* Pure tire rubber black */
  --color-charcoal-surface: #2B2829;     /* Elevated dark card surface */
  --color-charcoal-border: #3D393A;      /* Border for dark modes */

  /* Secondary Accents */
  --color-accent-orange: #FF5B00;        /* Road-sign industrial orange from 1.png */
  --color-accent-orange-hover: #E64E00;
  --color-accent-orange-tint: #FFF2EB;

  /* Neutrals, Surfaces, & Borders */
  --color-white: #FFFFFF;
  --color-off-white: #F8F9FA;            /* Clean light background */
  --color-warm-grey-light: #F0F4F2;      /* Alternating section background */
  --color-warm-grey-mid: #E1E6E3;        /* Divider / border */
  --color-text-main: #231F20;            /* Primary copy text */
  --color-text-muted: #555A57;           /* High readability secondary body text */
  --color-text-subtle: #79807B;          /* Captions and metadata */

  /* Typography Scale */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 3rem;       /* 48px */
  --text-5xl: 3.75rem;    /* 60px */

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(35, 31, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(35, 31, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(35, 31, 32, 0.12);
  --shadow-xl: 0 20px 48px rgba(35, 31, 32, 0.16);
  --shadow-glow-green: 0 8px 28px rgba(0, 191, 99, 0.28);
  --shadow-glow-orange: 0 8px 28px rgba(255, 91, 0, 0.25);

  /* Layout Widths & Transitions */
  --container-max-width: 1240px;
  --container-narrow: 860px;
  --header-height: 84px;
  --topbar-height: 42px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Reset & Accessibility Fundamentals
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green-accessible);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-green-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-charcoal-dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background-color: var(--color-charcoal-dark);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  z-index: 9999;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-brand-green);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--color-brand-green);
}

/* ==========================================================================
   3. Layout & Grid Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 992px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section--alt {
  background-color: var(--color-warm-grey-light);
}

.section--white {
  background-color: var(--color-white);
}

.section--dark {
  background-color: var(--color-charcoal-dark);
  color: #E6E8E7;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

/* Responsive Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 992px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.grid--auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

/* ==========================================================================
   4. Section Headers & Eyebrows
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Small Green Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green-accessible);
  background-color: var(--color-green-tint);
  padding: 0.35rem 0.85rem;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(0, 191, 99, 0.3);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-green);
}

.eyebrow--orange {
  color: var(--color-accent-orange);
  background-color: var(--color-accent-orange-tint);
  border-color: rgba(255, 91, 0, 0.3);
}

.eyebrow--orange::before {
  background-color: var(--color-accent-orange);
}

.eyebrow--dark {
  color: #A3F5C9;
  background-color: rgba(0, 191, 99, 0.14);
  border-color: rgba(0, 191, 99, 0.35);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-4);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section--dark .section-subtitle {
  color: #B5BDB8;
}

/* ==========================================================================
   5. Buttons & Interactive Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 44px;
}

:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 3px solid var(--color-charcoal-dark);
  outline-offset: 2px;
}

.nav__link:focus-visible,
.topbar__link:focus-visible,
.footer__link:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Primary Brand Green Button */
.btn--primary {
  background-color: var(--color-brand-green);
  color: var(--color-charcoal-black);
  border-color: var(--color-brand-green);
  box-shadow: 0 4px 14px rgba(0, 191, 99, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-brand-green-hover);
  border-color: var(--color-brand-green-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}

/* Outline Button */
.btn--outline {
  background-color: transparent;
  color: var(--color-charcoal-dark);
  border-color: var(--color-warm-grey-mid);
}

.btn--outline:hover {
  border-color: var(--color-green-accessible);
  color: var(--color-green-accessible);
  background-color: var(--color-green-tint);
  transform: translateY(-2px);
}

/* On-Dark Variant */
.btn--on-dark {
  background-color: var(--color-brand-green);
  color: var(--color-charcoal-black);
  border-color: var(--color-brand-green);
}

.btn--on-dark:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal-black);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn--outline-dark:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal-black);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* Orange Industrial Action */
.btn--orange {
  background-color: var(--color-accent-orange);
  color: var(--color-white);
  border-color: var(--color-accent-orange);
}

.btn--orange:hover {
  background-color: var(--color-accent-orange-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange);
}

/* WhatsApp Direct Chat Button */
.btn--whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn--whatsapp:hover {
  background-color: #1EBE5D;
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   6. Cards, Icon Badges, Fact Boxes & Chips
   ========================================================================== */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-warm-grey-mid);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 191, 99, 0.4);
}

.card--dark {
  background-color: var(--color-charcoal-surface);
  border-color: var(--color-charcoal-border);
  color: #D3DAD5;
}

.card--dark:hover {
  border-color: var(--color-brand-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-charcoal-dark);
}

.card--dark .card__title {
  color: var(--color-white);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex: 1;
}

.card--dark .card__text {
  color: #B5BDB8;
}

/* Icon Badges */
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(0, 191, 99, 0.25);
  flex-shrink: 0;
}

.icon-badge--orange {
  background-color: var(--color-accent-orange-tint);
  color: var(--color-accent-orange);
  border-color: rgba(255, 91, 0, 0.25);
}

.icon-badge--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #A3F5C9;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Fact Box / Callout */
.fact-box {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-brand-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin: var(--space-6) 0;
}

.fact-box--orange {
  border-left-color: var(--color-accent-orange);
  background-color: #FFFDFB;
}

.fact-box__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-2);
}

.fact-box__content {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Chips / Badges */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-warm-grey-light);
  color: var(--color-charcoal-dark);
  border: 1px solid var(--color-warm-grey-mid);
}

.chip--green {
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  border-color: rgba(0, 191, 99, 0.3);
}

/* Bullet Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.checklist__icon {
  color: var(--color-brand-green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   7. Specialized Image Components
   (Natural 2.1:1 Desktop Ratio, Calm Overlays, Stacking Mobile Behavior)
   ========================================================================== */

/* Component: .page-hero */
.page-hero {
  position: relative;
  background-color: var(--color-charcoal-dark);
  overflow: hidden;
  border-bottom: 1px solid var(--color-warm-grey-mid);
}

/* Responsive banner container keeping natural 21/9 proportions */
.page-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .page-hero__visual {
    aspect-ratio: 21 / 9;
    max-height: 600px;
  }
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The Title & Content Panel:
   On desktop, overlaps or docks onto the calm side identified in the Image Audit.
   On mobile, cleanly stacks without obscuring the image. */
.page-hero__panel-wrap {
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .page-hero__panel-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none; /* Allows click-through outside panel */
  }
}

.page-hero__panel {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: 0;
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  width: 100%;
}

@media (min-width: 992px) {
  .page-hero__panel {
    max-width: 580px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-warm-grey-mid);
    padding: var(--space-10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.page-hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .page-hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .page-hero__actions .btn {
    width: 100%;
    text-align: center;
  }
  .page-hero__panel {
    padding: var(--space-6) var(--space-4);
  }
  .page-hero__panel .section-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }
}

/* Modifier: .page-hero--right (Panel sits on the CALM RIGHT side)
   Used for 1.png (where left side has road sign) and 2.png / 3.png (where left has historic/bulk clutter) */
@media (min-width: 992px) {
  .page-hero--right .page-hero__panel-wrap {
    justify-content: flex-end;
  }
}

/* Modifier: .page-hero--left (Panel sits on the CALM LEFT side)
   Used for 5.png (where left side has open blue sky) and 7.png (where left side has open sky) */
@media (min-width: 992px) {
  .page-hero--left .page-hero__panel-wrap {
    justify-content: flex-start;
  }
}

/* Modifier: .page-hero--dark-panel (Heavily tinted glassmorphic panel on dark image)
   Used for 6.png (tire ocean) and 4.png (affiliations gears) */
.page-hero--dark-panel .page-hero__panel {
  background-color: rgba(22, 21, 22, 0.94);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-hero--dark-panel .page-hero__panel .section-title {
  color: var(--color-white);
}

.page-hero--dark-panel .page-hero__panel .section-subtitle {
  color: #C3CCC6;
}

/* Component: .photo-band (Full-width visual break with optional caption) */
.photo-band {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-charcoal-dark);
}

.photo-band__visual {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 480px;
  overflow: hidden;
}

.photo-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-band__caption {
  background-color: var(--color-charcoal-dark);
  color: #C3CCC6;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-charcoal-border);
}

.photo-band__caption strong {
  color: var(--color-brand-green);
}

/* Component: .img-frame (Rounded corners, soft shadow, optional accent bar) */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-warm-grey-mid);
  background-color: var(--color-white);
}

.img-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.img-frame:hover img {
  transform: scale(1.02);
}

.img-frame--accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-green), #007A3D);
  z-index: 2;
}

/* Component: .hero-badge (Strictly for heroright.webp: 266px native width, white card with glow) */
.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--color-brand-green);
  max-width: 266px; /* STRICT: never upscale beyond native 266px */
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-badge__img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-3);
  display: block;
}

.hero-badge__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-1);
}

.hero-badge__subtitle {
  font-size: var(--text-xs);
  color: var(--color-green-accessible);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   8. Shared Header & Top Navigation Bar
   ========================================================================== */

/* Top Utility Bar */
.topbar {
  background-color: var(--color-charcoal-dark);
  color: #D3DAD5;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--color-charcoal-border);
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.topbar__link {
  color: #E2E8E4;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.topbar__link:hover {
  color: var(--color-brand-green);
}

.topbar__link strong {
  color: var(--color-white);
}

.topbar__badge {
  background-color: rgba(0, 191, 99, 0.2);
  color: #85F5BC;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

@media (max-width: 480px) {
  .topbar__badge {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
    gap: var(--space-2);
  }
}

/* Primary Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-warm-grey-mid);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo on white background (seamless) */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  height: 44px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand__logo {
    height: 48px;
    max-width: 210px;
  }
}

/* Nav Menu (Desktop) */
.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
  }
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal-dark);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-brand-green);
  border-radius: var(--radius-pill);
  transition: width var(--transition-smooth);
}

.nav__link:hover {
  color: var(--color-green-accessible);
}

.nav__link:hover::after,
.nav__link.is-active::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: var(--color-green-accessible);
}

/* Header Action Buttons */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .header__actions .btn--primary {
    display: none; /* Accessible in mobile drawer and top bar */
  }
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }
  .topbar__group {
    justify-content: center;
  }
  .page-hero__panel {
    padding: var(--space-6) var(--space-4);
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-sm);
  color: var(--color-charcoal-dark);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle:focus-visible {
  outline: 3px solid var(--color-brand-green);
}

/* Mobile Nav Drawer (Accessible) */
.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + var(--topbar-height));
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: var(--space-6);
  overflow-y: auto;
  border-top: 1px solid var(--color-warm-grey-mid);
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.mobile-drawer__link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  text-decoration: none;
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-warm-grey-light);
}

.mobile-drawer__link.is-active,
.mobile-drawer__link[aria-current="page"] {
  color: var(--color-green-accessible);
  border-bottom-color: var(--color-brand-green);
}

/* ==========================================================================
   9. Shared Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-charcoal-dark);
  color: #B5BDB8;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-charcoal-border);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: var(--space-8);
  }
}

.footer__brand-card {
  display: inline-block;
  background-color: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.footer__brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: #D3DAD5;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer__heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  color: #B5BDB8;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-brand-green);
  transform: translateX(3px);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  color: #D3DAD5;
}

.footer__bottom {
  border-top: 1px solid var(--color-charcoal-border);
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #8C9690;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer__bottom-links a {
  color: #B5BDB8;
  text-decoration: none;
}

.footer__bottom-links a:hover {
  color: var(--color-brand-green);
}

/* ==========================================================================
   10. Home Page Specific Components & Animations
   ========================================================================== */

/* Full-width Hero with tirew.webp and charcoal-to-green gradient */
.home-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--color-charcoal-dark);
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 1;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(22, 21, 22, 0.96) 0%,
    rgba(22, 21, 22, 0.88) 46%,
    rgba(0, 122, 61, 0.38) 78%,
    rgba(22, 21, 22, 0.18) 100%
  );
}

@media (max-width: 768px) {
  .home-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(22, 21, 22, 0.97) 0%,
      rgba(22, 21, 22, 0.92) 58%,
      rgba(22, 21, 22, 0.82) 100%
    );
  }
}

.home-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .home-hero {
    min-height: 640px;
  }
  .home-hero__grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-12);
  }
  .home-hero__content {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

.home-hero__title {
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.home-hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #D3DAD5;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: var(--space-8);
}

.home-hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .home-hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .home-hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Floating badge card for heroright.webp */
.floating-badge-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl), 0 0 0 3px var(--color-brand-green);
  max-width: 260px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  animation: floatBadge 4.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .floating-badge-card {
    max-width: 200px;
    padding: var(--space-4);
    margin-top: var(--space-4);
  }
}

.floating-badge-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-2);
}

.floating-badge-card__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-charcoal-dark);
}

.floating-badge-card__sub {
  font-size: var(--text-xs);
  color: var(--color-green-accessible);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Outcome Cards (Fuel, Metal, Rubber) */
.outcome-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-warm-grey-mid);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.outcome-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-brand-green);
}

.outcome-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(0, 191, 99, 0.25);
  flex-shrink: 0;
}

.outcome-card__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.outcome-card__title {
  font-size: var(--text-xl);
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-3);
}

.outcome-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Applications Strip */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.app-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.app-card:hover {
  border-color: var(--color-brand-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.app-card__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-charcoal-dark);
}

/* Teaser Dual Cards */
.teaser-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-warm-grey-mid);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teaser-card:hover {
  border-color: var(--color-brand-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Bold Contact Band */
.contact-band {
  background: linear-gradient(135deg, var(--color-charcoal-black) 0%, var(--color-charcoal-surface) 100%);
  color: var(--color-white);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  border-top: 2px solid var(--color-brand-green);
}

.contact-band__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .contact-band__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.contact-band__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll-Reveal Utility (IntersectionObserver) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. Materials & Products Page Components
   ========================================================================== */

/* Process Flow Diagram */
.process-flow-container {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-8);
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

@media (min-width: 992px) {
  .process-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
    align-items: stretch;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-off-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-3);
  text-decoration: none;
  color: var(--color-charcoal-dark);
  transition: var(--transition-smooth);
  position: relative;
}

.process-step:hover,
.process-step:focus-visible {
  border-color: var(--color-brand-green);
  background-color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.process-step__number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: var(--color-brand-green);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  box-shadow: 0 2px 8px var(--color-green-glow);
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  color: var(--color-charcoal-dark);
}

.process-step__sub {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  line-height: 1.35;
}

.process-arrow-desktop {
  display: none;
}

@media (min-width: 992px) {
  .process-step {
    position: relative;
  }
  .process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-brand-green);
    z-index: 5;
    pointer-events: none;
  }
}

.process-connector-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-green);
  font-size: 1.2rem;
  font-weight: 800;
}

@media (min-width: 992px) {
  .process-connector-mobile {
    display: none;
  }
}

/* Material Detail Cards */
.material-detail-card {
  scroll-margin-top: 110px;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-warm-grey-mid);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.material-detail-card:hover {
  border-color: var(--color-brand-green);
  box-shadow: var(--shadow-lg);
}

.material-detail-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.material-detail-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 191, 99, 0.25);
}

.material-detail-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-1);
}

.material-detail-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

/* Crumb Rubber Mesh Interactive Selector */
.mesh-selector-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
}

.mesh-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.mesh-chip {
  background-color: var(--color-off-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  color: var(--color-charcoal-dark);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mesh-chip:hover {
  border-color: var(--color-brand-green);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
}

.mesh-chip.is-active {
  background-color: var(--color-brand-green);
  color: var(--color-white);
  border-color: var(--color-brand-green);
  box-shadow: 0 4px 12px var(--color-green-glow);
}

.mesh-scale-track-wrap {
  position: relative;
  margin: var(--space-6) 0 var(--space-8) 0;
}

.mesh-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.mesh-scale-bar {
  position: relative;
  height: 10px;
  background: linear-gradient(90deg, #79807B 0%, var(--color-brand-green) 50%, var(--color-green-accessible) 100%);
  border-radius: var(--radius-pill);
}

.mesh-scale-indicator {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background-color: var(--color-white);
  border: 3.5px solid var(--color-brand-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mesh-info-box {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Applications Grid Tiles */
.app-tile {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.app-tile:hover {
  border-color: var(--color-brand-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(0, 191, 99, 0.2);
}

.app-tile--featured {
  border: 2px solid var(--color-brand-green);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-green-tint) 100%);
}

/* ==========================================================================
   9. Affiliations & Regional Representatives Page Components
   ========================================================================== */

/* Affiliations Cards */
.affiliation-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.affiliation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--color-warm-grey-mid);
  transition: background-color var(--transition-fast);
}

.affiliation-card:hover,
.affiliation-card.is-highlighted {
  border-color: var(--color-brand-green);
  box-shadow: 0 12px 28px rgba(0, 191, 99, 0.15);
  transform: translateY(-4px);
}

.affiliation-card:hover::before,
.affiliation-card.is-highlighted::before {
  background-color: var(--color-brand-green);
}

.affiliation-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.affiliation-card__flag {
  font-size: 1.75rem;
  line-height: 1;
}

.affiliation-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-1);
}

.affiliation-card__location {
  font-size: var(--text-base);
  color: var(--color-green-accessible);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.affiliation-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  border: 1px solid rgba(0, 191, 99, 0.25);
  margin-top: var(--space-4);
  width: fit-content;
}

/* Interactive SVG Map Box */
.map-box {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 440px;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  transform-origin: center;
}

.map-pin:hover,
.map-pin.is-active,
.map-pin:focus {
  outline: none;
  filter: drop-shadow(0 0 8px var(--color-brand-green));
}

.map-pin:hover circle.pin-dot,
.map-pin.is-active circle.pin-dot,
.map-pin:focus circle.pin-dot {
  transform: scale(1.3);
  fill: var(--color-brand-green);
}

.map-arc {
  stroke-dasharray: 6 6;
  animation: dashMove 30s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -120;
  }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-warm-grey-light);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.map-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Representatives Directory Cards */
.rep-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rep-card:hover {
  border-color: var(--color-brand-green);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.rep-card--pending {
  background-color: var(--color-off-white);
  border-style: dashed;
}

.rep-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  width: fit-content;
}

.rep-card__badge--active {
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  border: 1px solid rgba(0, 191, 99, 0.3);
}

.rep-card__badge--pending {
  background-color: var(--color-warm-grey-light);
  color: var(--color-text-subtle);
  border: 1px solid var(--color-warm-grey-mid);
}

.rep-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-2);
}

.rep-card__address {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

.rep-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Large touch targets on mobile */
.btn--tap-target {
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
}

/* ==========================================================================
   10. India Circular Economy Page Components
   ========================================================================== */

/* Stat Tiles Box */
.stat-box-wrap {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-tile {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.stat-tile:hover {
  border-color: var(--color-brand-green);
  background-color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-tile__figure {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-charcoal-dark);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-tile__figure sup {
  font-size: 0.9rem;
  color: var(--color-brand-green);
  font-weight: 700;
}

.stat-tile__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.stat-tile__badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  border: 1px solid rgba(0, 191, 99, 0.25);
  width: fit-content;
}

.stat-disclaimer {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-warm-grey-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  border-left: 3px solid var(--color-brand-green);
}

/* Prominent Pull-Quote Callout */
.pull-quote {
  background: linear-gradient(135deg, var(--color-green-tint) 0%, #F4FAF6 100%);
  border-left: 5px solid var(--color-brand-green);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: var(--space-8) var(--space-10);
  margin: var(--space-10) 0;
  position: relative;
}

.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-charcoal-dark);
  margin: 0;
}

/* Recycled Materials Icon Row */
.materials-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 992px) {
  .materials-row {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.material-item-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.material-item-card:hover {
  border-color: var(--color-brand-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.material-item-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-green-tint);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(0, 191, 99, 0.2);
}

.material-item-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  margin: 0;
}

/* CRMB in Roads Layered Explainer Box */
.crmb-road-box {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-8);
}

/* Sources Section List */
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  margin: var(--space-6) 0 0 0;
}

.sources-list__item {
  display: flex;
  gap: var(--space-3);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.sources-list__num {
  font-weight: 800;
  color: var(--color-green-accessible);
  font-family: var(--font-display);
}

.sources-list__link {
  color: var(--color-green-accessible);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.sources-list__link:hover {
  color: var(--color-brand-green);
}

/* ==========================================================================
   CONTACT PAGE & FUNCTIONAL FORM COMPONENTS
   ========================================================================== */

/* Two-column layout: Form on Left, Contact Card on Right */
.contact-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Contact Form Card Container */
.contact-form-container {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

@media (max-width: 640px) {
  .contact-form-container {
    padding: var(--space-5);
  }
}

/* Form Groups & Grid Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-charcoal-dark);
  margin-bottom: var(--space-2);
}

.form-label .req {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal-dark);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-subtle);
  opacity: 0.8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-brand-green);
  box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.2);
}

/* Accessible Validation States */
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.dropzone[aria-invalid="true"] {
  border-color: #DC2626 !important;
  background-color: #FFFDFD;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error {
  display: none;
  font-size: var(--text-xs);
  color: #DC2626;
  font-weight: 600;
  margin-top: var(--space-1);
  line-height: 1.4;
}

.field-error.is-visible {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-helper {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* Styled Drag-and-Drop Attachment Box */
.dropzone {
  border: 2px dashed var(--color-warm-grey-mid);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  background-color: var(--color-off-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--color-brand-green);
  background-color: rgba(0, 191, 99, 0.05);
}

.dropzone__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-2);
  display: block;
}

.dropzone__text {
  font-size: var(--text-sm);
  color: var(--color-charcoal-dark);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.dropzone__text span {
  color: var(--color-green-accessible);
  text-decoration: underline;
}

.dropzone__meta {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* File Attachment Preview */
.file-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}

.file-preview.is-visible {
  display: flex;
}

.file-preview__info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
}

.file-preview__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.file-preview__name {
  font-weight: 600;
  color: var(--color-charcoal-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.file-preview__size {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.file-preview__remove {
  background: none;
  border: none;
  color: #DC2626;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: background-color var(--transition-fast);
}

.file-preview__remove:hover {
  background-color: rgba(220, 38, 38, 0.1);
}

/* Spam Honeypot Field (Visually hidden & off-screen) */
.hp-field-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Turnstile Widget Container */
.turnstile-wrap {
  margin: var(--space-4) 0;
  min-height: 65px;
}

/* Privacy Notice beside / inside form */
.privacy-note {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  line-height: 1.5;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-brand-green);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

/* Submission States: Loading, Success, Error */
.btn--submitting {
  position: relative;
  opacity: 0.85;
  cursor: not-allowed !important;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success-state {
  display: none;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-brand-green);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease;
}

.form-success-state.is-visible {
  display: block;
}

.form-success-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 191, 99, 0.15);
  color: var(--color-green-accessible);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 2rem;
}

.form-success-state__text {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-charcoal-dark);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto var(--space-6);
}

.form-error-state {
  display: none;
  background-color: #FEF2F2;
  border: 1.5px solid #F87171;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  color: #991B1B;
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.form-error-state.is-visible {
  display: block;
}

.form-error-state__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* Contact Card (Right Column) */
.contact-sidebar-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-warm-grey-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.contact-sidebar-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-warm-grey-light);
}

.contact-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-sidebar-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-sidebar-item__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-charcoal-dark);
}

.contact-sidebar-item__link {
  color: var(--color-green-accessible);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-sidebar-item__link:hover {
  color: var(--color-brand-green);
  text-decoration: underline;
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  .floating-badge-card {
    animation: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-spinner {
    animation: none !important;
  }
}

