/* ========================================
   Bexley — Protect Our Neighborhood
   ======================================== */

/* --- Tokens --- */
:root {
  --slate: #496e83;
  --slate-deep: #2e4a5a;
  --slate-dark: #1d3340;
  --cream: #f7f5f0;
  --cream-warm: #f0ece4;
  --ice: #e1ebf5;
  --ice-deep: #c8dae9;
  --white: #ffffff;
  --accent: #c4956a;
  --text: #3a4f5c;
  --text-light: #6a8a9c;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

ul { list-style: none; }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.about-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.about-card.reveal:nth-child(3) { transition-delay: 0.24s; }
.action-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.action-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.action-card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* --- Alert Banner --- */
.alert-banner {
  background: var(--accent);
  padding: 12px 40px;
  position: relative;
  z-index: 200;
}

.alert-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.alert-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.alert-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.4;
}

.alert-text strong {
  font-weight: 700;
}

.alert-dismiss {
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  margin-left: auto;
}

.alert-dismiss:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .alert-banner {
    padding: 12px 16px;
  }

  .alert-text {
    font-size: 13px;
  }

  .alert-dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: all 0.4s var(--ease-out);
}

.nav--scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 40px;
  box-shadow: 0 1px 0 rgba(73, 110, 131, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.4s;
}

.nav--scrolled .nav-logo {
  color: var(--slate);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav--scrolled .nav-links a {
  color: var(--slate);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(29, 51, 64, 0.82) 0%,
      rgba(29, 51, 64, 0.55) 40%,
      rgba(29, 51, 64, 0.1) 70%,
      transparent 100%
    ),
    linear-gradient(180deg,
      rgba(29, 51, 64, 0.15) 0%,
      rgba(29, 51, 64, 0.05) 30%,
      rgba(29, 51, 64, 0.35) 60%,
      rgba(29, 51, 64, 0.85) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate-dark);
  background: var(--cream);
  padding: 16px 36px;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--slate);
  letter-spacing: -0.01em;
}

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

.title-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 16px;
}

.title-rule--light {
  background: rgba(255, 255, 255, 0.4);
}

/* --- About Section --- */
.about {
  padding: 100px 40px 80px;
  background: var(--cream);
}

.about-header {
  text-align: center;
  margin-bottom: 64px;
}

.about-header .title-rule {
  margin: 16px auto 0;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.about-card {
  padding: 48px 40px;
  position: relative;
  border: 1px solid rgba(73, 110, 131, 0.08);
  transition: box-shadow 0.4s var(--ease-out);
}

.about-card:hover {
  box-shadow: 0 8px 40px rgba(73, 110, 131, 0.08);
}

.about-card--accent {
  background: var(--ice);
  border-color: transparent;
}

.about-number {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: rgba(73, 110, 131, 0.1);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* --- Image Break --- */
.image-break {
  background: var(--slate);
  padding: 0;
  overflow: hidden;
}

.image-break-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 480px;
}

.image-break-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 60%;
}

.image-break-text {
  display: flex;
  align-items: center;
  padding: 60px 80px;
}

.image-break-text blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.55;
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}

/* --- Action Section --- */
.action {
  background: var(--slate-dark);
  padding: 100px 40px;
  position: relative;
}

.action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 149, 106, 0.4), transparent);
}

.action-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.action-header {
  margin-bottom: 56px;
}

.action-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  max-width: 460px;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.action-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 36px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.action-card--highlight {
  grid-column: 1 / -1;
  background: rgba(196, 149, 106, 0.1);
  border-color: rgba(196, 149, 106, 0.25);
}

.action-card--highlight:hover {
  background: rgba(196, 149, 106, 0.15);
  border-color: rgba(196, 149, 106, 0.35);
}

.action-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.action-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

.action-detail {
  margin-bottom: 12px;
}

.action-detail p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  line-height: 1.6;
}

.action-detail strong {
  color: rgba(255, 255, 255, 0.9);
}

.action-date {
  font-weight: 700;
  color: var(--accent) !important;
  font-size: 15px !important;
}

.action-detail ul {
  margin-top: 8px;
  padding-left: 0;
}

.action-detail li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.action-detail li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.action-detail a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.action-detail a:hover {
  color: var(--white);
}

.action-why {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* --- Position --- */
.position {
  background: var(--ice);
  padding: 100px 40px;
  text-align: center;
}

.position-inner {
  max-width: 700px;
  margin: 0 auto;
}

.position-inner .title-rule {
  margin: 16px auto 0;
}

.position-statement {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--slate);
  line-height: 1.4;
  margin-top: 40px;
}

.position-statement strong {
  display: block;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  color: var(--slate-dark);
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.position-points {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.position-points li {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 12px 24px;
  border: 2px solid var(--slate);
  border-radius: 2px;
}

.position-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .position {
    padding: 64px 20px;
  }

  .position-points {
    gap: 12px;
  }

  .position-points li {
    padding: 10px 18px;
    font-size: 12px;
  }
}

/* --- Petition --- */
.petition {
  padding: 100px 40px;
  background: var(--cream);
}

.petition-inner {
  max-width: 800px;
  margin: 0 auto;
}

.petition-header {
  margin-bottom: 48px;
}

.petition-cta {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 40px;
  background: var(--ice);
  border-radius: 4px;
}

.petition-cta h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 12px;
}

.petition-cta-text {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
}

.petition-subhead {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 12px;
}

.petition-status {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-light);
}

.petition-button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--slate-dark);
  padding: 18px 40px;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}

.petition-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.petition-quote {
  background: var(--ice);
  border-left: 4px solid var(--slate);
  padding: 36px 40px;
  margin-bottom: 40px;
  border-radius: 0 4px 4px 0;
}

.petition-quote p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--slate);
}

.petition-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}

.petition-faq h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 16px;
}

.petition-faq p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* --- Resources --- */
.resources {
  background: var(--slate);
  padding: 80px 40px 100px;
}

.resources-header {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.resources-header .title-rule {
  margin: 16px auto 0;
}

.resources-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 32px 28px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.resource-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.resource-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.resource-card p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
}

.resource-link-text {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}

.resource-card:hover .resource-link-text {
  color: var(--white);
}

/* --- Video --- */
.video {
  padding: 100px 40px;
  background: var(--cream-warm);
}

.video-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-inner .title-rule {
  margin: 16px auto 0;
}

.video-wrap {
  margin-top: 48px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(73, 110, 131, 0.12);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--slate-dark);
  padding: 48px 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.footer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .action-cards {
    grid-template-columns: 1fr;
  }

  .action-card--highlight {
    grid-column: auto;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-break-inner {
    grid-template-columns: 1fr;
  }

  .image-break-photo {
    min-height: 300px;
  }

  .image-break-text {
    padding: 48px 40px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 16px 20px;
  }

  .nav--scrolled {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 0 24px 56px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 12px;
  }

  .about {
    padding: 64px 20px;
  }

  .about-card {
    padding: 36px 24px;
  }

  .about-number {
    font-size: 48px;
  }

  .action {
    padding: 64px 20px;
  }

  .action-card {
    padding: 28px 24px;
  }

  .petition {
    padding: 64px 20px;
  }

  .petition-quote {
    padding: 28px 24px;
  }

  .image-break-text {
    padding: 36px 24px;
  }

  .image-break-text blockquote {
    font-size: 20px;
  }

  .resources {
    padding: 64px 20px;
  }

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

  .video {
    padding: 64px 20px;
  }

  .footer {
    padding: 36px 20px;
  }
}
