/* theNorth WoodWorks - Warm Dark Walnut & Honey Amber Atelier Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&family=Pinyon+Script&display=swap');

:root {
  /* Warm Dark Walnut Palette (Rich Wood Brown Undertones) */
  --palette-walnut-base: #362C24;
  --palette-walnut-deep: #2C221B;
  --palette-walnut-card: #42372E;
  --palette-walnut-surface: #4B3F35;
  
  --palette-amber-gold: #CDB088;
  --palette-amber-light: #E5D5BF;
  --palette-milk-white: #FFFFFF;
  --palette-silk-ivory: #F7F2EC;
  --palette-muted-walnut: #B5A799;
  --palette-ice-blue: #DCE8FF;

  --color-bg-base: #362C24;
  --color-text-primary: #FFFFFF;
  --color-text-accent: #CDB088;
  --color-text-secondary: #F7F2EC;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cursive: 'Pinyon Script', cursive;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--palette-silk-ivory);
  background-color: var(--palette-walnut-base);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--palette-walnut-base);
  color: var(--palette-silk-ivory);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .font-serif-luxury {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--palette-milk-white);
}

.font-sans-chic {
  font-family: var(--font-sans);
}

.font-cursive {
  font-family: var(--font-cursive);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--palette-walnut-base);
}
::-webkit-scrollbar-thumb {
  background: var(--palette-amber-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--palette-amber-light);
}

/* Subtle Ambient Background Glowing Orbs */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
  animation: floatAmbient 22s infinite ease-in-out alternate;
}

.ambient-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #CDB088 0%, rgba(205, 176, 136, 0) 70%);
  top: 10%;
  right: -100px;
}

.ambient-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #4B3F35 0%, rgba(75, 63, 53, 0) 70%);
  bottom: 15%;
  left: -150px;
  animation-duration: 28s;
  animation-delay: -7s;
}

@keyframes floatAmbient {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  50% {
    transform: translate(60px, 80px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 120px) scale(0.95);
  }
}

