/*
Theme Name: CanAm Market
Theme URI: https://example.com/canam-market
Author: OpenAI
Author URI: https://openai.com
Description: Dark, aggressive WordPress theme for a Can-Am buggy parts marketplace. Built as a clean design starter with future e-commerce expansion in mind.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: canam-market
*/

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #161616;
  --panel-2: #1c1c1c;
  --line: rgba(255,255,255,0.08);
  --text: #f4f4f4;
  --muted: #b4b4b4;
  --accent: #ffd100;
  --accent-2: #ffb800;
  --danger: #ff5c5c;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(255,209,0,0.12), transparent 20%),
    linear-gradient(180deg, #0b0b0b 0%, #080808 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.03em; }
.section-lead { max-width: 760px; color: var(--muted); margin: 0 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 800; letter-spacing: .02em;
  transition: .2s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,209,0,0.22); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-secondary:hover { border-color: rgba(255,209,0,.55); color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px rgba(255,209,0,.8); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8,8,8,.75);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 82px;
}
.brand {
  display: flex; align-items: center; gap: 14px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; position: relative;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(255,209,0,.28);
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border-radius: 6px; border: 2px solid #000;
  transform: skewX(-18deg);
}
.brand-mark::after { inset: 15px 7px 15px 23px; background: #000; border: 0; border-radius: 3px; }
.brand-text small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .18em; margin-top: 2px; }
.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: #ddd; font-weight: 700; font-size: 14px; }
.site-nav a:hover { color: var(--accent); }
.mobile-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.hero { padding: 56px 0 78px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.hero-copy,
.hero-visual { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.hero-copy { padding: 42px; }
.hero-kicker { margin-bottom: 18px; }
.hero-title { font-size: clamp(42px, 6vw, 78px); line-height: .94; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .02em; }
.hero-title span { color: var(--accent); }
.hero-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); }
.stat-card strong { display: block; font-size: 26px; line-height: 1; margin-bottom: 6px; }
.stat-card span { color: var(--muted); font-size: 14px; }
.hero-visual { padding: 26px; display: grid; align-items: stretch; }
.machine-stage {
  position: relative; overflow: hidden; min-height: 100%; border-radius: 28px;
  background:
    radial-gradient(circle at 68% 18%, rgba(255,209,0,.22), transparent 20%),
    linear-gradient(180deg, #1a1a1a, #111);
  border: 1px solid rgba(255,255,255,.05);
}
.stage-topline {
  display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0;
  color: #f6f6f6; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.machine-card {
  position: absolute; inset: 70px 20px 22px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.06);
}
.buggy-illustration { position: absolute; inset: 0; }
.wheel { position: absolute; width: 116px; height: 116px; border-radius: 50%; background: #0a0a0a; border: 12px solid #252525; bottom: 46px; box-shadow: inset 0 0 0 12px #505050, 0 12px 22px rgba(0,0,0,.35); }
.wheel::before { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 10px #222; }
.wheel-left { left: 58px; }
.wheel-right { right: 58px; }
.frame-main { position: absolute; left: 88px; right: 84px; height: 26px; background: linear-gradient(90deg, var(--accent), #f5b400); top: 178px; border-radius: 18px; transform: skewX(-18deg); }
.frame-top { position: absolute; left: 146px; right: 156px; height: 18px; background: #343434; top: 124px; border-radius: 16px; transform: skewX(-14deg); }
.frame-front { position: absolute; left: 110px; width: 130px; height: 18px; top: 158px; background: #2a2a2a; border-radius: 14px; transform: rotate(-28deg); }
.frame-back { position: absolute; right: 128px; width: 126px; height: 18px; top: 155px; background: #2a2a2a; border-radius: 14px; transform: rotate(32deg); }
.cabin { position: absolute; left: 190px; right: 192px; top: 82px; height: 108px; border: 10px solid #3b3b3b; border-bottom-width: 14px; border-radius: 26px 26px 18px 18px; }
.panel-left, .panel-right { position: absolute; top: 158px; width: 120px; height: 54px; background: linear-gradient(145deg, var(--accent), #ffbe00); border-radius: 16px; }
.panel-left { left: 150px; clip-path: polygon(10% 0,100% 0,82% 100%,0 100%); }
.panel-right { right: 160px; clip-path: polygon(0 0,90% 0,100% 100%,18% 100%); }
.light-bar { position: absolute; left: 208px; right: 208px; top: 110px; height: 10px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,209,0,.2), rgba(255,209,0,.95), rgba(255,209,0,.2)); box-shadow: 0 0 25px rgba(255,209,0,.45); }
.stage-label { position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; justify-content: space-between; gap: 16px; }
.pill { padding: 12px 16px; border-radius: 999px; background: rgba(0,0,0,.36); border: 1px solid rgba(255,255,255,.08); color: #f6f6f6; font-size: 13px; }
.pill strong { color: var(--accent); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.category-card { min-height: 230px; position: relative; overflow: hidden; }
.category-card h3 { margin: 18px 0 10px; font-size: 24px; text-transform: uppercase; }
.category-card p { color: var(--muted); margin: 0 0 14px; }
.category-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,209,0,.12); color: var(--accent); border: 1px solid rgba(255,209,0,.22); }
.category-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,0,.22), transparent 65%); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { padding: 16px; }
.product-top {
  min-height: 170px; border-radius: 20px; border: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, #1b1b1b, #111); position: relative; overflow: hidden; margin-bottom: 16px;
}
.part-visual { position: absolute; inset: 18px; }
.part-ring, .part-shock, .part-belt, .part-arm { position: absolute; inset: 0; }
.part-ring::before { content: ""; position: absolute; width: 104px; height: 104px; border-radius: 50%; border: 14px solid #666; left: calc(50% - 52px); top: 28px; box-shadow: inset 0 0 0 10px #222; }
.part-ring::after { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); left: calc(50% - 18px); top: 62px; }
.part-shock::before { content: ""; position: absolute; width: 24px; height: 128px; background: #555; left: calc(50% - 12px); top: 18px; border-radius: 20px; }
.part-shock::after { content: ""; position: absolute; width: 80px; height: 108px; left: calc(50% - 40px); top: 28px; background: repeating-linear-gradient(180deg, var(--accent) 0 7px, transparent 7px 13px); border-radius: 30px; filter: drop-shadow(0 8px 16px rgba(255,209,0,.18)); }
.part-belt::before { content: ""; position: absolute; width: 138px; height: 88px; border: 14px solid #444; border-radius: 60px; transform: rotate(-12deg); left: calc(50% - 69px); top: 36px; }
.part-belt::after { content: ""; position: absolute; width: 80px; height: 16px; background: var(--accent); border-radius: 20px; transform: rotate(-12deg); left: calc(50% - 40px); top: 72px; }
.part-arm::before { content: ""; position: absolute; width: 136px; height: 16px; background: #575757; border-radius: 30px; left: calc(50% - 68px); top: 70px; transform: rotate(18deg); box-shadow: 0 0 0 6px #222 inset; }
.part-arm::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); left: calc(50% + 34px); top: 60px; box-shadow: 0 0 0 8px #303030; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.product-card h3 { margin: 10px 0 8px; font-size: 22px; }
.price { font-size: 24px; font-weight: 900; color: var(--accent); }
.product-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,209,0,.4); }
.small-note { color: var(--muted); font-size: 13px; margin-top: 10px; }

.highlight-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch; }
.feature-list { display: grid; gap: 14px; }
.feature-item { padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.feature-item h4 { margin: 0 0 6px; font-size: 18px; }
.feature-item p { margin: 0; color: var(--muted); }
.promise-card { position: relative; overflow: hidden; }
.promise-card::before { content: ""; position: absolute; inset: auto -80px -120px auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,0,.24), transparent 65%); }
.big-number { font-size: clamp(56px, 10vw, 120px); line-height: 1; font-weight: 900; color: var(--accent); margin-bottom: 14px; }

.cta-panel { padding: 34px; border-radius: 30px; background: linear-gradient(135deg, rgba(255,209,0,.12), rgba(255,209,0,.03)); border: 1px solid rgba(255,209,0,.18); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cta-panel h3 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; }
.cta-panel p { margin: 0; color: var(--muted); max-width: 700px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 22px; padding: 34px 0; }
.footer-col h4 { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col p, .footer-col li, .footer-col a { color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.subfooter { border-top: 1px solid var(--line); padding: 14px 0 26px; color: var(--muted); font-size: 14px; }

.notice { padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255,209,0,.18); background: rgba(255,209,0,.08); color: #f8f0c4; margin-top: 14px; }
.page-hero { padding: 64px 0 24px; }
.page-card { margin-bottom: 32px; }

@media (max-width: 1080px) {
  .hero-grid, .highlight-wrap, .products-grid, .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .mobile-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 10px); background: #101010; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-actions .desktop-only { display: none; }
  .hero-grid, .highlight-wrap, .grid-3, .products-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-visual, .card { padding: 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .machine-card { inset: 68px 10px 12px; }
  .wheel { width: 86px; height: 86px; bottom: 32px; border-width: 10px; }
  .wheel-left { left: 30px; }
  .wheel-right { right: 30px; }
  .frame-main { left: 50px; right: 44px; top: 154px; }
  .frame-top { left: 88px; right: 98px; top: 106px; }
  .frame-front { left: 50px; top: 134px; width: 90px; }
  .frame-back { right: 54px; top: 134px; width: 90px; }
  .cabin { left: 108px; right: 108px; top: 76px; height: 90px; }
  .panel-left { left: 86px; top: 138px; width: 90px; }
  .panel-right { right: 90px; top: 138px; width: 90px; }
  .light-bar { left: 122px; right: 122px; top: 102px; }
}
