:root {
  --navy: #020612; /* Deep dark navy matching logo */
  --ivory: #FAF7F2;
  --gold: #1A429C; /* Now Royal Blue matching logo accent */
  --lavender: #A99AC5;
  --charcoal: #252525;
  --grey: #E8E4DE;
  --white: #FFFFFF;
  --line: rgba(2, 6, 18, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;
  --muted: #6f6a63;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.announcement {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 20px;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  transition: background-color 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.brand { display: flex; align-items: center; }
.header-logo {
  width: 190px;
  height: auto;
}

.nav-links { display: flex; gap: 32px; align-items: center; font-size: 0.9rem; font-weight: 500; }
.nav-links > a:not(.nav-cta) { position: relative; transition: color 0.3s ease; }
.nav-links > a:not(.nav-cta):hover { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 10px 22px;
  transition: all 0.3s ease;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: 0.3s ease; }

.section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }

.eyebrow { color: var(--gold); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 600; margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--navy); margin: 0; }
h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 650px; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -0.01em; }

.hero {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 134px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0 80px;
}
.hero-text { font-size: 1.1rem; color: var(--charcoal); margin: 24px 0 40px; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 999px; font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.button-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 24px rgba(7, 19, 41, 0.15); }
.button-primary:hover { transform: translateY(-2px); background: #0a1b3a; box-shadow: 0 12px 32px rgba(7, 19, 41, 0.2); }

.text-link { font-size: 0.95rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid var(--charcoal); transition: color 0.3s ease, border-color 0.3s ease; }
.text-link:hover { color: var(--gold); border-color: var(--gold); }
.text-link span { margin-left: 6px; font-size: 1.1em; }

.hero-visual {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  background: var(--grey);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-heading { display: flex; flex-direction: column; max-width: 600px; margin-bottom: 60px; }
.section-heading p:last-child { color: var(--charcoal); margin: 20px 0 0; font-size: 1.1rem; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey);
  min-height: 400px;
  border: 1px solid var(--line);
  display: block; /* Make a tag block */
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}
.collection-card-tall { grid-row: span 2; min-height: 830px; }
.collection-card-wide { grid-column: 1 / -1; min-height: 400px; }

.card-image { 
  position: absolute; inset: 0; z-index: 1; 
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}
.collection-card:hover .card-image { transform: scale(1.03); }
.collection-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.collection-meta {
  position: absolute; bottom: 30px; left: 30px; z-index: 2;
  background: rgba(250, 247, 242, 0.95);
  padding: 24px;
  border-radius: var(--radius-md);
  max-width: calc(100% - 60px);
  backdrop-filter: blur(8px);
  transition: transform 0.4s ease;
}
.collection-card:hover .collection-meta { transform: translateY(-4px); }
.collection-meta > span { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 600; }
.collection-meta h3 { font-size: 1.75rem; margin: 8px 0 4px; color: var(--navy); }
.collection-meta p { color: var(--charcoal); margin: 0; font-size: 0.9rem; }

/* LAUNCH EDIT SECTION */
.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.launch-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.launch-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.05); transform: translateY(-4px); }
.launch-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.launch-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--grey);
}
.launch-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.launch-card:hover .launch-img-wrap img { transform: scale(1.04); }
.launch-info { padding: 24px 20px; }
.launch-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 6px; }
.launch-info h3 { font-size: 1.25rem; font-family: var(--font-serif); margin: 0 0 12px; }
.launch-badge {
  display: inline-block; padding: 4px 10px;
  background: var(--ivory); color: var(--navy);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 4px; border: 1px solid var(--line);
}

