/* =======================
   Color tokens & base type
   ======================= */
/* === Typography tokens === */
:root {
  --font-title: "Baskerville", "Libre Baskerville", "Garamond",
    "Times New Roman", serif;
  --font-body: "Baskerville", "Libre Baskerville", "Garamond", "Times New Roman",
    serif;
  --font-sub: "Abril Fatface", "Baskerville", "Libre Baskerville", serif;
}

/* Body defaults to Baskerville site-wide */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
}

/* Titles use Baskerville */
.brand-title,
.section-title,
.hero-title,
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
}

/* Sub-titles use Abril Fatface */
.section-sub,
.subtitle,
h5.subtitle {
  font-family: var(--font-sub);
  letter-spacing: 0.2px;
}

/* Optional fine-tuning */
h1,
.display-5 {
  line-height: 1.12;
}
.lead {
  line-height: 1.45;
}

:root {
  --navy: #0a1224;
  --navy-2: #101b34;
  --ivory: #fbf8ef;
  --ivory-70: rgba(251, 248, 239, 0.7);
  --ivory-50: rgba(251, 248, 239, 0.5);
  --ivory-15: rgba(251, 248, 239, 0.15);
  --gold: #c8a24a;
  --burgundy: #7a1e2c;
  --accent: #00d4be;
  --glass: rgba(7, 12, 22, 0.45);
  --card: #162238;
  --card-head: #1a2940;
  --drawer: #0f1b2a;
}

body {
  background: var(--navy);
  color: var(--ivory);
  font-family: "Merriweather", serif;
}
.brand-title,
.section-title,
.section-sub,
.hero-title {
  font-family: "Cinzel", serif;
}

.text-ivory {
  color: var(--ivory) !important;
}
.text-ivory-70 {
  color: var(--ivory-70) !important;
}
.text-ivory-50 {
  color: var(--ivory-50) !important;
}
.border-ivory-15 {
  border-color: var(--ivory-15) !important;
}
.text-gold {
  color: var(--gold) !important;
}

/* =======================
   Nav & Drawer
   ======================= */
.glass-nav {
  backdrop-filter: saturate(140%) blur(6px);
  background: var(--glass) !important;
}
.logo-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
}
.bg-drawer {
  background: var(--drawer);
}

.menu-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 1px solid var(--ivory-15);
  color: var(--ivory);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
}
.menu-group:hover {
  border-color: var(--ivory-50);
}
.submenu-link {
  display: block;
  padding: 0.35rem 0;
  color: var(--ivory-70);
  text-decoration: none;
}
.submenu-link:hover {
  color: var(--ivory);
}

/* =======================
   Buttons (unified)
   ======================= */
.btn-gold {
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  box-shadow: 0 4px 16px rgba(200, 162, 74, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200, 162, 74, 0.45);
  filter: brightness(0.98);
}

.btn-outline-ivory {
  color: #fff;
  border: 1px solid rgba(251, 248, 239, 0.85);
}
.btn-outline-ivory:hover {
  background: rgba(251, 248, 239, 0.12);
}

/* =======================
   Hero (base + art layers)
   ======================= */
.hero {
  min-height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(
      to bottom,
      rgba(10, 18, 36, 0.6),
      rgba(10, 18, 36, 0.92)
    ),
    radial-gradient(
      1200px 600px at 20% 20%,
      rgba(200, 162, 74, 0.18),
      transparent 70%
    ),
    linear-gradient(180deg, #0b1430 0%, #193a44 100%);
}
.hero--art {
  position: relative;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero .hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-lines {
  mix-blend-mode: screen;
  opacity: 0.55;
}
.hero-skyline {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 55vw;
  height: 55vh;
  background: url("/assets/hero/skyline-collage.webp") center/contain no-repeat;
  opacity: 0.12;
  filter: grayscale(100%) contrast(1.1);
  mask-image: radial-gradient(60% 60% at 100% 100%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    60% 60% at 100% 100%,
    #000 40%,
    transparent 75%
  );
}

/* POP-ONLY hero tuning */
.hero--art .hero-bg img {
  filter: saturate(1.05) contrast(1.04) brightness(1.06);
  object-position: center 42%;
}
.hero--art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0.22),
    rgba(10, 18, 36, 0.48)
  );
}

/* Glass copy block */
.hero-copy.glass {
  position: relative;
  max-width: 860px;
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(8px) saturate(120%);
  background: linear-gradient(
    180deg,
    rgba(7, 12, 22, 0.16),
    rgba(7, 12, 22, 0.1)
  );
  border: 1px solid rgba(251, 248, 239, 0.1);
  border-radius: 14px;
}
.hero-copy.glass h1 {
  color: #fff;
  line-height: 1.06;
  letter-spacing: 0.1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.hero-copy.glass .lead {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  line-height: 1.42;
  max-width: 62ch;
}

/* Gentle vignette + spotlight */
.hero--art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      80% 60% at 35% 40%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(120% 90% at 70% 60%, rgba(0, 0, 0, 0.18), transparent 65%);
  mix-blend-mode: soft-light;
}

