/* ============================================================
   DUMP AND DUMPSTER — css/global.css
   Shared design tokens, resets, layout utilities, components
   Design: Google Gemini 2.5 Pro · Code: Claude Sonnet 4.6
   ============================================================ */

/* ── GOOGLE FONTS ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* ── PAGE TRANSITION ─────────────────────────────────────── */
/* CSS-animation based: works with or without JS, no blank flash */
@keyframes pageFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageFadeOut { to   { opacity: 0; } }
body { animation: pageFadeIn 0.28s ease both; }
body.page-leaving { animation: pageFadeOut 0.22s ease forwards; }


/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════ */
:root {
  /* Background palette */
  --bg:           #0A0A0A;
  --surface:      #111111;
  --elevated:     #1A1A1A;

  /* Silver scale */
  --silver-light: #E8E8E8;
  --silver-mid:   #A0A0A0;
  --silver-dark:  #606060;

  /* Brand accent — green */
  --green:        #4ADE80;
  --green-dark:   #22C55E;
  --green-glow:   rgba(74, 222, 128, 0.15);

  /* Brand accent — blue */
  --blue:         #60A5FA;
  --blue-dark:    #3B82F6;
  --blue-glow:    rgba(96, 165, 250, 0.15);

  /* UI chrome */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --error:        #F87171;
  --warning:      #FBBF24;
  --success:      #4ADE80;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-label:   'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --max-w:        1200px;
  --max-w-narrow: 800px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  /* Motion */
  --transition:   0.25s ease;
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-green: 0 0 24px rgba(74, 222, 128, 0.25);
  --shadow-blue:  0 0 24px rgba(96, 165, 250, 0.25);

  /* Spacing scale */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;
  --space-3xl:    96px;
}


/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--silver-mid);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

address {
  font-style: normal;
}

svg {
  display: block;
}

::selection {
  background: var(--green-glow);
  color: var(--silver-light);
}


/* ══════════════════════════════════════════════════════════
   BODY NOISE TEXTURE OVERLAY
══════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 3px 3px;
}


/* ══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 3px;
  width: 0%;
  background: var(--green);
  pointer-events: none;
  transition: none;
}


/* ══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: 128px 0;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ══════════════════════════════════════════════════════════
   GRID OVERLAY UTILITY
══════════════════════════════════════════════════════════ */
.grid-overlay {
  position: relative;
}

.grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY — SECTION LABELS & TITLES
══════════════════════════════════════════════════════════ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.section-tag__line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 48px;
  line-height: 1.1;
  color: var(--silver-light);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--silver-mid);
  max-width: 520px;
  margin-top: 16px;
}

.section-subtitle--wide {
  max-width: 680px;
}

.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
}

.label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
}


/* ══════════════════════════════════════════════════════════
   FADE-UP SCROLL ANIMATION
══════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a parent */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children > *.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > *:nth-child(1) { transition-delay: 0ms;   }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children > *:nth-child(6) { transition-delay: 500ms; }


/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform 0.15s var(--ease-out),
    opacity var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Primary — green fill */
.btn-primary {
  background: var(--green);
  color: #0A0A0A;
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px var(--green-glow), var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: var(--silver-mid);
  color: var(--silver-light);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--silver-light);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Blue */
.btn-blue {
  background: var(--blue);
  color: #0A0A0A;
  border-color: var(--blue);
}

.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 4px var(--blue-glow), var(--shadow-md);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* Sizes */
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-xl {
  height: 64px;
  padding: 0 40px;
  font-size: 17px;
}

/* Full width */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* Icon-only */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-icon.btn-sm { width: 38px; height: 38px; }
.btn-icon.btn-lg { width: 56px; height: 56px; }

/* Loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  color: transparent;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  color: #0A0A0A;
}

.btn-outline.is-loading::after,
.btn-ghost.is-loading::after,
.btn-danger.is-loading::after {
  color: var(--silver-light);
}

/* Disabled */
.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  transition: background 0.3s var(--ease-out), border-bottom-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-label);
  font-size: 22px;
  color: var(--silver-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: color var(--transition);
}

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

.nav__logo-dot {
  color: var(--green);
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--silver-mid);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--silver-light);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a.active {
  color: var(--silver-light);
}

