/* ============================================================
   home-alts.css — styles for the three alternate homepage layouts.
   Loaded on top of tokens.css + base.css + site.css.
   ============================================================ */

/* -----------------------------------------------------------
   Comparison ribbon (top of every alt page)
   ----------------------------------------------------------- */
.compare-ribbon {
  background: var(--otta-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 0;
}
.compare-ribbon .container-wide {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-ribbon .compare-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-right: 8px;
}
.compare-ribbon a {
  color: #fff;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.compare-ribbon a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.compare-ribbon a.is-current {
  background: #fff;
  color: var(--otta-red);
  border-color: #fff;
  font-weight: 700;
}

/* -----------------------------------------------------------
   OPTION 1 — Editorial
   ----------------------------------------------------------- */

/* Full-bleed hero */
.ed-hero {
  position: relative;
  min-height: 78vh;
  background: var(--otta-near-black, #1a1e24);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.ed-hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ed-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10,12,15,0.85) 0%,
      rgba(10,12,15,0.70) 28%,
      rgba(10,12,15,0.40) 50%,
      rgba(10,12,15,0.10) 80%,
      rgba(10,12,15,0) 100%);
  pointer-events: none;
}
.ed-hero-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  z-index: 3;
  max-width: 60%;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  pointer-events: none;
}
.ed-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ed-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 64px;
  background: linear-gradient(180deg,
    rgba(26,30,36,0) 0%,
    rgba(26,30,36,0.25) 40%,
    rgba(26,30,36,0.78) 75%,
    rgba(26,30,36,0.92) 100%);
}
.ed-eyebrow {
  color: #fff;
  opacity: 0.85;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.ed-headline {
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 17ch;
  margin: 0 0 22px;
}
.ed-lede {
  color: #fff;
  opacity: 0.92;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 60ch;
  margin: 0 0 28px;
  line-height: 1.5;
}
/* Ghost button over editorial hero — must stay legible on busy imagery */
.ed-hero .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 600;
}
.ed-hero .btn-ghost:hover {
  background: rgba(229, 63, 33, 0.85);
  border-color: #ffffff;
  color: #ffffff;
}

/* Editorial opener (long-form paragraph) */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.ed-opener {
  padding: 84px 0;
}
.ed-dropcap {
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--otta-navy, #2B333F);
  margin-bottom: 1.4em;
}
.ed-dropcap::first-letter {
  float: left;
  font-size: 4.6rem;
  line-height: 0.92;
  padding: 6px 12px 0 0;
  font-weight: 800;
  color: var(--otta-red);
  letter-spacing: -0.04em;
}
.ed-body {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--otta-navy, #2B333F);
}

