/* =========================================================
   SAVRA — styles.css
   Cinematic red-wall design system, cream floor, raking light.
   All section backgrounds share the same wall/sunbeam/floor parts
   so the site feels like one continuous environment.
   ========================================================= */

:root {
  /* Bright red palette (reverted from the deeper Vi Ruvia variant) */
  --wall-base:   #FF4F4F;
  --wall-hi:     #FF8A7A;
  --wall-lo:     #B02525;
  --floor:       #F4EADD;
  --floor-deep:  #E2D0BD;
  --cream:       #FFFFFF;
  --cream-soft:  #FFF5F0;
  --cranberry:   #6B1421;
  --cranberry-2: #8B1F2E;
  --ink:         #2A1416;

  /* Spacing */
  --container-w: 1200px;
  --container-narrow: 760px;
  --gutter: 32px;
}

/* ========== Reset / base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--cream);
  /* Continuous red gradient — top holds the primary red, subtly deepens
     toward the bottom. 50% hold keeps the hero from feeling like it 'starts'
     a gradient. Scroll-based (no fixed attachment) reveals the deeper red
     as you scroll. */
  background: linear-gradient(180deg,
    #FF4F4F 0%,
    #FF4F4F 50%,
    #EA4444 80%,
    #D63838 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.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;
}

.honeypot { position: absolute; left: -9999px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }
.container.center { text-align: center; }

/* ========== Typography ========== */
.display {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.section-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 28px;
}
.section-headline.ink { color: var(--ink); }

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 24px;
}
.eyebrow.light { opacity: 0.75; }

.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--cream);
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

.body-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.88;
  margin-bottom: 18px;
}
.body-copy.ink { color: var(--ink); opacity: 0.85; }

/* ========== Buttons ========== */
.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.cta.primary {
  background: var(--cream);
  color: var(--cranberry);
}
.cta.primary:hover {
  transform: translateY(-2px);
  background: var(--cream-soft);
}

/* ========== Nav ========== */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-left  { justify-self: start; }
.nav-right { justify-self: end; }
.nav-center { justify-self: center; }

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.site-nav .nav-left a { margin-right: 22px; }
.site-nav .nav-right a { margin-left: 22px; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { opacity: 1; }

.wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: var(--cream);
  text-decoration: none;
}

/* ========== Hero (landing page) ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1080px;
}
.hero-content .display { margin: 18px 0 28px; }
.hero-content .cta { margin-top: 36px; }

/* Logo placeholder — dashed box until a real Savra logo PNG is dropped in.
   When ready, replace the .logo-zone div in HTML with an <img class="hero-logo">
   and the .hero-logo rule below will style it. */
.logo-zone {
  width: 260px;
  height: 72px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.04);
}
.logo-zone span {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.65;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .logo-zone { width: 200px; height: 56px; margin-bottom: 20px; }
}

/* Savra script logo above the eyebrow (used once a real PNG is available). */
.hero-logo {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto 28px;
}
@media (max-width: 720px) {
  .hero-logo { width: 200px; margin-bottom: 20px; }
}

.hero-image {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
  margin: 32px auto 20px;
  filter: drop-shadow(0 24px 40px rgba(94, 16, 16, 0.35));
}
@media (max-width: 720px) {
  .hero-image { margin: 24px auto 12px; max-width: 100%; }
}

/* Hero image placeholder — visible when no real image is slotted in yet */
.hero-photo-zone {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto 20px;
  background: rgba(255, 255, 255, 0.04);
}
.hero-photo-zone span {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  text-align: center;
  line-height: 1.7;
}

/* ========== Giving-back callout ========== */
.giving {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
  isolation: isolate;
}
.giving .container.center { text-align: center; }
.giving-icon {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 24px;
  color: var(--cream);
  opacity: 0.95;
}
.giving .body-copy {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

/* ========== Coming-soon variant (shop, 404, thank-you) ========== */
.coming-soon {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 80px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon .hero-content { text-align: center; max-width: 760px; }
.coming-soon .display { margin: 18px 0 28px; }
.coming-soon .signup-form { margin-top: 36px; }

/* ========== Story ========== */
.story {
  position: relative;
  padding: 120px 24px;
  /* transparent — body gradient flows through */
  overflow: hidden;
  isolation: isolate;
}
.story .body-copy { max-width: 620px; }

/* ========== Product showcase (transparent on red — pro photos go here) ========== */
.product-showcase {
  padding: 120px 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.product-card {
  /* Glass-card on red: subtle darker overlay + light border */
  background: rgba(107, 20, 33, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 48px 32px 40px;
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Photo zone — placeholder until pro photography is added.
   When you swap in <img class="product-photo">, the dashed border styling
   stops applying since the div is gone. */
.photo-zone {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.04);
}
.photo-zone span {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  text-align: center;
  line-height: 1.6;
}

/* Image style for when real photos slot in */
.product-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom; /* bottoms align across cards even when PNG bboxes differ */
  margin-bottom: 28px;
}

.product-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.product-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 100;
}

.product-blurb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 20px;
}

.product-meta {
  list-style: none;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.product-meta li {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 10px;
  border-radius: 3px;
}

/* ========== Ingredients section ========== */
.ingredients {
  position: relative;
  padding: 120px 24px;
  /* transparent — body gradient flows through */
  overflow: hidden;
  isolation: isolate;
}

.sku-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sku-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.sku-tab.active {
  background: var(--cream);
  color: var(--cranberry);
  border-color: var(--cream);
}

.ingredient-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 28px;
}
.ingredient-list li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.ingredient-list .num {
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.certs {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cert {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 10px;
  border-radius: 3px;
}

/* ========== Notify / signup section ========== */
.notify {
  padding: 120px 24px;
  /* transparent — body gradient flows through */
}
/* (.notify .eyebrow / .section-headline now use defaults — cream on red) */

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.signup-form button {
  border: none;
  background: var(--cream);
  color: var(--cranberry);
}
.signup-form button:hover {
  background: var(--cream-soft);
  transform: translateY(-2px);
}

/* Inverse signup form (legacy — kept identical to the default now that everything is on red) */
.signup-form.inverse input[type="email"] {
  background: rgba(255, 255, 255, 0.96);
}
.signup-form.inverse button {
  background: var(--cream);
  color: var(--cranberry);
}

/* ========== Footer ========== */
.site-footer {
  /* Transparent — body gradient flows through. Top border separates it visually. */
  color: var(--cream);
  padding: 80px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--cream); text-decoration: none; }

/* ========== Responsive ========== */
@media (max-width: 820px) {
  .site-nav { padding: 20px 22px; }
  .site-nav a { font-size: 12px; }
  .site-nav .nav-left a { margin-right: 14px; }
  .site-nav .nav-right a { margin-left: 14px; }
  .wordmark { font-size: 17px; }

  .hero, .coming-soon, .story, .ingredients, .product-showcase, .notify { padding-left: 22px; padding-right: 22px; }
  .story, .ingredients, .product-showcase, .notify { padding-top: 80px; padding-bottom: 80px; }

  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-card { padding: 36px 24px 32px; }

  .signup-form {
    flex-direction: column;
  }
  .signup-form button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
