/* =============================================================================
   Meridian Ave Path Action Page — styles.css
   BSMB brand tokens + micromobility layout patterns
   ============================================================================= */

/* ── CSS Variables (BSMB Brand Tokens) ─────────────────────────────────────── */
:root {
  --clr-teal:       #0B4F6C;
  --clr-teal-dark:  #093d55;
  --clr-coral:      #F4623A;
  --clr-coral-dark: #d94e2a;
  --clr-bg:         #ffffff;
  --clr-bg-alt:     #F5F0E8;
  --clr-text:       #111111;
  --clr-text-muted: #555555;
  --font-display:   'Bebas Neue', sans-serif;
  --font-body:      'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Container ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--clr-teal);
  padding: 40px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Horizontal stripe overlay — BSMB editorial texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 2px,
    transparent 2px,
    transparent 40px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* Urgent badge */
.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-coral);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: #fff;
  line-height: 1.0;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

.subhead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* ── Scroll hint ────────────────────────────────────────────────────────────── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.scroll-hint-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-hint-arrow {
  font-size: 1.1rem;
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%       { transform: translateY(5px); opacity: 1;    }
}

/* ── Countdown ──────────────────────────────────────────────────────────────── */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.25);
  padding: 16px 24px;
  margin-bottom: 36px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.04em;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-top: 4px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: rgba(255,255,255,0.5);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
}

.countdown-expired {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--clr-coral);
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border: 2px solid var(--clr-coral);
  display: inline-block;
  margin-bottom: 36px;
}

/* ── CTA Buttons ────────────────────────────────────────────────────────────── */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

/* Coral fill — primary */
.btn-primary {
  background: var(--clr-coral);
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 98, 58, 0.35);
}

.btn-primary:hover {
  background: var(--clr-coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 98, 58, 0.45);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Ghost / outline white — hero */
.btn-outline {
  background: transparent;
  color: #fff;
  border: 3px solid #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Outline dark — action section on coral bg */
.btn-outline-dark {
  background: transparent;
  color: var(--clr-teal);
  border: 3px solid var(--clr-teal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-outline-dark:hover {
  background: var(--clr-teal);
  color: #fff;
  transform: translateY(-2px);
}

.icon { font-size: 1.1rem; }

/* ── Hero floating icons ────────────────────────────────────────────────────── */
.hero-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 8px;
}

.icon-large {
  font-size: 2.8rem;
  animation: float 3s ease-in-out infinite;
}

.icon-large:nth-child(2) { animation-delay: 0.6s; }
.icon-large:nth-child(3) { animation-delay: 1.2s; }

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

/* ── INFO SECTION ───────────────────────────────────────────────────────────── */
.info-section {
  background: var(--clr-bg-alt);
  padding: 80px 20px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--clr-coral);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--clr-coral);
  display: inline-block;
  padding-bottom: 4px;
  width: 100%;
}

/* Impact cards */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 48px;
}

.impact-card {
  background: var(--clr-teal);
  color: #fff;
  padding: 32px 28px;
  border-top: 4px solid var(--clr-coral);
  transition: transform 0.2s ease;
}

.impact-card:hover { transform: translateY(-4px); }

.impact-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #fff;
}

.impact-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}

/* Quick facts */
.quick-facts {
  max-width: 820px;
  margin: 0 auto;
  border-left: 4px solid var(--clr-teal);
  padding-left: 24px;
}

.quick-facts ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.quick-facts li {
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.6;
}

.quick-facts li::before {
  content: '→ ';
  color: var(--clr-coral);
  font-weight: 700;
}

/* ── GALLERY / IMAGE PLACEHOLDERS ───────────────────────────────────────────── */
.gallery-figure {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-figure figcaption {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  line-height: 1.4;
}

.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Placeholder shown when image fails to load */
.img-placeholder {
  display: none;         /* hidden by default; onerror shows it */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #f5f5f5;
  border: 2px dashed #ccc;
  color: #bbb;
  padding: 32px 20px;
}

.placeholder-icon { font-size: 2.4rem; }

.placeholder-hint {
  font-family: monospace;
  font-size: 0.78rem;
  color: #ccc;
  text-align: center;
}

/* ── VISUAL SECTION (The Project) ───────────────────────────────────────────── */
.visual-section {
  background: #F9F6F1;
  padding: 80px 20px;
}

/* Map — wide 16:9 hero image */
.map-figure {
  margin-bottom: 28px;
}

.map-figure .gallery-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 500px;
  width: 100%;
}