/* Editorial features (alternating image / text) */
.ed-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  min-height: 520px;
  background: #fff;
}
.ed-feature.reverse {
  grid-template-columns: 1fr 1.05fr;
}
.ed-feature.reverse .ed-feature-img { order: 2; }
.ed-feature.reverse .ed-feature-text { order: 1; }
.ed-feature-img {
  position: relative;
  overflow: hidden;
  background: var(--otta-near-black, #1a1e24);
}
.ed-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px clamp(32px, 6vw, 96px);
}
.ed-feature-text .eyebrow {
  color: var(--otta-red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.ed-feature-text h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--otta-navy, #2B333F);
}
.ed-feature-text .lede {
  font-size: 1.08rem;
  color: var(--otta-navy, #2B333F);
  margin: 0 0 24px;
}
.ed-feature-text .ed-meta {
  font-size: 0.85rem;
  color: var(--otta-red);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

/* Editorial numbers band (dark) */
.ed-numbers {
  background: var(--otta-navy, #2B333F);
  color: #fff;
  padding: 72px 0;
}
.ed-numbers .stat {
  background: rgba(255,255,255,0.04);
}
.ed-numbers .stat .stat-number {
  color: #fff;
}
.ed-numbers .stat .stat-label {
  color: #c8cdd5;
}
/* Force single column on narrow screens — overrides inline 3-col rule */
@media (max-width: 600px) {
  .ed-numbers .stat-strip { grid-template-columns: 1fr !important; }
}

@media (max-width: 880px) {
  .ed-hero { min-height: 70vh; }
  .ed-feature, .ed-feature.reverse {
    grid-template-columns: 1fr;
  }
  .ed-feature.reverse .ed-feature-img { order: 1; }
  .ed-feature.reverse .ed-feature-text { order: 2; }
  .ed-feature-img { min-height: 320px; }
  .ed-feature-text { padding: 56px 24px; }
}

/* -----------------------------------------------------------
   OPTION 2 — Routing (chooser cards)
   ----------------------------------------------------------- */
.rt-hero {
  padding: 72px 0 32px;
  background: #fff;
}
.rt-hero .rt-headline {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin: 8px 0 18px;
  color: var(--otta-navy, #2B333F);
}
.rt-hero .rt-lede {
  max-width: 64ch;
  margin: 0 0 40px;
  color: var(--otta-navy, #2B333F);
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.chooser-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  min-height: 380px;
  text-decoration: none;
  color: #fff;
  background: var(--otta-near-black, #1a1e24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}
.chooser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0,0,0,0.18);
}
.chooser-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.chooser-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26,30,36,0.30) 0%,
    rgba(26,30,36,0.65) 55%,
    rgba(26,30,36,0.92) 100%);
}
.chooser-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chooser-card-body {
  position: relative;
  z-index: 2;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 380px;
}
.chooser-eyebrow {
  color: #fff;
  opacity: 0.85;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.chooser-title {
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 700;
}
.chooser-sub {
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 42ch;
}
.chooser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--otta-red);
  width: fit-content;
}
.chooser-card:hover .chooser-link {
  background: #d6371a;
}

/* Engagement card on dark section needs explicit light treatment */
.section-dark .engagement-card:not(.is-lead) {
  background: #ffffff;
  color: var(--otta-navy, #2B333F);
}
.section-dark .engagement-card:not(.is-lead) h3,
.section-dark .engagement-card:not(.is-lead) p,
.section-dark .engagement-card:not(.is-lead) li {
  color: var(--otta-navy, #2B333F);
}
.section-dark .engagement-card:not(.is-lead) li::before {
  background: var(--otta-red);
}

/* Proof band */
.rt-proof {
  background: #fafafa;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.proof-headline {
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--otta-navy, #2B333F);
  margin: 16px 0 22px;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .chooser-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .proof-stats { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   OPTION 3 — Hybrid modular grid
   ----------------------------------------------------------- */
.modular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.mod-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--otta-navy, #2B333F);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 280px;
}
a.mod-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: var(--otta-red);
}
.mod-tile-tall {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  min-height: 480px;
}
.mod-tile-tall .mod-tile-img {
  height: 200px;
  overflow: hidden;
}
.mod-tile-tall .mod-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mod-tile-tall .mod-tile-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mod-eyebrow {
  color: var(--otta-red);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.mod-tile h3 {
  font-size: 1.35rem;
  line-height: 1.22;
  margin: 0 0 12px;
  font-weight: 700;
}
.mod-tile p {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--otta-navy, #2B333F);
  opacity: 0.85;
  margin: 0 0 18px;
}
.mod-link {
  margin-top: auto;
  color: var(--otta-red);
  font-weight: 600;
  font-size: 0.95rem;
}
.mod-tile-stat {
  background: var(--otta-navy, #2B333F);
  border-color: var(--otta-navy, #2B333F);
  color: #fff;
}
.mod-tile-stat .mod-eyebrow { color: #fff; opacity: 0.85; }
.mod-tile-stat h3, .mod-tile-stat p { color: #fff; }
.mod-stats {
  display: grid;
  gap: 18px;
  margin-top: 4px;
}
.mod-stats > div {
  display: flex;
  flex-direction: column;
}
.mod-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mod-stats .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
}
.mod-tile-cta {
  background: var(--otta-red);
  border-color: var(--otta-red);
  color: #fff;
}
.mod-tile-cta .mod-eyebrow { color: #fff; opacity: 0.9; }
.mod-tile-cta h3, .mod-tile-cta p { color: #fff; }
.mod-tile-cta .mod-link { color: #fff; }

@media (max-width: 1024px) {
  .modular-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-tile-tall { grid-row: auto; min-height: 360px; }
}
@media (max-width: 640px) {
  .modular-grid { grid-template-columns: 1fr; }
}
