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

/* --- LUXURY BRAND DESIGN SYSTEM --- */
:root {
  /* Colors */
  --obsidian: #0B0B0B;
  --ivory: #F7F5F0;
  --champagne: #C6A76A;
  --taupe: #A79C8A;
  --charcoal: #171717;
  
  /* Semi-transparent/Utility */
  --obsidian-rgb: 11, 11, 11;
  --ivory-rgb: 247, 245, 240;
  --border-color: rgba(167, 156, 138, 0.25);
  --border-light: rgba(247, 245, 240, 0.15);
  --error: #9E3A3A;
  --success: #5F7D65;
  
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout constraints */
  --container-max: 1360px;
  --header-height: 80px;
  --header-height-mobile: 64px;
  
  /* Durations and Easing */
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  --ease-editorial: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--ivory);
}

body {
  font-family: var(--font-ui);
  color: var(--obsidian);
  background-color: var(--ivory);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dark theme overrides where specified (e.g. Hero, manifests) */
.theme-dark {
  background-color: var(--obsidian);
  color: var(--ivory);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgba(var(--obsidian-rgb), 0.8);
}

.theme-dark p {
  color: rgba(var(--ivory-rgb), 0.75);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Uppercase editorial subheadings */
.label-editorial {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Large display text */
.display-huge {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 400;
}

.display-large {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 400;
}

.display-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
}

/* --- LAYOUTS --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* Asymmetric editorial positioning helpers */
.align-right-col {
  margin-left: auto;
  max-width: 600px;
}

.align-left-col {
  margin-right: auto;
  max-width: 600px;
}

/* --- THE STICKY HEADER --- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header-wrapper.scrolled {
  background-color: rgba(var(--ivory-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-wrapper.scrolled.theme-dark-scroll {
  background-color: rgba(var(--obsidian-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

@media (max-width: 1024px) {
  .header-inner {
    height: var(--header-height-mobile);
    display: flex;
    justify-content: space-between;
  }
}

/* Left Nav */
.header-nav-left {
  display: flex;
  gap: 32px;
}

.header-nav-left a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}

.header-nav-left a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-editorial);
}

.header-nav-left a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 1024px) {
  .header-nav-left {
    display: none; /* Mobile overlays cover this */
  }
}

/* Center Logo */
.header-logo {
  text-align: center;
}

.header-logo a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Right Controls */
.header-nav-right {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.header-icon-btn:hover {
  opacity: 0.75;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--champagne);
  color: var(--obsidian);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.cart-count-badge.empty {
  display: none;
}

/* Mobile Hamburger */
.mobile-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  padding: 4px;
}

.mobile-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .mobile-hamburger {
    display: flex;
  }
}

/* Hamburger active animation */
.mobile-hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- THE EDITORIAL LUXURY FOOTER --- */
footer {
  background-color: var(--obsidian);
  color: var(--ivory);
  padding: 100px 0 40px 0;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 280px;
}

.footer-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--taupe);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(var(--ivory-rgb), 0.7);
}

.footer-links a:hover {
  color: var(--champagne);
  padding-left: 4px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-newsletter p {
  font-size: 0.85rem;
}

.footer-newsletter-form {
  display: flex;
  border-bottom: 1px solid rgba(var(--ivory-rgb), 0.3);
  padding-bottom: 8px;
  position: relative;
}

.footer-newsletter-input {
  background: none;
  border: none;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  flex-grow: 1;
  outline: none;
  padding-right: 12px;
}

.footer-newsletter-input::placeholder {
  color: rgba(var(--ivory-rgb), 0.4);
}

.footer-newsletter-btn {
  background: none;
  border: none;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-newsletter-btn:hover {
  color: var(--champagne);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(var(--ivory-rgb), 0.5);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a:hover {
  color: var(--champagne);
}

/* --- REVEAL EFFECTS (INTERSECTION OBSERVER PREPS) --- */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.reveal-text-line {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-editorial);
}

.reveal-text.active .reveal-text-line {
  transform: translateY(0);
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-editorial), transform 1s var(--ease-editorial);
}

.reveal-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image-container {
  overflow: hidden;
  position: relative;
}

.reveal-image-container img {
  transform: scale(1.1);
  opacity: 0;
  transition: transform 1.5s var(--ease-editorial), opacity 1.2s var(--ease-editorial);
}

.reveal-image-container.active img {
  transform: scale(1);
  opacity: 1;
}

/* Accessibility reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}

/* --- ACCESSIBILITY FOCUS INDICATOR --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}
