/* ===== CSS Variables ===== */
:root {
  --primary: #ef4444;
  --secondary: #111827;
  --bg: #f7f7f8;
  --border: #e5e7eb;
  --accent: #6b7280;
  --muted: #9ca3af;
}

/* ===== Base reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--secondary);
  line-height: 1.55;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Header / Nav ===== */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo span {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Nav */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #4b5563;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--secondary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #dc2626;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-secondary:hover {
  background-color: rgba(239,68,68,0.1);
}

/* ===== Hero ===== */
.hero {
  padding: 3rem 0 3rem;
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 1.8rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 1.8rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--accent);
}

.hero-card {
  background: radial-gradient(circle at top left, #fee2e2, #f9fafb 55%, #e5e7eb 100%);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-card-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #374151;
  margin-bottom: 0.7rem;
}

.hero-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.hero-card-text {
  font-size: 0.95rem;
  color: #4b5563;
}

.hero-card-graphic {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.18);
  right: -30px;
  bottom: -30px;
  box-shadow: 0 0 0 26px rgba(248, 250, 252, 0.4);
}

/* ===== Section ===== */
.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-intro {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 750px;
}

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* ===== Card ===== */
.card {
  background-color: #fff;
  border-radius: 0.9rem;
  padding: 1.2rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.94rem;
  color: #4b5563;
  max-width: 750px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ===== Flip card ===== */
.flip-card {
  perspective: 1200px;
  position: relative;
  width: 100%;
  min-height: 380px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card-front .card,
.flip-card-back .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flip-card-front .card-title {
  color: var(--primary);
}

.flip-hint {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.9;
  padding-top: 0.8rem;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* ===== List ===== */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.list {
  list-style: none;
  margin-top: 0.4rem;
}

.list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

/* ===== Quote ===== */
.quote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  font-size: 0.98rem;
  color: #4b5563;
  margin-top: 0.8rem;
}

/* ===== Local strip ===== */
.local-strip {
  background-color: #020617;
  color: #e5e7eb;
  padding: 2.4rem 0;
}

.local-strip-inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 2rem;
  align-items: center;
}

.local-strip h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.local-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.86rem;
}

.local-point-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.local-strip small {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Contact ===== */
.contact-block {
  margin-top: 1.4rem;
  font-size: 0.96rem;
}

.contact-block a {
  color: var(--primary);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--accent);
  background-color: #f9fafb;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ===== Forms ===== */
form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  display: block;
}

input,
textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--secondary);
  border-color: var(--secondary);
}

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

/* ===== Page headers ===== */
.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.page-intro {
  font-size: 1rem;
  color: #4b5563;
  max-width: 750px;
  line-height: 1.7;
}

/* ===== Resources list ===== */
.resource-list {
  list-style: none;
}

.resource-list li {
  margin-bottom: 1.1rem;
}

.resource-list a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

.resource-list a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-banner-visual {
    height: 150px;
  }

  .local-strip-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .local-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    inset: 58px 0 auto 0;
    background-color: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.8rem 1.5rem 1.1rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== Pull quote (shared) ===== */
.pull-quote {
  margin-top: 2rem;
  margin-left: 0.5rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary);
  background-color: #f7f7f7;
  max-width: 48rem;
}

.pull-quote blockquote {
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

.pull-quote figcaption {
  font-size: 0.9rem;
  color: #555;
}

/* ===== Home social proof quotes ===== */
.section.home-proof .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section.home-proof blockquote {
  margin: 0;
  margin-left: 0.5rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary);
  background-color: #f7f7f7;
  max-width: 48rem;
  font-style: italic;
}

.section.home-proof blockquote span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  font-style: normal;
}

/* ===== Home social proof – 2x2 grid on desktop ===== */
@media (min-width: 900px) {
  .section.home-proof .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
  }
}

/* ===== Home metrics (By the numbers) ===== */
.home-metrics {
  background-color: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-metrics h3 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.metrics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.6rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.metrics-list li {
  position: relative;
  padding-left: 1.4rem;
}

.metrics-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--primary);
  font-size: 0.7rem;
}

/* Stack metrics on smaller screens */
@media (max-width: 720px) {
  .metrics-list {
    grid-template-columns: minmax(0, 1fr);
  }
}