/* ── Custom Properties ── */
:root {
  --ink: #101814;
  --cream: #f4e6c6;
  --mustard: #e2bb1e;
  --coral: #d8522f;
  --green: #194b36;
  --gold: #f1b72c;
  --bg: var(--mustard);
  --panel: var(--cream);
  --headline: var(--green);
  --text: var(--ink);
  --accent: var(--gold);
  --button: var(--coral);
  --buttonText: #fff;
  --menuBg: rgba(255, 255, 255, .25);
  --shadow: rgba(0, 0, 0, .23);
}

html[data-theme="cream"] {
  --bg: var(--cream);
  --panel: #fff3d3;
  --headline: var(--coral);
  --text: var(--ink);
  --menuBg: rgba(226, 187, 30, .55);
  --shadow: rgba(26, 20, 12, .18);
}

html[data-theme="garage"] {
  --bg: #11150f;
  --panel: #1c2219;
  --headline: var(--gold);
  --text: var(--cream);
  --button: var(--gold);
  --buttonText: #111;
  --menuBg: rgba(241, 183, 44, .15);
  --shadow: rgba(0, 0, 0, .42);
}

/* ── Reset & Base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ── Texture overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .24) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 66%, rgba(0, 0, 0, .16) 0 2px, transparent 3px);
  background-size: 54px 54px, 78px 78px;
  z-index: -1;
}

.site { min-height: 100vh; overflow: hidden; position: relative; }

/* ── Starburst decorations ── */
.starburst {
  position: absolute;
  z-index: 0;
  width: var(--s, 46px);
  height: var(--s, 46px);
  opacity: var(--o, .72);
  pointer-events: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .18));
}
.starburst::before,
.starburst::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.starburst::after {
  transform: rotate(45deg) scale(.62);
  background: var(--panel);
  opacity: .95;
}
.starburst.black::before { background: var(--text); }
.starburst.green::before { background: var(--green); }

.s1 { --s: 72px; left: 5vw; top: 145px; }
.s2 { --s: 42px; left: 35vw; top: 120px; }
.s3 { --s: 58px; right: 9vw; top: 185px; }
.s4 { --s: 26px; right: 22vw; top: 92px; }
.s5 { --s: 34px; left: 12vw; top: 430px; }

/* ── Header / Topbar ── */
.topbar {
  position: relative;
  height: 340px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  z-index: 2;
}

.logo {
  position: absolute;
  left: -25px;
  top: 8px;
  width: 455px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 14px 0 var(--shadow));
  z-index: 5;
}
.logo img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.nav {
  position: absolute;
  top: 88px;
  right: 120px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 6;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .06em;
  padding: 10px 14px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: var(--menuBg);
  box-shadow: 4px 4px 0 var(--shadow);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 62px) 46px;
  position: relative;
  z-index: 1;
}
.copy h1 {
  margin: 0;
  color: var(--headline);
  font-size: clamp(58px, 9.4vw, 135px);
  line-height: .8;
  letter-spacing: -.07em;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 var(--shadow);
}
.copy p {
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 900;
  max-width: 720px;
  margin: 26px 0 0;
}
.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 18px 28px;
  background: var(--button);
  color: var(--buttonText);
  text-decoration: none;
  font-weight: 950;
  border: 4px solid var(--text);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--text);
}
.hero-art {
  justify-self: end;
  width: min(650px, 100%);
  transform: rotate(2deg);
  filter: drop-shadow(15px 18px 0 var(--shadow));
}
.hero-art img { width: 100%; display: block; }

/* ── Content Panels ── */
.panel {
  margin: 0 clamp(18px, 4vw, 62px) 28px;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.divider::before,
.divider::after {
  content: "";
  width: min(160px, 24vw);
  height: 2px;
  background: var(--green);
  opacity: .55;
}
.mini-star {
  width: 22px;
  height: 22px;
  background: var(--accent);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--headline);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.03em;
  text-align: center;
  font-style: italic;
}

/* ── Pills ── */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  border: 3px solid var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 950;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--shadow);
}

/* ── Style Groups (accordion) ── */
.style-groups { max-width: 1200px; margin: 0 auto; display: grid; gap: 12px; }

.style-group {
  border: 3px solid var(--text);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}
.style-group summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.style-group summary::-webkit-details-marker { display: none; }

