/* ==========================================================================
   HALFWAKE STUDIO — STYLE 5: MAISON HAUTE COUTURE LOOKBOOK DESIGN SYSTEM
   Palette:
     --bg:          #07120E (Imperial Emerald Noir)
     --bg-deep:     #040B08 (Top Bar & Deepest Shadow)
     --surface:     #0C1D17 (Deep Forest Velvet Surface)
     --silk:        #F4EBDC (Warm Champagne Silk)
     --sand:        #B5A892 (Muted Warm Sand)
     --brass:       #C8A97E (Antique Haute Brass)
     --line:        rgba(244, 235, 220, 0.12)
     --line-strong: rgba(200, 169, 126, 0.35)
   ========================================================================== */

:root {
  --bg: #07120E;
  --bg-deep: #040B08;
  --surface: #0C1D17;
  --silk: #F4EBDC;
  --sand: #B5A892;
  --brass: #C8A97E;
  --line: rgba(244, 235, 220, 0.12);
  --line-strong: rgba(200, 169, 126, 0.35);
  --serif: 'Bodoni Moda', 'Noto Serif SC', Georgia, serif;
  --sans: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Plus Jakarta Sans', monospace;
}

html, body {
  background-color: var(--bg) !important;
  color: var(--silk) !important;
  font-family: var(--sans) !important;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
.font-serif, h1, h2, h3, .maison-serif {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
}

.font-mono, .maison-mono {
  font-family: var(--mono) !important;
  letter-spacing: 0.2em !important;
}

/* Palette Utility Remapping (so every modal, form, and subpage matches Style 5) */
.bg-obsidian { background-color: var(--bg) !important; }
.bg-obsidian\/95, .bg-obsidian\/98, .bg-obsidian\/90, .bg-obsidian\/85, .bg-obsidian\/80 {
  background-color: rgba(7, 18, 14, 0.92) !important;
}
.bg-charcoal, .bg-charcoal\/90 { background-color: var(--surface) !important; }
.bg-charcoal\/30, .bg-charcoal\/50 { background-color: rgba(12, 29, 23, 0.45) !important; }
.bg-velvet { background-color: #132A22 !important; }

.text-ivory, .text-ivory\/90, .text-ivory\/85, .text-ivory\/80 { color: var(--silk) !important; }
.text-pewter, .text-pewter\/80 { color: var(--sand) !important; }
.text-gold, .text-gold-light, .text-gold-light\/90, .text-gold-light\/95 { color: var(--brass) !important; }

.border-white\/10, .border-white\/15, .border-white\/20, .border-white\/5 {
  border-color: var(--line) !important;
}
.border-gold, .border-gold\/45, .border-gold\/40, .border-gold\/50, .border-gold\/35, .border-gold\/30 {
  border-color: var(--line-strong) !important;
}

.gold-gradient-text {
  background: none !important;
  -webkit-text-fill-color: var(--brass) !important;
  color: var(--brass) !important;
  font-style: italic;
}

.gold-border-glow {
  border: 1px solid var(--line-strong) !important;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75) !important;
  border-radius: 0 !important;
}

.glass-panel {
  background: rgba(7, 18, 14, 0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-color: var(--line) !important;
}

/* Crisp Haute Couture Architectural Geometry (No Pill/Bubble Corners on Cards & Inputs) */
.rounded-3xl, .rounded-2xl, .rounded-xl, .rounded-lg {
  border-radius: 0 !important;
}

/* Primary Buttons -> Champagne Silk -> Brass Hover */
.bg-gold, .btn-gold, .btn-silk {
  background: var(--silk) !important;
  color: var(--bg) !important;
  border-radius: 0 !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
  box-shadow: none !important;
}
.bg-gold:hover, .btn-gold:hover, .btn-silk:hover {
  background: var(--brass) !important;
  color: var(--bg) !important;
  filter: none !important;
  transform: none !important;
}

/* Language Switcher */
.lang-pill-btn {
  border-radius: 0 !important;
}
.lang-pill-btn.active {
  background: var(--silk) !important;
  color: var(--bg) !important;
  font-weight: 500 !important;
}

/* Top Bar */
.maison-topbar {
  padding: 10px 24px;
  text-align: center;
  font-family: var(--mono) !important;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass) !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep) !important;
}

