/* ==========================================================================
   GLOBAL KINGDOM — Design System
   Palette: deep indigo night sky + illuminated gold + parchment
   Type: "Cormorant Garamond" (display, illuminated-manuscript feel)
         "Source Sans 3" (body) · "IBM Plex Mono" (labels / eyebrows)
   ========================================================================== */

:root {
  /* Color tokens */
  --gk-navy: #16213E;
  --gk-navy-deep: #0D1526;
  --gk-navy-soft: #263659;
  --gk-gold: #C6A15B;
  --gk-gold-light: #E4CFA0;
  --gk-emerald: #2F5233;
  --gk-parchment: #F6F3EA;
  --gk-parchment-deep: #EFE9D8;
  --gk-ink: #201D18;
  --gk-ink-soft: #55524A;
  --gk-line: rgba(32, 29, 24, 0.12);
  --gk-white: #FFFFFF;

  /* Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --shadow-soft: 0 12px 32px rgba(13, 21, 38, 0.08);
  --shadow-card: 0 8px 24px rgba(13, 21, 38, 0.10);
  --transition: 0.35s cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gk-ink);
  background: var(--gk-parchment);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gk-navy);
  letter-spacing: 0.2px;
}

h1 { font-weight: 700; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gk-gold-light); color: var(--gk-navy); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gk-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gk-gold);
  display: inline-block;
}

.text-gold { color: var(--gk-gold) !important; }
.text-navy { color: var(--gk-navy) !important; }
.bg-navy { background: var(--gk-navy) !important; }
.bg-parchment-deep { background: var(--gk-parchment-deep) !important; }

.section { padding: 6.5rem 0; }
.section-sm { padding: 4rem 0; }
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }
}

.divider-gold {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gk-gold), var(--gk-gold-light));
  border-radius: 3px;
}

/* ---------------- Buttons ---------------- */
.btn {
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.85rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 1px solid transparent;
}
.btn-gk-primary {
  background: var(--gk-navy);
  color: var(--gk-parchment);
  border-color: var(--gk-navy);
}
.btn-gk-primary:hover {
  background: var(--gk-navy-deep);
  color: var(--gk-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-gk-outline {
  background: transparent;
  color: var(--gk-navy);
  border-color: var(--gk-navy);
}
.btn-gk-outline:hover {
  background: var(--gk-navy);
  color: var(--gk-parchment);
  transform: translateY(-2px);
}
.btn-gk-gold {
  background: var(--gk-gold);
  color: var(--gk-navy-deep);
  border-color: var(--gk-gold);
}
.btn-gk-gold:hover {
  background: var(--gk-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-gk-ghost-light {
  background: transparent;
  color: var(--gk-parchment);
  border-color: rgba(246,243,234,0.45);
}
.btn-gk-ghost-light:hover {
  background: rgba(246,243,234,0.12);
  border-color: var(--gk-gold);
  color: var(--gk-gold-light);
}

/* ---------------- Navbar ---------------- */
.gk-navbar {
  padding: 1.1rem 0;
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), padding var(--transition);
}
.gk-navbar.is-scrolled {
  box-shadow: 0 4px 24px rgba(13,21,38,0.08);
  border-bottom-color: var(--gk-line);
  padding: 0.7rem 0;
}
.gk-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gk-navy);
}
.gk-brand-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gk-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gk-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.gk-brand-logo {
  width: 38px; height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--gk-gold);
  flex-shrink: 0;
  background: var(--gk-white);
}
.gk-navbar .nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gk-ink);
  padding: 0.5rem 1rem !important;
  position: relative;
}
.gk-navbar .nav-link.active,
.gk-navbar .nav-link:hover { color: var(--gk-navy); }
.gk-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.15rem;
  height: 2px;
  background: var(--gk-gold);
}

/* ---------------- Hero ---------------- */
.gk-hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #24345C 0%, var(--gk-navy) 45%, var(--gk-navy-deep) 100%);
  color: var(--gk-parchment);
  padding: 9.5rem 0 6.5rem;
  overflow: hidden;
}
.gk-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  pointer-events: none;
}
.gk-hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(198,161,91,0.22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.gk-hero-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gk-gold-light);
  border-left: 2px solid var(--gk-gold);
  padding-left: 1rem;
  max-width: 480px;
}
.gk-hero h1 {
  color: var(--gk-white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  white-space: pre-line;
}
.gk-hero-sub {
  color: rgba(246,243,234,0.78);
  font-size: 1.1rem;
  max-width: 480px;
}
.gk-hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(246,243,234,0.15);
  padding-top: 1.8rem;
}
.gk-hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gk-gold-light);
  font-weight: 700;
  display: block;
}
.gk-hero-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,243,234,0.6);
}

/* Illuminated cross-compass mark used decoratively */
.gk-mark {
  width: 300px; height: 300px;
  border: 1px solid rgba(198,161,91,0.35);
  border-radius: 50%;
  position: relative;
}
.gk-mark::before, .gk-mark::after {
  content: "";
  position: absolute;
  background: rgba(198,161,91,0.35);
}
.gk-mark::before { left: 50%; top: 8%; bottom: 8%; width: 1px; transform: translateX(-50%); }
.gk-mark::after { top: 50%; left: 8%; right: 8%; height: 1px; transform: translateY(-50%); }