/* Scroll Reveal Fade-Up */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Calligraphic Stroke & Glow Reveal on Section Pre-Headers */
.reveal-item .font-cursive {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  filter: blur(4px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.reveal-item.revealed .font-cursive {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ==========================================================================
   SMART RESPONSIVE ATELIER NAVIGATION
   ========================================================================== */
.smart-atelier-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  will-change: transform;
}

@media (min-width: 768px) {
  .smart-atelier-nav {
    height: 5rem;
    padding: 0 3rem;
  }
}

.smart-atelier-nav.nav-scrolled {
  background: rgba(44, 34, 27, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(205, 176, 136, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.smart-atelier-nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
}

.smart-nav-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media (min-width: 768px) {
  .smart-nav-logo {
    height: 2.35rem;
  }
}

.smart-nav-logo:hover {
  transform: scale(1.03);
}

/* Minimalist Right Controls */
.smart-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .smart-nav-actions {
    gap: 1.25rem;
  }
}

.smart-inquire-btn {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--palette-amber-gold);
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(205, 176, 136, 0.35);
  background: rgba(44, 34, 27, 0.5);
  transition: all 0.25s ease;
}

.smart-inquire-btn:hover {
  color: #2C221B;
  background: var(--palette-amber-gold);
  border-color: var(--palette-amber-gold);
}

.smart-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(44, 34, 27, 0.5);
  border: 1px solid rgba(205, 176, 136, 0.35);
  color: #FFFFFF;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.smart-menu-trigger:hover {
  color: var(--palette-amber-gold);
  border-color: var(--palette-amber-gold);
  background: rgba(44, 34, 27, 0.85);
}

.smart-menu-bars {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 14px;
}

.smart-menu-bars span {
  display: block;
  height: 1.5px;
  background-color: var(--palette-amber-gold);
  transition: width 0.2s ease;
}

.smart-menu-bars span:first-child {
  width: 14px;
}

.smart-menu-bars span:last-child {
  width: 9px;
}

.smart-menu-trigger:hover .smart-menu-bars span:last-child {
  width: 14px;
}

/* ==========================================================================
   BESPOKE TWO-TONE WORKSHOP STATUS BADGE
   ========================================================================== */
.workshop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.32rem 1.15rem 0.32rem 0.35rem;
  border-radius: 6px;
  background: rgba(44, 34, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(205, 176, 136, 0.38);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(205, 176, 136, 0.15);
  transition: all 0.3s ease;
}

.workshop-status-badge:hover {
  border-color: var(--palette-amber-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(205, 176, 136, 0.25);
}

.workshop-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.8rem;
  border-radius: 4px;
  background-color: var(--palette-amber-gold);
  color: #2C221B;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workshop-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2C221B;
  animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

.workshop-status-text {
  font-size: 0.75rem;
  color: var(--palette-silk-ivory);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.workshop-status-text strong {
  color: var(--palette-amber-gold);
  font-weight: 600;
}

/* ==========================================================================
   ULTRA-CLEAN SIGNATURE ATELIER GALLERY (PERFECT CENTERING & NATURAL FLOW)
   ========================================================================== */
.atelier-clean-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .atelier-clean-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .atelier-clean-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Premium Gallery Card */
.atelier-gallery-card {
  background: #2C221B;
  border: 1px solid rgba(205, 176, 136, 0.28);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.atelier-gallery-card:hover {
  transform: translateY(-7px);
  border-color: var(--palette-amber-gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(205, 176, 136, 0.25);
}

/* Perfectly Calibrated Frame & Product Centering */
.gallery-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background-color: #201914;
  cursor: pointer;
}

.gallery-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.atelier-gallery-card:hover .gallery-visual-frame img {
  transform: scale(1.05);
}

/* Floating Badges */
.gallery-badge-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: rgba(32, 25, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 176, 136, 0.4);
  color: var(--palette-amber-gold);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.gallery-hover-inspect {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  background: var(--palette-amber-gold);
  color: #2C221B;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.atelier-gallery-card:hover .gallery-hover-inspect {
  opacity: 1;
  transform: translateY(0);
}

/* Card Body */
.gallery-card-body {
  padding: 1.35rem 1.45rem 1.45rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.gallery-piece-wood {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--palette-amber-gold);
  margin-bottom: 0.35rem;
  display: block;
}

.gallery-piece-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.22;
  margin-bottom: 0.6rem;
  transition: color 0.25s ease;
}

.atelier-gallery-card:hover .gallery-piece-title {
  color: var(--palette-amber-gold);
}

.gallery-piece-desc {
  font-size: 0.78rem;
  color: rgba(247, 242, 236, 0.82);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Finish Tag Pill */
.gallery-finish-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: #362C24;
  border: 1px solid rgba(205, 176, 136, 0.25);
  font-size: 0.68rem;
  color: var(--palette-amber-gold);
  margin-bottom: 1.15rem;
}

/* Card Footer Action Bar */
.gallery-card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(205, 176, 136, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-inspect-btn {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--palette-amber-gold);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.gallery-inspect-btn:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.gallery-inquire-link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(205, 176, 136, 0.18);
  border: 1px solid rgba(205, 176, 136, 0.35);
  transition: all 0.25s ease;
}

.gallery-inquire-link:hover {
  background: var(--palette-amber-gold);
  color: #2C221B;
  border-color: var(--palette-amber-gold);
}

/* Golden Sheen Sweep on Gold Buttons */
.btn-gold-solid, .btn-gold-outline {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-gold-solid::after, .btn-gold-outline::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: all 0.75s ease;
  opacity: 0;
}

.btn-gold-solid:hover::after, .btn-gold-outline:hover::after {
  left: 125%;
  opacity: 1;
  transition: left 0.75s ease, opacity 0.3s ease;
}

@keyframes periodicSheen {
  0%, 75% {
    left: -75%;
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  95%, 100% {
    left: 130%;
    opacity: 0;
  }
}

.sheen-periodic::after {
  animation: periodicSheen 6.5s infinite ease-in-out;
}

/* Standard Buttons */
.btn-gold-solid {
  background-color: var(--palette-amber-gold);
  color: #2C221B;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid var(--palette-amber-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(205, 176, 136, 0.2);
}

.btn-gold-solid:hover {
  background-color: #FFFFFF;
  color: #2C221B;
  border-color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(205, 176, 136, 0.4);
}

.btn-gold-outline {
  border: 1.5px solid var(--palette-amber-gold);
  background-color: rgba(205, 176, 136, 0.12);
  color: var(--palette-milk-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-gold-outline:hover {
  border-color: var(--palette-amber-gold);
  background-color: var(--palette-amber-gold);
  color: #2C221B;
}

/* Luxury Cards */
.luxury-card {
  background-color: var(--palette-walnut-card);
  border: 1px solid rgba(205, 176, 136, 0.28);
  border-radius: 0.65rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.luxury-card:hover {
  transform: translateY(-5px);
  border-color: var(--palette-amber-gold);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38), 0 0 16px rgba(205, 176, 136, 0.2);
}

/* Form Inputs */
.luxury-input {
  width: 100%;
  background-color: var(--palette-walnut-deep);
  border: 1px solid rgba(205, 176, 136, 0.38);
  border-radius: 0.4rem;
  padding: 0.85rem 1.05rem;
  font-size: 0.875rem;
  color: var(--palette-milk-white);
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.luxury-input:focus {
  outline: none;
  border-color: var(--palette-amber-gold);
  background-color: var(--palette-walnut-card);
  box-shadow: 0 0 0 2px rgba(205, 176, 136, 0.35);
}

.luxury-input::placeholder {
  color: var(--palette-amber-gold);
  opacity: 0.55;
}

/* Multi-Wood Selector Cards */
.wood-select-card {
  background-color: var(--palette-walnut-deep);
  border: 1px solid rgba(205, 176, 136, 0.25);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  user-select: none;
  position: relative;
}

.wood-select-card:hover {
  border-color: rgba(205, 176, 136, 0.6);
  background-color: rgba(66, 55, 46, 0.6);
  transform: translateY(-2px);
}

.wood-select-card.selected {
  border-color: var(--palette-amber-gold);
  background-color: rgba(205, 176, 136, 0.12);
  box-shadow: 0 0 0 1px var(--palette-amber-gold), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.wood-price-tier {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(205, 176, 136, 0.18);
  color: var(--palette-amber-gold);
  border: 1px solid rgba(205, 176, 136, 0.35);
  white-space: nowrap;
}

.mix-preset-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.mix-preset-btn:hover {
  background-color: var(--palette-amber-gold);
  color: #2C221B;
  border-color: var(--palette-amber-gold);
}

/* Epoxy Configurator Flow & Interactive Color Palette */
.epoxy-format-card {
  background: var(--palette-walnut-deep);
  border: 1px solid rgba(205, 176, 136, 0.25);
  border-radius: 0.45rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  width: 100%;
}

.epoxy-format-card:hover {
  border-color: rgba(205, 176, 136, 0.6);
  background: rgba(66, 55, 46, 0.7);
}

.epoxy-format-card.active {
  border-color: var(--palette-amber-gold);
  background: rgba(205, 176, 136, 0.15);
  box-shadow: 0 0 0 1px var(--palette-amber-gold);
}

.epoxy-color-chip {
  background: var(--palette-walnut-deep);
  border: 1px solid rgba(205, 176, 136, 0.25);
  border-radius: 0.4rem;
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: 100%;
  text-align: left;
}

.epoxy-color-chip:hover {
  border-color: rgba(205, 176, 136, 0.6);
  background: rgba(66, 55, 46, 0.6);
}

.epoxy-color-chip.active {
  border-color: var(--palette-amber-gold);
  background: rgba(205, 176, 136, 0.22);
  box-shadow: 0 0 0 1px var(--palette-amber-gold);
}

.color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Centered & Perfectly Positioned Product Image Frames */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--palette-walnut-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   ATELIER SPECS LIGHTBOX MODAL & INTERACTIVE MULTI-ANGLE CAROUSEL
   ========================================================================== */
#piece-modal {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#piece-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#piece-modal .modal-card {
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  margin: auto;
}

#piece-modal.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal Carousel Styling */
.modal-carousel-wrapper {
  background-color: #16100B;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease, transform 0.35s ease;
}

.modal-carousel-img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32, 24, 19, 0.85);
  border: 1px solid rgba(205, 176, 136, 0.4);
  color: var(--palette-amber-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.carousel-nav-btn:hover {
  background: var(--palette-amber-gold);
  color: #2C221B;
  border-color: var(--palette-amber-gold);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-prev {
  left: 0.75rem;
}

.carousel-nav-next {
  right: 0.75rem;
}

.carousel-dots-container {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
  background: rgba(32, 24, 19, 0.75);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(205, 176, 136, 0.25);
  backdrop-filter: blur(8px);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 242, 236, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--palette-amber-gold);
}

.carousel-counter-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--palette-amber-gold);
  background: rgba(32, 24, 19, 0.85);
  border: 1px solid rgba(205, 176, 136, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  z-index: 10;
}

/* Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 99999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32, 24, 19, 0.92);
  border: 1.5px solid rgba(205, 176, 136, 0.6);
  color: var(--palette-amber-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto !important;
}

.modal-close-btn:hover {
  background: var(--palette-amber-gold);
  color: #2C221B;
  border-color: var(--palette-amber-gold);
  transform: scale(1.08);
}

/* Interactive Visual Thumbnail Gallery Row */
.modal-thumbnails-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #1B140F;
  border-top: 1px solid rgba(205, 176, 136, 0.25);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--palette-amber-gold) #16100B;
}

.modal-thumb-btn {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid rgba(205, 176, 136, 0.3);
  opacity: 0.55;
  cursor: pointer !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #16100B;
  padding: 0;
  pointer-events: auto !important;
}

.modal-thumb-btn:hover {
  opacity: 0.9;
  border-color: rgba(205, 176, 136, 0.7);
  transform: translateY(-2px);
}

.modal-thumb-btn.active {
  opacity: 1;
  border-color: var(--palette-amber-gold);
  box-shadow: 0 0 0 2px var(--palette-amber-gold);
  transform: scale(1.05);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.parallax-img {
  will-change: transform;
}

/* Configurator Step Indicators */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(205, 176, 136, 0.25);
  border-radius: 0.5rem;
  background-color: var(--palette-walnut-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--palette-amber-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.faq-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--palette-amber-gold);
}

/* Drawer Menu Links */
.drawer-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(205, 176, 136, 0.18);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  text-decoration: none;
}

.drawer-link-item:hover {
  color: var(--palette-amber-gold);
  padding-left: 0.75rem;
  border-color: rgba(205, 176, 136, 0.45);
}

/* Section Dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 176, 136, 0.38), transparent);
}

/* Toast */
#toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 300px;
  max-width: 400px;
  background: var(--palette-walnut-deep);
  color: var(--palette-milk-white);
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--palette-amber-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(205, 176, 136, 0.32);
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.25s ease;
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Touch & Button Optimizations */
@media (max-width: 768px) {
  /* Prevent awkward hover and magnetic movement on touch devices */
  .btn-gold-solid,
  .btn-gold-outline,
  .smart-menu-trigger,
  .smart-inquire-btn,
  .wood-select-card,
  .epoxy-format-card,
  .epoxy-color-chip,
  .gallery-inquire-link,
  .portfolio-tab {
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Crisp, responsive tactile tap feedback */
  .btn-gold-solid:active,
  .btn-gold-outline:active,
  .smart-menu-trigger:active,
  .smart-inquire-btn:active,
  .portfolio-tab:active {
    transform: scale(0.97) !important;
    opacity: 0.92;
  }

  /* Refined mobile button touch sizing */
  .btn-gold-solid,
  .btn-gold-outline {
    padding: 0.85rem 1.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    width: 100%;
  }

  /* Clean mobile header positioning */
  .smart-atelier-nav {
    padding: 0 1rem;
    height: 3.85rem;
  }
}

/* ==========================================================================
   UI/UX POLISH: SCROLL PROGRESS, BACK TO TOP & MOBILE QUICK DOCK
   ========================================================================== */

/* 1. Golden Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #CDB088 0%, #E5D5BF 50%, #FFFFFF 100%);
  box-shadow: 0 0 10px rgba(205, 176, 136, 0.7);
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* 2. Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(44, 34, 27, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 176, 136, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: #CDB088;
  border-color: #E5D5BF;
  box-shadow: 0 10px 25px rgba(205, 176, 136, 0.35);
}

.back-to-top-btn:hover svg {
  color: #2C221B;
  transform: translateY(-2px);
}

.back-to-top-btn svg {
  transition: transform 0.2s ease, color 0.2s ease;
}

/* 3. Mobile Quick Action Dock */
.mobile-quick-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(44, 34, 27, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(205, 176, 136, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    z-index: 48;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-quick-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-quick-bar.hide-down {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
  }

  .mobile-quick-btn-gold {
    flex: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    background: var(--palette-amber-gold);
    color: #2C221B;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(205, 176, 136, 0.25);
  }

  .mobile-quick-btn-gold:active {
    transform: scale(0.97);
  }

  .mobile-quick-btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.7rem;
    border-radius: 6px;
    background: rgba(66, 55, 46, 0.6);
    border: 1px solid rgba(205, 176, 136, 0.4);
    color: var(--palette-silk-ivory);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
  }

  .mobile-quick-btn-outline:active {
    transform: scale(0.97);
  }

  .back-to-top-btn {
    bottom: 4.8rem;
    right: 1rem;
    width: 2.3rem;
    height: 2.3rem;
  }
}

/* 4. Price Pulse Glow Effect */
.price-pulse-glow {
  animation: pricePulse 0.35s ease-out;
  color: var(--palette-amber-gold) !important;
  text-shadow: 0 0 12px rgba(205, 176, 136, 0.6);
}

@keyframes pricePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
