/* 
  ElevateLivingCo — Immersive Homepage Redesign Stylesheet
  Architectural 3D Door Stage, Mood Board Cards, Hotspots & Refined Editorial Sections
  Optimized for WCAG AA Contrast Compliance & Performance.
*/

/* --- 1. HERO 3D DOOR STAGE --- */
.hero-door-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  background-color: #0A0A0A;
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Perspective Container */
.door-viewport {
  position: absolute;
  inset: 0;
  perspective: 1300px;
  perspective-origin: center center;
  z-index: 2;
  pointer-events: none;
}

.door-frame {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  display: flex;
}

/* Door Panels */
.door-panel-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 50.1%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(145deg, #1C1C1C 0%, #0D0D0D 60%, #050505 100%);
  border-right: 1px solid rgba(201, 164, 74, 0.3);
  box-shadow: inset -15px 0 40px rgba(0, 0, 0, 0.95);
  will-change: transform, opacity;
}

.door-panel-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 50.1%;
  height: 100%;
  transform-origin: right center;
  background: linear-gradient(-145deg, #1C1C1C 0%, #0D0D0D 60%, #050505 100%);
  border-left: 1px solid rgba(201, 164, 74, 0.3);
  box-shadow: inset 15px 0 40px rgba(0, 0, 0, 0.95);
  will-change: transform, opacity;
}

/* Architectural Inset Moldings */
.door-molding {
  position: absolute;
  inset: 32px 28px;
  border: 1px solid rgba(201, 164, 74, 0.18);
  border-radius: 4px;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6);
  pointer-events: none;
}

.door-molding-inner {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

/* Handles & Escutcheons */
.door-escutcheon-left,
.door-escutcheon-right {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 110px;
  background: linear-gradient(180deg, #2A2A2A, #121212);
  border: 1px solid rgba(201, 164, 74, 0.35);
  border-radius: 4px;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
.door-escutcheon-left { right: 18px; }
.door-escutcheon-right { left: 18px; }

.door-handle-left,
.door-handle-right {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 70px;
  background: linear-gradient(180deg, #F0DBA0 0%, #C9A44A 50%, #8A6D24 100%);
  border-radius: 4px;
  transform: translateY(-50%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.9), 0 0 12px rgba(201, 164, 74, 0.4);
}
.door-handle-left { right: 24px; }
.door-handle-right { left: 24px; }

/* Light Beam Rays on Opening */
.door-light-beam {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(232, 201, 122, 0.4) 0%, rgba(201, 164, 74, 0.15) 35%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Interior Reveal Layer behind door */
.door-interior-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.85) 100%),
              url('/assets/images/moody-entryway.webp') center/cover no-repeat;
  opacity: 0.15;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.05);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
  will-change: opacity, filter, transform;
}

/* Hero Content Overlay */
.hero-content-layer {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
  pointer-events: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E8C97A; /* High contrast gold */
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-sub {
  font-family: var(--f-sans);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 400;
  color: #F0F0F0; /* WCAG AA High Contrast */
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px 16px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  color: #E8C97A;
  outline: none;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid #E8C97A;
  border-bottom: 2px solid #E8C97A;
  transform: rotate(45deg);
  animation: elPulseLight 2s infinite ease-in-out;
}

/* CSS Scroll Timeline Support */
@supports (animation-timeline: scroll()) {
  .door-panel-left {
    animation: doorOpenLeft linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 45vh;
  }
  .door-panel-right {
    animation: doorOpenRight linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 45vh;
  }
  .door-interior-reveal {
    animation: interiorReveal linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 45vh;
  }
}

@keyframes doorOpenLeft {
  0% { transform: rotateY(0deg); opacity: 1; }
  100% { transform: rotateY(-82deg); opacity: 0.15; }
}
@keyframes doorOpenRight {
  0% { transform: rotateY(0deg); opacity: 1; }
  100% { transform: rotateY(82deg); opacity: 0.15; }
}
@keyframes interiorReveal {
  0% { opacity: 0.15; filter: brightness(0.65); transform: scale(1.05); }
  100% { opacity: 0.95; filter: brightness(1.1); transform: scale(1); }
}

/* --- 2. SECTION: DISCOVER YOUR SPACE --- */
.section-discover {
  padding: 64px 6vw;
  background-color: var(--c-paper-cream);
  color: var(--c-dark-obsidian);
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.discover-quote {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3.2vw, 36px);
  font-style: italic;
  line-height: 1.35;
  color: #1A1A1A;
  max-width: 860px;
  margin: 0 auto 24px;
}

.discover-text {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.75;
  color: #4A4A4A; /* WCAG AA High Contrast */
  max-width: 660px;
  margin: 0 auto;
}

/* --- 3. SECTION: CHOOSE YOUR ATMOSPHERE --- */
.section-atmosphere {
  padding: 64px 6vw;
  background-color: #0B0B0B;
  color: #FFFFFF;
}

.atmosphere-header {
  text-align: center;
  margin-bottom: 48px;
}

.atmosphere-header h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  color: #FFFFFF;
  margin-bottom: 12px;
}

.atmosphere-header p {
  font-family: var(--f-sans);
  font-size: 14px;
  color: #E2E2E2; /* High Contrast */
  letter-spacing: 0.05em;
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.atmosphere-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: #141414;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--t-card) var(--ease-smooth),
              border-color var(--t-card) var(--ease-smooth),
              box-shadow var(--t-card) var(--ease-smooth);
}

.atmosphere-card:hover,
.atmosphere-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(232, 201, 122, 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  outline: none;
}

.atm-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.atm-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.atmosphere-card:hover .atm-img-wrap img {
  transform: scale(1.05);
}

.atm-body {
  padding: 24px 20px;
}

.atm-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8C97A; /* High Contrast Gold (>6:1 ratio) */
  margin-bottom: 8px;
}

