/* ============================================================
   GK Financial Group — site styles
   Foundations + responsive layer + mobile overlay navigation
   ============================================================ */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #1a2436;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* ---- Hover states (replaces the dead style-hover attribute) ---- */
a { transition: color .15s ease, background .15s ease, border-color .15s ease; }

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */
.gk-announce {
  background: #eaeef4; color: #2a3c5e; text-align: center;
  font-size: 13px; letter-spacing: .01em; padding: 9px 16px;
}
.gk-announce span { color: #14274a; font-weight: 600; }

.gk-header {
  position: sticky; top: 0; z-index: 200;
  background: #ffffff; border-bottom: 1px solid #e6e9ee;
}
.gk-topbar { background: #14274a; color: #aab8d0; }
.gk-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px; height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; letter-spacing: .02em;
}
.gk-topbar-inner a { text-decoration: none; color: #aab8d0; }
.gk-topbar-inner a:hover { color: #ffffff; }

.gk-bar {
  max-width: 1200px; margin: 0 auto; padding: 0 48px; height: 74px;
  display: flex; align-items: center; justify-content: space-between;
}
.gk-brand {
  text-decoration: none; font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 23px; color: #14274a; letter-spacing: .006em;
  display: flex; align-items: center; gap: 11px;
}
.gk-brand .gk-mark {
  width: 30px; height: 30px; border-radius: 7px; background: #14274a;
  color: #f3f0e8; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; flex: 0 0 auto;
}
.gk-nav { display: flex; align-items: center; gap: 34px; }
.gk-nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: #4a586f;
}
.gk-nav a:hover { color: #14274a; }

/* Hamburger button — hidden on desktop */
.gk-burger {
  display: none; appearance: none; border: 0; background: transparent;
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
  margin-right: -10px; border-radius: 8px;
}
.gk-burger:focus-visible { outline: 2px solid #14274a; outline-offset: 2px; }
.gk-burger span {
  display: block; width: 24px; height: 2px; background: #14274a;
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.gk-burger span + span { margin-top: 6px; }

/* ---- Full-screen overlay nav ---- */
.gk-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: #14274a; color: #dfe6f1;
  display: flex; flex-direction: column;
  padding: 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.22,.61,.36,1), visibility .38s;
  overflow-y: auto;
}
.gk-overlay.is-open { transform: translateY(0); visibility: visible; }
.gk-overlay-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 74px; flex: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.gk-overlay-brand {
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 20px; color: #ffffff; text-decoration: none;
}
.gk-close {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  position: relative; border-radius: 8px;
}
.gk-close:focus-visible { outline: 2px solid #9fb0cc; outline-offset: 2px; }
.gk-close span {
  position: absolute; left: 10px; top: 21px; width: 24px; height: 2px;
  background: #ffffff; border-radius: 2px;
}
.gk-close span:first-child { transform: rotate(45deg); }
.gk-close span:last-child  { transform: rotate(-45deg); }

.gk-overlay-links {
  flex: 1 1 auto; display: flex; flex-direction: column;
  padding: 26px 22px; gap: 2px;
}
.gk-overlay-links a {
  text-decoration: none; color: #ffffff;
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 30px; line-height: 1.25; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(10px);
}
.gk-overlay.is-open .gk-overlay-links a {
  animation: gk-fade-in .4s ease forwards;
}
.gk-overlay-links a:active { color: #9fb0cc; }
.gk-overlay-foot {
  flex: 0 0 auto; padding: 22px; font-size: 13px; color: #8597b5;
  border-top: 1px solid rgba(255,255,255,.1);
}
.gk-overlay-foot a { color: #c4cfe0; text-decoration: none; }

@keyframes gk-fade-in { to { opacity: 1; transform: translateY(0); } }

body.gk-nav-open { overflow: hidden; }

/* ============================================================
   RESPONSIVE LAYER
   The page content uses inline styles; these attribute selectors
   reflow the grids, padding, and type at each breakpoint.
   ============================================================ */

/* Tablet / small desktop */
@media (max-width: 1000px) {
  .gk-topbar-inner { padding: 0 28px; }
  .gk-bar { padding: 0 28px; }

  [style*="padding:96px 48px"],
  [style*="padding: 96px 48px"] { padding-left: 28px !important; padding-right: 28px !important; }
}

/* Collapse the desktop nav into a hamburger */
@media (max-width: 860px) {
  .gk-nav { display: none; }
  .gk-burger { display: inline-block; }

  /* Any two/three/four-column grid collapses */
  [style*="grid-template-columns:.42fr"],
  [style*="grid-template-columns: .42fr"],
  [style*="grid-template-columns:.52fr"],
  [style*="grid-template-columns:0.42fr"],
  [style*="grid-template-columns:1.04fr"],
  [style*="grid-template-columns: 1.04fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1.6fr"],
  [style*="grid-template-columns: 1.6fr"],
  [style*="grid-template-columns:1.7fr"],
  [style*="grid-template-columns: 1.7fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Big section gaps tighten when stacked */
  [style*="gap:72px"], [style*="gap: 72px"] { gap: 40px !important; }
  [style*="gap:64px"], [style*="gap: 64px"] { gap: 36px !important; }
  [style*="gap:56px"], [style*="gap: 56px"] { gap: 32px !important; }

  /* Section vertical padding */
  [style*="padding:96px 48px"], [style*="padding: 96px 48px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  [style*="padding:74px 48px 78px"], [style*="padding: 74px 48px 78px"] { padding: 52px 28px 54px !important; }
  [style*="padding:88px 48px"], [style*="padding: 88px 48px"] { padding: 52px 28px !important; }
  [style*="padding:80px 48px"], [style*="padding: 80px 48px"] { padding: 50px 28px !important; }

  h1[style] { font-size: 36px !important; line-height: 1.16 !important; }
  h2[style] { font-size: 30px !important; line-height: 1.2 !important; }

  /* Give the "At a glance" panel space below the hero CTAs when stacked */
  .gk-glance { margin-top: 14px !important; }
}

/* Portfolio registry table → labeled cards on mobile */
@media (max-width: 860px) {
  .gk-reg-head { display: none !important; }

  .gk-reg-row {
    display: block !important;
    padding: 22px 22px 24px !important;
  }
  /* Company name + logo block: a little breathing room below */
  .gk-reg-row > div:first-child { margin-bottom: 14px !important; }

  /* Each data cell gets a small uppercase label and sits left-aligned */
  .gk-reg-focus, .gk-reg-sector, .gk-reg-status {
    text-align: left !important;
    padding: 8px 0 0 !important;
  }
  .gk-reg-focus::before  { content: "Focus"; }
  .gk-reg-sector::before { content: "Sector"; }
  .gk-reg-status::before { content: "Status"; }
  .gk-reg-focus::before, .gk-reg-sector::before, .gk-reg-status::before {
    display: block;
    font-size: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: #97a2b6;
    margin-bottom: 5px;
  }
  /* Status badge: left-align the pill and give the label its own line */
  .gk-reg-status { display: block !important; }
}

/* Phone */
@media (max-width: 600px) {
  .gk-announce { font-size: 12px; padding: 8px 14px; }
  .gk-topbar { display: none; }              /* hide secondary top strip on phones */
  .gk-bar { padding: 0 20px; height: 64px; }
  .gk-brand { font-size: 19px; }

  [style*="max-width:1200px"], [style*="max-width: 1200px"],
  [style*="max-width:1100px"], [style*="max-width: 1100px"],
  [style*="max-width:840px"],  [style*="max-width: 840px"] {
    padding-left: 20px !important; padding-right: 20px !important;
  }

  /* Section padding tightens further */
  [style*="padding:96px 48px"], [style*="padding: 96px 48px"] { padding-top: 44px !important; padding-bottom: 44px !important; padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding:74px 48px 78px"], [style*="padding: 74px 48px 78px"] { padding: 40px 20px 42px !important; }
  [style*="padding:88px 48px"], [style*="padding: 88px 48px"] { padding: 44px 20px !important; }
  [style*="padding:80px 48px"], [style*="padding: 80px 48px"] { padding: 42px 20px !important; }
  [style*="padding:72px 48px 0"], [style*="padding: 72px 48px 0"] { padding: 44px 20px 0 !important; }

  /* Typography down a notch */
  h1[style] { font-size: 29px !important; }
  h2[style] { font-size: 25px !important; }
  [style*="font-size:46px"], [style*="font-size: 46px"] { font-size: 30px !important; }
  [style*="font-size:42px"], [style*="font-size: 42px"] { font-size: 28px !important; }
  [style*="font-size:38px"], [style*="font-size: 38px"] { font-size: 26px !important; }
  [style*="font-size:36px"], [style*="font-size: 36px"] { font-size: 25px !important; }
  [style*="font-size:18px"], [style*="font-size: 18px"] { font-size: 16px !important; }

  /* CTA buttons / link rows wrap and go full width */
  [style*="display:flex"][style*="gap:14px"],
  [style*="display: flex"][style*="gap: 14px"] { flex-wrap: wrap !important; }
}

/* Footer columns stack */
@media (max-width: 860px) {
  .gk-foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px 32px !important;
  }
  /* Brand/description column spans the full width above the link columns */
  .gk-foot-grid > div:first-child { grid-column: 1 / -1 !important; }
}

@media (max-width: 600px) {
  .gk-foot-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-top: 48px !important;
  }
  .gk-foot-grid > div:first-child { grid-column: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gk-overlay { transition: none; }
  .gk-overlay-links a { animation: none !important; opacity: 1; transform: none; }
}