.nav__cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Nav logo icon ── */
.nav__logo-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ── Nav alias: flat-structure pages use nav__brand instead of nav__logo */
.nav__brand {
  font-family: var(--font-label);
  font-size: 20px;
  color: var(--silver-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav__brand span { color: var(--green); }
.nav__brand:hover { color: var(--green); }

/* ── Shorthand button aliases used in nav CTAs ── */
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green);
  background: var(--green);
  color: #0a0a0a;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary-sm:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px var(--green-glow);
  transform: translateY(-1px);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--silver-light);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-ghost-sm:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 24px;
  padding: 4px 0;
  background: none;
  border: none;
  outline: none;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--silver-light);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1),
.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.open span:nth-child(2),
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3),
.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* Mobile menu drawer */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  pointer-events: none;
  z-index: 99;
}

.mobile-menu.open,
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--silver-light);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--green);
  padding-left: 6px;
}

.mobile-menu a.active {
  color: var(--green);
}

.mobile-menu__cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu__auth {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu__auth a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: none;
}
.mobile-menu__auth a:hover {
  padding-left: 8px; /* override global .mobile-menu a:hover */
  color: inherit;
}
.mobile-menu__auth-ghost {
  border: 1px solid var(--border) !important;
  color: var(--silver-light) !important;
  background: transparent;
}
.mobile-menu__auth-ghost:hover { border-color: var(--green) !important; color: var(--green) !important; }
.mobile-menu__auth-primary {
  background: var(--green) !important;
  color: #0a0a0a !important;
}


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer__brand {
  grid-column: span 1;
}

.footer__logo {
  font-family: var(--font-label);
  font-size: 24px;
  color: var(--silver-light);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--silver-dark);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 200px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--silver-mid);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer__social a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.footer__heading {
  font-family: var(--font-label);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--silver-mid);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--silver-light);
  padding-left: 4px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--silver-mid);
  line-height: 1.5;
}

.footer__contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--silver-dark);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer__bottom-links a {
  color: var(--silver-dark);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--silver-light);
}


/* ══════════════════════════════════════════════════════════
   VIDEO HERO UTILITY
══════════════════════════════════════════════════════════ */
.video-hero {
  position: relative;
  overflow: hidden;
}

.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.video-hero__content {
  position: relative;
  z-index: 2;
}

.video-fallback {
  background: var(--surface);
}

.video-fallback video {
  display: none;
}


/* ══════════════════════════════════════════════════════════
   CARD COMPONENTS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform 0.2s var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card--elevated {
  background: var(--elevated);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card--green {
  border-color: rgba(74, 222, 128, 0.2);
}

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


/* ══════════════════════════════════════════════════════════
   BADGE / PILL COMPONENTS
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
}

.badge-green {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.badge-blue {
  background: var(--blue-glow);
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver-mid);
  border: 1px solid var(--border);
}

.badge-error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--space-xl) 0;
}

.divider--short {
  width: 40px;
  background: var(--green);
}


/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--silver-light);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--silver-light);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--silver-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-hint {
  font-size: 12px;
  color: var(--silver-dark);
}

.form-error {
  font-size: 12px;
  color: var(--error);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606060' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface);
  color: var(--silver-light);
}


/* ══════════════════════════════════════════════════════════
   SHIMMER / SKELETON LOADER
══════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--elevated) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
}

.skeleton-heading {
  height: 32px;
  border-radius: 4px;
}

.skeleton-circle {
  border-radius: 50%;
}


/* ══════════════════════════════════════════════════════════
   TOOLTIP
══════════════════════════════════════════════════════════ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--elevated);
  color: var(--silver-light);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════
   STATS / COUNTER
══════════════════════════════════════════════════════════ */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--silver-light);
}

.stat__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ══════════════════════════════════════════════════════════
   ICON BOX
══════════════════════════════════════════════════════════ */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-glow);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--green);
  flex-shrink: 0;
}

.icon-box--blue {
  background: var(--blue-glow);
  border-color: rgba(96, 165, 250, 0.2);
  color: var(--blue);
}

.icon-box--neutral {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--silver-mid);
}

.icon-box--sm {
  width: 36px;
  height: 36px;
}

.icon-box--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
}


/* ══════════════════════════════════════════════════════════
   PROSE (rich text blocks)
══════════════════════════════════════════════════════════ */
.prose {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--silver-mid);
}

.prose p + p {
  margin-top: 1em;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 32px;
  color: var(--silver-light);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--silver-light);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-top: 0.75em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.prose a:hover {
  color: var(--green-dark);
}

.prose strong {
  font-weight: 500;
  color: var(--silver-light);
}