/* About hero (different image, same treatment) */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0.18),
    rgba(10, 18, 36, 0.48)
  );
}

/* =======================
   Section backgrounds
   ======================= */
.bg-section {
  background: var(--navy-2);
}

/* =======================
   Cards / Leadership
   ======================= */
.card-dark {
  background: var(--card);
  border: 1px solid var(--ivory-15);
}
.bg-card-head {
  background: var(--card-head) !important;
}
.credit-slot {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 12px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.03) 24px
  );
  border: 1px solid var(--ivory-15);
}

/* =======================
   Globe card + canvas
   ======================= */
.globe-card {
  position: relative;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(
      120% 120% at 80% 20%,
      rgba(200, 162, 74, 0.12),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 20% 80%,
      rgba(122, 30, 44, 0.1),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.02)
    );
  border: 1px solid rgba(251, 248, 239, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
}
.globe-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    rgba(200, 162, 74, 0.12),
    transparent 40%,
    transparent 100%
  );
  filter: blur(24px);
  animation: sweep 12s linear infinite;
  pointer-events: none;
}
.globe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      80% 70% at 70% 25%,
      rgba(200, 162, 74, 0.1),
      transparent 60%
    ),
    radial-gradient(120% 100% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%);
  pointer-events: none;
}
@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}
.globe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
}

#globe3d {
  height: 380px;
}
#globe3d canvas {
  background: transparent !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px;
}

/* Globe section sizing tweaks */
#global-reach .section-title {
  font-size: calc(2rem * 0.8);
}
#global-reach .lead {
  font-size: calc(1.25rem * 0.85);
}
#global-reach .eyebrow,
#global-reach .stat-chip,
#global-reach .btn {
  transform: scale(0.9);
  transform-origin: left center;
}
#global-reach .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
#global-reach {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}
#global-reach #globe3d {
  height: 304px;
}
#global-reach .globe-card {
  border-radius: 14px;
}
#global-reach .globe-card .card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ivory-70);
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
}
.globe-legend {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ivory-70);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-gold {
  background: #c8a24a;
}
.dot-ivory {
  background: #fbf8ef;
  opacity: 0.75;
}

/* =======================
   Eyebrow & stat chips
   ======================= */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-70);
  border: 1px solid var(--ivory-15);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}
.stat-chip {
  font-size: 0.85rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ivory-15);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

/* =======================
   Headings sizing
   ======================= */
.section-title {
  font-size: 2rem;
}
.section-sub {
  font-size: 1.25rem;
}

/* =======================
   Crest utilities & banners
   ======================= */
.crest-watermark {
  position: relative;
  isolation: isolate;
}
.crest-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  background: radial-gradient(
      900px 520px at 65% 25%,
      rgba(200, 162, 74, 0.14),
      transparent 60%
    ),
    url("/assets/brand/cgpes-seal.png") center/560px 560px no-repeat;
}
.crest-chip {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(22, 34, 56, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.crest-chip img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.crest-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(251, 248, 239, 0.1);
  background: linear-gradient(
    180deg,
    rgba(7, 12, 22, 0.16),
    rgba(7, 12, 22, 0.1)
  );
}
.crest-banner::after {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: url("/assets/brand/cgpes-seal.png") center/420px no-repeat;
  opacity: 0.14;
  mix-blend-mode: screen;
  filter: blur(0.3px);
}

/* =======================
   Strip photo heading chips
   ======================= */
.strip-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(251, 248, 239, 0.1);
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  color: #fff;
  background: var(--bg) center/cover no-repeat;
}
.strip-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 18, 36, 0.1),
      rgba(10, 18, 36, 0.35)
    ),
    radial-gradient(90% 120% at 20% 10%, rgba(0, 0, 0, 0.25), transparent 60%);
  pointer-events: none;
}
.strip-photo h2 {
  position: relative;
  margin: 0;
}
a.strip-photo:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

/* =======================
   Full-width crest watermark (page background)
   ======================= */
.page-watermark {
  position: relative;
  background: var(--navy-2);
}
.page-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      80% 60% at 50% 20%,
      rgba(255, 255, 255, 0.03),
      transparent 60%
    ),
    url("/assets/brand/cgpes-seal.png") center top / clamp(900px, 80vw, 1700px)
      auto no-repeat;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  filter: contrast(1.04) saturate(1.02);
}
@media (min-width: 992px) {
  .page-watermark::before {
    background-position: center 8rem, center 8rem;
  }
}
