/* ============================================================
   Boozeless Babes — styles.css
   Theme sampled from the logo: black canvas, lipstick red,
   warm cream, soft gold. Display serif + script accent.
   ============================================================ */

:root {
  --bb-black:      #0a0908;   /* near-black canvas */
  --bb-black-2:    #141110;   /* raised panels */
  --bb-red:        #d8392b;   /* sampled lipstick red */
  --bb-red-deep:   #b32a1f;   /* pressed / hover */
  --bb-cream:      #f4efe9;   /* primary text */
  --bb-muted:      #b8ada3;   /* secondary text */
  --bb-gold:       #c9a86a;   /* fine accents */
  --bb-line:       rgba(244, 239, 233, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script:  "Parisienne", "Cormorant Garamond", cursive;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bb-black);
  color: var(--bb-cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bb-gold);
  margin: 0 0 1rem;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.display em { font-style: italic; color: var(--bb-red); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--bb-muted);
  max-width: 56ch;
  margin: 0 0 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
  will-change: transform;
}
.btn--solid { background: var(--bb-red); color: #fff; }
.btn--solid:hover { background: var(--bb-red-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--bb-line); color: var(--bb-cream); }
.btn--ghost:hover { border-color: var(--bb-cream); transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn--lg { padding: 1.1em 2.2em; font-size: 0.98rem; }
.btn--gold { background: var(--bb-gold); color: #1c1608; }
.btn--gold:hover { background: #d8b878; transform: translateY(-2px); }

/* About / section CTA helpers */
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.cta-aside { margin: 1.1rem 0 0; color: var(--bb-muted); font-size: 0.95rem; }
.link-underline { color: var(--bb-cream); border-bottom: 1px solid var(--bb-red); padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease); white-space: nowrap; }
.link-underline:hover { color: var(--bb-red); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--bb-line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand-script {
  font-family: var(--font-script);
  font-size: 1.65rem;
  color: var(--bb-cream);
  line-height: 1;
  padding-top: 6px; /* optical centering for script baseline */
}
.nav__links { margin-left: auto; display: flex; gap: 1.6rem; }
.nav__links a {
  font-size: 0.85rem; letter-spacing: 0.05em; color: var(--bb-muted);
  position: relative; transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--bb-red); transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--bb-cream); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 0.6em 1.4em; font-size: 0.8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--bb-cream); transition: 0.3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center; overflow: hidden;
  padding: 96px 24px 64px;
  background: #000;
}
/* Header photo of the community, sitting behind the brand mark */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: saturate(0.92);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 38%, rgba(0,0,0,0.7) 72%, #000 100%),
    radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,0.25), rgba(0,0,0,0.78) 100%);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 40%, rgba(216, 57, 43, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 62%, rgba(201, 168, 106, 0.08), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__logo {
  width: min(440px, 78vw); margin: 0 auto 0.6rem;
  /* Transparent-background cutout — the lips float on the photo. Soft shadow
     follows the lip shape for depth and legibility over a busy backdrop. */
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.85));
}
.hero__wordmark {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--bb-cream); margin: 0 0 0.8rem; line-height: 1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-style: italic; font-weight: 400;
  color: var(--bb-cream); margin: 0 auto 2rem; max-width: 24ch; line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--bb-line); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--bb-gold); border-radius: 2px;
  animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(72px, 12vh, 140px) 0; position: relative; }
.section--about { border-top: 1px solid var(--bb-line); }
.section--product { background: var(--bb-black-2); border-block: 1px solid var(--bb-line); }

/* Product layout */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
/* Product gallery: featured image + thumbnail strip */
.pgallery { display: grid; gap: 14px; }
.pgallery__main {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #fff;
}
.pgallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pgallery__thumb {
  padding: 0; border: 1px solid var(--bb-line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; aspect-ratio: 1 / 1;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb:hover { transform: translateY(-2px); }
.pgallery__thumb.is-active { border-color: var(--bb-red); }
.shades { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.shades li { display: flex; align-items: center; gap: 0.7rem; color: var(--bb-muted); font-size: 0.98rem; }
.shade-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--dot, var(--bb-red));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset; }
.price { font-family: var(--font-display); font-size: 2rem; color: var(--bb-cream); margin: 0 0 1.2rem; }
.btn--buy { font-size: 0.92rem; padding: 1.05em 1.9em; }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 0.2rem; }
.product__note { font-size: 0.82rem; color: var(--bb-muted); margin: 0.9rem 0 0; min-height: 1em; }

