/* ================================================================
   shared.css
   Creative Studio @ The Knead & Bloom Co.
   Shared across all studio pages.
   ================================================================ */

/* ── RESET & ROOT ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:         #f5f0e8;
  --cream-dark:    #ede5d5;
  --brown:         #2c1f14;
  --brown-mid:     #5a3e2b;
  --gold:          #b8892a;
  --gold-light:    #d4a84b;
  --blush:         #c4856a;
  --blush-light:   #d9a08c;
  --sage:          #7a8c6e;
  --text:          #2c1f14;
  --grain-opacity: 0.04;

    /* transition */
  --t: .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 31, 20, 0.08);
  transition: background 0.3s;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.2;
}

.nav-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blush);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown-mid);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blush); }

.nav-links .nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--brown);
  color: var(--cream);
  border-radius: 1px;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--blush); color: var(--cream); }

.nav-parent-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-mid);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-parent-link:hover { opacity: 1; }

/* ── SECTION SHARED ─────────────────────────────────────────── */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--brown);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--blush); }

.section-intro {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--brown-mid);
  line-height: 1.9;
  max-width: 54ch;
  margin-bottom: 4rem;
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  border-top: 1px solid rgba(196, 133, 106, 0.12);
  padding: 3rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

.footer-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush);
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.28);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--blush-light); }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── MOBILE — shared elements ───────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  footer { flex-direction: column; text-align: center; padding: 2.5rem 1.5rem; }
  .footer-links { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-logo-text { display: none; }
}

.nav-toggle {
  display: none;                  /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--t);
  z-index: 200;
}
.nav-toggle:hover { background: rgba(181,131,74,.08); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              opacity   .3s cubic-bezier(.4,0,.2,1),
              width     .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


@media (max-width: 900px) {
  /* Show the hamburger button */
  .nav-toggle { display: flex; }

  /* Slide-down drawer */
  .nav-links {
    position: fixed;
    top: 80px;               /* matches nav height */
    left: 0; right: 0;
    background: rgba(250,247,242,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(181,131,74,.18);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0 1.5rem;
    /* hidden state */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .28s cubic-bezier(.4,0,.2,1),
                transform .28s cubic-bezier(.4,0,.2,1);
  }

  /* Open state — toggled by JS adding .is-open to .nav-links */
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Each link becomes a full-width tap target */
  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: .85rem clamp(1.5rem, 6vw, 2.5rem);
    font-size: .8rem;
    letter-spacing: .12em;
    border-bottom: 1px solid rgba(181,131,74,.08);
    transition: background .2s, color .2s;
  }
  .nav-links a:hover { background: rgba(181,131,74,.06); color: var(--blush); }

  /* "Order Now" pill — full-width with margin */
  .nav-links .btn-nav {
    display: block;
    margin: 1rem clamp(1.5rem, 6vw, 2.5rem) 0;
    padding: .75rem 1.25rem;
    text-align: center;
    border-radius: 50px;
    border-bottom: none;
  }
  .nav-links .btn-nav:hover { transform: none; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  /* No more li:not(:last-child) { display: none } — drawer shows all links */
}

/* ── BODY SCROLL LOCK when menu is open ─────────────────────── */
/* Applied by JS — prevents page scrolling behind the open drawer */
body.nav-open { overflow: hidden; }