.map-figure .img-placeholder {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

/* 2–3 col rendering grid */
.renderings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.renderings-grid .gallery-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.renderings-grid .img-placeholder {
  aspect-ratio: 4 / 3;
  min-height: 160px;
}

/* ── DOCS SECTION (Official Documents) ──────────────────────────────────────── */
.docs-section {
  background: var(--clr-bg);
  padding: 80px 20px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-bg-alt);
  border: 1px solid #e0d8cc;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Portrait / letter-paper aspect ratio */
.doc-figure .gallery-img {
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  width: 100%;
  cursor: zoom-in;
}

.doc-figure .img-placeholder {
  aspect-ratio: 8.5 / 11;
  min-height: 180px;
}

/* Remove zoom-in cursor from doc-card figure since hover is on card */
.doc-figure { cursor: default; }
.doc-figure .gallery-img { cursor: zoom-in; }

.doc-info {
  padding: 16px 18px 20px;
}

.doc-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--clr-teal);
  margin-bottom: 6px;
  line-height: 1.2;
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ── CONSENT SECTION ────────────────────────────────────────────────────────── */
.consent-section {
  background: var(--clr-bg-alt);
  padding: 80px 20px;
}

.consent-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.consent-box {
  padding: 32px 28px;
  color: #fff;
}

.consent-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.consent-box p,
.consent-box li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
}

.consent-box ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.consent-box li::before {
  content: '✗ ';
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.consent-box--teal  { background: var(--clr-teal); }
.consent-box--coral { background: var(--clr-coral); }

/* Pull-quote callout */
.consent-pullquote {
  max-width: 740px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  color: var(--clr-teal);
  border-left: 5px solid var(--clr-coral);
  padding: 16px 24px;
  background: rgba(255,255,255,0.75);
  line-height: 1.5;
  quotes: none;
}

/* ── ACTION SECTION ─────────────────────────────────────────────────────────── */
.action-section {
  background: var(--clr-coral);
  padding: 80px 20px;
}

.action-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.action-steps {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: 4px solid var(--clr-teal);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.step-number {
  background: var(--clr-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--clr-teal);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.step-content p:last-of-type { margin-bottom: 20px; }

.step-content a {
  color: var(--clr-coral);
  text-decoration: underline;
  word-break: break-all;
}

.step-content a:hover { color: var(--clr-coral-dark); }

.what-to-say {
  background: var(--clr-bg-alt);
  border-left: 3px solid var(--clr-teal);
  padding: 10px 16px;
  font-size: 0.95rem !important;
  color: var(--clr-text) !important;
  margin-bottom: 0 !important;
}

/* ── MODAL ──────────────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
  background: #fff;
  padding: 40px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid var(--clr-coral);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--clr-teal);
  margin-bottom: 8px;
}

.modal-note {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-btn:hover { color: var(--clr-text); }

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
  color: var(--clr-text);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--clr-teal);
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

/* Inline success state */
.success-inline {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
  font-weight: 600;
  font-size: 1rem;
}

/* Inline error state + mailto fallback */
.error-inline {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #ffebee;
  border-left: 4px solid #c62828;
  color: #b71c1c;
  font-size: 0.9rem;
  line-height: 1.6;
}

.mailto-fallback {
  display: inline-block;
  margin-top: 8px;
  color: #b71c1c;
  text-decoration: underline;
  font-weight: 600;
}

.mailto-fallback:hover { color: #7f0000; }

/* ── LIGHTBOX ───────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--clr-coral); }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--clr-bg);
  border-top: 3px solid var(--clr-teal);
  padding: 48px 20px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bsmb-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--clr-teal);
  line-height: 1.1;
  text-decoration: none;
}

.bsmb-wordmark:hover { color: var(--clr-coral); text-decoration: none; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
  }
}

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

@media (max-width: 600px) {
  .hero { padding: 28px 16px 36px; }

  .countdown {
    padding: 12px 16px;
    gap: 2px;
  }

  .countdown-unit { min-width: 44px; }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-content h3 { text-align: center; }
  .what-to-say { text-align: left; }

  .modal-content { padding: 20px 16px; }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-icons { gap: 20px; }
  .icon-large { font-size: 2.2rem; }

  .consent-box { padding: 24px 20px; }
}
