/* ========================================
   DREAM INTERIORS — Custom Styles
   Surreal Luxury Editorial Design
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-slow: 1.2s;
  --duration-medium: 0.7s;
  --duration-fast: 0.4s;
}

/* ---- Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* font-weight: 700 applied per-element via Tailwind classes */

img {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}

picture img {
  width: 100%;
  height: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

html {
  scroll-behavior: smooth;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

::selection {
  background: rgba(212, 197, 169, 0.2);
  color: #faf7f2;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #1a1a18;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 197, 169, 0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 197, 169, 0.5);
}

/* ---- Preloader ---- */

.preloader-title,
.preloader-label {
  opacity: 0;
  transform: translateY(20px);
}

#preloader-percent {
  font-variant-numeric: tabular-nums;
}

.preloader-logo {
  filter: drop-shadow(0 0 14px rgba(212, 197, 169, 0.35));
}

/* ---- Navigation ---- */
#nav {
  transition: background-color 0.7s var(--ease-luxury),
              backdrop-filter 0.7s var(--ease-luxury),
              box-shadow 0.7s var(--ease-luxury);
}

#nav.scrolled {
  background-color: rgba(16, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(174, 180, 187, 0.16);
}

#nav.scrolled .nav-link {
  color: #faf7f2;
}

#nav.scrolled .nav-link:hover {
  color: #c9ced4;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(212, 197, 169, 0.5);
  transition: width 0.5s var(--ease-luxury);
}

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

/* ---- Mobile Menu ---- */
#mobile-menu {
  transition: opacity 0.01s;
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-menu-items a {
  opacity: 0;
  transform: translateY(40px);
}

#mobile-menu.active .mobile-menu-items a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-footer {
  opacity: 0;
  transform: translateY(20px);
}

#mobile-menu.active .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Menu Toggle ---- */
#menu-toggle .menu-line:nth-child(1) {
  transform: translateY(0) rotate(0);
}

#menu-toggle .menu-line:nth-child(3) {
  transform: translateY(0) rotate(0);
  width: 1rem;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero-content {
  pointer-events: none;
}

.hero-content a,
.hero-content button,
.hero-content label,
.hero-content input,
.hero-content select,
.hero-content textarea {
  pointer-events: auto;
}

.hero-materials {
  pointer-events: none;
}

.hero-materials a {
  pointer-events: auto;
}

.hero-shape {
  opacity: 0;
}

.hero-side-label,
.hero-title-block,
.hero-tagline,
.hero-cta-group,
.hero-materials,
.hero-scroll-indicator,
.hero-stats,
.hero-expertise-badge {
  opacity: 0;
}

/* ---- Expertise Badge ---- */
.hero-expertise-inner {
  position: relative;
}

.expertise-glow {
  text-shadow:
    0 0 14px rgba(179, 166, 245, 0.4),
    0 0 34px rgba(179, 166, 245, 0.22),
    0 0 72px rgba(179, 166, 245, 0.15);
}

.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---- Reveal Animations ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
}

/* ---- Service Items ---- */
.service-item {
  transition: background-color 0.7s var(--ease-luxury);
}

.service-item:hover {
  background-color: rgba(35, 35, 32, 0.5);
}

/* ---- Interior Category Cards ---- */
.interior-card {
  margin: 0;
}

.interior-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: #232320;
  aspect-ratio: 4 / 5;
}

.interior-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 197, 169, 0.12);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color 0.7s var(--ease-luxury);
  z-index: 2;
}

.interior-card:hover .interior-media::after {
  border-color: rgba(212, 197, 169, 0.35);
}

/* Small gallery cards adopt a wider ratio like selected works */
.interior-card.lg\:col-span-4 .interior-media {
  aspect-ratio: 4 / 3;
}

/* ---- Image Placeholder ---- */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(212, 197, 169, 0.08) 0%, transparent 48%),
    linear-gradient(160deg, #282823 0%, #1d1d1a 100%);
  transition: transform 0.8s var(--ease-luxury), background 0.6s var(--ease-luxury);
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 197, 169, 0.35), transparent);
  z-index: 1;
}

