/* ═══════════════════════════════════════════
   GERMAIN APPAREL — MINIMALIST EDITION
   Quiet, editorial, image-forward.
═══════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette — warm concrete + sage */
  --bg: #F4F1EA;
  --bg-soft: #EAE5DA;
  --ink: #141210;
  --ink-2: #2A2520;
  --ink-3: #5C554A;
  --ink-4: #8A8275;
  --rule: #D9D2C2;
  --rule-soft: #E4DDCC;
  --accent: #3E4A3C;       /* sage */

  --font: 'Inter', -apple-system, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 3vw, 3rem);
  --max: 1600px;
  --radius: 0;

  /* Legacy aliases so older classnames still resolve to the new palette */
  --off-black: var(--bg);
  --charcoal: var(--bg-soft);
  --cream: var(--ink);
  --warm-white: var(--ink);
  --zinc-900: var(--bg-soft);
  --zinc-800: var(--rule);
  --zinc-700: var(--rule-soft);
  --zinc-600: var(--ink-4);
  --zinc-500: var(--ink-3);
  --zinc-400: var(--ink-3);
  --zinc-300: var(--ink-2);
  --zinc-200: var(--ink);
  --accent-muted: var(--accent);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ═══════════════════════════════════════════
   NAVIGATION — thin line, minimal
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s ease, border-color 0.5s ease;
  mix-blend-mode: normal;
}

/* Default (transparent over hero): pale text for readability on dark video */
.nav-logo {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: color 0.35s ease;
}

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

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.35s ease;
  position: relative;
}
.nav-links a:hover { color: #FFFFFF; }

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  transition: color 0.35s ease;
}
.nav-cart:hover { color: #FFFFFF; }
.nav-cart svg { width: 16px; height: 16px; stroke-width: 1.25; }

.nav-cart-count {
  display: none;
  font-size: 0.65rem;
  font-weight: 500;
  color: inherit;
  letter-spacing: 0.1em;
}

.nav-cart-count:not(:empty) {
  display: inline;
}

/* Solid / scrolled state — nav sits on cream background, so use dark ink */
.nav.solid,
.nav.scrolled {
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav.solid .nav-logo,
.nav.scrolled .nav-logo { color: var(--ink); }
.nav.solid .nav-links a,
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.solid .nav-links a:hover,
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav.solid .nav-cart,
.nav.scrolled .nav-cart { color: var(--ink-2); }
.nav.solid .nav-cart:hover,
.nav.scrolled .nav-cart:hover { color: var(--ink); }

/* ═══════════════════════════════════════════
   BUTTONS — text-link + hairline
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.75rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn:disabled:hover { background: transparent; color: var(--ink); }

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.25;
  transition: transform 0.35s ease;
}
.btn:hover svg { transform: translateX(4px); }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-solid:hover { background: var(--bg); color: var(--ink); }

.btn-ghost {
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { background: transparent; color: var(--ink-3); }

/* Text link with underline-on-hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.link:hover { color: var(--ink-3); border-color: var(--ink-4); gap: 0.65rem; }
.link svg { width: 12px; height: 12px; stroke-width: 1.5; }

/* ═══════════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-label.num {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label.num::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}

/* Hide grain from old theme */
.grain { display: none; }

/* ═══════════════════════════════════════════
   REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* When GSAP is running (homepage), neutralize the CSS-based reveal so
   GSAP is the sole author of entrance animations. */
.has-gsap .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

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

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  padding: 6rem var(--gutter) 3rem;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-3);
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.footer-socials { display: flex; gap: 1.5rem; }

.footer-socials a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color 0.3s ease;
}
.footer-socials a:hover { color: var(--ink); }

/* ═══════════════════════════════════════════
   TOAST — quiet, monochrome
═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 1.25rem var(--gutter); }
  .nav-links { gap: 1.25rem; }
  .footer { padding: 4rem var(--gutter) 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
  .nav-links li:not(:last-child) { display: none; }
}