/* Highlighted ingredients */
.ingredients { margin: 0 0 1.6rem; }
.ingredients__title { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--bb-gold); margin: 0 0 0.6rem; }
.ingredients ul { list-style: none; padding: 0; margin: 0 0 0.7rem; display: grid; gap: 0.5rem; }
.ingredients li { color: var(--bb-muted); font-size: 0.94rem; line-height: 1.5; padding-left: 1rem; position: relative; }
.ingredients li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--bb-red); }
.ingredients li strong { color: var(--bb-cream); font-weight: 500; }
.ingredients__free { font-size: 0.84rem; color: var(--bb-muted); font-style: italic; margin: 0; opacity: 0.85; }

/* ============================================================
   CAROUSELS (manifest-driven)
   ============================================================ */
.carousel { position: relative; margin-top: 2.4rem; }
.carousel__track {
  list-style: none; margin: 0; padding: 0 max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto; width: min(420px, 78vw); scroll-snap-align: center;
  background: var(--bb-black-2); border: 1px solid var(--bb-line); border-radius: 14px;
  overflow: hidden;
}
.carousel--video .carousel__item { width: min(560px, 86vw); }
.carousel__item img,
.carousel__item .ratio {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000;
}
.carousel--video .carousel__item .ratio { aspect-ratio: 16 / 9; }
.carousel__item iframe { width: 100%; height: 100%; border: 0; display: block; }
.carousel__item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.carousel__cap { padding: 0.9rem 1.1rem 1.1rem; font-size: 0.9rem; color: var(--bb-muted); }
.carousel__placeholder {
  display: grid; place-items: center; text-align: center; padding: 2rem 1.4rem;
  color: var(--bb-muted); font-size: 0.9rem; aspect-ratio: 16 / 9;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(10, 9, 8, 0.72); color: var(--bb-cream);
  border: 1px solid var(--bb-line); backdrop-filter: blur(8px);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.carousel__btn:hover { background: var(--bb-red); border-color: var(--bb-red); }
.carousel__btn--prev { left: 16px; } .carousel__btn--next { right: 16px; }
.carousel__btn[hidden] { display: none; }
.carousel__empty { padding: 0 28px; color: var(--bb-muted); font-style: italic; }

/* ============================================================
   SOBER STORIES (S9)
   ============================================================ */
.section--stories { background: var(--bb-black-2); border-block: 1px solid var(--bb-line); }

/* Approved-stories card grid */
.stories {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin: 2.4rem 0 0;
}
.stories:empty { margin: 0; }
.story-card {
  background: var(--bb-black); border: 1px solid var(--bb-line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.story-card__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.story-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.story-card__quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.18rem; line-height: 1.5;
  color: var(--bb-cream); margin: 0; position: relative;
}
.story-card__quote::before {
  content: "\201C"; font-size: 2.4rem; color: var(--bb-red); line-height: 0;
  position: absolute; left: -2px; top: 10px; opacity: 0.5;
}
.story-card--nophoto .story-card__quote { padding-top: 0.6rem; }
.story-card__by { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--bb-gold); margin: 0; }
.story-card__mark {
  align-self: flex-start; font-family: var(--font-script); font-size: 1.4rem;
  color: var(--bb-red); line-height: 1; opacity: 0.85;
}
.stories__empty {
  grid-column: 1 / -1; text-align: center; color: var(--bb-muted); font-style: italic;
  padding: 1.4rem 0 0;
}

/* Submission form */
.story-submit {
  margin-top: 3rem; max-width: 640px; padding-top: 2.4rem; border-top: 1px solid var(--bb-line);
}
.story-submit__title { font-family: var(--font-display); font-size: 1.7rem; color: var(--bb-cream); margin: 0 0 0.4rem; }
.story-submit__note { color: var(--bb-muted); font-size: 0.95rem; margin: 0 0 1.4rem; }
.story-form { display: grid; gap: 0.9rem; }
.story-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.story-form input[type="text"],
.story-form textarea {
  width: 100%; background: var(--bb-black); border: 1px solid var(--bb-line); border-radius: 12px;
  color: var(--bb-cream); padding: 0.9em 1.1em; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s var(--ease); resize: vertical;
}
.story-form input[type="text"]:focus,
.story-form textarea:focus { outline: none; border-color: var(--bb-red); }
.story-form__file {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--bb-black); border: 1px dashed var(--bb-line); border-radius: 12px; padding: 0.9em 1.1em;
}
.story-form__file-label { color: var(--bb-muted); font-size: 0.92rem; }
.story-form__file-label em { font-style: normal; opacity: 0.7; }
.story-form__file input[type="file"] { color: var(--bb-muted); font-size: 0.85rem; max-width: 100%; }
.story-form__file input[type="file"]::file-selector-button {
  background: transparent; color: var(--bb-cream); border: 1px solid var(--bb-line);
  border-radius: 999px; padding: 0.5em 1.1em; margin-right: 0.9em; cursor: pointer;
  font-family: var(--font-body); font-size: 0.82rem; transition: border-color 0.3s var(--ease);
}
.story-form__file input[type="file"]::file-selector-button:hover { border-color: var(--bb-cream); }
.story-form__consent { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--bb-muted); font-size: 0.9rem; line-height: 1.45; }
.story-form__consent input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--bb-red); width: 16px; height: 16px; flex: 0 0 auto; }
.story-form button[type="submit"] { justify-self: start; margin-top: 0.4rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 1rem; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--bb-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--bb-cream);
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bb-red); font-size: 1.5rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--bb-muted); margin: 0 0 1.2rem; max-width: 64ch; }
.faq p strong { color: var(--bb-cream); font-weight: 500; }
.faq-lead { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--bb-cream) !important; }
.faq-bullets { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.7rem; max-width: 64ch; }
.faq-bullets li { color: var(--bb-muted); font-size: 0.98rem; line-height: 1.55; }
.faq-bullets li strong { color: var(--bb-cream); font-weight: 500; }

