/* Heritage Apple Corps - Homepage redesign drafts (redesign-a.html / redesign-b.html)
   Loaded AFTER style.css; all classes prefixed .rd- so the live site is unaffected. */

/* === Hero === */
.rd-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 22, 38, 0.35) 0%, rgba(16, 22, 38, 0.55) 100%);
}

.rd-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 900px;
}

.rd-hero-kicker {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.rd-hero-content h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.rd-hero-sub {
  color: #fff;
  font-size: 23px;
  line-height: 1.55;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.6em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.rd-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.rd-btn-row .btn {
  font-size: 17px;
}

.btn-white-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 2px solid #fff;
  padding: 6px 30px;
}

.btn-white-outline:hover {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.25);
}

/* Extra bottom padding so hero text clears the overlaid stats strip (variant B) */
.rd-hero-content-tall {
  padding-bottom: 7rem;
}

/* Stats strip overlaid on the bottom edge of the hero (variant B) */
.rd-hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(12, 18, 34, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.rd-hero-stats .rd-stats-row {
  border: none;
  padding: 1.1em 1rem;
}

.rd-hero-stats .rd-stat-num {
  color: #fff;
}

.rd-hero-stats .rd-stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* === Impact stats strip (compact, horizontal) === */
.rd-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 2.75em;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6em 1.5rem;
  text-align: center;
}

.rd-stats-band {
  border-bottom: 1px solid #e8e8e8;
  background: var(--off-white);
}

.rd-stat {
  min-width: 130px;
}

.rd-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  color: var(--primary);
}

.rd-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--text-body);
  max-width: 170px;
  margin: 0.2em auto 0;
}

/* === General redesign section text === */
.rd-section {
  text-align: left;
  margin-bottom: 2.5rem;
}

.rd-section p {
  text-align: left;
}

.rd-lede {
  font-size: 22px;
  line-height: 1.65;
}

/* === "Our Work" photo cards === */
.rd-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
}

.rd-work-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 22px -14px rgba(25, 46, 117, 0.35);
  display: flex;
  flex-direction: column;
}

.rd-work-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.rd-work-card .rd-work-body {
  padding: 1.1em 1.2em 1.3em;
}

.rd-work-card h3 {
  font-size: 20px;
  margin-bottom: 0.4em;
}

.rd-work-card p {
  font-size: 16.5px;
  line-height: 1.55;
  text-align: left;
  color: var(--text-body);
}

/* === Numbered steps (variant B) === */
.rd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}

.rd-steps-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5em;
}

.rd-step {
  text-align: left;
}

.rd-step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.45;
  margin-bottom: 0.25em;
}

.rd-step h3 {
  font-size: 20px;
  margin-bottom: 0.4em;
}

.rd-step p {
  font-size: 16.5px;
  line-height: 1.55;
  text-align: left;
}

/* === Showcase rows (photo + text, alternating) === */
.rd-showcase-row {
  display: flex;
  align-items: center;
  gap: 2.5em;
  margin-bottom: 2.5rem;
}

.rd-showcase-row:nth-child(even) {
  flex-direction: row-reverse;
}

.rd-showcase-img {
  flex: 0 0 44%;
  min-width: 0;
}

.rd-showcase-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
}

.rd-showcase-body {
  flex: 1;
  min-width: 0;
}

.rd-showcase-body h3 {
  margin-bottom: 0.5em;
}

.rd-showcase-body p {
  text-align: left;
  font-size: 19px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .rd-showcase-row,
  .rd-showcase-row:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25em;
  }

  .rd-showcase-img {
    flex: 0 0 auto;
  }

  .rd-showcase-img img {
    height: 280px;
  }
}

/* === Story band: full photo beside prose on a dark background === */
.rd-band-split {
  background: #171c26;
  padding: 3.5rem 1.5rem;
}

.rd-band-split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3em;
}

.rd-band-photo {
  flex: 0 0 40%;
  min-width: 0;
}

.rd-band-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.rd-band-caption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  margin: 0.6em 0 0;
}

