/* ============================================================
   CAREMAP MORRIS — About Page Styles
   Extends style.css design tokens
============================================================ */

/* ── Suppress style.css ::after line on hero label ── */
.page-hero .section-label::after { display: none; }
.page-hero .section-label {
  color: var(--rust);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-hero .section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--rust);
}

/* ════════════════════════════════════════════════════════════
   PAGE HERO — shorter, left-aligned, two-column with fact box
════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 3px solid var(--rust);
}

.page-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: repeating-linear-gradient(
    -60deg, transparent, transparent 38px,
    rgba(255,255,255,.022) 38px, rgba(255,255,255,.022) 39px
  );
  pointer-events: none;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Hero left col ── */
.hero-left {}

.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 .75rem;
}

/* Italic rust — matches site-wide em style used in other page h1s */
.page-hero h1 em {
  font-style: italic;
  color: var(--rust);
}

.page-hero .subtitle {
  color: rgba(247,242,234,.6);
  font-size: 1rem;
  margin: 0 0 22px;
  max-width: 480px;
  line-height: 1.65;
}

/* Two CTA buttons side by side */
.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Sage / green button */
.btn-sage {
  background: var(--sage);
  color: #fff;
  border: 2px solid var(--sage);
}
.btn-sage:hover {
  background: var(--sage-lt);
  border-color: var(--sage-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,103,65,.35);
}

/* ── Quick fact card ── */
.fact-card {
  background: rgba(247,242,234,.06);
  border: 1px solid rgba(247,242,234,.14);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.fact-card-title {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin: 0 0 12px;
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(247,242,234,.1);
  font-size: 0.85rem;
  color: rgba(247,242,234,.75);
  line-height: 1.5;
}

.fact-list li::before {
  content: '→';
  font-size: 0.7rem;
  color: var(--rust);
  margin-top: 2px;
  flex-shrink: 0;
}

.fact-list li:last-child { border-bottom: none; }

/* ════════════════════════════════════════════════════════════
   CONTENT SECTIONS
════════════════════════════════════════════════════════════ */
.section {
  padding: 52px 0;
  background: var(--cream);
}

.section-alt {
  background: var(--paper);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--ink);
}

.section .lead {
  color: var(--warm-gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 0 28px;
  line-height: 1.7;
}

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.why-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(26,20,16,.05);
  transition: box-shadow .22s, transform .22s;
}

.why-block:hover {
  box-shadow: 0 6px 20px rgba(26,20,16,.1);
  transform: translateY(-2px);
}

.why-number {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rust);
  margin: 0 0 8px;
  line-height: 1;
  opacity: 0.8;
}

.why-block h3 {
  font-family: var(--ff-display);
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--bark);
  line-height: 1.3;
}

