/* ============================================================
   Champion Sample Cards — Bold Swatch-Forward theme
   ============================================================ */

:root {
  --cs-red: #e8384f;
  --cs-orange: #f5a623;
  --cs-yellow: #f7d716;
  --cs-green: #4caf50;
  --cs-blue: #2d9cdb;
  --cs-purple: #9b59b6;

  --ink: #1c1c22;
  --ink-soft: #4a4a55;
  --paper: #ffffff;
  --paper-soft: #f7f7fb;
  --line: #e6e6ef;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(28, 28, 34, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 28, 34, 0.14);

  --max-width: 1140px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img, svg { max-width: 100%; display: block; }

/* ---------- Swatch rainbow helpers ---------- */
.swatch-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

.rainbow-rule {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--cs-red), var(--cs-orange), var(--cs-yellow),
    var(--cs-green), var(--cs-blue), var(--cs-purple));
  border-radius: 999px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand .logo-mark { width: 40px; height: 40px; }
.brand .brand-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--cs-red); }

.nav-contact {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-contact { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(232,56,79,0.10), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(45,156,219,0.12), transparent 42%),
    radial-gradient(circle at 70% 85%, rgba(155,89,182,0.10), transparent 45%),
    var(--paper-soft);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-red);
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--cs-red); }

.hero-lead { font-size: 1.1rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--cs-red), var(--cs-orange));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232,56,79,0.28);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* ---------- Hero visual: swatch fan ---------- */
.swatch-fan {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.swatch-card {
  position: absolute;
  width: 46%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.swatch-card .grid {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  border-radius: 5px;
  overflow: hidden;
}
.swatch-card .grid div:nth-child(1){background:var(--cs-red);}
.swatch-card .grid div:nth-child(2){background:var(--cs-orange);}
.swatch-card .grid div:nth-child(3){background:var(--cs-yellow);}
.swatch-card .grid div:nth-child(4){background:var(--cs-green);}
.swatch-card .grid div:nth-child(5){background:var(--cs-blue);}
.swatch-card .grid div:nth-child(6){background:var(--cs-purple);}

.swatch-card.c1 { top: 4%; left: 6%; transform: rotate(-12deg); z-index: 1; }
.swatch-card.c2 { top: 18%; left: 46%; transform: rotate(8deg); z-index: 2; }
.swatch-card.c3 { top: 46%; left: 22%; transform: rotate(-4deg); z-index: 3; }

/* ---------- Section scaffolding ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-soft); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 920px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-art {
  height: 170px;
  position: relative;
  overflow: hidden;
}
.card-art img,
.detail-visual img,
.capability-visual img,
.swatch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swatch-card img { border-radius: 5px; }

.card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.45em; }
.card-body p { font-size: 0.95rem; flex: 1; }
.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* product-specific art gradients */
.art-tags { background: linear-gradient(135deg, var(--cs-red), var(--cs-orange)); }
.art-windowed { background: linear-gradient(135deg, var(--cs-blue), var(--cs-purple)); }
.art-cutting { background: linear-gradient(135deg, var(--cs-green), var(--cs-blue)); }
.art-print { background: linear-gradient(135deg, var(--cs-orange), var(--cs-yellow)); }
.art-die { background: linear-gradient(135deg, var(--cs-purple), var(--cs-red)); }
.art-design { background: linear-gradient(135deg, var(--cs-yellow), var(--cs-green)); }

.card-art .punch {
  position: absolute;
  top: 14px; left: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
}

/* ---------- Capability rows (used on capabilities.html) ---------- */
.capability-row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.capability-row:last-child { border-bottom: none; }
@media (max-width: 760px) {
  .capability-row { grid-template-columns: 1fr; gap: 20px; }
}
.capability-visual {
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.capability-row h3 { font-size: 1.4rem; }

/* ---------- Detail sections (products.html) ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 70px 0;
}
.detail:nth-child(even) { direction: rtl; }
.detail:nth-child(even) > * { direction: ltr; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; direction: ltr !important; }
}
.detail-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-visual .stripes {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.detail ul { margin: 18px 0 0; padding-left: 20px; color: var(--ink-soft); }
.detail li { margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--cs-red), var(--cs-purple));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-band .btn-primary { background: #fff; color: var(--cs-red); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9c9d4;
  padding: 48px 0 28px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-family: "Poppins", sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; display:flex; align-items:center; gap:10px; }
.footer-brand .logo-mark { width: 32px; height: 32px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #c9c9d4; font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8d8d98;
}
