/* =========================================================
   KK SPORTS — static preview stylesheet
   Every value below comes from the design tokens in :root.
   Full token list + Elementor mapping: DESIGN-TOKENS.md
   Layout uses flexbox only (no grid, no absolute positioning
   for layout) so each block maps to an Elementor Flexbox Container.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Global colours (Elementor: Site Settings > Global Colors) */
  --c-primary:   #0B1E45; /* Navy: header text, dark sections, footer   */
  --c-secondary: #1C3F94; /* Royal blue: links, secondary buttons        */
  --c-accent:    #C99A2E; /* KK gold: primary buttons, highlights        */
  --c-text:      #1A2233; /* Body text on light backgrounds              */
  --c-muted:     #4A5568; /* Supporting text on light backgrounds        */
  --c-surface:   #F4F5F8; /* Alternate light section background          */
  --c-white:     #FFFFFF; /* Base background / text on dark              */

  /* Global fonts (Elementor: Site Settings > Global Fonts) */
  --f-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body:    "Inter", "Segoe UI", Arial, sans-serif;

  /* Type scale (desktop; reduced at tablet/mobile below) */
  --fs-h1: 4rem;      /* 64px */
  --fs-h2: 2.75rem;   /* 44px */
  --fs-h3: 1.5rem;    /* 24px */
  --fs-body: 1rem;    /* 16px */
  --fs-small: 0.875rem; /* 14px */
  --fs-eyebrow: 0.875rem;
  --lh-tight: 1.1;
  --lh-body: 1.6;

  /* Spacing scale (8-pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  /* Layout */
  --container-max: 1200px;  /* Elementor: Content Width (boxed) */
  --gutter: 24px;           /* Elementor: Container gap         */
  --section-pad: var(--s-8);/* Elementor: Container padding top/bottom */

  /* Shape & depth */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(11, 30, 69, 0.10);
  --border: 1px solid #DDE1EA;
}

@media (max-width: 1024px) {          /* Elementor tablet breakpoint */
  :root { --fs-h1: 3rem; --fs-h2: 2.25rem; --section-pad: var(--s-7); }
}
@media (max-width: 767px) {           /* Elementor mobile breakpoint */
  :root { --fs-h1: 2.5rem; --fs-h2: 2rem; --fs-h3: 1.375rem; --section-pad: var(--s-6); --gutter: 16px; }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); color: var(--c-primary); }
h3 { font-size: var(--fs-h3); color: var(--c-primary); }
p { margin: 0 0 var(--s-3); }
a { color: var(--c-secondary); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-accent); color: var(--c-primary);
  padding: var(--s-2) var(--s-3); z-index: 100; font-weight: 600;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. LAYOUT PRIMITIVES (= Elementor containers) ---------- */
/* .section   → outer Container, Full Width, background + padding  */
/* .container → inner Container, Boxed (max 1200), flex column      */
/* .row       → Container, direction row, wrap, gap = --gutter      */
.section { padding: var(--section-pad) var(--s-4); }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-primary); color: var(--c-white); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.row { display: flex; flex-wrap: wrap; gap: var(--gutter); }
.row--center { align-items: center; }

/* Column widths – flex-basis maps to Elementor container Width % */
.col-2 { flex: 1 1 calc(50% - var(--gutter)); min-width: 280px; }
.col-3 { flex: 1 1 calc(33.333% - var(--gutter)); min-width: 260px; }
.col-4 { flex: 0 1 calc(25% - var(--gutter) * 3 / 4); }
@media (max-width: 1024px) { .col-4 { flex-basis: calc(50% - var(--gutter) / 2); } }
@media (max-width: 767px)  { .col-4 { flex-basis: 100%; } }

