/* Public marketing pages — full-width layout, iGOLD navy / gold / sky */

:root {
  --pub-nav-height: 3.5rem; /* site-navbar h-14 */
}

/* Navy canvas until user scrolls into white content blocks */
body:has(.pub-page) {
  background-color: #0f172a;
}

.pub-page {
  width: 100%;
  overflow-x: hidden;
}

/* Full-viewport heroes — solid navy, content centered; white below on scroll */
.pub-hero,
.pub-page > .about-hero,
.pub-page > .page-hero {
  position: relative;
  min-height: calc(100vh - var(--pub-nav-height));
  min-height: calc(100svh - var(--pub-nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 !important;
  background: #0f172a;
  border-bottom: 3px solid #eab308;
}

.pub-page > .about-hero > .container,
.pub-page > .page-hero > .container {
  width: 100%;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
  box-sizing: border-box;
}

.pub-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.pub-page .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Hero (navy band, edge-to-edge background) ── */
.pub-hero {
  width: 100%;
  color: #f8fafc;
}
.pub-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .pub-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}
.pub-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EAB308;
  margin-bottom: 0.65rem;
}
.pub-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: #f8fafc;
}
.pub-hero__title .brand-gold { color: #EAB308; }
.pub-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  color: #94a3b8;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.pub-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: #64748B;
  margin-bottom: 1.1rem;
}
.pub-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pub-hero__meta i { color: #EAB308; }
.pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pub-hero .btn-hero-primary,
.pub-hero .btn-hero-outline {
  padding: 0.6rem 1.25rem !important;
  font-size: 0.875rem !important;
}
.pub-hero .btn-hero-outline {
  color: #F8FAFC;
  border-color: rgba(248, 250, 252, 0.45);
}
.pub-hero .btn-hero-outline:hover {
  color: #0F172A;
  background: #EAB308;
  border-color: #EAB308;
}
.pub-hero__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #EAB308;
  background: #1E293B;
}
.pub-hero__figure img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: min(42vh, 360px);
}
@media (min-width: 768px) {
  .pub-hero__figure img {
    max-height: min(58vh, 520px);
  }
}
@media (min-width: 992px) {
  .pub-hero__figure img {
    max-height: min(62vh, 560px);
  }
}

.pub-page .page-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.12;
}
.pub-page .page-hero-title span {
  color: #eab308;
}
.pub-page .page-hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto;
}
.pub-page .page-hero .section-eyebrow {
  color: #eab308;
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Content sections (white / light — visible after scroll) ── */
.pub-page > .pub-section,
.pub-page > section:not(.pub-hero):not(.about-hero):not(.page-hero):not(.stats-section):not(.values-section):not(.wali-hero):not(.wali-stats):not(.wali-cta) {
  background: #ffffff;
}

.pub-section {
  width: 100%;
  padding: clamp(2.5rem, 6vh, 3.5rem) 0;
  box-sizing: border-box;
}
.pub-section--alt,
.pub-page .story-section,
.pub-page .contact-page-section {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
}
.pub-section--alt {
  border-bottom: 1px solid #e2e8f0;
}
.pub-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.pub-section__head {
  margin-bottom: 1.75rem;
}
.pub-section__head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.4rem;
}
.pub-section__head p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 40rem;
}
.pub-section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0284C7;
  margin-bottom: 0.35rem;
}
.pub-section__title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 0.75rem;
}

.pub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 992px) {
  .pub-split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.pub-split__text p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.85rem;
}
.pub-split__text p:last-child { margin-bottom: 0; }
.pub-split__img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.pub-split__img img {
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 320px;
}

.pub-offerings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .pub-offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .pub-offerings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pub-offering {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-top: 3px solid #EAB308;
  border-radius: 10px;
  padding: 1.15rem 1.1rem;
  height: 100%;
}
.pub-offering__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E0F2FE;
  color: #1E3A8A;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}
.pub-offering h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.35rem;
}
.pub-offering p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

/* Supersede legacy single-orb pseudo from styles.css */
.pub-page .about-hero::before,
.pub-page .page-hero::before {
  display: none;
}

.pub-page .about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}
.pub-page .about-hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: #94a3b8;
}
.pub-page .about-hero .badge-gold {
  background: #EAB308;
  color: #0F172A;
  font-size: 0.7rem;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.pub-page .about-hero .hero-img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #eab308;
  max-height: min(42vh, 360px);
}
@media (min-width: 768px) {
  .pub-page .about-hero .hero-img {
    max-height: min(58vh, 520px);
  }
}
@media (min-width: 992px) {
  .pub-page .about-hero .hero-img {
    max-height: min(62vh, 560px);
  }
}

.pub-page > section:not(.pub-hero):not(.about-hero):not(.page-hero):not(.stats-section):not(.wali-hero):not(.wali-stats):not(.wali-cta) {
  padding: clamp(2.5rem, 6vh, 3.25rem) 0;
}

.pub-page .stats-section {
  padding: clamp(1.75rem, 4vh, 2.25rem) 0;
  background: #eab308;
  border-top: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pub-page .values-section {
  padding: clamp(2.5rem, 6vh, 3.25rem) 0;
  background: #1e3a8a !important;
  color: #f8fafc;
}

.pub-page .values-section .section-title {
  color: #f8fafc;
}

.pub-page .values-section .section-eyebrow {
  color: #eab308;
}

.pub-page .values-section .value-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pub-page .values-section .value-item h5 {
  color: #f8fafc;
}

.pub-page .values-section .value-item p {
  color: rgba(248, 250, 252, 0.82);
}

/* Contact hero */
.pub-page > .page-hero--contact .page-hero-lead {
  max-width: 32rem;
}

.pub-page .page-hero__contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 1.35rem 0 1.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.pub-page .page-hero__contact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pub-page .page-hero__contact-meta i {
  color: #eab308;
}

.pub-page .contact-page-section {
  padding: clamp(2.5rem, 6vh, 3.5rem) 0;
}
