/* style.css - RM Decorações - Core Styling, Mega Menu, Editorial Layout & Interactive Simulators */

/* Font imports from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Mono&display=swap');

/* Typography Defaults */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.4rem); }

p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.highlight-gold {
  color: var(--color-gold);
  font-style: italic;
}

/* Custom Magnetic Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, transform 0.1s ease-out;
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

body.cursor-active .custom-cursor {
  width: 24px;
  height: 24px;
  background-color: var(--color-gold);
  opacity: 0.9;
}

body.cursor-active .custom-cursor-follower {
  width: 65px;
  height: 65px;
  border-color: var(--color-gold);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.4rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: var(--z-header);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.9rem var(--container-padding);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  text-transform: uppercase;
}

.brand-logo svg {
  width: 30px;
  height: 30px;
  fill: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--color-gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Dropdowns */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

.mega-menu.wide {
  min-width: 680px;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.mega-menu.wide .mega-menu-grid {
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu-col h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 0.4rem;
}

.mega-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mega-menu-item:hover {
  background: var(--color-bg-alt);
  transform: translateX(4px);
}

.mega-menu-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mega-menu-item-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.mega-menu-banner {
  background: linear-gradient(135deg, #FAF7F2 0%, #EBE4D8 100%);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-glow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  background: var(--color-text-main);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.7rem;
  background: transparent;
  border: 1px solid var(--color-text-main);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulseGreen 2.5s infinite;
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFF;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  color: #FFF;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Navigation Drawer */
.mobile-menu-btn { display: none; }

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow-y: auto;
  padding: 3rem 1.5rem;
}

.mobile-nav-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-inverse);
  transition: color 0.3s ease;
  text-align: center;
}

.mobile-nav-link:hover { color: var(--color-gold); }

/* Layout Containers & Sections */
section {
  position: relative;
  padding: var(--section-gap) var(--container-padding);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* Hero Section & Curtain Overlay */
.hero-section {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height, 80px) + 2.5rem) var(--container-padding) 4rem var(--container-padding);
}

.hero-bg-environment {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #F5EFE6 0%, #DCD4C7 70%, #C4B9A7 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(var(--ambient-brightness)) contrast(var(--ambient-contrast));
}

.window-frame-architecture {
  position: relative;
  width: 100%;
  max-width: 1140px;
  min-height: 480px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 8px solid #EBE4D8;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.08), 0 25px 70px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  margin: 0 auto;
  z-index: 2;
}

.window-sunlight-beam {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse at center, var(--light-color-temp) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(-25deg);
  pointer-events: none;
  opacity: var(--light-intensity);
  transition: opacity 0.5s ease;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 860px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--color-text-main);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 2rem;
  color: #4A4A4C;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.curtain-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  transition: transform 0.5s ease;
}

.curtain-panel {
  position: relative;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, 
    #E4DDD3 0%, 
    #FAF8F5 15%, 
    #D0C7B9 30%, 
    #FAF8F5 45%, 
    #C6BCAE 60%, 
    #EFEBE4 75%, 
    #BDB2A3 90%, 
    #DDD6CA 100%);
  background-size: 200px 100%;
  box-shadow: inset -10px 0 30px rgba(0,0,0,0.15);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.curtain-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.4) 0px,
    rgba(0,0,0,0.08) 25px,
    rgba(255,255,255,0.3) 50px,
    rgba(0,0,0,0.06) 75px
  );
  pointer-events: none;
}

.curtain-left { transform-origin: left center; border-right: 1px solid rgba(0,0,0,0.05); }
.curtain-right { transform-origin: right center; border-left: 1px solid rgba(0,0,0,0.05); }

.curtain-opened .curtain-left { transform: translateX(-92%); }
.curtain-opened .curtain-right { transform: translateX(92%); }

.curtain-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  color: var(--color-graphite);
  background: rgba(247, 246, 242, 0.94);
  padding: 2.2rem 3.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.curtain-prompt.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -60%) scale(0.95);
}

.curtain-drag-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Light Level Comparator */
.light-level-comparator-section {
  background: var(--color-bg-alt);
  padding: 6rem var(--container-padding);
}