/* Section heading block (Heading + Text Editor widgets) */
.section-head { max-width: 720px; }
.section-head--center { margin: 0 auto; text-align: center; }
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: var(--s-2);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--c-accent); }
.lead { font-size: 1.125rem; color: var(--c-muted); }
.section--dark .lead, .hero .lead { color: #D5DBE8; }

/* ---------- 4. BUTTONS (Elementor Button widget, 2 styles) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  font-family: var(--f-body); font-size: var(--fs-body); font-weight: 600;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn--primary { background: var(--c-accent); color: var(--c-primary); }
.btn--primary:hover { background: #B4871F; }
.btn--outline { border-color: currentColor; color: var(--c-white); background: transparent; }
.btn--outline:hover { background: var(--c-white); color: var(--c-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-white); border-bottom: var(--border);
  padding: var(--s-2) var(--s-4);
}
.site-header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo img { width: 150px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); align-items: center; }
.nav a { color: var(--c-primary); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a:hover { color: var(--c-secondary); text-decoration: underline; }
.nav .btn { color: var(--c-primary); min-height: 40px; padding: 0 var(--s-3); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--c-primary); border-radius: var(--radius);
  color: var(--c-primary); font: 600 var(--fs-small) var(--f-body); padding: var(--s-2) var(--s-3); cursor: pointer;
}
@media (max-width: 1024px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; flex-basis: 100%; }
  .js .nav.is-open { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) 0; }
}

/* ---------- 6. HERO ---------- */
.hero { background: var(--c-primary); color: var(--c-white); }
.hero h1 { color: var(--c-white); }
.hero h1 span { color: var(--c-accent); display: block; }
.hero-media img { border-radius: var(--radius-lg); width: 100%; max-height: 560px; object-fit: cover; }
.category-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.category-list li {
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: var(--s-1) var(--s-3); font-size: var(--fs-small);
}

/* ---------- 7. CARDS (Products / Services / Testimonials) ---------- */
.card {
  background: var(--c-white); border: var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 767px) { .card-media img { aspect-ratio: 4 / 3; } }
.card-body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--c-muted); font-size: 0.9375rem; }
.price { font-weight: 600; color: var(--c-primary); margin-top: auto !important; padding-top: var(--s-2); }

.service { padding: var(--s-5); gap: var(--s-3); }
.icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--c-primary); color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 28px; height: 28px; }
.service p { color: var(--c-muted); margin: 0; }

.testimonial { padding: var(--s-5); gap: var(--s-3); margin: 0; }
.testimonial blockquote { margin: 0; font-size: 1.0625rem; }
.testimonial figcaption { font-weight: 600; color: var(--c-primary); }
.stars { color: var(--c-accent); letter-spacing: 2px; }

/* ---------- 8. VIDEOS ---------- */
.video-frame {
  aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg);
  background: #13295A; color: var(--c-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  text-align: center; padding: var(--s-4);
}
.video-frame svg { width: 64px; height: 64px; color: var(--c-accent); }
.video-caption { margin-top: var(--s-3); font-weight: 600; }

/* ---------- 9. FAQ (Elementor Accordion widget) ---------- */
.faq { max-width: 820px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: var(--s-3); }
.faq details { background: var(--c-white); border: var(--border); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; padding: var(--s-4); font-weight: 600; color: var(--c-primary);
  list-style: none; display: flex; justify-content: space-between; gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-secondary); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 var(--s-4) var(--s-4); color: var(--c-muted); }

/* ---------- 10. CONTACT ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.contact-list strong { display: block; color: var(--c-white); font-size: 1.125rem; }
.contact-list a { color: var(--c-accent); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.form { background: var(--c-white); color: var(--c-text); border-radius: var(--radius-lg); padding: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: var(--s-1); flex: 1 1 100%; }
.field--half { flex: 1 1 calc(50% - var(--s-3)); min-width: 200px; }
.field label { font-weight: 600; font-size: var(--fs-small); color: var(--c-primary); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px var(--s-3); border: 1px solid #9AA3B5; border-radius: var(--radius);
  background: var(--c-white); color: var(--c-text); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: var(--fs-small); color: var(--c-muted); margin: 0; flex-basis: 100%; }
.form-status { flex-basis: 100%; font-weight: 600; color: #1B6B3A; margin: 0; }

/* ---------- 11. FOOTER ---------- */
.site-footer { background: #071431; color: #C9D1E3; padding: var(--s-7) var(--s-4) var(--s-4); font-size: var(--fs-small); }
.site-footer h2 { font-size: 1.25rem; color: var(--c-white); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: #C9D1E3; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.footer-logo { background: var(--c-white); border-radius: var(--radius); padding: var(--s-3); display: inline-flex; margin-bottom: var(--s-3); }
.footer-logo img { width: 160px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }

/* ---------- 12. PLACEHOLDER MARKER (remove before launch) ---------- */
.tbc {
  outline: 2px dashed #E0A100; outline-offset: 2px; border-radius: 4px;
}
.tbc-tag {
  display: inline-block; background: #FFF3CD; color: #6B4E00;
  font: 700 0.75rem/1.4 var(--f-body); padding: 2px 8px; border-radius: 4px;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}

/* ---------- WordPress additions ---------- */
.kk-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status--err { color:#B42318; }
