/* =============================================================
   HOME.CSS — Homepage sections
   Hillside Hope | hillsidehope.org
   Modeled after buckner.org layout
   ============================================================= */

/* ── SECTION 1: Hero ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  background: #fff;
  overflow: hidden;
}

/* Left column */
.hero__left {
  padding: 72px 56px 64px var(--pad-page);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* HOPE acronym letters — bright blue bold to highlight H·O·P·E */
.hope-letter {
  font-style: normal;
  font-weight: 800;
  color: #126EF8;
}

/* Mobile-only line break — hidden on desktop */
.mobile-br { display: none; }

.hero__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 440px;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Stats inside hero — Buckner style */
.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.hero-stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  margin-right: 24px;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat__number {
  font-size: 36px;
  font-weight: 600;
  color: #126EF8;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat__label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Right photo mosaic */
.hero__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 520px;
}

.hero__photo {
  overflow: hidden;
  position: relative;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.hero__photo:hover img {
  transform: scale(1.04);
}

/* Very subtle blue tint so photos blend with our blue header */
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 98, 166, 0.08);
  pointer-events: none;
}

.hero__photo--tall {
  grid-column: 1;
  grid-row: 1 / 3;
}

.hero__photo--top-right  { grid-column: 2; grid-row: 1; }
.hero__photo--bot-right  { grid-column: 2; grid-row: 2; }


/* ── SECTION 2: "How Can We Help You?" ─────────────────────── */
.finder {
  background: var(--navy-deeper);
  padding: 72px var(--pad-page);
}

.finder__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.finder__form {
  max-width: 700px;
}

.finder__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.finder__prefix {
  font-size: 36px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.finder__select-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.finder__select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold);
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 0 32px 4px 0;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.finder__select option {
  background: var(--navy-deeper);
  color: #fff;
  font-size: 16px;
}

.finder__chevron {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
}

.finder__chevron svg {
  width: 22px;
  height: 22px;
}


/* ── SECTION 3: "Your Support Is Vital" ────────────────────── */
.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  background: var(--bg-light);
  position: relative;
}

.support__photo {
  overflow: hidden;
  position: relative;
}

.support__photo img,
.support__photo.img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating white card — overlaps photo, sits on right */
.support__card {
  background: #fff;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Pull card left so it overlaps photo */
  margin-left: -60px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
  z-index: 2;
  position: relative;
}

.support__card h2 {
  font-size: 40px;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.support__card h2 .script {
  font-size: 44px;
}

.support__card p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 380px;
  margin-bottom: 10px;
  line-height: 1.75;
}

.support__card p:last-of-type {
  margin-bottom: 28px;
}


/* ── SECTION 4: Real Impact ─────────────────────────────────── */
.impact {
  position: relative;
  background: #fff;
  padding: 0 var(--pad-page) 80px;
}

/* Ghost/watermark text — flows at top, content overlaps bottom */
.impact__watermark {
  display: block;
  text-align: center;
  padding: 48px 0 0;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px #dce5f3;
  text-transform: uppercase;
  line-height: 1.05;
  pointer-events: none;
  user-select: none;
  letter-spacing: 2px;
}

.impact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
  margin-top: -60px; /* pull content up to overlap bottom of watermark */
  padding-top: 0;
}

.impact__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact__left h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0;
  line-height: 1.2;
}

.impact__script {
  font-family: 'Dancing Script', cursive;
  font-size: 38px;
  font-weight: 600;
  color: var(--blue-bright);
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
}

.impact__left h2 .script-inline {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  color: var(--blue-bright);
}

.impact__since {
  font-size: 36px;
  font-weight: 600;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 20px;
}

.impact__left p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* Stat cards — 2x2 grid */
.impact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.impact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.impact-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--navy);
}

.impact-card__icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--navy);
}

.impact-card__number {
  font-size: 32px;
  font-weight: 600;
  color: var(--navy-dark);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.impact-card__label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}


/* ── SECTION 5: Take Action ─────────────────────────────────── */
.take-action {
  background: var(--bg-light);
  padding: 80px var(--pad-page);
  text-align: center;
}

.take-action__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.take-action__heading {
  margin-bottom: 40px;
  line-height: 1.2;
}

.take-action__heading .script-line {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  font-weight: 600;
  color: var(--blue-bright);
  display: block;
}

.take-action__heading .solid-line {
  font-size: 40px;
  font-weight: 600;
  color: var(--navy-dark);
  display: block;
}

.take-action__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.action-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.action-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.action-card__title {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1;
  display: block;
  margin-bottom: 0;
}

.action-card__script {
  font-family: 'Dancing Script', cursive;
  font-size: 30px;
  font-weight: 600;
  color: var(--blue-bright);
  display: block;
  line-height: 1.2;
  margin-bottom: 16px;
}

.action-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 28px;
  line-height: 1.65;
}

.take-action__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.take-action__more:hover {
  gap: 8px;
}


/* ── SECTION 6: Stories Strip ───────────────────────────────── */
.stories-strip {
  background: var(--navy);
  padding: 64px var(--pad-page);
}

.stories-strip__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.stories-strip__header h2 {
  color: #fff;
  font-size: 30px;
}

.stories-strip__more {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.stories-strip__more:hover { color: var(--gold); }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.story-card__photo {
  height: 176px;
  background: var(--blue-pale);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.story-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.story-card:hover .story-card__photo img {
  transform: scale(1.05);
}

.story-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-card__category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.story-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.story-card__date {
  font-size: 12px;
  color: var(--text-muted);
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__h1,
  .hero__script    { font-size: 40px; }
  .support__card   { padding: 40px 36px; margin-left: -40px; }
  .impact__watermark { font-size: 80px; }
  .take-action__heading .script-line { font-size: 38px; }
  .take-action__heading .solid-line  { font-size: 32px; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero { grid-template-columns: 1fr; }
  .hero__right { min-height: 280px; grid-template-rows: 1fr 1fr; }
  .hero__left  { padding: 48px 24px; order: 2; }
  .hero__right { order: 1; }
  .hero__h1, .hero__script { font-size: 34px; }
  .hero__stats { gap: 0; }
  .hero-stat__number { font-size: 28px; }
  .mobile-br { display: inline; }

  /* Finder */
  .finder { padding: 52px 24px; }
  .finder__prefix,
  .finder__select { font-size: 26px; }

  /* Support */
  .support { grid-template-columns: 1fr; }
  .support__photo { min-height: 260px; }
  .support__card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 40px 24px;
  }

  /* Impact */
  .impact { padding: 40px 24px; }
  .impact__watermark { display: none; }
  .impact__content { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .impact__cards { grid-template-columns: 1fr 1fr; }

  /* Take Action */
  .take-action { padding: 56px 24px; }
  .take-action__cards { grid-template-columns: 1fr; }
  .take-action__heading .script-line { font-size: 32px; }
  .take-action__heading .solid-line  { font-size: 26px; }

  /* Stories */
  .stories-strip { padding: 48px 24px; }
  .stories-grid  { grid-template-columns: 1fr; gap: 16px; }
  .stories-strip__header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-stat { padding-right: 16px; margin-right: 16px; }
  .hero-stat__number { font-size: 24px; }
  .impact__cards { grid-template-columns: 1fr 1fr; }
}
