/* ============================================================================
   Kwick Strike — Homepage V2 (Coutts CRO rewrite)
   Layout-only. Inherits the site's native type + color from the kschild theme.

   NATIVE-MATCH RULES:
   - NO @import / no font loaders. Headings use the theme's Oswald, body uses
     Montserrat (both inherited). Only the hero H1 sets rocinante-titling-variable
     to match the live #homehero h1.
   - Brand green is the theme's #08fe08. Buttons mirror the theme's .herobtn.
   - Everything scoped under .ksx-home so nothing leaks into / out of Storefront.

   v1.1 (2026-06) — consolidated staging fixes:
   hero min-height calc(100vh - nav), darker overlay + text-shadow for contrast,
   hero CTAs centered, full-bleed sections, breadcrumb hidden on this template.
   ========================================================================== */

.ksx-home { --ksx-green:#08fe08; --ksx-green-d:#06c906; --ksx-black:#000; --ksx-near:#121212;
  --ksx-panel:#1a1a1a; --ksx-border:#2a2a2a; --ksx-light:#f1f1f1; --ksx-muted:#cfcfcf; }
/* Clip horizontal overflow at the BODY (never on .ksx-home — that clips the
   full-bleed breakout). Scoped to this template only so other pages are untouched. */
body.page-template-template-homepage-v2 { overflow-x: clip; }  /* clip (not hidden) so body doesn't become a 2nd scroll container */
body.page-template-template-homepage-v2 #page { overflow-x: clip; }  /* Storefront sets #page overflow-x:hidden → also a scroll container; clip it too */
.ksx-home *, .ksx-home *::before, .ksx-home *::after { box-sizing:border-box; }
.ksx-home img { max-width:100%; display:block; }
/* Side gutters: scale from 22px (mobile) up to 48px (desktop) so content
   never hugs the screen edges at any width. Applies to every .ksx-wrap section. */
.ksx-wrap { max-width:1180px; margin:0 auto; padding:0 clamp(22px, 5vw, 48px); }

/* Full-bleed: let each section span the full viewport even though the theme
   renders our template inside a constrained content container. Inner .ksx-wrap
   keeps the actual content centered + readable. */
.ksx-home > section,
.ksx-home > .ksx-usa {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Headings inherit Oswald from the theme; body inherits Montserrat.
   color:inherit forces section headers to take their section's text color
   (#fff on dark sections; the light sections override back to black below),
   beating the parent theme's explicit dark `h2{color}`. Green emphasis spans
   keep their own color via .ksx-accent. */
.ksx-home h2, .ksx-home h3 { color:inherit; text-transform:uppercase; font-weight:700; line-height:1.18; margin:0; }
.ksx-accent { color:var(--ksx-green); }
.ksx-line { display:block; }

/* Hide the theme breadcrumb on this template (only here — leave it on shop/blog) */
.page-template-template-homepage-v2 .woocommerce-breadcrumb,
.page-template-template-homepage-v2 .storefront-breadcrumb { display:none; }

/* ---- Buttons (mirror native .herobtn) ---- */
.ksx-btn { display:inline-block; font-family:"oswald",sans-serif; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; font-size:16px; padding:15px 32px; border-radius:4px; text-align:center;
  text-decoration:none; transition:all .15s ease; cursor:pointer; }
.ksx-btn-primary { background:var(--ksx-green); color:var(--ksx-black); border:2px solid var(--ksx-green); }
.ksx-btn-primary:link, .ksx-btn-primary:visited { color:var(--ksx-black); }  /* keep label after click/Back */
.ksx-btn-primary:hover { background:var(--ksx-green-d); border-color:var(--ksx-green-d); color:var(--ksx-black); }
.ksx-btn-ghost { background:transparent; color:#fff; border:2px solid #fff; }
.ksx-btn-ghost:link, .ksx-btn-ghost:visited { color:#fff; }
.ksx-btn-ghost:hover { border-color:var(--ksx-green); color:var(--ksx-green); }
.ksx-ctas { display:flex; gap:16px; flex-wrap:wrap; margin-top:34px; justify-content:flex-start; }
.ksx-ctas-center { justify-content:center; }

/* ---- A. Hero (full-bleed offset: content left, product shows right) ---- */
.ksx-hero {
  position:relative;
  /* Fill the viewport below the 98px nav, but FLOOR at 560px (small laptops) and
     CAP at 820px so it doesn't stretch absurdly tall on large/4K monitors. */
  min-height: clamp(560px, calc(100vh - 98px), 820px);
  display:flex; align-items:center;
  background:var(--ksx-black) center / cover no-repeat;
  color:#fff; overflow:hidden;
}
.ksx-hero-overlay { position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(6,6,6,.92) 0%, rgba(6,6,6,.80) 34%, rgba(6,6,6,.40) 64%, rgba(6,6,6,.12) 100%); }
.ksx-hero-inner { position:relative; z-index:2; width:100%; max-width:1240px; margin:0 auto; padding:6vw; }
.ksx-hero-text { max-width:600px; }
.ksx-hero-h1 { font-family:"rocinante-titling-variable","oswald",sans-serif; /* native hero display font */
  text-transform:uppercase; font-weight:700; line-height:1.06; letter-spacing:.015em;
  font-size:clamp(40px,4.6vw,68px); color:#fff; margin:0; text-shadow:0 2px 18px rgba(0,0,0,.5); }
.ksx-hero-support { margin-top:22px; font-size:clamp(16px,1.3vw,19px); font-weight:500; color:#eaeaea; max-width:34em;
  text-shadow:0 1px 10px rgba(0,0,0,.6); }
.ksx-hero-support .ksx-line { display:block; }
.ksx-hero-support .ksx-line + .ksx-line { margin-top:8px; }
.ksx-trust { margin-top:38px; padding-top:24px; border-top:1px solid rgba(255,255,255,.2);
  display:grid; grid-template-columns:repeat(3,auto); gap:22px; justify-content:start; align-items:start; }
.ksx-trust-item { font-size:12.5px; color:#cfcfcf; display:flex; flex-direction:column; align-items:flex-start; gap:6px; line-height:1.3; white-space:nowrap; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.ksx-trust-item .ksx-ic { font-size:16px; }
.ksx-trust-item b { color:#fff; font-weight:700; }
.ksx-stars { color:var(--ksx-green); letter-spacing:2px; font-size:14px; }

/* ---- B. Problem / Solution ---- */
.ksx-problem { background:var(--ksx-near); color:#fff; padding:84px 0; }
.ksx-problem-h2 { font-size:clamp(24px,3.2vw,38px); max-width:820px; margin:0; text-align:left; }
.ksx-problem-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; margin-top:44px; align-items:center; }
.ksx-problem-copy p { margin:0 0 20px; color:#d4d4d4; font-size:17px; }
.ksx-problem-copy p strong { color:#fff; }
.ksx-kicker { font-family:"oswald",sans-serif; font-size:22px; text-transform:uppercase; color:var(--ksx-green); font-weight:600; }
.ksx-problem-img img { border-radius:6px; }

/* ---- C. Find Your Fit ---- */
.ksx-fit { background:var(--ksx-light); padding:84px 0; text-align:center; }
.ksx-fit h2 { font-size:clamp(28px,3.6vw,44px); color:var(--ksx-black); }
.ksx-fit .ksx-sub { max-width:620px; margin:16px auto 36px; font-size:17px; }
.ksx-tool-slot { max-width:640px; margin:0 auto; min-height:120px; display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px dashed #c4c4c4; border-radius:8px; color:#888; }
.ksx-below-tool { margin-top:26px; font-size:14px; color:#777; }

/* ---- D. Built for vehicle conditions ---- */
.ksx-mech { background:var(--ksx-black); color:#fff; padding:84px 0; }
.ksx-mech h2 { font-size:clamp(28px,3.6vw,44px); text-align:center; }
.ksx-mech-sub { text-align:center; max-width:660px; margin:14px auto 0; color:var(--ksx-muted); font-size:17px; }
.ksx-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.ksx-card { background:var(--ksx-panel); border:1px solid var(--ksx-border); border-radius:8px; padding:32px 28px; }
.ksx-card h3 { font-size:20px; color:var(--ksx-green); font-weight:600; margin-bottom:12px; }
.ksx-card p { color:var(--ksx-muted); font-size:15.5px; margin:0; }

/* ---- E. Comparison table ---- */
.ksx-compare { background:#fff; padding:84px 0; }
.ksx-compare h2 { font-size:clamp(28px,3.6vw,42px); color:var(--ksx-black); text-align:center; margin-bottom:48px; }
.ksx-table-wrap { overflow-x:auto; }
.ksx-cmp { width:100%; border-collapse:collapse; font-size:15px; min-width:720px; }
.ksx-cmp th, .ksx-cmp td { padding:16px 18px; text-align:center; border-bottom:1px solid #e4e4e4; }
.ksx-cmp th { font-family:"oswald",sans-serif; text-transform:uppercase; font-size:15px; letter-spacing:.03em; color:#666; font-weight:600; }
.ksx-cmp td:first-child, .ksx-cmp th:first-child { text-align:left; font-weight:700; color:var(--ksx-black); }
.ksx-cmp .ksx-strike-col { background:var(--ksx-black) !important; color:#fff; font-weight:700; }  /* !important beats Storefront's table zebra-striping */
.ksx-cmp th.ksx-strike-col { color:var(--ksx-green); font-size:17px; }
.ksx-cmp td.ksx-strike-col { color:var(--ksx-green); }
/* Comparison marks (text glyphs, not emoji — no white emoji boxes on the black col) */
.ksx-cmp .ksx-yes  { color:#1f9d1f; font-weight:700; font-size:18px; }
.ksx-cmp .ksx-no   { color:#c0392b; font-weight:700; font-size:17px; }
.ksx-cmp .ksx-warn { color:#c87a00; font-weight:700; font-size:15px; }
.ksx-cmp .ksx-strike-col .ksx-yes { color:var(--ksx-green); }  /* bright green check on black */

/* ---- F. Reviews ---- */
.ksx-reviews { background:var(--ksx-light); padding:84px 0; }
.ksx-reviews h2 { font-size:clamp(28px,3.6vw,42px); color:var(--ksx-black); text-align:center; margin-bottom:48px; }
.ksx-review-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ksx-review-card { background:#fff; border-radius:8px; padding:30px 26px; box-shadow:0 1px 7px rgba(0,0,0,.09); }
.ksx-rstars { color:#f5a623; font-size:18px; letter-spacing:2px; }
.ksx-verified { display:inline-block; background:#e8f5ec; color:#1f7a3a; font-size:11px; font-weight:700; text-transform:uppercase;
  padding:3px 10px; border-radius:20px; margin-left:10px; vertical-align:middle; }
.ksx-review-card p { margin:16px 0 14px; font-size:15px; color:#43454b; }
.ksx-who { font-weight:700; color:var(--ksx-black); font-size:14px; }

/* ---- Made in USA strip ---- */
.ksx-usa img { width:100%; }

/* ---- G. Personas ---- */
.ksx-personas { background:var(--ksx-near); color:#fff; padding:84px 0; }
.ksx-personas h2 { font-size:clamp(28px,3.6vw,42px); text-align:center; }
.ksx-persona-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.ksx-persona { border:1px solid var(--ksx-border); border-radius:8px; overflow:hidden; background:var(--ksx-panel); }
.ksx-ph { height:170px; background:#222 center/cover no-repeat; }
.ksx-persona-body { padding:26px; }
.ksx-persona-body h3 { font-size:19px; color:var(--ksx-green); font-weight:600; margin-bottom:10px; }
.ksx-persona-body p { color:var(--ksx-muted); font-size:15px; margin:0; }

/* ---- H. Final CTA ---- */
.ksx-final { position:relative; background:var(--ksx-black) center/cover no-repeat;
  background-image:url('https://kwickstrike.com/wp-content/themes/kschild/assets/img/ctabtm.webp'); color:#fff; padding:96px 0; text-align:center; }
.ksx-final-overlay { position:absolute; inset:0; background:rgba(0,0,0,.72); }
.ksx-final-inner { position:relative; z-index:2; }
.ksx-final h2 { font-size:clamp(30px,4vw,50px); }
.ksx-final-body { max-width:640px; margin:20px auto 0; color:#ddd; font-size:17px; }
.ksx-fine { margin-top:26px; font-size:13px; color:#999; }

/* ---- Scroll-in reveal ----
   Sections fade + rise as they enter the viewport. The hidden initial state
   only applies when JS adds .ksx-anim (so no-JS users and search crawlers see
   all content immediately), and it's fully disabled for reduced-motion users. */
.ksx-anim .ksx-reveal { opacity:0; transform:translateY(26px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); will-change:opacity, transform; }
.ksx-anim .ksx-reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .ksx-anim .ksx-reveal, .ksx-anim .ksx-reveal.is-visible { opacity:1; transform:none; transition:none; }
}

/* ---- Responsive ---- */
@media (max-width:880px){
  .ksx-problem-grid, .ksx-cards, .ksx-review-grid, .ksx-persona-grid { grid-template-columns:1fr; }
  .ksx-hero-overlay { background:linear-gradient(180deg, rgba(6,6,6,.55) 0%, rgba(6,6,6,.82) 100%); }
  .ksx-hero { background-position:68% center; }   /* favor the offset-right product on narrow screens */
  .ksx-hero-inner { padding:48px 24px; }
  /* Center the hero content on mobile (it's left-offset only on desktop). */
  .ksx-hero-text { max-width:none; text-align:center; }
  /* Tuck the subheader under the H1 — narrower measure so it doesn't spill
     past the headline on both sides. */
  .ksx-hero-support { max-width:30ch; margin-left:auto; margin-right:auto; }
  /* Tablet + phone: stack the CTAs, centered, capped at a comfortable width —
     so they neither sit awkwardly side-by-side nor stretch across the screen. */
  .ksx-ctas { flex-direction:column; align-items:center; justify-content:center; }
  .ksx-btn { width:100%; max-width:320px; }
  /* Keep the trust row 3-up (not stacked) on mobile, centered. */
  .ksx-trust { grid-template-columns:repeat(3,1fr); gap:10px; justify-content:center; }
  .ksx-trust-item { align-items:center; text-align:center; white-space:normal; }
  /* Section D header + sub left-aligned on mobile (matches Section B). */
  .ksx-mech h2, .ksx-mech-sub { text-align:left; margin-left:0; margin-right:0; }

  /* ---- Comparison table on mobile: freeze the feature column (left) AND the
     Strike column (right) so the user always sees "[feature] … [The Strike]"
     and swipes the alternatives through the middle. ---- */
  .ksx-cmp { min-width:560px; font-size:13px; }
  .ksx-cmp th, .ksx-cmp td { padding:12px 10px; }
  .ksx-cmp th:first-child, .ksx-cmp td:first-child {
    position:sticky; left:0; z-index:2; background:#fff;
    box-shadow:2px 0 5px rgba(0,0,0,.10);
  }
  .ksx-cmp th.ksx-strike-col, .ksx-cmp td.ksx-strike-col {
    position:sticky; right:0; z-index:2;   /* keeps its black bg from the base rule */
    box-shadow:-2px 0 5px rgba(0,0,0,.22);
  }
  .ksx-table-wrap::before {
    content:"\2190  swipe to compare alternatives  \2192";
    display:block; text-align:center; font-size:12px; color:#888; margin-bottom:10px;
  }
}