.comparator-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.comparator-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comparator-tabs-nav {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.light-level-btn {
  padding: 0.9rem 1.6rem;
  background: var(--color-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.light-level-btn:hover, .light-level-btn.active {
  border-color: var(--color-gold);
  background: var(--color-graphite);
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.comparator-info-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
  transition: background-color 0.8s ease, color 0.8s ease;
}

.blackout-active .comparator-info-box {
  background: rgba(26, 26, 28, 0.95);
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.1);
}

.blackout-active .comparator-info-box h3,
.blackout-active .comparator-info-box p {
  color: var(--color-text-inverse);
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: var(--color-surface);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.swatch-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  background: #FFF;
}

.swatch-item.active {
  border-color: var(--color-gold);
  background: var(--color-graphite);
  color: var(--color-gold);
  box-shadow: 0 4px 12px var(--color-gold-glow);
}

.swatch-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.swatch-preto { background: #1A1A1A; }
.swatch-cerejeira { background: #8B4513; }
.swatch-branco { background: #FFFFFF; }
.swatch-marfim { background: #FFFFF0; }
.swatch-marrom { background: #5C4033; }
.swatch-ouro-velho { background: #B8860B; }

.comparator-room-stage {
  position: relative;
  height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #F5EFE6;
  transition: background-color 0.8s ease, filter 0.8s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
}

.comparator-window-blind-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, rgba(240, 235, 226, 0.92) 0%, rgba(225, 216, 203, 0.92) 100%);
  border-left: 4px solid var(--color-gold);
  border-bottom: 8px solid #9E9484;
  box-shadow: -12px 0 35px rgba(0,0,0,0.18);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.8s ease, background-color 0.8s ease;
}

.room-stage-watermark {
  position: relative;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.6);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.blackout-active .room-stage-watermark {
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.6);
}

.comparator-fabric-layer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.3) 0px,
    rgba(0,0,0,0.08) 30px,
    rgba(255,255,255,0.2) 60px
  );
  opacity: 0.35;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.comparator-artificial-glow {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 120, 0.45) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.blackout-active .comparator-artificial-glow { opacity: 1; }

/* Simulator Blinds Styles */
.blind-drape-left, .blind-drape-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #E6DEC8 0%, #FAF6EE 50%, #D8CFAF 100%);
  box-shadow: inset -5px 0 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-out;
}
.blind-drape-left { left: 0; transform-origin: left; }
.blind-drape-right { right: 0; transform-origin: right; }

.blind-double-stripes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.double-stripe {
  height: 10%;
  background: repeating-linear-gradient(180deg, rgba(200, 190, 175, 0.9) 0%, rgba(200, 190, 175, 0.9) 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 100%);
  transition: transform 0.15s ease-out;
}

.blind-blackout-heavy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, #2A2A2D 0%, #151517 100%);
  border-bottom: 6px solid var(--color-gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transition: height 0.1s linear;
}

.blind-blackout-darkness {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Commercial Products Grid */
.commercial-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.commercial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2.2rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.commercial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-glow);
}

.commercial-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--color-bg-alt);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

/* Customization Showroom */
.customization-section { background: var(--color-bg); }
.variations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.variation-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 2.2rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); text-align: center; }
.variation-icon-wrap { width: 60px; height: 60px; background: var(--color-bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; }
.variation-icon-wrap svg { width: 28px; height: 28px; fill: var(--color-gold); }

/* Introdução & Light Beam Preview */
.light-intro-section { background-color: var(--color-bg-alt); text-align: center; overflow: hidden; }
.intro-content-wrapper { max-width: 900px; margin: 0 auto; }
.light-ambient-preview { position: relative; height: 380px; margin-top: 3.5rem; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #EBE4D8 0%, #D8CFC0 100%); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; }
.light-beam-overlay { position: absolute; inset: 0; background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 238, 204, 0.55) 0%, rgba(26, 26, 26, 0.3) 75%); mix-blend-mode: soft-light; transition: background 0.1s ease-out; pointer-events: none; }

