/* ============================================================
   Sprinturf Redesign - Component styles
   Header, hero, sections, footer, mobile nav, sticky CTA, plus
   all new editorial components.

   Existing component selectors are preserved. New components
   are added at the bottom of the file in clearly labeled blocks.
   ============================================================ */

/* ============================================================
   Site header
   Sticky, blurred glass on warm paper. Hairline divider below.
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 767px) { .header-inner { height: var(--header-h-mobile); } }

.header-logo { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; }
.header-logo .wordmark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-1000);
  text-decoration: none;
  transition: color var(--t-fast);
}
.header-logo:hover .wordmark { color: var(--brand-700); }

.nav { display: none; gap: var(--sp-6); align-items: center; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
  transition: color var(--t);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--action-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active {
  color: var(--ink-1000);
  text-decoration: none;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-tel {
  display: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-900);
  text-decoration: none;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: background var(--t);
}
.header-tel:hover { background: var(--paper-100); text-decoration: none; }
@media (min-width: 768px) { .header-tel { display: inline-flex; align-items: center; gap: 0.375rem; } }
.header-tel-icon { width: 16px; height: 16px; }

/* ============================================================
   Mobile nav toggle (semantic button) and full-screen takeover
   ============================================================ */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-900);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--paper-100); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t) var(--ease-out), top var(--t) var(--ease-out);
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper-50);
  z-index: calc(var(--z-header) - 1);
  padding-top: var(--header-h-mobile);
  display: none;
  overflow-y: auto;
}
.mobile-nav[aria-hidden="false"] { display: block; }
.mobile-nav-inner {
  padding: var(--sp-6) var(--gutter) var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.mobile-nav-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--action-600);
  color: var(--paper-50);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-action);
}
.mobile-nav-link {
  display: block;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  text-transform: uppercase;
  color: var(--ink-1000);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0;
  transition: color var(--t);
}
.mobile-nav-link:hover { color: var(--brand-700); }

/* ============================================================
   Hero
   Cinematic image base, layered overlay gradient, content sits
   bottom-aligned for a magazine-cover feel.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: end;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11,15,14,0.0) 0%,
    rgba(11,15,14,0.25) 40%,
    rgba(11,15,14,0.65) 75%,
    rgba(11,15,14,0.92) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  color: var(--paper-50);
  padding: var(--sp-12) 0 var(--sp-10);
  width: 100%;
}
.hero-eyebrow {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 700;
  color: var(--brand-300);
  margin-bottom: var(--sp-3);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-5);
  color: var(--paper-50);
  max-width: 18ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 0 var(--sp-6);
  color: rgba(250,250,247,0.92);
  text-wrap: pretty;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-caption {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--gutter);
  z-index: 1;
  font-size: var(--fs-tiny);
  color: rgba(250,250,247,0.75);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}
@media (max-width: 767px) { .hero { min-height: 540px; } }

/* ============================================================
   Stats row
   Top accent bar in action red.
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
}
@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
}
.stats-row .stat {
  padding: var(--sp-5) 0;
  border-top: 4px solid var(--action-600);
}

/* ============================================================
   Sticky mobile CTA bar
   Two-cell footer: Call (brand green) and Quote (action red).
   ============================================================ */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) { .mobile-cta { display: none; } }
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--mobile-cta-h);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--paper-50);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast);
}
.mobile-cta a:first-child { border-right: 1px solid rgba(250,250,247,0.15); }
.mobile-cta a:hover { background: rgba(250,250,247,0.05); }
.mobile-cta-call { background: var(--brand-700); }
.mobile-cta-quote { background: var(--action-600); }
@media (max-width: 767px) {
  body { padding-bottom: var(--mobile-cta-h); }
  body[data-page="contact"] { padding-bottom: 0; }
  body[data-page="contact"] .mobile-cta { display: none; }
}

/* ============================================================
   Card grid for products / sports
   ============================================================ */
.product-grid, .sport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .product-grid, .sport-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid, .sport-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Quote / testimonial
   Large display quote, photo + meta cite below.
   ============================================================ */
.testimonial {
  background: var(--paper-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--sp-5);
  color: var(--ink-1000);
  text-wrap: balance;
}
.testimonial-cite { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-cite-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-200);
}
.testimonial-cite-meta strong {
  display: block;
  font-weight: 700;
  color: var(--ink-900);
}
.testimonial-cite-meta span {
  font-size: var(--fs-small);
  color: var(--ink-500);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: var(--sp-12) 0 var(--sp-6);
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.875rem;
  text-transform: uppercase;
  color: var(--paper-50);
  letter-spacing: 0.01em;
}
.footer-brand p {
  color: rgba(250,250,247,0.72);
  font-size: var(--fs-small);
  max-width: 32ch;
  line-height: var(--lh-loose);
}
.footer-col h3 {
  font-family: var(--font-text);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--paper-50);
  margin: 0 0 var(--sp-4);
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-col a {
  color: rgba(250,250,247,0.72);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--paper-50); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(250,250,247,0.15);
  font-size: var(--fs-tiny);
  color: rgba(250,250,247,0.6);
}
.footer-bottom .playcore { color: rgba(250,250,247,0.7); font-size: 0.8125rem; }
.footer-bottom a { color: rgba(250,250,247,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper-50); text-decoration: underline; }

