/* ============================================================================
   DASHBOARD-MATCHED THEME LAYER
   Aligns the marketing site with the "4K / 8K Gold" admin dashboard
   (Velzon-style, dark mode, gold accent, HK Grotesk typography).

   Loaded AFTER css/style.css. Changes look & feel only — never content/SEO.
   To revert: remove the <link> to this file in includes/site-head.php.
   ============================================================================ */

/* Real HK Grotesk (dashboard font). Only the LIGHT weight file is available,
   so it's used for normal text; headings (600/700) fall back to Hanken Grotesk
   to avoid synthetic-bold mush. Add hkgrotesk-{regular,medium,semibold,bold}.woff
   to /fonts/hkgrotesk/ and extend these @font-face rules to go fully native. */
@font-face {
  font-family: 'hkgrotesk';
  src: local('HK Grotesk Light'), local('hkgrotesk light'),
       url('../fonts/hkgrotesk/hkgrotesk-light.woff') format('woff');
  /* Single Light file declared across the full weight range so headings render
     the real HK Grotesk cleanly (no synthetic-bold mush). */
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* HK Grotesk is the dashboard font (premium). Hanken Grotesk is the open
     equivalent it derives from; if the real hkgrotesk webfonts are added later
     they take priority automatically via the stack below. */
  /* Body uses the REAL HK Grotesk (light .woff you provided). */
  --dash-font: 'hkgrotesk', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Headings/buttons also use the real HK Grotesk (Light) for one consistent,
     elegant look across the whole site. */
  --dash-font-strong: 'hkgrotesk', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --dash-gold-1: #fcdd8d;
  --dash-gold-2: #e0b53a;
  --dash-radius: 0.75rem;
  --dash-shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 32px -16px rgba(0,0,0,.65);
}

/* ----- Typography: HK Grotesk body + Hanken (bold twin) for headings ----- */
body,
p, li, td, th, label, .excerpt, .sub-heading,
input, select, textarea, .form-control,
.site-menu a, .site-mobile-menu a, .group-name, .channel-name, .nav-link {
  font-family: var(--dash-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.heading, .rspec-title, .rspec-sub, .caption, .caption-2,
.btn, .counter, .calc-result-num {
  font-family: var(--dash-font-strong);
}
/* Dashboard headings are tightly tracked */
h1, h2, .heading, .rspec-title {
  letter-spacing: -0.015em;
}
/* h2 + section titles stay LIGHT (the elegant look) */
h2, .rspec-title { font-weight: 400; }

/* Only the main H1 gets a little weight. We have just the Light HK Grotesk file,
   so render H1 from the SAME file but with a synthetic bold for extra presence
   (a dedicated face declared at 400 so requesting 700 synthesizes the weight). */
@font-face {
  font-family: 'hkgrotesk-h1';
  src: local('HK Grotesk'), url('../fonts/hkgrotesk/hkgrotesk-light.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
h1, h1.heading {
  font-family: 'hkgrotesk-h1', 'hkgrotesk', 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  /* Reliable "a little bold" for the Light file: thicken the strokes slightly. */
  -webkit-text-stroke: 0.6px currentColor;
  text-stroke: 0.6px currentColor;
}

/* ----- Gold text selection (matches the dashboard accent) ----- */
::selection { background: rgba(252, 221, 141, 0.85); color: #111; }
::-moz-selection { background: rgba(252, 221, 141, 0.85); color: #111; }

/* ----- Thin custom scrollbar like the dashboard ----- */
* { scrollbar-width: thin; scrollbar-color: #e0b53a rgba(255,255,255,0.06); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fcdd8d, #e0b53a);
  border-radius: 10px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #e0b53a; }

/* ----- Cards: softer Velzon radius + subtle elevation ----- */
.group-card, .channel-card, .stat-card, .calc-card, .calc-result,
.sp2-card, .faq-item, .pricing-card, .pricing-body, .feature-card {
  border-radius: var(--dash-radius);
}
.stat-card, .calc-card, .sp2-card, .faq-item {
  box-shadow: var(--dash-shadow);
}

/* ----- Dropdown (desktop "Playlist") — match dashboard menu surface ----- */
@media (min-width: 992px) {
  .site-nav .site-navigation .site-menu .has-children .dropdown {
    border-radius: var(--dash-radius) !important;
    box-shadow: var(--dash-shadow) !important;
  }
}

/* ----- Buttons: keep brand shape, add the dashboard's crisp transition ----- */
.btn { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn.btn-primary { font-weight: 700; }
.btn.btn-primary:active { transform: translateY(1px); }

/* ----- Floating WhatsApp + back-to-top stay above the new shadows ----- */
.wa-float { box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

/* ============================================================================
   TOPBAR — mirror the dashboard's solid header bar
   The dashboard uses an opaque dark topbar with a hairline border + soft shadow.
   ============================================================================ */
.site-nav {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(9, 12, 20, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(252, 221, 141, 0.18);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.7);
}
/* Sticky/scrolled state from the template — keep it consistent with the bar */
.sticky-wrapper.is-sticky .site-navbar,
.site-nav.scrolled {
  background: rgba(7, 9, 15, 0.92) !important;
  border-bottom: 1px solid rgba(252, 221, 141, 0.22);
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.8);
}

/* ============================================================================
   FOOTER — mirror the dashboard's footer (surface + compact bottom bar)
   ============================================================================ */
.site-footer {
  /* Simple solid dark footer — no gradient. */
  border-top: 0;
  background: rgba(9, 12, 20, 0.88);
  position: relative;
  z-index: 1;
  width: 100%;
  /* Extend the SAME dark tone below the footer to past the bottom of the page,
     so no website (galaxy) background shows after the footer. */
  box-shadow: 0 50vh 0 50vh rgba(9, 12, 20, 0.88);
}
.site-footer .widget h3 { letter-spacing: -0.01em; }
/* Bottom copyright row → dashboard-style compact bar */
.site-footer .row.mt-5 {
  margin-top: 2.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 18px;
}
.site-footer .row.mt-5 p {
  color: #8a93a5;
  font-size: 13px;
  margin-bottom: 0;
}

/* ============================================================================
   CARDS — Velzon surface fill so panels read as solid dashboard cards
   ============================================================================ */
.stat-card, .sp2-card, .faq-item, .group-card, .channel-card {
  background-color: rgba(255, 255, 255, 0.025);
}
.stat-card:hover, .sp2-card:hover, .group-card:hover, .channel-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* ============================================================================
   GOLD BUTTON TEXT — force dark brown so the label is always readable
   The gold gradient (btn-primary) was inheriting white/gold link colors in
   some contexts (footer, nav), making the text nearly invisible on gold.
   ============================================================================ */
.btn.btn-primary,
.btn.btn-primary:link,
.btn.btn-primary:visited,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
a.btn.btn-primary,
.site-footer a.btn.btn-primary,
.site-nav a.btn.btn-primary,
.btn.btn-primary * {
  color: #2b1a00 !important; /* dark brown, reads as near-black on gold */
}
/* Gold solid buttons in the pricing / start-subscription sections too */
.sp2-btn--solid, .sp2-btn--solid:hover,
.siptv-btn--solid, .siptv-btn--solid:hover,
.dx-btn-soft-gold:hover {
  color: #2b1a00 !important;
}