/* ══════════════════════════════════════════════════════════
   FOCUS RING (accessibility)
══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   — Wrapped in prefers-reduced-motion to respect OS setting
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  @keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  @keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  @keyframes scaleIn {
    0%   { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
  }

  @keyframes drawCheck {
    0%   { stroke-dashoffset: 60; }
    100% { stroke-dashoffset: 0; }
  }

  @keyframes drawCircle {
    0%   { stroke-dashoffset: 276; }
    100% { stroke-dashoffset: 0; }
  }

  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    70%       { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  }

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

  @keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }

  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes heroFadeUpSm {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

}

/* Reduced motion — collapse animations */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .stagger-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skeleton {
    animation: none;
    background: var(--surface);
  }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Nav */
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .hamburger  { display: flex; }

  /* Footer grid: 2 cols */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__brand {
    grid-column: span 2;
  }

  /* Typography */
  .section-title { font-size: 40px; }

}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 768px
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Layout */
  .section      { padding: var(--space-2xl) 0; }
  .section--lg  { padding: 80px 0; }

  /* Nav */
  .nav { padding: 0 16px; }

  /* Typography */
  .section-title    { font-size: 36px; }
  .section-subtitle { font-size: 15px; }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Stat */
  .stat__value { font-size: 32px; }

}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Typography */
  .section-title { font-size: 28px; }

  /* Buttons */
  .btn { font-size: 13px; }
  .btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }

  /* Container */
  .container { padding: 0 16px; }

  /* Footer */
  .footer { padding: 48px 16px 24px; }

  .footer__bottom-links {
    flex-direction: column;
    gap: 8px;
  }

  /* Mobile menu */
  .mobile-menu { padding: 20px 16px; }

}

/* ── ZIP SEARCH ────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-6px); }
    40%     { transform: translateX(6px); }
    60%     { transform: translateX(-4px); }
    80%     { transform: translateX(4px); }
  }
}

.zip-search { max-width: 500px; margin: 0 auto; }

.zip-search__bar {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid rgba(200,200,200,0.12);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.zip-search__bar:focus-within { border-color: var(--green); }
.zip-search__bar.error { animation: shake 0.35s ease; border-color: var(--error, #EF4444); }

.zip-search__icon {
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(200,200,200,0.08);
}
.zip-search__icon svg {
  width: 16px; height: 16px;
  stroke: #555; fill: none; stroke-width: 1.5;
}

.zip-search__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--silver-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 14px 12px;
  letter-spacing: 0.04em;
}
.zip-search__input::placeholder { color: #444; }
.zip-search__input:focus { outline: none; }

.zip-search__btn {
  background: linear-gradient(135deg, var(--green), var(--blue, #2BC0E4));
  color: #000;
  border: none;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.zip-search__btn:hover   { opacity: 0.85; }
.zip-search__btn:focus   { outline: 2px solid var(--green); outline-offset: 2px; }
.zip-search__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.zip-search__hint {
  font-size: 11px;
  color: #333;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.zip-delivery-banner {
  background: rgba(0,200,120,0.08);
  border: 1px solid rgba(0,200,120,0.22);
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--silver-dark);
}
.zip-delivery-banner__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.zip-delivery-banner__close {
  margin-left: auto;
  background: none;
  border: none;
  color: #444;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.zip-delivery-banner__close:focus { outline: 2px solid var(--green); outline-offset: 2px; }

.zip-result-banner {
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: none;
}
.zip-result-banner.covered {
  background: rgba(0,200,120,0.08);
  border: 1px solid rgba(0,200,120,0.25);
}
.zip-result-banner.oob {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
}
.zip-result-banner__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.zip-result-banner.covered .zip-result-banner__title { color: var(--green); }
.zip-result-banner.oob     .zip-result-banner__title { color: #EF4444; }
.zip-result-banner__body {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--silver-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.zip-book-btn {
  background: linear-gradient(135deg, var(--green), var(--blue, #2BC0E4));
  color: #000;
  border: none;
  padding: 9px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.zip-book-btn:focus { outline: 2px solid var(--green); outline-offset: 2px; }

@media (max-width: 600px) {
  .zip-search__bar  { flex-direction: column; }
  .zip-search__icon { display: none; }
  .zip-search__input { border-bottom: 1px solid rgba(200,200,200,0.08); padding: 14px 16px; }
  .zip-search__btn   { padding: 14px; text-align: center; width: 100%; }
  #contact-map       { height: 280px !important; }
}