/* Simulator Section */
.solutions-section { background-color: var(--color-bg); }
.solutions-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3.5rem; margin-top: 3rem; align-items: start; }
.solution-tabs { display: flex; flex-direction: column; gap: 0.8rem; }
.tab-btn { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.6rem; background: var(--color-surface); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-md); text-align: left; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; color: var(--color-text-muted); transition: var(--transition-fast); cursor: pointer; }
.tab-btn:hover, .tab-btn.active { background: var(--color-graphite); color: var(--color-text-inverse); border-color: var(--color-graphite); transform: translateX(6px); }
.tab-btn.active .tab-icon { fill: var(--color-gold); }
.tab-icon { width: 20px; height: 20px; fill: var(--color-text-light); transition: fill 0.3s ease; }
.solution-stage { position: relative; height: 540px; background: #EAE5DC; border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.08); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; }
.interactive-window-sim { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #F3ECE1 0%, #D8CFC0 100%); }
.window-sim-frame { position: relative; width: 80%; height: 80%; background: #FFF; border: 8px solid #C8C0B2; border-radius: 8px; box-shadow: inset 0 0 40px rgba(0,0,0,0.1); overflow: hidden; }
.blind-rolo-fabric { position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(180deg, #D4CBBC 0%, #E8E2D6 100%); border-bottom: 8px solid #A89F90; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: height 0.1s linear; }
.blind-horizontal-slats { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; }
.slat { width: 100%; height: 12px; background: #E0D8CB; border-bottom: 1px solid rgba(0,0,0,0.15); transform-origin: center; transition: transform 0.2s ease, background-color 0.2s ease; }
.blind-romana-folds { position: absolute; top: 0; left: 0; width: 100%; height: 50%; display: flex; flex-direction: column; background: #DDD5C7; box-shadow: 0 12px 30px rgba(0,0,0,0.2); transition: height 0.3s ease; }
.fold { flex: 1; border-bottom: 3px solid #BBB1A1; background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent); }
.solution-controls { position: relative; z-index: 5; background: var(--glass-bg); backdrop-filter: var(--glass-blur); padding: 1.2rem 1.8rem; border-radius: var(--radius-md); border: var(--glass-border); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.control-group { display: flex; align-items: center; gap: 1rem; flex: 1; }
.control-slider { flex: 1; accent-color: var(--color-gold); height: 6px; background: #DDD; border-radius: 3px; cursor: pointer; }

/* Sinta o Tecido */
.fabric-touch-section { position: relative; height: 70vh; background: var(--color-graphite); color: var(--color-text-inverse); overflow: hidden; display: flex; align-items: center; justify-content: center; }
#clothCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.fabric-content-overlay { position: relative; z-index: 5; text-align: center; pointer-events: none; max-width: 650px; }
.fabric-content-overlay h2 { color: var(--color-text-inverse); }
.fabric-content-overlay p { color: #B5B5B8; }

/* Laboratório da Luz */
.light-lab-section { background-color: var(--color-bg-alt); }
.lab-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.lab-preview-box { position: relative; height: 480px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, #F0EADF 0%, #D8CFC0 100%); display: flex; align-items: center; justify-content: center; }
.room-layer-img { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #FAF6F0 0%, #E2D9CB 100%); filter: brightness(var(--light-intensity)) contrast(var(--ambient-contrast)); transition: filter 0.3s ease; }
.room-light-filter { position: absolute; inset: 0; background: var(--light-color-temp); opacity: var(--ambient-overlay-opacity); pointer-events: none; transition: opacity 0.3s ease, background 0.3s ease; }
.lab-preset-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.preset-btn { padding: 1rem 1.2rem; background: var(--color-surface); border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; text-align: center; transition: var(--transition-fast); cursor: pointer; }
.preset-btn:hover, .preset-btn.active { background: var(--color-gold); color: var(--color-text-main); border-color: var(--color-gold); }

/* Serviços */
.services-section { background-color: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.service-card { position: relative; background: var(--color-surface); padding: 3rem 2.5rem; border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); transition: var(--transition-smooth); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--color-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-number { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-gold); margin-bottom: 1.5rem; }
.service-title { margin-bottom: 1rem; }

/* História & Timeline */
.history-section { background-color: var(--color-graphite); color: var(--color-text-inverse); position: relative; }
.history-section h2, .history-section p { color: var(--color-text-inverse); }
.history-section p { color: #C0C0C4; }
.timeline-wrapper { position: relative; max-width: 900px; margin: 5rem auto 0 auto; }
.timeline-svg-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; z-index: 1; }
.timeline-svg-line path { stroke: var(--color-gold); stroke-width: 3; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.5s ease-out; }
.timeline-item { position: relative; width: 45%; margin-bottom: 4rem; z-index: 2; opacity: 0; transform: translateY(30px); transition: var(--transition-smooth); }
.timeline-item.revealed { opacity: 1; transform: translateY(0); }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 55%; text-align: left; }
.timeline-badge { display: inline-block; padding: 0.4rem 1.2rem; background: var(--color-gold); color: var(--color-text-main); font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; border-radius: var(--radius-full); margin-bottom: 1rem; }

/* Diferencial Pós-Venda */
.pos-venda-section { background-color: var(--color-bg); text-align: center; }
.flow-chart-container { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 4rem 0; flex-wrap: wrap; }
.flow-step { padding: 1.4rem 2rem; background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.06); font-family: var(--font-body); font-weight: 600; color: var(--color-text-muted); box-shadow: var(--shadow-sm); }
.flow-arrow { font-size: 1.5rem; color: var(--color-gold); }
.flow-highlight { background: var(--color-graphite); color: var(--color-gold); border-color: var(--color-gold); transform: scale(1.08); box-shadow: var(--shadow-md); }

/* Antes e Depois */
.before-after-section { background-color: var(--color-bg-alt); }
.curtain-reveal-comparator { position: relative; width: 100%; height: 560px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 3rem; user-select: none; }
.after-image-layer, .before-image-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.before-image-layer { background: #D9D2C5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 1000 600"><rect width="1000" height="600" fill="%23D0C6B5"/><text x="50%" y="50%" font-size="28" font-family="Georgia" fill="%238C8272" text-anchor="middle">Ambiente Sem Tratamento de Luz (Antes)</text></svg>') center/cover; }
.after-image-layer { background: #FAF7F2 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 1000 600"><rect width="1000" height="600" fill="%23F4EFE6"/><text x="50%" y="50%" font-size="32" font-family="Georgia" fill="%23C5A059" text-anchor="middle">Ambiente Transformado com RM Decorações (Depois)</text></svg>') center/cover; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); transition: clip-path 0.05s linear; }
.comparator-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--color-gold); cursor: ew-resize; z-index: 10; transform: translateX(-50%); }
.comparator-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: var(--color-graphite); color: var(--color-gold); border: 2px solid var(--color-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; box-shadow: 0 0 20px rgba(0,0,0,0.3); }

/* Configurator Wizard */
.configurator-section { background-color: var(--color-bg); }
.wizard-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 3.5rem; max-width: 900px; margin: 3rem auto 0 auto; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.05); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.5s ease; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.option-btn { padding: 1.5rem 1.2rem; background: var(--color-bg); border: 2px solid transparent; border-radius: var(--radius-md); text-align: center; font-family: var(--font-body); font-weight: 500; cursor: pointer; transition: var(--transition-fast); }
.option-btn:hover, .option-btn.selected { border-color: var(--color-gold); background: #FFF; transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* Portfólio & Modal Fullscreen */
.portfolio-section { background-color: var(--color-bg-alt); }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.portfolio-item { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 380px; cursor: pointer; box-shadow: var(--shadow-sm); }
.portfolio-item:nth-child(2) { height: 480px; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-item:hover .portfolio-img { transform: scale(1.08); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,26,26,0.85) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; color: var(--color-text-inverse); opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-modal { position: fixed; inset: 0; background: rgba(18, 18, 20, 0.95); backdrop-filter: blur(20px); z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.portfolio-modal.active { opacity: 1; pointer-events: auto; }
.modal-close-btn { position: absolute; top: 2rem; right: 3rem; color: #FFF; font-size: 2.5rem; cursor: pointer; }
.modal-content-img { max-width: 85%; max-height: 80vh; border-radius: var(--radius-md); box-shadow: 0 30px 90px rgba(0,0,0,0.5); }

/* Encerramento & Footer */
.cta-closing-section { background: var(--color-graphite); color: var(--color-text-inverse); text-align: center; padding: 8rem var(--container-padding); }
.cta-closing-section h2 { color: var(--color-text-inverse); }
.footer { background: #121214; color: #8E8E93; padding: 4rem var(--container-padding) 2rem var(--container-padding); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-container { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-bottom { max-width: var(--container-max); margin: 3rem auto 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; font-size: 0.85rem; }

/* ============================================================
   RM CAROUSEL & MEDIA MODAL (REAL PHOTOS & VIDEOS)
   ============================================================ */
.rm-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-graphite);
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 520px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .carousel-slide {
    height: 380px;
  }
}

.carousel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.5rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 20, 0.88) 100%);
  color: #FFF;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.carousel-caption-overlay h4 {
  font-size: 1.2rem;
  color: #FFF;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}

.carousel-caption-overlay p {
  font-size: 0.9rem;
  color: #C0C0C4;
  margin: 0;
}

.carousel-btn-prev, .carousel-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(18, 18, 20, 0.65);
  backdrop-filter: blur(8px);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-btn-prev:hover, .carousel-btn-next:hover {
  background: var(--color-gold);
  color: #121214;
  border-color: var(--color-gold);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev { left: 1.5rem; }
.carousel-btn-next { right: 1.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-dot.active {
  background: var(--color-gold);
  width: 28px;
  border-radius: 10px;
}

/* Video Grid & Cards */
.media-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.media-portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.media-card-thumb-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.media-card-thumb-wrap img, .media-card-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-portfolio-card:hover .media-card-thumb-wrap img {
  transform: scale(1.06);
}

.media-badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.8rem;
  background: rgba(18, 18, 20, 0.75);
  backdrop-filter: blur(6px);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gold-glow);
  z-index: 2;
}

.media-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(197, 160, 89, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  color: #121214;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.media-portfolio-card:hover .media-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
}

.media-card-info {
  padding: 1.5rem;
}

.media-card-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.media-card-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Lightbox Modal */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.media-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(15px);
}

.media-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-modal-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.media-modal-close:hover {
  color: var(--color-gold);
}

.modal-image-element, .modal-video-element {
  max-width: 88vw;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

.media-modal-caption {
  margin-top: 1rem;
  color: #DDD;
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
}