.interior-card:hover .img-placeholder {
  transform: scale(1.05);
}

.img-placeholder-name {
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(212, 197, 169, 0.65);
  word-break: break-word;
}

/* ---- Branding mark on interior images ---- */
.interior-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(26, 26, 24, 0.72), rgba(26, 26, 24, 0));
  pointer-events: none;
}

.interior-brand img {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 1px 4px rgba(26, 26, 24, 0.6));
}

/* ---- Final image swap (used when real photographs are added) ---- */
.interior-media .interior-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-luxury);
  cursor: zoom-in;
}

.interior-card:hover .interior-media .interior-img {
  transform: scale(1.08);
}

/* ---- Sacred Spaces (Premium) ---- */
.sacred-spaces {
  position: relative;
  padding: 3rem 2rem 4rem;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 167, 92, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 167, 92, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(35, 35, 32, 0.55), rgba(26, 26, 24, 0.75));
  border: 1px solid rgba(212, 167, 92, 0.18);
  box-shadow:
    0 0 60px rgba(212, 167, 92, 0.08),
    inset 0 0 40px rgba(212, 167, 92, 0.05);
}

.sacred-spaces::before {
  content: "✦ ✦ ✦";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.5rem 1.25rem;
  background: #1a1a18;
  border: 1px solid rgba(212, 167, 92, 0.35);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.35em;
  color: #d4c5a9;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(212, 167, 92, 0.18);
}

.sacred-spaces .interior-media {
  background-color: #201d18;
}

.sacred-spaces .interior-media::after {
  border-color: rgba(212, 167, 92, 0.25);
}

.sacred-spaces .interior-card:hover .interior-media::after {
  border-color: rgba(212, 167, 92, 0.55);
  box-shadow: 0 0 30px rgba(212, 167, 92, 0.18);
}

@media (max-width: 767px) {
  .sacred-spaces {
    padding: 2.5rem 1rem 3rem;
  }
}

/* ---- Project Cards ---- */
.project-card .aspect-\\[4\\/3\\],
.project-card .aspect-\\[3\\/4\\],
.project-card .aspect-\\[16\\/10\\] {
  overflow: hidden;
}

/* ---- Horizontal Scroll ---- */
.horizontal-scroll-wrapper {
  overflow: hidden;
}

.horizontal-scroll-container {
  overflow: hidden;
}

.horizontal-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
}

.horizontal-slide {
  will-change: transform;
}

@media (min-width: 768px) {
  .horizontal-slide {
    width: 55vw;
  }
}

@media (min-width: 1024px) {
  .horizontal-slide {
    width: 40vw;
  }
}

.hero-logo {
  filter: drop-shadow(0 0 14px rgba(212, 197, 169, 0.35));
}

/* ---- Section heading golden glow ---- */
.heading-glow {
  text-shadow:
    0 0 14px rgba(212, 183, 92, 0.35),
    0 0 34px rgba(212, 183, 92, 0.22),
    0 0 72px rgba(212, 183, 92, 0.15);
}

/* ---- Hero Materials ---- */
.hero-materials a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 197, 169, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-luxury);
  pointer-events: none;
}

.hero-materials a:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .hero-materials {
    bottom: 4.5rem !important;
  }
}

/* ---- Material Swatches ---- */
.material-swatch {
  transition: transform 0.7s var(--ease-luxury);
}

.material-swatch:hover {
  transform: translateY(-8px);
}

/* ---- Process Steps ---- */
.process-step {
  transition: background-color 0.7s var(--ease-luxury);
}

.process-step:hover {
  background-color: rgba(35, 35, 32, 0.3);
}

/* ---- Aluminium Golden Glow ---- */
.aluminium-glow {
  position: relative;
  background:
    radial-gradient(ellipse 55% 35% at 50% 8%, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(212, 175, 55, 0.1), transparent 70%);
  border-radius: 6px;
  box-shadow:
    0 0 45px rgba(212, 175, 55, 0.14),
    inset 0 0 35px rgba(212, 175, 55, 0.06);
}

