/* ═══════════════════════════════════════════════════════
   SHARED PAGE COMPONENTS — Avenue Two Hosting
   New IA components built on the existing design tokens.
   Navy #00245D · Gold #BFA980 · Cream #F8F6F1
   Cormorant Garamond (display) · Switzer (body)
   ═══════════════════════════════════════════════════════ */

/* ── Interior page hero (image + scrim, left-aligned) ──── */
.page-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-top: 120px;
}
.page-hero--compact { min-height: 48vh; }

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(0,15,45,0.82) 0%,
    rgba(0,24,70,0.62) 45%,
    rgba(0,10,30,0.55) 100%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-24));
  max-width: 760px;
}
.page-hero__inner h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: #fff;
  line-height: 1.04;
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}
.page-hero__inner h1 em { font-style: italic; color: var(--gold-light); }
.page-hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  line-height: 1.6;
}

/* Navy text-only page hero (no image) */
.page-hero--navy {
  background: var(--navy);
  min-height: auto;
  align-items: center;
  text-align: left;
}
.page-hero--navy .page-hero__scrim,
.page-hero--navy .page-hero__img { display: none; }
.page-hero--navy .page-hero__inner { padding-block: var(--space-16); }

/* ── Editorial two-column ──────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.editorial--reverse .editorial__media { order: -1; }
.editorial__body .eyebrow { margin-bottom: var(--space-4); }
.editorial__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}
.section--ink .editorial__body h2,
.section--ink .editorial__body { color: #fff; }
.section--ink .editorial__body h2 { color: #fff; }
.editorial__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  max-width: 56ch;
}
.section--ink .editorial__body p { color: rgba(255,255,255,0.78); }
.editorial__body::before {
  content: '';
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--gold);
  margin-bottom: var(--space-6);
}
.editorial__media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* Ink (navy) section variant */
.section--ink { background: var(--navy); color: #fff; }
.section--ink .eyebrow { color: var(--gold-light); }
.section--stone { background: var(--color-surface-alt); }

/* ── Section head (centered intro) ─────────────────────── */
.section-head { max-width: 64ch; margin-bottom: var(--space-12); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.section--ink .section-head h2 { color: #fff; }
.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 60ch;
}
.section--ink .section-head p { color: rgba(255,255,255,0.78); }

/* ── Numbered pillars (i. ii. iii.) ────────────────────── */
.pillars-num {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  border: 1px solid var(--color-border);
}
.pillar-num {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--color-border);
  transition: background var(--transition);
}
.pillar-num:last-child { border-right: none; }
.pillar-num:hover { background: var(--navy-50); }
.pillar-num__mark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: var(--space-5);
}
.pillar-num h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.pillar-num p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Advantage grid (six tiles) ────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  border: 1px solid var(--color-border);
}
.adv-tile {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.adv-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.adv-tile__icon { color: var(--gold-dark); margin-bottom: var(--space-5); }
.adv-tile h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.adv-tile p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Who we recruit ────────────────────────────────────── */
.recruit {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.recruit h2 { color: #fff; font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.recruit > div:first-child > p { color: rgba(255,255,255,0.78); font-size: var(--text-lg); font-weight: 300; max-width: 52ch; }
.recruit__list { list-style: none; margin-top: var(--space-8); display: grid; gap: 0; }
.recruit__list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  align-items: baseline;
}
.recruit__list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.recruit__list .role {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--gold-light);
}
.recruit__list .desc { font-size: var(--text-sm); color: rgba(255,255,255,0.7); line-height: 1.6; }
.counter-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(191,169,128,0.3);
  padding: var(--space-10);
  position: sticky;
  top: 100px;
}
.counter-card h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300; color: #fff; margin-bottom: var(--space-4); }
.counter-card p { font-size: var(--text-sm); color: rgba(255,255,255,0.72); line-height: 1.7; }

/* ── Pull quote / advisor voice ────────────────────────── */
.pullquote { max-width: 56ch; margin-inline: auto; }
.pullquote::before {
  content: '';
  display: block;
  width: 60px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto var(--space-8);
}
.pullquote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-6);
}
.pullquote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── Full-bleed editorial image ────────────────────────── */
.fullbleed { position: relative; height: clamp(360px, 50vh, 560px); overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.fullbleed__caption {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  text-align: center;
}

/* ── CTA band ──────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: #fff;
  margin-bottom: var(--space-8);
  max-width: 24ch;
  margin-inline: auto;
}
.arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: var(--space-3) var(--space-5);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars-num { grid-template-columns: 1fr; }
  .pillar-num { border-right: none; border-bottom: 1px solid var(--color-border); }
  .pillar-num:last-child { border-bottom: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .recruit { grid-template-columns: 1fr; }
  .counter-card { position: static; }
}
@media (max-width: 768px) {
  .editorial { grid-template-columns: 1fr; gap: var(--space-10); }
  .editorial--reverse .editorial__media { order: 0; }
  .adv-grid { grid-template-columns: 1fr; }
  .recruit__list li { grid-template-columns: 1fr; gap: var(--space-1); }
  .page-hero__inner h1 { font-size: var(--text-2xl); }
}
