/* Cazul Detectivului — Ultima Tabără
   Single shared stylesheet, mobile-first. Dark "noir" theme from the
   original Shopify theme (charcoal #2b2b2b + gold #fee083). */

:root {
  --bg: #1c1c1c;
  --surface: #242424;
  --surface-2: #2b2b2b;
  --gold: #fee083;
  --gold-deep: #ffc344;
  --text: #f3f3f3;
  --muted: #b3b3b3;
  --line: #3a3a3a;
  --danger: #ff6b6b;
  --radius: 4px;
  --pill: 100px;
  --maxw: 980px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

.section { padding: 3.5rem 0; }
.section--tight { padding: 2.2rem 0; }
.section__lead { color: var(--muted); max-width: 46ch; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: #111; border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(254, 224, 131, .12); }
.btn--block { width: 100%; }
.btn--mail { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
.btn--mail:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { letter-spacing: .04em; font-size: 1.05rem; }

.nav { display: flex; gap: 1.3rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--gold); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .3rem; }

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(20,18,5,.45), rgba(18,18,18,.92)),
              url("../images/hero.png") center/cover no-repeat;
  padding: 5.5rem 0 4rem;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero h1 { margin-bottom: .4rem; }
.hero__pitch { font-size: 1.2rem; color: #e9e9e9; margin: 0 auto 1.8rem; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Generic media + grid ---------- */
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.rounded { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }

.surface { background: var(--surface-2); }

/* ---------- Product page ---------- */
.product { display: grid; gap: 2.2rem; }
@media (min-width: 860px) { .product { grid-template-columns: 1.05fr 1fr; align-items: start; } }

.gallery__main { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: .5rem;
  margin-top: .6rem;
}
.gallery__thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: #000; line-height: 0;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery__thumbs img { aspect-ratio: 1; object-fit: cover; }

.price { display: flex; align-items: baseline; gap: .7rem; margin: .4rem 0 1rem; }
.price__now { font-size: 2rem; font-weight: 700; color: var(--gold); }
.price__old { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }

.stock { display: inline-flex; align-items: center; gap: .5rem; color: #8fe39a; font-weight: 500; margin-bottom: 1.2rem; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8fe39a; display: inline-block; }

.prose p { margin: 0 0 1rem; color: #e2e2e2; }
.prose strong { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--gold); }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: #1a1a1a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem .85rem;
  width: 100%;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field--phone input { border-color: var(--gold); background: #211e14; }
.field .error { color: var(--danger); font-size: .85rem; min-height: 1em; }

/* honeypot — visually hidden, off-screen, not display:none (bots skip those) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .9rem; color: var(--muted); }
.form__status { font-size: .95rem; min-height: 1.2em; }
.form__status.ok { color: #8fe39a; }
.form__status.err { color: var(--danger); }
.divider-or {
  text-align: center; color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .1em; margin: .2rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141414;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .brand span { color: var(--text); }
.site-footer a { color: var(--gold); }
.footer__grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer__contact { display: grid; gap: .25rem; }

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 560px; margin: 0 auto; padding: 5rem 0; }
.thanks .check {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.4rem;
  background: rgba(143, 227, 154, .15); color: #8fe39a; font-size: 2.4rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #111; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Homepage — recreated Shopify sections.
   Dark -> light -> dark rhythm with torn "ripped paper" dividers.
   ============================================================ */

:root {
  --dark: #2b2b2b;        /* dark section bg — matches the torn-paper PNG charcoal */
  --paper: #ffffff;       /* light section bg — white, matches the torn-paper cutaway */
  --paper-ink: #1d1d1d;   /* text on paper */
  --paper-muted: #5a544a;
}

/* Section color schemes (replaces alternating Shopify schemes) */
.s-dark  { background: var(--dark);  color: var(--text); }
.s-light { background: var(--paper); color: var(--paper-ink); }
.s-light .eyebrow { color: #9a7b16; }
.s-light h1, .s-light h2, .s-light h3, .s-light h4 { color: #141414; }
.s-light .section__lead, .s-light .prose p { color: var(--paper-muted); }
.s-light .prose strong { color: #111; }

/* ---- Ripped-paper tear dividers (real PNG textures, transparent cutaway) ---- */
.tear { height: 34px; width: 100%; background-repeat: no-repeat; background-size: 100% 100%; margin: 0; }
@media (min-width: 760px) { .tear { height: 60px; } }
/* rip pap1: dark paper on top, torn edge revealing the light section below */
.tear--d2l { background-color: var(--paper); background-image: url("../images/tear-1.png"); }
/* rip pap 2: light on top, dark torn paper rising from the dark section below */
.tear--l2d { background-color: var(--paper); background-image: url("../images/tear-2.png"); }

/* ---- Label band (the "CAZURI:" / "BESTSELLER:" mini-headings) ---- */
.label-band { background: var(--dark); padding: 1.6rem 0 .2rem; }
.label-band h2 {
  margin: 0; text-align: center; color: #fff;
  font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: .04em;
}

/* ---- Feature row (image + text) ---- */
.feature { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 760px) { .feature { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }
.feature--center { text-align: center; }
.feature img { border-radius: var(--radius); width: 100%; }
.feature .prose { max-width: 52ch; margin-inline: auto; }
.feature .meta { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.s-light .feature .meta { color: var(--paper-muted); }

/* ---- Coming soon ---- */
.curand img { max-width: 360px; margin: 0 auto; opacity: .92; }

/* ---- "Cum funcționează" steps ---- */
.steps { display: grid; gap: 1.1rem; margin-top: 1.6rem; counter-reset: step; }
@media (min-width: 680px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  position: relative; background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.2rem 3.4rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: #141414; color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.step h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--paper-muted); font-size: .95rem; }

/* ---- FAQ (native details/summary) ---- */
.faq { max-width: 760px; margin: 1.6rem auto 0; }
.faq details { border-bottom: 1px solid rgba(0,0,0,.14); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem .2rem;
  font-weight: 600; display: flex; justify-content: space-between; gap: 1rem;
  color: #141414;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #9a7b16; font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--paper-muted); }

/* ---- Review card ---- */
.review {
  scroll-snap-align: start; background: #fff; color: #1d1d1d;
  border-radius: 8px; padding: 1.2rem;
}
.review .stars { color: #ffd700; letter-spacing: 2px; }
.review p { margin: .5rem 0; white-space: pre-line; font-size: .95rem; }
.review .who { font-weight: 600; font-size: .9rem; }
.review .when { color: #888; font-size: .8rem; }
.review__title { font-size: 1rem; margin: .2rem 0 .1rem; color: #141414; }

/* ---- Carousel (reviews) ---- */
.carousel { position: relative; margin-top: 1.4rem; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: .6rem;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 680px) { .carousel__track { grid-auto-columns: calc(33.333% - .67rem); } }
@media (min-width: 1100px) { .carousel__track { grid-auto-columns: calc(25% - .75rem); } }
.carousel__track .review { scroll-snap-align: start; height: 100%; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; z-index: 2;
  background: var(--gold); color: #111; border: 0; cursor: pointer;
  font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.carousel__btn:hover { background: var(--gold-deep); }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
@media (max-width: 680px) { .carousel__btn { display: none; } } /* swipe on mobile */

/* ---- Reviews summary (product page) ---- */
.rsum { display: grid; gap: 1.4rem; align-items: center; margin-top: 1rem; }
@media (min-width: 680px) { .rsum { grid-template-columns: auto 1fr; gap: 2.5rem; } }
.rsum__score { text-align: center; }
.rsum__num { font-size: 3rem; font-weight: 700; line-height: 1; color: #141414; }
.rsum__stars { color: #ffd700; font-size: 1.3rem; letter-spacing: 2px; }
.rsum__count { color: var(--paper-muted); font-size: .9rem; margin-top: .3rem; }
.rbar { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; align-items: center; gap: .6rem; font-size: .85rem; color: var(--paper-muted); }
.rbar__track { height: 8px; background: rgba(0,0,0,.1); border-radius: 99px; overflow: hidden; }
.rbar__fill { height: 100%; background: #ffd700; }

/* ---- Product content sections ---- */
.content-row { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 760px) { .content-row { grid-template-columns: 1fr 1fr; gap: 2.6rem; } .content-row--reverse > .content-row__media { order: 2; } }
.content-row__media img { border-radius: var(--radius); width: 100%; }

/* ---- Dosar content list ---- */
.dosar { list-style: disc; padding-left: 1.4rem; margin: 1.2rem 0 0; max-width: 560px; }
.dosar li { margin-bottom: .5rem; }
.dosar li::marker { color: var(--gold); }

/* ---- Star rating inline (product details) ---- */
.rating-inline { display: inline-flex; align-items: center; gap: .5rem; margin: .2rem 0 .6rem; font-size: .95rem; }
.rating-inline .stars { color: #ffd700; letter-spacing: 1px; }
.rating-inline a { color: var(--muted); }

/* ---- Stats row ---- */
.stats { display: grid; gap: 1.6rem; text-align: center; align-items: start; }
@media (min-width: 680px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: .4rem; }
.stat h3 { margin: 0; font-size: 1.4rem; }
.stat p { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }
.stats__logo { display: block; width: 84px; margin: 0 auto 1.4rem; }