.aluminium-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

/* ---- Statistics ---- */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---- Swiper Overrides ---- */
.testimonial-swiper .swiper-slide {
  width: auto;
}

.testimonial-swiper .swiper-wrapper {
  transition-timing-function: var(--ease-luxury) !important;
}

/* ---- Custom Cursor ---- */
@media (hover: hover) and (pointer: fine) {
  #cursor {
    transition: width 0.4s var(--ease-luxury),
                height 0.4s var(--ease-luxury),
                border-color 0.4s var(--ease-luxury),
                background-color 0.4s var(--ease-luxury);
  }

  #cursor.expanded {
    width: 80px;
    height: 80px;
    border-color: rgba(212, 197, 169, 0.6);
    background-color: rgba(212, 197, 169, 0.06);
  }

  #cursor.expanded #cursor-text {
    opacity: 1;
  }

  #cursor-dot {
    transition: transform 0.15s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
  }
}

/* ---- Form Styles ---- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(212, 197, 169, 0.5) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 101, 96, 0.4);
}

/* ---- Project Modal ---- */
#project-modal.active {
  opacity: 1;
  pointer-events: all;
}

#project-modal .modal-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ---- Photo Lightbox ---- */
#lightbox {
  height: 100vh;
  height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  animation: lightboxZoom 0.5s var(--ease-luxury) both;
}

@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-side-label,
  .hero-title-block,
  .hero-tagline,
  .hero-cta-group,
  .hero-materials,
  .hero-scroll-indicator,
  .hero-stats,
  .hero-expertise-badge,
  .hero-shape {
    opacity: 1 !important;
    transform: none !important;
  }

  .preloader-title,
  .preloader-label {
    opacity: 1 !important;
    transform: none !important;
  }

  #cursor,
  #cursor-dot {
    display: none !important;
  }
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 767px) {
  #hero {
    height: 100vh;
  }

  .hero-img-wrapper {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background-color: #1a1a18;
  }

  #hero-img {
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    opacity: 0.15;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero-cta-group {
    margin-bottom: 2.5rem;
  }

  .horizontal-scroll-wrapper {
    height: auto !important;
  }

  .horizontal-scroll-container {
    position: relative !important;
    height: auto !important;
  }

  .horizontal-track {
    flex-direction: column !important;
    gap: 1.5rem !important;
    transform: none !important;
  }

  .horizontal-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .horizontal-slide .aspect-\\[3\\/2\\] {
    aspect-ratio: 16/10 !important;
  }

  .hero-title-block h1 span {
    font-size: clamp(3rem, 14vw, 6rem);
  }
}

/* ---- Smooth Underline Links ---- */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-luxury);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Grain Animation ---- */
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(-15%, 5%); }
  70% { transform: translate(8%, 15%); }
  90% { transform: translate(-10%, 10%); }
}

/* ---- Print ---- */
@media print {
  #preloader, #cursor, #cursor-dot, #scroll-progress, .hero-shape {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ---- Focus States ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid rgba(212, 197, 169, 0.5);
  outline-offset: 4px;
}

/* ---- Page structure ---- */
section {
  position: relative;
  z-index: 1;
}

/* ---- Silver Tone (two-tone alternating sections) ---- */
.section-silver {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 206, 212, 0.09), transparent 62%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(201, 206, 212, 0.05), transparent 62%),
    linear-gradient(180deg, #20242a 0%, #161a1f 100%);
}

.section-silver::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 225, 230, 0.18), transparent);
  pointer-events: none;
}

.silver-tone .bg-obsidian\/30 {
  background-color: rgba(42, 46, 52, 0.6);
}

.silver-tone .border-white\/5 {
  border-color: rgba(174, 180, 187, 0.18);
}

.silver-tone .img-placeholder {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(201, 206, 212, 0.08) 0%, transparent 48%),
    linear-gradient(160deg, #2a2e34 0%, #1d2126 100%);
}

.silver-tone .interior-media {
  background-color: #2a2e34;
}
