/* ============================================================
   VELVET & VALOR — Foundation Design System
   Obsidian & 24K Gold | London Atelier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Navy Blue Palette */
  --obsidian:         #071428;
  --obsidian-deep:    #040D1C;
  --obsidian-mid:     #0C1E3A;
  --obsidian-light:   #122448;
  --obsidian-surface: #1A2E52;

  /* Teal Accent Palette */
  --gold:             #1A9090;
  --gold-bright:      #22AAAA;
  --gold-pale:        #7FCDCD;
  --gold-dark:        #116868;
  --gold-muted:       rgba(26, 144, 144, 0.45);
  --gold-subtle:      rgba(26, 144, 144, 0.14);
  --gold-whisper:     rgba(26, 144, 144, 0.08);

  /* White / Text Palette */
  --cream:            #FFFFFF;
  --cream-mid:        rgba(255, 255, 255, 0.80);
  --cream-muted:      rgba(255, 255, 255, 0.55);
  --cream-whisper:    rgba(255, 255, 255, 0.22);
  --white:            #FFFFFF;

  /* Typography */
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-authority:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:      cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height:       80px;
  --max-width:        1320px;
  --page-padding:     48px;
}

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

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

body {
  background-color: var(--obsidian);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; cursor: pointer; }
input, textarea { outline: none; font: inherit; }
ul, ol { list-style: none; }
svg    { display: block; }

/* ── Custom Cursor (disabled) ────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  display: none;
}

/* ── Grain Texture ───────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 99997;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.5s steps(3) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, -4%); }
  66%  { transform: translate(5%, 2%); }
  100% { transform: translate(-2%, 6%); }
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--page-padding);
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 20, 40, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--gold-whisper);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-authority);
  font-size: 1.0625rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo .amp { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-authority);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  position: relative;
  transition: color 0.3s;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-icon:hover { color: var(--gold); }

.nav-cart-count {
  position: absolute;
  top: -7px; right: -7px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  font-family: var(--font-authority);
  font-size: 9px;
  font-weight: 700;
  color: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-authority);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s, transform 0.35s var(--ease-out), box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 168, 75, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 35px;
  border: 1px solid var(--gold-muted);
  color: var(--cream-mid);
  font-family: var(--font-authority);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s, transform 0.35s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-pale);
  transform: translateY(-2px);
}

/* ── Section Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section-label {
  font-family: var(--font-authority);
  font-size: 0.8125rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 44px; height: 1px;
  background: var(--gold-muted);
}
.section-label.left {
  justify-content: flex-start;
}
.section-label.left::before { display: none; }

.section-heading {
  font-family: var(--font-authority);
  font-size: clamp(1.875rem, 3.5vw, 2.875rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.15;
}

/* ── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: 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; }
.reveal-delay-5 { transition-delay: 0.42s; }
.reveal-delay-6 { transition-delay: 0.52s; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--obsidian-deep);
  border-top: 1px solid var(--gold-subtle);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .footer-logo {
  font-family: var(--font-authority);
  font-size: 1.0625rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-brand .footer-logo .amp { color: var(--gold); }

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--cream-muted);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-muted);
  font-family: var(--font-authority);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  transition: border-color 0.3s, color 0.3s;
}
.footer-social-link:hover {
  border-color: var(--gold-muted);
  color: var(--gold);
}

.footer-col-title {
  font-family: var(--font-authority);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--cream-muted);
  font-style: italic;
  transition: color 0.3s;
}
.footer-link:hover { color: var(--cream); }

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

.footer-copy,
.footer-legal {
  font-family: var(--font-authority);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-whisper);
}

.footer-legal a:hover { color: var(--cream-muted); }
.footer-legal {
  display: flex;
  gap: 24px;
}

/* ── Misc ────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Gold horizontal rule */
.gold-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --page-padding: 32px;
    --nav-height: 70px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