/* ============================================================
   JOIN
   ============================================================ */
.section--join { text-align: center; border-top: 1px solid var(--bb-line); }
.section--join .lede { margin-inline: auto; }
.join-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.join-form input[type="email"] {
  background: var(--bb-black-2); border: 1px solid var(--bb-line); border-radius: 999px;
  color: var(--bb-cream); padding: 0.95em 1.4em; font-family: var(--font-body); font-size: 0.95rem;
  min-width: 280px; transition: border-color 0.3s var(--ease);
}
.join-form input[type="email"]:focus { outline: none; border-color: var(--bb-red); }
.join-form__status { margin-top: 1rem; color: var(--bb-gold); font-size: 0.9rem; min-height: 1.2em; }
.hidden-field { position: absolute; left: -9999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0; border-top: 1px solid var(--bb-line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.footer__brand-script { font-family: var(--font-script); font-size: 1.9rem; color: var(--bb-cream); }
.footer__social { display: flex; gap: 1.6rem; }
.footer__social a { color: var(--bb-muted); font-size: 0.88rem; letter-spacing: 0.04em; transition: color 0.3s var(--ease); }
.footer__social a:hover { color: var(--bb-red); }
.footer__fine { color: var(--bb-muted); font-size: 0.78rem; letter-spacing: 0.03em; opacity: 0.8; margin: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product__media { order: -1; }
  .story-form__row { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav--open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10, 9, 8, 0.96); backdrop-filter: blur(14px);
    padding: 1.4rem 28px 1.8rem; gap: 1.2rem; border-bottom: 1px solid var(--bb-line);
  }
  .nav--open .nav__cta { display: inline-flex; position: absolute; top: 84px; right: 28px; }
}