.group-meta { display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.group-name {
  font-weight: 950;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--headline);
}
.group-count {
  font-size: 12px;
  font-weight: 850;
  opacity: .6;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.group-preview { display: flex; gap: 8px; flex: 1; }
.group-preview img {
  width: 90px;
  object-fit: contain;
  image-rendering: smooth;
  padding: 4px;
}

.group-arrow {
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-right: 6px;
  margin-top: -4px;
}
.style-group[open] .group-arrow { transform: rotate(-135deg); margin-top: 4px; }

.style-group .rim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px 18px 18px;
  border-top: 2px solid rgba(16, 24, 20, .15);
}
.rim-card { text-align: center; }
.rim-card img {
  width: 100%;
  object-fit: contain;
  display: block;
  image-rendering: smooth;
  padding: 10px;
}
.rim-card span {
  display: block;
  padding: 8px 6px;
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── SEO / Info copy ── */
.seo-copy {
  max-width: 980px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

/* ── Info grid ── */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  border: 2px solid rgba(16, 24, 20, .28);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, .10);
  min-height: 150px;
  text-align: center;
}
.info-card h3 {
  margin: 0 0 10px;
  color: var(--headline);
  font-size: 24px;
  text-transform: uppercase;
}
.info-card p,
.note { font-weight: 900; line-height: 1.35; }
.note {
  text-align: center;
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 20px;
}

/* ── FAQ ── */
.faq { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  border: 2px solid rgba(16, 24, 20, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .10);
  padding: 14px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 950;
  color: var(--headline);
  text-transform: uppercase;
}
.faq p { margin: 10px 0 0; font-weight: 850; line-height: 1.45; }

/* ── Footer ── */
.footer {
  max-width: 1320px;
  margin: 30px auto 40px;
  padding: 22px clamp(24px, 4vw, 62px);
  border-top: 3px solid rgba(16, 24, 20, .35);
  text-align: center;
  font-weight: 900;
}

/* ── Social Links ── */
.social-topbar {
  position: absolute;
  top: 142px;
  right: 120px;
  display: flex;
  gap: 10px;
  z-index: 6;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.social-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  text-decoration: none;
  opacity: .9;
}
.social-nav-btn:hover { opacity: 1; }
.social-topbar .social-nav-btn svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.social-links .social-nav-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ── Theme Toggle ── */
.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 3px solid var(--text);
  background: var(--panel);
  border-radius: 999px;
  box-shadow: 7px 7px 0 var(--shadow);
}
.theme-toggle button {
  border: 3px solid var(--text);
  color: var(--text);
  background: var(--menuBg);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 950;
  cursor: pointer;
}
.theme-toggle button.active {
  background: var(--button);
  color: var(--buttonText);
}
.theme-toggle .theme-main { display: none; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .topbar {
    height: auto;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px clamp(14px, 4vw, 22px) 0;
    position: relative;
  }
  .logo {
    position: relative;
    left: auto;
    top: auto;
    width: min(570px, 94vw);
    transform: rotate(-6deg);
    margin: 0 auto 2px;
    filter: drop-shadow(0 14px 0 var(--shadow));
  }
  .nav {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 6;
  }
  .nav a {
    min-width: auto;
    padding: 7px 10px;
    font-size: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
    text-align: center;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-bottom: 26px;
  }
  .copy { text-align: left; }
  .copy h1 {
    font-size: clamp(54px, 15vw, 84px);
    line-height: .84;
    letter-spacing: -.065em;
  }
  .copy p {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.25;
    margin-left: 0;
    margin-right: 0;
  }
  .hero-art { justify-self: center; max-width: 390px; margin-top: 26px; }
  .info-grid { grid-template-columns: 1fr; }
  .s1 { --s: 48px; left: 3vw; top: 170px; }
  .s2 { display: none; }
  .s3 { --s: 40px; right: 5vw; top: 220px; }
  .s4 { display: none; }
  .s5 { display: none; }
  .theme-toggle {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .theme-toggle .theme-main {
    display: block;
    position: relative;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: var(--button);
    border: 3px solid var(--text);
    z-index: 3;
  }
  .theme-toggle button[data-theme] {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0) scale(.65);
    transition: .2s ease;
  }
  .theme-toggle.open button[data-theme] {
    opacity: 1;
    pointer-events: auto;
  }
  .theme-toggle.open button[data-theme="mustard"] { transform: translate(-72px, 0) scale(1); }
  .theme-toggle.open button[data-theme="cream"]   { transform: translate(-52px, -52px) scale(1); }
  .theme-toggle.open button[data-theme="garage"]  { transform: translate(0, -72px) scale(1); }
  .theme-toggle button[data-theme="mustard"] { background: #e2bb1e; }
  .theme-toggle button[data-theme="cream"]   { background: #f4e6c6; }
  .theme-toggle button[data-theme="garage"]  { background: #11150f; }
  .theme-toggle button.active { outline: 4px solid var(--coral); }

  /* ── Social topbar mobile ── */
  .social-topbar {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin: 10px auto 4px;
  }

  /* ── Style Groups mobile ── */
  .style-group summary {
    gap: 10px;
    padding: 12px 14px;
  }
  .group-meta { min-width: 80px; }
  .group-name { font-size: 16px; }
  .group-count { font-size: 11px; }
  .group-preview img { width: 54px; }
  .group-preview img:nth-child(n+4) { display: none; }
  .style-group .rim-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 12px 14px 14px;
    gap: 10px;
  }
  .rim-card span { font-size: 11px; padding: 6px 4px; }
}