/* SHOP SECTION */
.category-filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--navy);
}
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.empty-category-msg {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-sans);
}
.empty-category-msg p {
  margin: 0;
}
.empty-category-msg p:last-child {
  margin-top: 8px;
  font-weight: 500;
  color: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { 
  box-shadow: 0 16px 40px rgba(0,0,0,0.05); 
  transform: translateY(-4px); 
}
.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--grey);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card:hover .product-img-wrap img { 
  transform: scale(1.04); 
}
.product-info { 
  padding: 24px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-info h3 { 
  font-size: 1.25rem; 
  font-family: var(--font-serif); 
  margin: 0 0 8px; 
}
.product-price { 
  font-size: 1.15rem; 
  font-weight: 600; 
  color: var(--gold); 
}

.promise { background: var(--ivory); }
.promise-content { max-width: 800px; margin: 0 auto; text-align: center; }
.promise-disclaimer { font-size: 0.8rem; color: var(--charcoal); opacity: 0.7; margin-top: 16px; }
.trust-points {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
  margin-top: 60px; text-align: left;
}
.trust-item { border-top: 1px solid var(--line); padding-top: 24px; }
.trust-icon { width: 32px; height: 32px; color: var(--gold); margin-bottom: 16px; display: block; }
.trust-item strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.trust-item p { color: var(--charcoal); margin: 0; font-size: 0.95rem; }

.story-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(7,19,41,0.04);
}
.story-image { width: 100%; height: 100%; min-height: 500px; object-fit: cover; background: var(--grey); }
.story-copy { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.story-copy h2 { margin-bottom: 24px; }
.story-copy p { margin: 0 0 16px; font-size: 1.05rem; }

.waitlist-card {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.waitlist-card h2 { color: var(--white); margin-bottom: 16px; }
.waitlist-card p { opacity: 0.9; margin: 0; font-size: 1.05rem; }
.waitlist-form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.waitlist-form input {
  width: 100%; height: 52px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  padding: 0 20px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist-form input:focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,0.1); }
.waitlist-form .button { margin-top: 8px; background: var(--gold); color: var(--navy); }
.waitlist-form .button:hover { background: #dcb87d; }
.form-message { min-height: 20px; font-size: 0.85rem; color: var(--ivory); opacity: 0.8; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 24px 0; }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary span { font-family: var(--font-sans); font-size: 1.5rem; transition: transform 0.3s ease; color: var(--gold); }
details[open] summary span { transform: rotate(45deg); }
details p { margin: 16px 0 0; font-size: 1.05rem; max-width: 800px; padding-right: 40px; }

footer {
  background: var(--navy); color: var(--ivory);
  padding: 80px max(24px, calc((100vw - 1240px) / 2)) 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.footer-logo { width: 140px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.brand-tagline { display: block; font-size: 0.65rem; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 16px; }
.footer-desc { font-size: 0.95rem; opacity: 0.8; max-width: 300px; margin: 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 32px; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
.footer-policies { grid-column: 1 / -1; display: flex; gap: 24px; font-size: 0.8rem; opacity: 0.7; margin-top: 20px; }
.footer-policies a:hover { opacity: 1; text-decoration: underline; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(250,247,242,0.1); padding-top: 24px; margin: 0; font-size: 0.8rem; opacity: 0.5; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; text-align: center; }
  .hero-text { margin: 20px auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 450px; }
  .section-heading { margin: 0 auto 40px; text-align: center; }
  
  .launch-grid { grid-template-columns: repeat(2, 1fr); }
  
  .waitlist-card { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 50px 40px; }
  .trust-points { gap: 30px; }
  .story-panel { grid-template-columns: 1fr; }
  .story-image { min-height: 400px; }
  .story-copy { padding: 60px 40px; text-align: center; }
  footer { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-logo { margin: 0 auto 12px; }
  .footer-desc { margin: 0 auto; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .footer-policies { justify-content: center; flex-wrap: wrap; margin-top: 0; }
}

@media (max-width: 768px) {
  .announcement { font-size: 0.65rem; }
  .site-header { min-height: 70px; }
  .header-logo { width: 140px; }
  .menu-toggle { display: block; z-index: 60; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; background: var(--ivory);
    flex-direction: column; justify-content: center; gap: 30px;
    font-family: var(--font-serif); font-size: 2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    z-index: 55;
  }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-cta { font-family: var(--font-sans); font-size: 1.1rem; }
  
  .section { padding: 80px 0; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-visual { height: 350px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card, .collection-card-tall, .collection-card-wide { min-height: 380px; grid-column: auto; grid-row: auto; }
  
  .launch-grid { grid-template-columns: 1fr; }
  
  .trust-points { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .trust-icon { margin: 0 auto 12px; }
  
  .waitlist-card { padding: 40px 24px; border-radius: var(--radius-md); }
  summary { font-size: 1.15rem; gap: 16px; }

  /* Mobile Cart & Checkout Optimizations */
  .header-actions { margin-left: auto; margin-right: 15px; }
  .checkout-container { padding: 24px 16px !important; }
  .cart-container { padding: 0 10px; }
  .cart-item { flex-wrap: wrap; gap: 10px !important; }
  .cart-item img { width: 60px !important; height: 80px !important; }
  .cart-item h4 { font-size: 1rem; }
  .cart-item > div:nth-child(2) { flex: 1 1 100%; margin-bottom: 8px; }
  .nav-cart { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .collection-card:hover .card-image { transform: none; }
  .launch-card:hover .launch-img-wrap img { transform: none; }
}