/* ============================================================
   Tag/filter chips (existing)
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 700;
  background: var(--paper-100);
  color: var(--ink-700);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.chip-brand { background: var(--brand-100); color: var(--brand-900); border-color: var(--brand-300); }
.chip-action { background: rgba(200,16,46,0.08); color: var(--action-700); border-color: rgba(200,16,46,0.25); }

/* NEW - chip-state: chip with leading status dot */
.chip-state { gap: 0.5rem; }
.chip-state::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  flex-shrink: 0;
}
.chip-state.is-current::before { background: var(--success); box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.18); }
.chip-state.is-planned::before { background: var(--ink-500); }
.chip-state.is-blocked::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(180, 48, 37, 0.16); }

/* ============================================================
   Demo banner (shown only in demo build)
   ============================================================ */
.demo-banner {
  background: var(--action-600);
  color: var(--paper-50);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--sp-2) var(--gutter);
}
.demo-banner a { color: var(--paper-50); text-decoration: underline; }

/* ============================================================
   Utility (existing)
   ============================================================ */
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.brand { color: var(--brand-700); }
.action { color: var(--action-600); }
.ink-light { color: rgba(250,250,247,0.85); }

/* ============================================================
   ============================================================
   NEW COMPONENTS
   Editorial blocks, project galleries, marquees, comparison
   sliders, parallax containers. Each block has a one-line
   usage comment above the selector.
   ============================================================
   ============================================================ */

/* card-product: 3D-tilt-friendly product card. Set transform
   origin at center; JS in motion.js can write rotateX/rotateY. */
.card-product {
  position: relative;
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  perspective: 1200px;
  transition:
    transform var(--t-slow) var(--ease-out),
    box-shadow var(--t-slow) var(--ease-out),
    border-color var(--t);
  will-change: transform;
}
.card-product:hover {
  box-shadow: var(--shadow-product);
  border-color: var(--ink-300);
}
.card-product .card-product-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-100);
  transition: transform var(--t-slow) var(--ease-out);
}
.card-product:hover .card-product-img { transform: scale(1.03); }
.card-product .card-product-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.card-product .card-product-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  color: var(--ink-1000);
  margin: 0 0 var(--sp-2);
}
.card-product .card-product-meta {
  font-size: var(--fs-small);
  color: var(--ink-500);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* card-project: project gallery card with hover overlay caption */
.card-project {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-900);
  text-decoration: none;
  color: var(--paper-50);
  isolation: isolate;
  transition: transform var(--t-slow) var(--ease-out);
  will-change: transform;
}
.card-project:hover { transform: translateY(-3px); }
.card-project img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-expo), filter var(--t);
}
.card-project:hover img { transform: scale(1.04); filter: brightness(0.9); }
.card-project .card-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  background: linear-gradient(
    180deg,
    rgba(11,15,14,0) 30%,
    rgba(11,15,14,0.4) 60%,
    rgba(11,15,14,0.85) 100%
  );
  pointer-events: none;
}
.card-project .card-project-eyebrow {
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 700;
  color: var(--brand-300);
  margin-bottom: var(--sp-2);
}
.card-project .card-project-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: var(--ls-display);
  color: var(--paper-50);
  margin: 0;
}
.card-project .card-project-location {
  font-size: var(--fs-small);
  color: rgba(250, 250, 247, 0.78);
  margin-top: var(--sp-2);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* marquee: auto-scrolling logo wall. Pauses on hover. JS isn't
   required - this is pure CSS animation. The .marquee-track
   should contain the same content twice for seamless loop. */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg, transparent 0, #000 10%, #000 90%, transparent 100%
  );
          mask-image: linear-gradient(
    90deg, transparent 0, #000 10%, #000 90%, transparent 100%
  );
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 48px;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
}
.marquee-item:hover { opacity: 1; filter: grayscale(0); }
.marquee-item img { max-height: 48px; width: auto; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* assumes content is duplicated */
}

/* compare-slider: drag-to-compare two-image container. The JS
   will set the --compare-position custom property (0 to 100). */
.compare-slider {
  --compare-position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-100);
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare-slider .compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-slider .compare-img-after {
  clip-path: inset(0 0 0 var(--compare-position));
}
.compare-slider .compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: var(--paper-50);
  box-shadow: 0 0 0 1px rgba(11, 15, 14, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-slider .compare-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-50);
  border: 2px solid var(--ink-1000);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}
.compare-slider .compare-label {
  position: absolute;
  top: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-tiny);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  font-weight: 700;
  background: rgba(11, 15, 14, 0.8);
  color: var(--paper-50);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.compare-slider .compare-label-before { left: var(--sp-3); }
.compare-slider .compare-label-after { right: var(--sp-3); }

/* parallax-bg: container ready for JS-driven parallax. JS writes
   to the --parallax-shift custom property (e.g., -40px to 40px). */
.parallax-bg {
  --parallax-shift: 0px;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}
.parallax-bg > .parallax-layer {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  transform: translate3d(0, var(--parallax-shift), 0);
  will-change: transform;
}
.parallax-bg > .parallax-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