.why-block p {
  margin: 0;
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   STATS BAND — animated number counters
════════════════════════════════════════════════════════════ */
.stats-band {
  background: var(--bark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.county-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.county-stat {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(247,242,234,.1);
}

.county-stat:last-child { border-right: none; }

.county-stat .big {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--rust);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.county-stat .small {
  font-size: 0.8rem;
  color: rgba(247,242,234,.55);
  line-height: 1.4;
}

/* ── VETTING STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(26,20,16,.05);
  transition: box-shadow .22s, transform .18s;
}

.step:hover {
  box-shadow: 0 4px 14px rgba(26,20,16,.1);
  transform: translateY(-2px);
}

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-family: var(--ff-mono);
}

.step h3 {
  font-family: var(--ff-display);
  margin: 0 0 7px;
  font-size: 0.95rem;
  color: var(--bark);
}

.step p {
  margin: 0;
  color: var(--warm-gray);
  font-size: 0.86rem;
  line-height: 1.6;
}

.vetting-callout {
  margin-top: 20px;
  background: rgba(74,103,65,.07);
  border: 1px solid rgba(74,103,65,.22);
  border-radius: var(--radius);
  padding: 14px 20px;
}

.vetting-callout p { margin: 0; font-size: 0.92rem; color: var(--warm-gray); line-height: 1.65; }
.vetting-callout strong { color: var(--ink); }
.vetting-callout a { color: var(--sage); text-decoration: underline; text-underline-offset: 2px; }
.vetting-callout a:hover { color: var(--rust); }

/* ── COUNTY SECTION — body copy shared by both columns ── */
.county-copy p {
  color: var(--warm-gray);
  margin: 0 0 14px;
  font-size: 0.93rem;
  line-height: 1.75;
}

.county-copy p:last-child { margin-bottom: 0; }

.county-copy .fineprint {
  font-size: 0.76rem;
  color: var(--sand);
  font-family: var(--ff-mono);
}

.county-copy .fineprint code {
  font-family: var(--ff-mono);
  background: rgba(58,40,28,.08);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════════
   STRENGTHEN SECTION — full-width, edge-to-edge dark band
════════════════════════════════════════════════════════════ */
.strengthen-section {
  background: var(--bark);
  padding: 0;
  border-top: none;
}

.strengthen-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 52px clamp(1.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

/* Subtle diagonal texture overlay */
.strengthen-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 28px,
    rgba(255,255,255,.015) 28px, rgba(255,255,255,.015) 29px
  );
  pointer-events: none;
}

.strengthen-text {
  position: relative;
  z-index: 1;
}

.strengthen-text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 10px;
  color: var(--cream);
  line-height: 1.25;
}

.strengthen-text p {
  margin: 0;
  color: rgba(247,242,234,.65);
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 10px;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Buttons inside dark strengthen strip */
.strengthen-inner .btn-sage {
  background: var(--sage);
  color: #fff;
  border: 2px solid var(--sage);
}
.strengthen-inner .btn-sage:hover {
  background: var(--sage-lt);
  border-color: var(--sage-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,103,65,.45);
}

/* ════════════════════════════════════════════════════════════
   FOOTER (about page context)
════════════════════════════════════════════════════════════ */
.footer-title {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,242,234,.4);
  margin-bottom: 0.85rem;
}

.fineprint {
  font-size: 0.8rem;
  color: rgba(247,242,234,.4);
  line-height: 1.55;
}
.fineprint a { color: rgba(247,242,234,.5); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: var(--rust); }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 0.4rem; }
.footer-links a { font-size: 0.875rem; color: rgba(247,242,234,.6); transition: color .2s; }
.footer-links a:hover { color: var(--rust); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */

/* Hero reveal — plays immediately on load */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1),
              transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1),
              transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s !important; }
.delay-2 { transition-delay: .16s !important; }
.delay-3 { transition-delay: .24s !important; }
/* ── PHOTO STRIP ── */
.photo-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-strip-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
  max-height: 320px;
}

.photo-strip-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.photo-strip-main:hover img { transform: scale(1.03); }

.photo-strip-side {
  position: relative;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-height: 320px;
}

.photo-strip-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.photo-strip-side:hover img { transform: scale(1.03); }

.photo-caption {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--sand);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ── County section: text left, photo right ── */
.county-grid-3 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

.county-photo-inline {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}

.county-photo-inline img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .5s ease;
}

.county-photo-inline:hover img { transform: scale(1.025); }

.county-photo-caption {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--sand);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ── Quote over video ── */
.quote-video-section {
  position: relative;
  height: 420px;
  width: 100%;
  overflow: hidden;
}

.quote-video-section video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.quote-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,20,16,.55) 0%,
    rgba(26,20,16,.72) 100%
  );
  z-index: 1;
}

.quote-video-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  max-width: 780px;
  margin: 0 auto;
}

.quote-video-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin: 0 0 16px;
  opacity: 0.9;
}

.quote-video-text {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.5;
  margin: 0 0 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

.quote-video-attr {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: rgba(247,242,234,.75);
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .county-stats-row { grid-template-columns: 1fr 1fr; }
  .county-stat { border-right: none; border-bottom: 1px solid rgba(247,242,234,.1); }
  .county-stat:nth-child(odd) { border-right: 1px solid rgba(247,242,234,.1); }
  .county-stat:last-child, .county-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .strengthen-inner { grid-template-columns: 1fr; padding: 36px clamp(1.5rem, 5vw, 4rem); }
  .cta-group { flex-direction: row; flex-wrap: wrap; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip-main,
  .photo-strip-side {
    border-radius: var(--radius);
    max-height: 220px;
  }
  .county-grid-3 { grid-template-columns: 1fr; }
  .quote-video-section { height: 340px; }
}

@media (max-width: 600px) {
  .page-hero { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { text-align: center; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .county-stats-row { grid-template-columns: 1fr 1fr; }
  .fact-card { padding: 16px; }
  .strengthen-inner { padding: 28px 1.25rem; }
  .quote-video-section { height: 300px; }
  .quote-video-text { font-size: 1.25rem; }
}