@import url('https://fonts.googleapis.com/css2?family=Charm:wght@400;700&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

/* Custom Design System: Royal Fragrance (Exact Brand Identity Palette & Charm Font) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --color-gold: #000000;
  --color-gold-hover: #1a1a1a;
  --color-gold-light: rgba(0, 0, 0, 0.12);
  --color-sand: #ffffff;
  --color-text-primary: #000000;
  --color-text-secondary: #333333;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.25);
  --font-serif: 'EB Garamond', serif;
  --font-charm: 'Charm', cursive;
  --font-sans: 'Hanken Grotesk', 'Open Sauce', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: #380E0F !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

#home-search-input {
  color: #000000 !important;
}

#home-search-input::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div:not(input):not(textarea) {
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

html {
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  height: 100%;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  /* Disable scroll when loading */
  overflow-y: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Premium Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  animation: logoPulse 2s infinite ease-in-out;
}

.preloader-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.4rem;
  color: var(--color-text-primary);
  font-weight: 300;
}

.loader-track {
  width: 250px;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), #9E2A3B);
  box-shadow: 0 0 8px var(--color-gold);
  transition: width 0.1s ease-out;
}

#loader-text {
  font-size: 0.8rem;
  letter-spacing: 0.15rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
  }
}

/* Header Styling */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1000;
  background: #000;
  transition: var(--transition-smooth);
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.22rem;
  font-weight: 600;
  color: #D7BDAA;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .nav-links {
    display: none !important;
  }
}

.nav-link {
  color: #D7BDAA !important;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: #F0F0D4 !important;
}

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

.desktop-nav-link {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1px;
}

.desktop-nav-link:hover::after {
  width: 100%;
}

.btn-small {
  text-decoration: none;
  color: #FDFBF7;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  padding: 8px 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  border-radius: 20px;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.btn-small:hover {
  background: linear-gradient(135deg, #9E2A3B 0%, #800020 100%);
  color: #FDFBF7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Page / App Container */
#app {
  width: 100%;
  min-height: 100vh;
}

#scroll-wrapper {
  position: relative;
  width: 100%;
}

/* Sticky Canvas Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background-color: #ffffff;
}

#animation-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: cover;
  background-color: #ffffff;
  /* matches letterbox fill on mobile */
}

/* On mobile portrait the truck canvas uses contain-fit (see main.js).
   Keep the canvas full-screen — letterbox bars are filled by JS. */
@media (max-width: 767px) and (orientation: portrait) {
  #animation-canvas {
    background-color: #ffffff;
  }
}

/* Scroll Sections */
.scroll-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  z-index: 2;
  box-sizing: border-box;
}

