/* Chili Cheeks Candy — mobile-first */
:root {
  --red: #c1121f;
  --red-deep: #8f0c16;
  --ink: #171010;
  --ink-soft: #2b2121;
  --cream: #faf3e8;
  --cream-dim: #f0e4d2;
  --gold: #d9a441;
  --radius: 18px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* keep anchored sections clear of the fixed topbar */
html { scroll-padding-top: 130px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 0.6rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--gold); }
.hl { color: var(--red); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sub { max-width: 60ch; color: #5a4a44; margin-bottom: 2.2rem; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .section-sub { color: #cbbfae; }

/* ---------- top bar: banner + nav pinned together, never overlapping ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.announce {
  background: var(--gold); color: var(--ink);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-align: center; padding: 0.45rem 1rem;
}
@media (max-width: 560px) {
  .announce { font-size: 0.68rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: rgba(0,0,0,0.25); }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: rgba(23, 16, 16, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; }
.brand-logo {
  width: 70px; height: 70px; border-radius: 50%; flex: none; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.45);
}
.brand-name { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-name em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.cart-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 0.95rem;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.cart-pill:hover { filter: brightness(1.06); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--cream); border-radius: 2px; margin: 5px 0; }

/* ---------- hero (your real candy; mobile-safe) ---------- */
.hero {
  position: relative;
  /* Fallback first, then the mobile-chrome-aware unit */
  min-height: 92vh;
  min-height: 92svh;
  max-height: 880px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 85% 15%, rgba(193,18,31,0.55), transparent 60%),
    radial-gradient(70% 60% at 8% 92%, rgba(217,164,65,0.16), transparent 60%),
    radial-gradient(40% 35% at 50% 50%, rgba(193,18,31,0.18), transparent 70%),
    linear-gradient(160deg, #261016 0%, #171010 55%, #0e0909 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1120px, 92vw); margin-inline: auto;
  padding: clamp(8.75rem, 14vh, 9rem) 0 clamp(3.5rem, 8vh, 5rem);
  display: grid; gap: 2.8rem; align-items: center;
}
@media (min-width: 920px) {
  .hero-content { grid-template-columns: 1.05fr 0.95fr; }
}
/* narrower topbars are taller (banner wraps) — keep hero clear of it */
@media (max-width: 920px) {
  .hero-content { padding-top: 172px; }
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.7rem, 11vw, 5.2rem); text-wrap: balance; }
.hero h1 .hl { color: var(--gold); }
.hero-sub { max-width: 46ch; margin: 1.1rem 0 1.8rem; font-size: clamp(1rem, 2.6vw, 1.2rem); color: #f3e9dc; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
/* real product photos as overlapping badges */
.hero-photos { display: flex; justify-content: center; align-items: center; padding: 0.5rem 0; }
.hero-photos img {
  width: clamp(118px, 24vw, 190px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 5px solid var(--gold);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  background: #fff;
}
.hero-photos img:nth-child(1) { transform: rotate(-7deg); margin-right: -26px; }
.hero-photos img:nth-child(2) { width: clamp(150px, 30vw, 235px); border-color: #fff; z-index: 1; }
.hero-photos img:nth-child(3) { transform: rotate(7deg); margin-left: -26px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photos img { animation: floaty 5.5s ease-in-out infinite; }
  .hero-photos img:nth-child(2) { animation-delay: -1.8s; }
  .hero-photos img:nth-child(3) { animation-delay: -3.6s; }
}
@keyframes floaty { 50% { translate: 0 -12px; } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  z-index: 2; color: #fff; text-decoration: none; font-size: 1.4rem; opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 0.7rem 0; }
.marquee-track { display: inline-flex; gap: 1.6rem; white-space: nowrap; animation: slide 22s linear infinite; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.08em; }
.marquee-track i { font-style: normal; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero-scroll { animation: none; } }

/* ---------- products ---------- */
.product-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(23,16,16,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(193,18,31,0.16); }
.card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-media img { transform: scale(1.04); }
/* graphic tile for products without photos yet */
.card-media.tile { display: grid; place-items: center; position: relative; }
.card-media.tile span {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.2rem);
  color: rgba(255,255,255,0.92); letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.card-media.tile::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e63946, var(--red) 60%, var(--red-deep));
  box-shadow: 0 0 0 10px rgba(217,164,65,0.25);
  top: -34px; right: -34px; opacity: 0.9;
}
.tile-0 { background: linear-gradient(135deg, #a50e1a, #5c0a10); }
.tile-1 { background: linear-gradient(135deg, #c1121f, #7a0d14); }
.tile-2 { background: linear-gradient(135deg, #8f0c16, #3d0a0e); }
.tile-3 { background: linear-gradient(135deg, #d9a441, #8f0c16); }
.tile-4 { background: linear-gradient(135deg, #5c0a10, #c1121f); }
.tile-5 { background: linear-gradient(135deg, #7a0d14, #2b2121); }
/* size pills */
.size-pills { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.size-pill {
  flex: 1; border: 2px solid #e5d9c8; background: #fffdf8; border-radius: 10px;
  padding: 0.45rem 0.3rem; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  color: var(--ink); transition: all 0.15s;
}
.size-pill small { display: block; font-weight: 500; color: #8a7a70; font-size: 0.7rem; }
.size-pill.active { border-color: var(--red); background: #fdf0f0; }
.size-pill.active small { color: var(--red); }
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { font-size: 0.92rem; color: #6b5b54; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }
.badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--gold); color: var(--ink);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* ---------- story ---------- */
.story-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.story-grid h2 .hl { color: var(--gold); }
.story-copy p { color: #d9cec0; margin-bottom: 1rem; }
.story-points { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.story-points li {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(217,164,65,0.25);
  border-radius: 12px; padding: 0.85rem 1.1rem; color: #efe4d3; font-size: 0.95rem;
}
.story-points strong { color: var(--gold); }

/* ---------- order ---------- */
.order-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-display);
  display: grid; place-items: center; font-size: 1rem;
}
.fineprint { font-size: 0.85rem; color: #8a7a70; }
.order-card {
  background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: 0 14px 44px rgba(23,16,16,0.12);
  border-top: 6px solid var(--red);
}
.order-card h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.order-line {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px dashed #e5d9c8;
}
.order-line .o-name { flex: 1; font-weight: 600; font-size: 0.93rem; }
.order-line .o-price { font-size: 0.85rem; color: #8a7a70; }
.qty { display: inline-flex; align-items: center; gap: 0.55rem; }
.qty button {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red);
  background: #fff; color: var(--red); font-weight: 800; font-size: 1rem;
  cursor: pointer; line-height: 1;
}
.qty button:hover { background: var(--red); color: #fff; }
.qty b { min-width: 1.4rem; text-align: center; }
.field { display: grid; gap: 0.35rem; margin-top: 1rem; }
.field span { font-weight: 600; font-size: 0.88rem; }
.field small { font-weight: 400; color: #8a7a70; }
.field input, .field textarea {
  font: inherit; padding: 0.75rem 1rem; border-radius: 12px;
  border: 2px solid #e5d9c8; background: #fffdf8; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.order-summary {
  margin-top: 1.2rem; background: var(--ink); color: var(--cream);
  border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.9rem;
  white-space: pre-wrap; min-height: 3.2rem;
}
.order-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.1rem; }
.order-actions .btn-ghost { border-color: var(--red); color: var(--red); background: transparent; }
.order-actions .btn-ghost:hover { background: var(--red); color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9ab99; padding: 2.2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer p { font-size: 0.88rem; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5rem 2rem 2rem;
    background: var(--ink); flex-direction: column; gap: 1.2rem;
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
