/* ==========================================================
   Suffo Motors – product pages (shared stylesheet)
   Each page sets its own accent colour via --accent on <body>.
   ========================================================== */

:root {
  --bg: #0d0f12;
  --bg-2: #15181d;
  --card: #1a1e24;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --muted: #9aa1ab;
  --brand-red: #e3222b;
  --accent: #e3222b;          /* overridden per product */
  --accent-soft: rgba(227, 34, 43, 0.25);
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: 20px; letter-spacing: 0.5px;
  background: var(--brand-red); color: #fff;
  padding: 2px 8px 1px; border-radius: 6px;
  transform: skewX(-10deg);
}
.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: 2.5px; text-transform: uppercase;
}
.topbar .range-link {
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 44px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
/* thin red speed stripe, echoing the bottle label */
.hero::before {
  content: "";
  position: absolute; left: -10%; right: -10%; top: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--accent) 70%, transparent);
}

.hero-grid { display: grid; gap: 28px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-red); }

.grade {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-style: italic;
  font-size: clamp(64px, 19vw, 132px);
  line-height: 0.92; letter-spacing: -1px;
  margin: 10px 0 6px;
  background: linear-gradient(180deg, #ffffff 30%, #b9bec6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; font-size: 24px; letter-spacing: 1px; text-transform: uppercase;
}
.tagline { color: var(--muted); margin-top: 8px; max-width: 34ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.chip.strong { background: var(--accent); border-color: transparent; color: #fff; }

.hero-visual { position: relative; }
.hero-visual img {
  margin: 0 auto;
  width: auto; max-width: min(100%, 460px);
  max-height: 340px;            /* keeps tall 1 L bottles from pushing content off-screen */
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
/* floor reflection under the bottles */
.hero-visual::after {
  content: "";
  display: block; margin: -6px auto 0; width: 70%; height: 22px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
}

/* Typographic visual used when no bottle photo exists */
.type-visual {
  aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto;
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(145deg, #2a2f37, #121418);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.type-visual .big {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  font-size: 110px; line-height: 1; color: #fff;
}
.type-visual .big span { color: var(--brand-red); }
.type-visual .small { letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Sections ---------- */
section.block { padding: 44px 0; border-top: 1px solid var(--line); }

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; font-size: 30px; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Key benefits – numbered cards */
.benefits { display: grid; gap: 12px; }
.benefit {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 16px;
}
.benefit .num {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic;
  font-size: 30px; line-height: 1; color: var(--accent);
}
.benefit h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* Application panel */
.application {
  position: relative;
  background: linear-gradient(135deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 17px;
}

/* Packs available */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pack {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.pack img { height: 150px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.pack .size { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px; }
.pack .note { color: var(--muted); font-size: 13px; }

/* Specification table */
.specs { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; font-size: 14px; }
.specs td { font-weight: 600; }

/* ---------- Range strip ---------- */
.range { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.range a {
  scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.range a:hover { border-color: var(--accent); transform: translateY(-2px); }
.range a.current { border-color: var(--accent); }
.range .thumb { height: 96px; display: flex; align-items: center; justify-content: center; }
.range .thumb img { max-height: 96px; width: auto; }
.range .thumb .txt { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 34px; color: var(--muted); }
.range .r-grade { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 22px; line-height: 1; }
.range .r-type { color: var(--muted); font-size: 13px; }

/* ---------- Range (index) page grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.p-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); }
.p-card:hover { border-color: var(--c); transform: translateY(-3px); }
.p-card .thumb { height: 170px; display: flex; align-items: center; justify-content: center; }
.p-card .thumb img { max-height: 170px; width: auto; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5)); }
.p-card .thumb .txt { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 64px; }
.p-card .g { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 36px; line-height: 1; }
.p-card .t { color: var(--muted); font-size: 14px; }
.p-card .go { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 6px; }
footer strong { color: var(--text); font-family: "Barlow Condensed", sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 16px; }

/* ---------- Entrance animation (respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.7s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  .hero-visual { animation: float-in 0.9s 0.1s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes float-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
}

/* ---------- Larger screens ---------- */
@media (min-width: 820px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
}