.atm-title {
  font-family: var(--f-serif);
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.atm-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #E2E2E2; /* High Contrast */
}

/* --- 4. SECTION: STYLING PRINCIPLES --- */
.section-principles {
  padding: 64px 6vw;
  background-color: var(--c-paper-cream);
  color: var(--c-dark-obsidian);
}

.principles-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.principles-header h2 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 12px;
}

.principles-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.principle-step {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.principle-num {
  font-family: var(--f-serif);
  font-size: 13px;
  font-weight: 700;
  color: #9A7218; /* High Contrast Gold on White (>4.5:1) */
  margin-bottom: 12px;
}

.principle-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 16px;
}

.principle-title {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.principle-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4A4A4A;
}

/* --- 5. SECTION: ROOM HOTSPOTS --- */
.section-hotspots {
  padding: 64px 6vw;
  background-color: #0F0F0F;
  color: #FFFFFF;
}

.hotspot-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.hotspot-stage img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 201, 122, 0.95);
  border: 2px solid #FFFFFF;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(201, 164, 74, 0.6);
  transition: transform 0.25s var(--ease-smooth), background 0.25s ease;
  z-index: 10;
}

.hotspot-pin:hover,
.hotspot-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  background: #FFFFFF;
  outline: none;
}

.hotspot-card {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  background: #1A1A1A;
  border: 1px solid rgba(232, 201, 122, 0.5);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 12;
}

.hotspot-pin.active + .hotspot-card,
.hotspot-pin:hover + .hotspot-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hotspot-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.hotspot-card-desc {
  font-size: 12px;
  color: #E2E2E2;
  margin-bottom: 10px;
}

.hotspot-card-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #E8C97A;
  text-decoration: none;
}
.hotspot-card-link:hover { text-decoration: underline; }

/* --- 6. NEWSLETTER: THE ELEVATE EDIT --- */
.editorial-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

@media (max-width: 980px) {
  .editorial-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .editorial-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.newsletter-card {
  background: #0E0E0E;
  border: 1px solid rgba(201, 164, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  max-width: 760px;
  margin: 64px auto;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.newsletter-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E8C97A;
  margin-bottom: 12px;
  display: block;
}

.newsletter-card h3 {
  font-family: var(--f-serif);
  font-size: 28px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.newsletter-card p {
  font-size: 14px;
  color: #E2E2E2;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #181818;
  color: #FFFFFF;
  font-family: var(--f-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease;
}

.newsletter-form input:focus {
  border-color: #E8C97A;
}

.newsletter-form button {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, #C9A44A, #9A7728);
  color: #FFFFFF;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  opacity: 0.9;
  outline: none;
}

.newsletter-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72); /* WCAG AA Contrast */
}

/* --- 7. EDITORIAL MULTI-COLUMN FOOTER --- */
.site-footer {
  background-color: #070707;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(201, 164, 74, 0.2);
  padding: 64px 6vw 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto 48px;
}

.footer-brand-title {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.footer-brand-title .text-accent {
  color: #E8C97A;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  max-width: 380px;
}

.footer-amazon-disclosure {
  font-size: 12px;
  color: #E8C97A;
  font-style: italic;
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E8C97A;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  font-size: 13px;
  color: #E2E2E2; /* High Contrast WCAG AA */
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links-list a:hover,
.footer-links-list a:focus-visible {
  color: #E8C97A;
  outline: none;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72); /* WCAG AA Contrast */
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 980px) {
  .atmosphere-grid { grid-template-columns: 1fr; gap: 24px; }
  .principles-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title { font-size: 36px; }
}

@media (max-width: 640px) {
  .principles-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form { flex-direction: column; }
  .hero-door-stage { min-height: 560px; }
  .door-panel-left, .door-panel-right { opacity: 0.15; }
  .door-interior-reveal { opacity: 0.85; }
}

/* REDUCED MOTION OVERRIDES */
@media (prefers-reduced-motion: reduce) {
  .door-panel-left { transform: rotateY(-80deg) !important; opacity: 0.1 !important; }
  .door-panel-right { transform: rotateY(80deg) !important; opacity: 0.1 !important; }
  .door-interior-reveal { opacity: 0.95 !important; filter: brightness(1.1) !important; transform: scale(1) !important; }
}
