/**
 * ====================================================================
 * SHAGUN STEEL & FURNITURE - MAIN LAYOUT & RESPONSIVE STYLES
 * ====================================================================
 */

@import url('variables.css');
@import url('reset.css');
@import url('components.css');

/* ====================================================================
 * PAGE LAYOUT & AMBIENT 3D BACKGROUND
 * ==================================================================== */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--bg-gradient-page);
  background-attachment: fixed;
}

/* Ambient Glowing Orbs with 3D Float Animation */
.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 540px;
  height: 540px;
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.45) 0%, rgba(244, 197, 66, 0) 70%);
}

.orb-2 {
  width: 580px;
  height: 580px;
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(201, 8, 18, 0.22) 0%, rgba(201, 8, 18, 0) 70%);
  animation-delay: -6s;
}

@keyframes ambientFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(40px, 30px, 0) scale(1.12);
  }
}

/* ====================================================================
 * SITE HEADER (+30% BIGGER LOGO - 104px)
 * ==================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 248, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 213, 180, 0.7);
  box-shadow: 0 4px 20px rgba(29, 29, 29, 0.04);
  transition: all var(--transition-normal);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left Brand Logo (+30% Larger: 104px) */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  z-index: 100;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover {
  transform: translateY(-2px);
}

.brand-logo-img {
  height: 104px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

@media (max-width: 580px) {
  .brand-logo-img {
    height: 72px;
    max-width: 220px;
  }
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: none;
}

@media (min-width: 901px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-heading);
  text-decoration: none;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-ruby);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta-item {
  margin-left: var(--space-2);
}

/* ====================================================================
 * MOBILE NAVIGATION DRAWER & BACKDROP OVERLAY
 * ==================================================================== */

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 29, 0.45);
  backdrop-filter: blur(6px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: #FFFBF5;
  border-left: 2px solid var(--color-gold-border);
  box-shadow: -10px 0 35px rgba(29, 29, 29, 0.18);
  z-index: 98;
  padding: calc(var(--header-height) + var(--space-6)) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-heading);
  text-decoration: none;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(231, 213, 180, 0.4);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-primary-ruby);
  padding-left: var(--space-2);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* ====================================================================
 * HERO SECTION (FULL SCREEN / 3D SPLIT LAYOUT)
 * ==================================================================== */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.hero-section {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: var(--space-10) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
  }
}

/* Left Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: enter3DLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes enter3DLeft {
  0% {
    opacity: 0;
    transform: translate3d(-30px, 20px, 0) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-welcome-badge {
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-ruby);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(201, 8, 18, 0.1);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-luxury-maroon);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

.hero-gold-divider {
  width: 72px;
  height: 3.5px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 8px rgba(244, 197, 66, 0.4);
}

.hero-description {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: var(--line-height-loose);
  color: var(--color-text-body);
  max-width: 580px;
  margin-bottom: var(--space-8);
}

.hero-btn-group {
  margin-top: var(--space-2);
}

@media (max-width: 640px) {
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn-group .btn {
    width: 100%;
  }
}

/* Right Hero Media Stage */
.hero-media {
  animation: enter3DRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes enter3DRight {
  0% {
    opacity: 0;
    transform: translate3d(30px, 20px, 0) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ====================================================================
 * SECTION LAYOUTS
 * ==================================================================== */

.section-padding {
  padding: var(--space-20) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-12) 0;
  }
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.95rem;
  background: rgba(244, 197, 66, 0.15);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-full);
  color: var(--color-primary-ruby);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-heading-primary {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* ====================================================================
 * SCROLL-TRIGGERED 3D REVEAL ANIMATIONS
 * ==================================================================== */

.reveal-3d {
  opacity: 0;
  transform: translate3d(0, 35px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-3d.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Staggered Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