.content {
  width: 100%;
  max-width: 800px;
  opacity: 0;
  /* Animated via GSAP */
  transform: translateY(30px);
  pointer-events: all;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loading .content {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: none !important;
}

body.loading .reveal-text {
  mask-position: 100% 0 !important;
  transition: none !important;
}

.content.active {
  opacity: 1;
  transform: translateY(0);
}

.align-center {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.align-left {
  margin-right: auto;
  text-align: left;
}

/* Hero Section specifics */
#hero-sec {
  min-height: 100vh;
}

.sub-title {
  font-size: 0.9rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

#hero-sec h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  margin-bottom: 25px;
  line-height: 1.1;
  background: linear-gradient(135deg, #3D0A13 40%, #800020 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  #hero-sec h1 {
    font-size: 2.8rem;
  }
}

.tagline {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  line-height: 1.6;
  font-weight: 300;
}

/* Mouse Scroll Hint */
.scroll-indicator {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mouse-icon {
  width: 25px;
  height: 42px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 20px;
  position: relative;
  display: block;
}

.mouse-icon .wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite ease-in-out;
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

@keyframes scrollWheel {
  0% {
    top: 8px;
    opacity: 1;
  }

  50% {
    top: 18px;
    opacity: 0;
  }

  50.1% {
    top: 8px;
    opacity: 0;
  }

  100% {
    top: 8px;
    opacity: 1;
  }
}

/* Feature Section Glasses Card */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 12px;
  max-width: 550px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-sub {
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}

.card-glass h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.card-glass p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 300;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.note-name {
  color: var(--color-text-primary);
  font-weight: 500;
}

.note-type {
  color: var(--color-gold);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.note-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.note-progress {
  height: 100%;
  background-color: var(--color-gold);
  border-radius: 2px;
  box-shadow: 0 0 5px var(--color-gold);
}

/* Quote Section */
.blockquote-overlay {
  max-width: 900px;
}

.quote-wrapper {
  position: relative;
  padding: 40px 0;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  color: rgba(215, 189, 170, 0.25);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
}

.blockquote-overlay blockquote {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.5;
  font-style: italic;
  color: #FAF7F0;
  margin-bottom: 25px;
  font-weight: 300;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .blockquote-overlay blockquote {
    font-size: 1.6rem;
  }
}

.quote-author {
  font-size: 0.9rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: #D7BDAA;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* CTA Section card */
.cta-box {
  background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(215, 189, 170, 0.85) 100%);
  border: 1px solid var(--glass-border);
  padding: 32px 24px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.08rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #3D0A13;
}

.cta-box p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 22px;
  max-width: 380px;
  margin-inline: auto;
  line-height: 1.45;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cta-actions .btn {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn {
  text-decoration: none;
  padding: 15px 35px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-gold {
  background-color: var(--color-gold);
  color: #FDFBF7;
  border: 1px solid var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  color: #FDFBF7;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .card-glass {
    padding: 30px 20px;
  }
}

/* Footer Section */
.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 8%;
  background-color: #000000 !important;
  color: #faf7f0 !important;
  border-top: 1px solid rgba(215, 189, 170, 0.2);
  text-align: center;
}

.footer p,
.footer div,
.footer span,
.footer h2,
.footer h4,
.footer li {
  color: #faf7f0 !important;
}

.footer a {
  color: #faf7f0 !important;
  transition: var(--transition-smooth);
}

.footer a:hover {
  color: #d7bdaa !important;
}

/* Scrollbar customize */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Custom styles from code.html */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hero-gradient {
  background: linear-gradient(to bottom, rgba(253, 251, 247, 0) 0%, rgba(253, 251, 247, 1) 100%);
}

.reveal-text {
  mask-image: linear-gradient(to right, white, white 50%, transparent 100%);
  mask-size: 200% 100%;
  mask-position: 100% 0;
  transition: mask-position 1.5s ease-out;
}

.reveal-text.visible {
  mask-position: 0 0;
}

.reveal-left {
  opacity: 0;
  transform: translate3d(-50px, 0, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ═══════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS — Homepage (index.html)
   ═══════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(215, 189, 170, 0.25);
  border-radius: 8px;
  z-index: 1100;
  transition: background 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #faf7f0;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 4px rgba(250, 247, 240, 0.4);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {

  /* ── Navbar ── */
  .menu-toggle {
    display: flex;
  }

  .header-right {
    gap: 0;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-bottom, 72px);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-bottom, 72px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 2px solid #000000;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    padding: 12px 16px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    z-index: 999;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-item,
  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.88rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #000000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 6px;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active,
  .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000 !important;
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  .active-mobile-link {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    font-weight: 800 !important;
  }

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

  .nav-actions a[aria-label="Shopping Cart"] {
    display: flex;
  }

  .nav-actions a:not([aria-label="Shopping Cart"]) {
    display: none;
    /* Hide wide SHOP NOW button in header on small mobile screens to prevent overflow, it is included in mobile menu */
  }

  /* ── Sections ── */
  .scroll-section {
    padding: 0 5%;
  }

  .header {
    padding: 0 5%;
  }

  #hero-sec h1 {
    font-size: 2.2rem;
    letter-spacing: 0.05rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .sub-title {
    font-size: 0.75rem;
  }

  /* Feature card */
  .card-glass {
    padding: 24px 18px;
  }

  /* Quote */
  .quote-wrapper blockquote {
    font-size: 1.1rem;
  }

  /* CTA buttons */
  .cta-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.8rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Story/Bespoke canvas sections */
  #philosophy-sec {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* Flagship map */
  #flagship-text-col,
  #flagship-map-col {
    width: 100% !important;
  }

  #flagship-map-col {
    height: 260px !important;
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .preloader-brand {
    font-size: 1rem;
    letter-spacing: 0.2rem;
  }

  .preloader-logo {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }

  .loader-track {
    width: 200px;
  }

  #hero-sec h1 {
    font-size: 1.9rem;
  }
}

/* Tablet (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .scroll-section {
    padding: 0 6%;
  }

  #hero-sec h1 {
    font-size: 3rem;
  }
}