/* ==========================================================================
   Charlotte Atelier — Design System
   Paleta, typografia i komponenty w duchu "couture / atelier"
   ========================================================================== */

:root {
  /* --- Paleta --- */
  --deep-green:      #0B3121;
  --deep-green-alt:   #0F2E22;
  --deep-green-light: #163F2C;
  --gold:            #D4AF37;
  --gold-soft:       #C5A059;
  --cream:           #FDFBF7;
  --ink:             #1A1A17;

  /* --- Typografia (Web Safe) --- */
  --font-heading: Georgia, 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --font-accent:  Garamond, 'Times New Roman', serif;
  --font-body:    Helvetica, Arial, sans-serif;

  /* --- Rytm --- */
  --nav-height: 84px;
  --ease-atelier: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin: 0 0 0.9em;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (czysty CSS/JS — IntersectionObserver, patrz main.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-atelier), transform 0.9s var(--ease-atelier);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Nawigacja
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: transparent;
  transition: background-color 0.5s var(--ease-atelier), height 0.4s var(--ease-atelier), box-shadow 0.4s;
}
.site-nav.is-scrolled {
  background-color: rgba(11, 49, 33, 0.94);
  backdrop-filter: blur(6px);
  height: 66px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.6rem);
}
.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-atelier);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn {
  background: none; border: none; color: var(--cream); cursor: pointer;
  position: relative; padding: 6px;
}
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--gold); color: var(--deep-green);
  font-size: 0.62rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 22px; height: 1px; background: var(--cream); margin: 5px 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep-green);
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  height: 120%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.10), transparent 55%),
    linear-gradient(160deg, var(--deep-green) 0%, var(--deep-green-alt) 55%, #081f16 100%);
  will-change: transform;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,49,33,0.15), rgba(11,49,33,0.55) 85%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  max-width: 780px;
  padding: 0 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.hero-sub {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: rgba(253,251,247,0.82);
  margin-bottom: 2.2em;
}

.scroll-cue {
  position: absolute; bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--cream); opacity: 0.75;
}
.scroll-cue span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.scroll-cue small { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.95em 2.2em;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s var(--ease-atelier);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--deep-green);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(253,251,247,0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */
.manifesto {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
}
.manifesto p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--deep-green);
  line-height: 1.5;
}
.manifesto em { color: var(--gold-soft); font-style: italic; }
.manifesto-sign {
  display: block;
  margin-top: 1.6em;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Collection grid
   -------------------------------------------------------------------------- */
.collection { padding: 2rem clamp(1.25rem, 4vw, 3rem) 6rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head h2 { color: var(--deep-green); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.product-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 2vw, 2.2rem);
}
.product-card {
  background: #fff;
  border: 1px solid rgba(11,49,33,0.08);
  padding-bottom: 1.6rem;
  transition: transform 0.5s var(--ease-atelier), box-shadow 0.5s var(--ease-atelier);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,49,33,0.12);
}
.product-img {
  aspect-ratio: 3 / 4;
  margin-bottom: 1.2rem;
  background-size: cover;
  background-position: center;
  transition: filter 0.5s;
}
.product-card:hover .product-img { filter: saturate(1.15); }

/* Placeholdery kolorystyczne — podmień na fotografie produktową (webp/avif) */
.product-img--1 { background: linear-gradient(150deg, #6b1f2a, #3d0f16); }
.product-img--2 { background: linear-gradient(150deg, #163F2C, #0B3121); }
.product-img--3 { background: linear-gradient(150deg, #C5A059, #8a6a2e); }
.product-img--4 { background: linear-gradient(150deg, #1A1A17, #33332c); }

.product-card h3 {
  font-size: 1.15rem;
  padding: 0 1.4rem;
  color: var(--deep-green);
}
.product-desc {
  padding: 0 1.4rem;
  font-size: 0.88rem;
  color: #555;
  margin: 0.3em 0 0.9em;
}
.price {
  display: block;
  padding: 0 1.4rem;
  font-family: var(--font-accent);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Craft / Parallax section
   -------------------------------------------------------------------------- */
.craft {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}
.craft-bg {
  position: absolute;
  inset: -15% 0;
  background: linear-gradient(155deg, #081f16, var(--deep-green) 60%, #0F2E22);
  will-change: transform;
}
.craft-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(212,175,55,0.14), transparent 60%);
}
.craft-content {
  position: relative; z-index: 1;
  max-width: 560px;
  margin: 0 clamp(1.5rem, 8vw, 10vw);
  padding: 4rem 0;
}
.craft-content h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.craft-content p { color: rgba(253,251,247,0.82); margin-bottom: 2em; }

/* --------------------------------------------------------------------------
   Atelier / Booking
   -------------------------------------------------------------------------- */
.atelier {
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  text-align: center;
  background: var(--cream);
}
.atelier .section-head h2 { margin-bottom: 0.3em; }
.atelier-sub { color: #555; margin-bottom: 2em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--deep-green);
  color: rgba(253,251,247,0.85);
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo { color: var(--cream); margin-bottom: 0.5em; }
.footer-note { font-size: 0.85rem; opacity: 0.7; max-width: 26ch; }
.site-footer h4 {
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin-bottom: 1em;
}
.site-footer a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.7em;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.site-footer a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253,251,247,0.12);
  font-size: 0.78rem;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    background: var(--deep-green-alt);
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
    gap: 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-atelier);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg, .craft-bg { transition: none !important; transform: none !important; }
  .reveal { opacity: 1; }
}