.rd-band-text {
  flex: 1;
  min-width: 0;
}

.rd-band-text p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  line-height: 1.75;
  text-align: left;
  margin: 0;
}

@media (max-width: 1024px) {
  .rd-band-split-inner {
    flex-direction: column;
    gap: 1.75em;
  }

  .rd-band-photo {
    flex: 0 0 auto;
    max-width: 480px;
  }

  .rd-band-text p {
    font-size: 19px;
  }
}

/* === Full-bleed story band with background photo === */
.rd-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 1.5rem;
}

.rd-band-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 34, 0.62);
}

.rd-band-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.rd-band-inner h2 {
  color: #fff;
  margin-bottom: 0.75em;
}

.rd-band-inner p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 21px;
  line-height: 1.7;
  text-align: center;
}

.rd-band-inner .btn {
  margin-top: 1.25em;
}

/* === Get involved / CTA panel === */
.rd-cta-panel {
  background: var(--off-white);
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.rd-cta-panel h2 {
  margin-bottom: 0.5em;
}

.rd-cta-panel p {
  max-width: 720px;
  margin: 0 auto 1.4em;
  text-align: center;
}

/* === Tagline band === */
.rd-tagline {
  background: var(--primary-dark);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.rd-tagline p {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
}

/* === Compact news feature === */
.rd-news {
  display: flex;
  gap: 2em;
  align-items: center;
}

.rd-news-thumb {
  flex: 0 0 340px;
}

.rd-news-thumb img {
  border-radius: 8px;
}

.rd-news-body {
  flex: 1;
  min-width: 0;
}

.rd-news-body p {
  text-align: left;
}

.rd-news-meta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-body);
  margin-bottom: 0.5em;
}

.rd-news-quote {
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-heading);
  margin-bottom: 0.5em;
}

/* === Compact sponsor row === */
.rd-sponsor {
  display: flex;
  gap: 2em;
  align-items: center;
}

.rd-sponsor-logo {
  flex: 0 0 220px;
}

.rd-sponsor-body {
  flex: 1;
  min-width: 0;
}

.rd-sponsor-body p {
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .rd-hero-content h1 {
    font-size: 44px;
  }

  .rd-hero-sub {
    font-size: 20px;
  }

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

  .rd-steps-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .rd-news {
    flex-direction: column;
    align-items: flex-start;
  }

  .rd-news-thumb {
    flex: 0 0 auto;
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .rd-hero {
    min-height: 480px;
  }

  .rd-hero-content {
    padding: 3rem 1.25rem;
  }

  .rd-hero-content h1 {
    font-size: 33px;
  }

  .rd-hero-sub {
    font-size: 18px;
  }

  .rd-hero-kicker {
    font-size: 13px;
  }

  .rd-btn-row .btn {
    font-size: 15px;
    padding: 6px 22px;
  }

  .rd-work-grid,
  .rd-steps {
    grid-template-columns: 1fr;
  }

  .rd-stats-row {
    gap: 1em 1.5em;
    padding: 1.25em 1rem;
  }

  .rd-stat {
    flex: 1 1 40%;
    min-width: 110px;
  }

  .rd-stat-num {
    font-size: 27px;
  }

  .rd-stat-label {
    font-size: 11.5px;
  }

  /* On phones the hero-bottom stats strip would cover the headline; let it flow below instead */
  .rd-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .rd-hero-content {
    margin: auto;
  }

  .rd-hero-content-tall {
    padding-bottom: 3rem;
  }

  .rd-hero-stats {
    position: static;
    width: 100%;
    background: var(--primary-dark);
  }

  .rd-band {
    padding: 3.5rem 1.25rem;
  }

  .rd-band-inner p {
    font-size: 18px;
  }

  .rd-tagline p {
    font-size: 19px;
  }

  .rd-news-quote {
    font-size: 20px;
  }

  .rd-sponsor {
    flex-direction: column;
  }

  .rd-sponsor-logo {
    flex: 0 0 auto;
    max-width: 200px;
  }
}