/* Symmetrical 3-Column Haute Couture Header */
.maison-header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.maison-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}
.maison-nav a {
  color: var(--sand);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.maison-nav a:hover, .maison-nav a.active {
  color: var(--silk);
}
.maison-crest {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.maison-crest-title {
  font-family: var(--serif) !important;
  font-size: 26px;
  letter-spacing: 0.34em;
  color: var(--silk);
  line-height: 1;
}
.maison-crest-sub {
  font-family: var(--mono) !important;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-top: 5px;
  text-transform: uppercase;
}
.maison-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* Centered Couture Runway Hero */
.maison-hero {
  padding: 68px 5vw 84px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.maison-eyebrow {
  font-family: var(--mono) !important;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--brass) !important;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.maison-hero-h1 {
  font-family: var(--serif) !important;
  font-size: clamp(40px, 5vw, 78px);
  font-weight: 400 !important;
  line-height: 1.07;
  max-width: 1080px;
  margin: 0 auto 22px;
  color: var(--silk);
}
.maison-hero-h1 em {
  font-style: italic;
  color: var(--brass);
  display: block;
  margin-top: 6px;
}
.maison-hero-sub {
  max-width: 650px;
  margin: 0 auto 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--sand);
  font-weight: 300;
}
.maison-pillars {
  max-width: 780px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.maison-stage {
  width: 100%;
  max-width: 1380px;
  min-width: 0;
  margin: 48px auto 0;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  overflow: hidden;
}
.maison-stage video {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 21 / 9;
  height: auto !important;
  object-fit: cover;
  display: block;
}

/* Asymmetric Staggered Lookbook (01 Flagship Spread + Staggered Editorial Pair) */
.lookbook-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 76px;
}
.look-item-flagship {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 36px;
  box-sizing: border-box;
  overflow: hidden;
}
.look-item-flagship > * {
  min-width: 0;
  max-width: 100%;
}
.look-pair {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px 48px;
  align-items: stretch;
  box-sizing: border-box;
}
.look-pair > * {
  min-width: 0;
  max-width: 100%;
}
.look-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.look-card > * {
  min-width: 0;
  max-width: 100%;
}
.look-card.offset {
  margin-top: 0;
}
.look-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.look-card-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.look-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  padding: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.look-video:hover {
  border-color: var(--brass);
}
.look-video video,
.aspect-video > video {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  object-fit: cover;
  display: block;
}
.aspect-video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
.look-raw-tag {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 14, 0.94);
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  box-sizing: border-box;
}
.look-raw-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.look-raw-tag img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover;
  background: #FFF;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  display: block;
}
.look-raw-more {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass);
  background: rgba(200, 169, 126, 0.1);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.look-raw-tag span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--silk);
  min-width: 0;
  flex: 1;
}

/* Before/After Matted Frame */
.maison-ba-stage {
  border: 1px solid var(--line-strong) !important;
  padding: 8px;
  background: var(--surface) !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.maison-ba-stage > div {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.maison-ba-stage video,
.maison-ba-stage img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
}

/* Form Inputs in Emerald Noir */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  background-color: var(--bg) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  color: var(--silk) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brass) !important;
  outline: none !important;
}

@media (max-width: 1023px) {
  .maison-topbar {
    font-size: 9px;
    letter-spacing: 0.14em;
    padding: 8px 12px;
    line-height: 1.4;
  }
  .maison-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 68px;
    padding: 0 16px;
    gap: 12px;
  }
  .maison-nav {
    display: none;
  }
  .maison-crest {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  .maison-crest-title {
    font-size: 19px;
    letter-spacing: 0.22em;
  }
  .maison-crest-sub {
    font-size: 8px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
  .maison-hero {
    padding: 44px 16px 52px;
  }
  .maison-hero-h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    word-break: break-word;
  }
  .maison-stage {
    padding: 6px;
    margin-top: 32px;
  }
  .maison-stage video {
    aspect-ratio: 16 / 9;
  }
  .lookbook-head {
    margin-bottom: 44px;
  }
  .look-item-flagship,
  .look-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .look-item-flagship {
    padding: 18px;
    margin-bottom: 44px;
  }
  .look-card.offset {
    margin-top: 0;
  }
}

/* Missing Tailwind Grid & Modal Utilities (for dynamic JS templates) */
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.flex-shrink-0, .shrink-0 {
  flex-shrink: 0 !important;
}
.order-1 { order: 1; }
.order-2 { order: 2; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[1320px\] { max-width: 1320px; }
.max-w-\[1600px\] { max-width: 1600px; }
.max-h-\[520px\] { max-height: 520px; }
.max-h-\[76vh\] { max-height: 76vh; }
.max-h-\[78vh\] { max-height: 78vh; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.gap-7 { gap: 1.75rem; }

/* Dedicated Industry Modal Responsive Grid */
.maison-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.maison-modal-video-col {
  order: 1;
  min-width: 0;
}
.maison-modal-info-col {
  order: 2;
  min-width: 0;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-4 {
    grid-column: span 4 / span 4 !important;
  }
  .lg\:col-span-8 {
    grid-column: span 8 / span 8 !important;
  }
  .lg\:order-1 { order: 1 !important; }
  .lg\:order-2 { order: 2 !important; }
  .maison-modal-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 2rem;
  }
  .maison-modal-info-col {
    grid-column: span 4 / span 4 !important;
    order: 1 !important;
  }
  .maison-modal-video-col {
    grid-column: span 8 / span 8 !important;
    order: 2 !important;
  }
}

