/**
 * THE SNIFF STORY - Haute Parfumerie Luxury Design System
 * Primary Palette: Pure Crisp White (#FFFFFF), Soft Neutral (#F8F9FA), Champagne Gold (#C9A96A), Deep Charcoal (#111827)
 */

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

:root {
  /* Core Pure White Luxury Palette */
  --bg-primary: #FFFFFF;
  /* Pure Crisp White */
  --bg-surface: #FFFFFF;
  /* Pure White */
  --bg-cream: #F8F9FA;
  /* Soft Clean Off-White */
  --bg-muted: #F3F4F6;
  /* Light Neutral Slate */
  --bg-subtle: #FAFAFA;
  /* Subtle Off-white */
  --bg-card: #FFFFFF;

  --gold-primary: #C9A96A;
  /* Champagne Gold */
  --gold-soft: #D8C39A;
  /* Soft Gold */
  --gold-deep: #A88648;
  /* Antique Gold */
  --gold-light: #FBF8F2;
  /* Pale Gold Tint */
  --gold-glow: rgba(201, 169, 106, 0.15);

  --text-primary: #111827;
  /* Deep Onyx / Charcoal */
  --text-secondary: #4B5563;
  /* Sophisticated Charcoal Grey */
  --text-muted: #9CA3AF;
  /* Muted Pebble */
  --text-gold: #B69248;
  /* Rich Gold Text */

  --border-light: #E5E7EB;
  /* Clean Minimal Border */
  --border-subtle: #F3F4F6;
  --border-gold: rgba(201, 169, 106, 0.45);
  --border-gold-solid: #C9A96A;

  /* Fonts */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii & Shadows (Deliberately restrained & minimal for high-end luxury) */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.09);
  --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout & Header */
  --container-max: 1540px;
  --header-height: 90px;
  --announcement-height: 38px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

/* ==========================================================
   2. TOP ANNOUNCEMENT BAR (High Contrast Luxury Bar)
   ========================================================== */
.announcement-bar {
  background-color: #0E1217;
  color: #E2E8F0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}

.announcement-slider {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: ticker-slide 28s linear infinite;
}

.announcement-bar:hover .announcement-slider {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.announcement-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 50%;
}

/* ==========================================================
   3. STICKY MAIN HEADER & NAVIGATION
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background-color: #FFFFFF;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 68px;
  max-height: calc(var(--header-height) - 14px);
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-logo-text-wrap {
  display: none;
}

/* Desktop Navigation Menu - Strictly Single Horizontal Line */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 24px);
  list-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-item.has-mega {
  position: static;
  /* Full width mega menu anchor */
}

.nav-link {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 700;
  padding: 30px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-item:hover .nav-link {
  color: var(--gold-deep);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after,
.nav-item:hover .nav-link::after {
  width: 100%;
}

.nav-arrow {
  font-size: 0.55rem;
  color: var(--gold-primary);
  font-weight: 800;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-action-btn:hover {
  color: var(--gold-primary);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: var(--gold-primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* ==========================================================
   BUTTONS & LUXURY CTA
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: #000000;
  border-color: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-gold {
  background-color: var(--gold-primary);
  color: #FFFFFF;
  border-color: var(--gold-primary);
}

.btn-gold:hover {
  background-color: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 169, 106, 0.28);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--gold-deep);
  border-color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background-color: var(--gold-primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================
   SECTION HEADINGS & ACCENTS
   ========================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
  position: relative;
}

.section-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 45px;
  height: 1px;
  background-color: var(--border-gold);
}

.section-divider-dot {
  width: 5px;
  height: 5px;
  background-color: var(--gold-primary);
  border-radius: 50%;
}

/* Generic Section Padding */
.section-padding {
  padding: 80px 0;
  position: relative;
}

.bg-cream {
  background-color: var(--bg-cream);
}

.bg-surface {
  background-color: var(--bg-surface);
}

.bg-ivory {
  background-color: var(--bg-primary);
}

/* Gold Hairline Separator */
.hairline-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 0;
  border: none;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
  margin-top: auto;
  position: relative;
}

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

.footer-brand-title {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-about-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold-deep);
  transform: translateX(3px);
}

/* Newsletter in Footer */
.newsletter-form {
  display: flex;
  margin-top: 16px;
  position: relative;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  background-color: #FFFFFF;
  font-size: 0.82rem;
  color: var(--text-primary);
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.newsletter-input:focus {
  border-color: var(--gold-primary);
}

.newsletter-btn {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border: none;
  padding: 0 20px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================== */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --announcement-height: 30px;
  }

  html,
  body {
    -webkit-tap-highlight-color: transparent;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Compact Luxury Announcement Bar */
  .announcement-bar {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    padding: 0 10px;
  }

  .announcement-slider {
    gap: 16px;
  }

  .announcement-item:nth-child(n+2) {
    display: none;
    /* Show primary crisp message on mobile */
  }

  /* Compact Sticky Header */
  .header-inner {
    gap: 12px;
  }

  .brand-logo-img {
    height: 50px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-action-btn {
    width: 38px;
    height: 38px;
    padding: 4px;
  }

  .header-action-btn svg {
    width: 19px;
    height: 19px;
  }

  /* Typography */
  .section-padding {
    padding: 44px 0;
  }

  .section-title {
    font-size: 1.75rem;
    letter-spacing: 0.04em;
  }

  .section-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
  }

  .section-description {
    font-size: 0.88rem;
    padding: 0 8px;
  }

  /* Buttons */
  .btn {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-title {
    font-size: 1.2rem;
  }

  .footer-about-text {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .brand-logo-img {
    height: 44px;
  }

  .section-title {
    font-size: 1.55rem;
  }
}