/* Design Variables matching Logo Palette */
:root {
  --primary-navy: #1A3254;   /* Deep Slate Blue */
  --accent-red: #9E2A2B;     /* Distressed Burgundy */
  --bg-cream: #FDFBF7;       /* Off-White Background */
  --text-charcoal: #2B2D42;  /* Soft Dark Grey */
  --text-muted: #6B7280;
  --border-light: #E2E8F0;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 1. NAVIGATION HEADER */
.main-header {
  background-color: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.logo-svg {
  width: 45px;
  height: 45px;
}

.brand-name {
  font-family: 'Lobster', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-navy);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-charcoal);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: var(--accent-red);
}

.desktop-nav a.btn-nav {
  background-color: var(--primary-navy);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
}

.desktop-nav a.btn-nav:hover {
  background-color: var(--accent-red);
}

/* 2. SPLIT LAYOUT WRAPPER */
.split-layout-wrapper {
  position: relative;
  min-height: 100vh;
  margin-top: 80px;
}

/* LEFT COLUMN - SCROLLABLE CONTENT */
.content-column {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 5% 4rem calc(110px + 20px);
  pointer-events: none; /* Let scroll events pass through to canvas wrapper */
  display: flex;
  flex-direction: column;
}

.editorial-block {
  margin: 8vh 0;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  background: rgba(253, 251, 247, 0.24); /* Highly translucent cream backdrop */
  backdrop-filter: blur(30px) saturate(160%); /* High-end Apple-style frosted blur */
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28); /* Crisp translucent boundary */
  padding: 4rem 3.5rem;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3); /* Premium depth shadow */
  pointer-events: auto; /* Re-enable pointer events for form inputs and buttons */
}

.editorial-block:last-child {
  border-bottom: none;
}

.editorial-block.hero-block {
  min-height: calc(100vh - 160px);
}

.badge {
  background-color: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1.05;
  color: var(--primary-navy);
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-charcoal);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.body-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.block-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--accent-red);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #bd3a3c;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--primary-navy);
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: #fff;
}

/* Category Details Meta Styling */
.meta-row {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.meta-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-navy);
}

/* Props list styling */
.prop-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.prop-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.prop-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* 3. LOT BUILDER LAYOUT */
.builder-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.selectors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.selector-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 1.2rem;
  border-radius: 6px;
}

.item-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.counter-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter-box button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  background: #fff;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.counter-box input {
  width: 45px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  font-weight: 600;
}

/* Calculator Totals & Form */
.total-calculator {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-row.tax {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.calc-row.final {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--accent-red);
  padding-top: 1rem;
}

.validation-box {
  background: #F3F4F6;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border-left: 4px solid var(--text-muted);
}

.validation-box.valid {
  background: #ECFDF5;
  border-left-color: #10B981;
  color: #065F46;
}

.validation-box.invalid {
  background: #FEF2F2;
  border-left-color: var(--accent-red);
  color: #991B1B;
}

#order-details-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

#order-details-form input {
  height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-submit {
  height: 48px;
  border: none;
  background-color: var(--primary-navy);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:disabled {
  background-color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  background-color: var(--accent-red);
}

/* Scheduler and Accordions details styling */
.scheduler-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.scheduler-form input, .scheduler-form select {
  height: 46px;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.9rem;
}

.editorial-details {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
  cursor: pointer;
}

.editorial-details[open] {
  padding-bottom: 2.5rem;
}

.editorial-details summary {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-navy);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editorial-details summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-red);
}

.editorial-details[open] summary::after {
  content: "—";
}

.details-content {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: default;
}

.details-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer-section {
  background: rgba(26, 50, 84, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem;
  border-radius: 16px;
  color: #fff;
  margin: 8vh 0 4vh 0;
  pointer-events: auto;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-section p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-meta {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}

/* RIGHT COLUMN - STICKY CANVAS COLUMN */
.animation-column {
  width: calc(100vw - 110px);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 110px;
  z-index: 1;
  pointer-events: none;
}

.sticky-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-canvas-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(13, 13, 13, 0.15) 100%);
  z-index: 5;
  pointer-events: none;
}


.fallback-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease;
}

.fallback-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

#scroll-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#scroll-canvas.active {
  opacity: 1;
}

/* RESPONSIVE LAYOUT (Collapse to Single Column on Tablet/Mobile) */
@media (max-width: 1024px) {
  .content-column {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    border-right: none;
  }
  .vertical-logo-ribbon {
    display: none; /* Hide brand ribbon on mobile for visual focus */
  }
  .animation-column {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }
  .sticky-canvas-container {
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
  }
  #scroll-canvas {
    display: block; /* Enable interactive canvas video scrubbing on mobile */
  }
  .fallback-frame img {
    opacity: 0.5;
  }
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2rem;
  }
  .builder-columns {
    grid-template-columns: 1fr;
  }
}

/* VERTICAL SCROLL TICKER RIBBON */
.vertical-logo-ribbon {
  position: fixed;
  top: 80px;
  left: 0;
  width: 110px;
  height: calc(100vh - 80px);
  background: var(--bg-cream);
  border-right: 1px solid var(--border-light);
  z-index: 15; /* Layered directly above background canvas but below navigation */
  overflow: hidden;
}

.ribbon-track {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0;
  animation: scroll-vertical 32s linear infinite;
}

@keyframes scroll-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Typographic Logo Badge Styling */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  opacity: 0.7;
  transition: var(--transition);
}

.logo-item:hover {
  opacity: 1;
}

.brand-gucci {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
}

.brand-nike {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  font-style: italic;
}

.brand-carhartt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-lulu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
}

.mini-logo-svg {
  width: 14px;
  height: 14px;
}

.brand-levis {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.levis-badge {
  background-color: var(--accent-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.brand-coach {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.9rem;
}

.brand-adidas {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.brand-patagonia {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  border: 1px solid var(--primary-navy);
  padding: 0.1rem 0.35rem;
}

.brand-alo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.brand-champion {
  font-family: 'Reenie Beanie', cursive;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-dickies {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 2px;
}

.brand-starter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-tommy {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-quiksilver {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.brand-lacoste {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.brand-polo {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
}

.brand-jnco {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent-red);
}

/* 4. RESPONSIVE MOBILE NAVIGATION & FORM OVERRIDES */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-navy);
  transition: var(--transition);
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

@media (max-width: 768px) {
  /* Logo and brand headers */
  .logo-box {
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 1.6rem;
  }
  
  /* Show hamburger button on mobile */
  .nav-toggle {
    display: flex;
  }
  
  /* Collapsed mobile menu dropdown */
  .desktop-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-cream);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }
  
  .desktop-nav.active {
    display: flex;
  }
  
  /* Booking Form input elements stacking & width */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .scheduler-form input, .scheduler-form select {
    width: 100%;
  }

  /* Editorial Card Padding & Typography sizing */
  .editorial-block {
    padding: 2.5rem 1.5rem;
    margin: 4vh 0;
    border-radius: 12px;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .block-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn-primary, .btn-secondary {
    text-align: center;
    width: 100%;
  }
}