/* ---------------- Cards ---------------- */
.gk-card {
  background: var(--gk-white);
  border: 1px solid var(--gk-line);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.gk-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(198,161,91,0.4);
}
.gk-icon-box {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gk-parchment-deep);
  color: var(--gk-navy);
  font-size: 1.4rem;
  transition: background var(--transition), color var(--transition);
}
.gk-card:hover .gk-icon-box {
  background: var(--gk-navy);
  color: var(--gk-gold-light);
}

.gk-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gk-gold);
  color: var(--gk-navy);
  border-radius: 20px;
  display: inline-block;
}

/* Team */
.gk-team-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gk-navy);
  position: relative;
}
.gk-team-photo img { width:100%; height:100%; object-fit: cover; transition: transform 0.6s ease; }
.gk-card:hover .gk-team-photo img { transform: scale(1.05); }
.gk-team-social {
  display: flex; gap: 0.6rem; margin-top: 0.9rem;
}
.gk-team-social a {
  width: 32px; height: 32px;
  border: 1px solid var(--gk-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gk-navy);
  transition: all var(--transition);
  font-size: 0.85rem;
}
.gk-team-social a:hover { background: var(--gk-navy); color: var(--gk-gold-light); border-color: var(--gk-navy); }

/* Updates / blog */
.gk-update-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gk-navy-soft);
}
.gk-update-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gk-card:hover .gk-update-thumb img { transform: scale(1.06); }

/* Section dividers with verse feel */
.gk-quote-band {
  background: var(--gk-navy);
  color: var(--gk-parchment);
  position: relative;
}
.gk-quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.45;
}
.gk-quote-band cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gk-gold);
  font-style: normal;
}

/* Forms */
.gk-form .form-control, .gk-form .form-select {
  border-radius: 3px;
  border: 1px solid var(--gk-line);
  padding: 0.75rem 1rem;
  background: var(--gk-white);
}
.gk-form .form-control:focus, .gk-form .form-select:focus {
  border-color: var(--gk-gold);
  box-shadow: 0 0 0 0.2rem rgba(198,161,91,0.18);
}
.gk-form label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gk-ink-soft); margin-bottom: 0.4rem; }

/* Footer */
.gk-footer {
  background: var(--gk-navy-deep);
  color: rgba(246,243,234,0.72);
  padding: 4.5rem 0 1.8rem;
}
.gk-footer h6 {
  color: var(--gk-parchment);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.gk-footer a { color: rgba(246,243,234,0.7); transition: color var(--transition); }
.gk-footer a:hover { color: var(--gk-gold-light); }
.gk-footer .gk-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(246,243,234,0.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
}
.gk-footer .gk-social a:hover { border-color: var(--gk-gold); background: rgba(198,161,91,0.12); }
.gk-footer-bottom {
  border-top: 1px solid rgba(246,243,234,0.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

/* Page header (inner pages) */
.gk-page-header {
  background: var(--gk-navy);
  color: var(--gk-parchment);
  padding: 7.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.gk-page-header h1 { color: var(--gk-white); font-size: clamp(2rem, 4vw, 3rem); }
.gk-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,243,234,0.6);
}
.gk-breadcrumb a:hover { color: var(--gk-gold-light); }

/* Scroll reveal (minimal, respects reduced motion) */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Back to top */
.gk-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gk-navy);
  color: var(--gk-gold-light);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}
.gk-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Gallery ---------------- */
.gk-gallery-tile {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--gk-navy-soft);
}
.gk-gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.gk-gallery-tile:hover img { transform: scale(1.06); }
.gk-gallery-tile::after {
  content: "\f52a";
  font-family: "bootstrap-icons";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gk-parchment);
  font-size: 1.4rem;
  background: rgba(13,21,38,0);
  opacity: 0;
  transition: all var(--transition);
}
.gk-gallery-tile:hover::after { opacity: 1; background: rgba(13,21,38,0.35); }

.gk-gallery-filter .btn { margin: 0.2rem; }

.gk-lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,21,38,0.92);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.gk-lightbox-backdrop.show { display: flex; }
.gk-lightbox-backdrop img {
  max-width: 100%; max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gk-lightbox-caption {
  color: var(--gk-parchment);
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.gk-lightbox-close, .gk-lightbox-prev, .gk-lightbox-next {
  position: fixed;
  color: var(--gk-parchment);
  background: rgba(246,243,234,0.08);
  border: 1px solid rgba(246,243,234,0.25);
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2001;
}
.gk-lightbox-close:hover, .gk-lightbox-prev:hover, .gk-lightbox-next:hover { background: var(--gk-gold); color: var(--gk-navy-deep); border-color: var(--gk-gold); }
.gk-lightbox-close { top: 1.5rem; right: 1.5rem; }
.gk-lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.gk-lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
  .gk-lightbox-prev, .gk-lightbox-next { width: 38px; height: 38px; }
  .gk-lightbox-close { top: 0.8rem; right: 0.8rem; }
}

/* Utility */
.rounded-gk { border-radius: var(--radius); }
.shadow-gk { box-shadow: var(--shadow-card); }
.ratio-hero-img { aspect-ratio: 4/5; overflow:hidden; border-radius: var(--radius); }
.ratio-hero-img img { width:100%; height:100%; object-fit:cover; }
