/* =============================================================
   VED INTERIOR - ULTRA-LUXURY ARCHITECTURAL INTERIOR & JOINERY
   Theme: Haute-Couture Architectural Atelier (Cinzel Roman Luxury, Obsidian, Cognac & Champagne Gold)
   Est. 2021
============================================================= */

:root {
  /* Ultra-Luxury Palette */
  --bg-canvas: #FAF8F5;        /* Warm Alabaster Gallery Canvas */
  --bg-subtle: #F4EFEA;        /* Tactile Raw Linen */
  --bg-card: #FFFFFF;          /* Pure Porcelain White */
  --color-dark: #0B0B0B;       /* Midnight Obsidian */
  --color-dark-muted: #484440; /* Architectural Slate */
  --color-brown: #7A4B27;      /* Cognac Burma Teak */
  --color-brown-hover: #5D3517;
  --color-gold: #C5A059;       /* Radiant Champagne Gold */
  --color-gold-bright: #D4AF37;/* 24K Polished Gold */
  --border-hairline: #E4DDD3;  /* 1px Champagne Sand Border */
  --border-focus: #7A4B27;
  
  /* Modern Elevations */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px rgba(11, 11, 11, 0.06);
  --shadow-lg: 0 24px 60px rgba(122, 75, 39, 0.12);
  --shadow-hero-video: 0 30px 90px rgba(0, 0, 0, 0.3);
  
  /* Smooth Transitions */
  --ease-modern: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.45s var(--ease-modern);
  --transition-fast: all 0.25s ease-out;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--color-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-canvas);
  color: var(--color-dark);
  overflow-x: hidden;
  line-height: 1.65;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

button, input, select, textarea, optgroup {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================================
   TYPOGRAPHY SUITE - UNIFORM MODERN LUXURY (PLUS JAKARTA SANS)
============================================================== */
.font-serif,
.font-display,
.font-cormorant,
.font-editorial,
.font-sans,
.font-body,
.playfair-italic {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Preserve Font Awesome Icon Fonts */
.fa, .fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands, [class^="fa-"], [class*=" fa-"] {
  font-family: var(--fa-style-family, "Font Awesome 6 Free"), "Font Awesome 6 Brands", "FontAwesome" !important;
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: #D5CCC0;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brown);
}

::selection {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

/* =============================================================
   KEYFRAME ANIMATIONS
============================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.85s var(--ease-modern) forwards;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* =============================================================
   FULL-SCREEN MODERN LUXURY NAVBAR
============================================================== */
.header-fullwidth {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.nav-link-modern {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark-muted);
  padding: 8px 16px;
  border-radius: 0px;
  transition: var(--transition-fast);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.nav-link-modern:hover {
  color: var(--color-brown);
  background: rgba(122, 75, 39, 0.05);
}

.nav-link-modern.active {
  color: #FFFFFF;
  background: var(--color-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 11, 11, 0.2);
}

/* =============================================================
   LUXURY BUTTONS (SHARP ARCHITECTURAL GEOMETRY)
============================================================== */
.btn-modern-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  background-color: var(--color-dark);
  color: #FFFFFF;
  border-radius: 0px !important;
  border: 1px solid rgba(197, 160, 89, 0.25);
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(11, 11, 11, 0.25);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-modern-dark:hover {
  background-color: var(--color-brown);
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122, 75, 39, 0.35);
  color: #FFFFFF;
}

.btn-modern-brown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  background-color: var(--color-brown);
  color: #FFFFFF;
  border-radius: 0px !important;
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(122, 75, 39, 0.28);
  text-decoration: none;
  cursor: pointer;
}

.btn-modern-brown:hover {
  background-color: var(--color-brown-hover);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--border-hairline);
  border-radius: 0px !important;
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
}

.btn-modern-outline:hover {
  border-color: var(--color-dark);
  background-color: var(--color-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .btn-modern-dark,
  .btn-modern-brown,
  .btn-modern-outline {
    padding: 11px 20px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

/* =============================================================
   CARDS & HOVER ELEVATIONS (SHARP CORNERS)
============================================================== */
.card-modern {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 0px !important;
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 75, 39, 0.5);
  box-shadow: var(--shadow-lg);
}

.img-zoom-modern {
  overflow: hidden;
  position: relative;
  border-radius: 0px !important;
}

.img-zoom-modern img {
  border-radius: 0px !important;
  transition: transform 0.8s var(--ease-modern);
}

.card-modern:hover .img-zoom-modern img,
.img-zoom-modern:hover img {
  transform: scale(1.06);
}

/* Modern Pills & Badges */
.pill-tag-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(122, 75, 39, 0.08);
  color: var(--color-brown);
  border: 1px solid rgba(122, 75, 39, 0.25);
  border-radius: 0px !important;
}

.pill-tag-dark {
  background: var(--color-dark);
  color: var(--color-gold);
  padding: 5px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 0px !important;
}

/* Modern Filter Tabs */
.tab-pill-modern {
  padding: 9px 20px;
  border-radius: 0px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: #FFFFFF;
  color: var(--color-dark-muted);
  border: 1px solid var(--border-hairline);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.tab-pill-modern:hover {
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.tab-pill-modern.active {
  background-color: var(--color-dark);
  color: #FFFFFF;
  border-color: var(--color-dark);
  box-shadow: 0 4px 14px rgba(11, 11, 11, 0.2);
}

/* Full Width Hero Video Container (Cinematic on Mobile & Desktop) */
.hero-fullwidth-video {
  width: 100%;
  min-height: 380px;
  height: clamp(380px, 60vh, 500px);
  border-radius: 0px !important;
  overflow: hidden;
  box-shadow: var(--shadow-hero-video);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border-hairline);
  background-color: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .hero-fullwidth-video {
    min-height: 480px;
    height: clamp(480px, 68vh, 620px);
  }
}

@media (min-width: 1024px) {
  .hero-fullwidth-video {
    min-height: 560px;
    height: clamp(560px, 75vh, 740px);
  }
}

@media (min-width: 1440px) {
  .hero-fullwidth-video {
    min-height: 620px;
    height: clamp(620px, 78vh, 820px);
  }
}

/* Full Width Hero Image Container */
.hero-fullwidth-image {
  width: 100%;
  min-height: 380px;
  height: clamp(380px, 60vh, 500px);
  border-radius: 0px !important;
  overflow: hidden;
  box-shadow: var(--shadow-hero-video);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border-hairline);
  background-color: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .hero-fullwidth-image {
    min-height: 480px;
    height: clamp(480px, 68vh, 620px);
  }
}

@media (min-width: 1024px) {
  .hero-fullwidth-image {
    min-height: 560px;
    height: clamp(560px, 72vh, 740px);
  }
}

.hero-fullwidth-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  filter: brightness(1.02) contrast(1.03);
}

/* Video element clarity, sharp rendering & hardware acceleration */
.hero-fullwidth-video video,
#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
  filter: brightness(1.02) contrast(1.03);
}

/* Ultra-clear gradient overlay: crystal clear view of interior while keeping bottom text perfectly readable */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

/* Portfolio-specific clear overlay: 100% crystal clear kitchen image with minimal shadow for text */
.hero-portfolio-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.18) 70%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

/* Floating Luxury Quick Actions (WhatsApp & Phone) */
.floating-actions-container {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .floating-actions-container {
    bottom: 24px;
    right: 24px;
    gap: 12px;
  }
}

.floating-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px !important;
  background: #0B0B0B;
  color: #C5A059;
  border: 1.5px solid rgba(197, 160, 89, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
  text-decoration: none;
  font-size: 17px;
}

@media (min-width: 640px) {
  .floating-action-btn {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }
}

.floating-action-btn:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--color-brown);
  border-color: #C5A059;
  color: #FFFFFF;
  box-shadow: 0 14px 35px rgba(122, 75, 39, 0.45);
}

/* Modals */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content-modern {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  border-radius: 0px !important;
}

/* Gallery Item Aspect & Sharp Borders */
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 0px !important;
  background-color: #FAF8F5;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-brown);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  border-radius: 0px !important;
  transition: transform 0.7s var(--ease-modern);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* =============================================================
   BEFORE & AFTER INTERACTIVE COMPARISON SLIDER
============================================================== */
.before-after-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.before-after-wrapper .before-img-layer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  z-index: 10;
  will-change: width;
}

.before-after-wrapper .before-img-layer img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.before-after-wrapper .after-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.before-after-wrapper .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  will-change: left;
}

.before-after-wrapper .slider-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 0px !important;
  background: #0B0B0B;
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.before-after-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
  margin: 0;
  padding: 0;
}

.slider-handle-btn-sm {
  width: 32px !important;
  height: 32px !important;
  font-size: 10px !important;
}

/* =============================================================
   CRITICAL ANTI-CLS SUITE (ZERO LAYOUT SHIFT GUARANTEE)
   Eliminates Cumulative Layout Shift by reserving exact dimensional
   geometry before first paint.
============================================================== */

/* 1. Visibility & Drawer Protection */
.hidden {
  display: none !important;
}

#mobileMenu.hidden,
#mobileMenuDrawer.hidden,
.modal-overlay.hidden,
#quoteModal.hidden,
#successModal.hidden,
#videoModal.hidden,
#galleryLightbox.hidden {
  display: none !important;
}

/* 2. Header & Navigation Structure */
.header-fullwidth {
  height: 64px;
  min-height: 64px;
}

@media (min-width: 640px) {
  .header-fullwidth {
    height: 80px;
    min-height: 80px;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex !important;
  }
  .lg\:hidden {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .lg\:flex {
    display: none !important;
  }
}

/* 3. Hero Cinematic Video & Banner Dimensions (Locked geometry across viewports) */
.hero-container-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.hero-container-services,
.hero-container-about {
  width: 100%;
  aspect-ratio: 5 / 3;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.hero-container-portfolio {
  width: 100%;
  aspect-ratio: 2160 / 984;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

.hero-container-portfolio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-container-contact {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

@media (min-width: 768px) {
  .hero-container-video {
    aspect-ratio: auto;
    height: 580px;
  }
  .hero-container-services {
    aspect-ratio: auto;
    height: 480px;
  }
  .hero-container-portfolio {
    aspect-ratio: auto;
    height: 560px;
  }
  .hero-container-about,
  .hero-container-contact {
    aspect-ratio: auto;
    height: 540px;
  }
  .md\:flex {
    display: flex !important;
  }
  .md\:hidden {
    display: none !important;
  }
  .md\:block {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .md\:flex {
    display: none !important;
  }
  .md\:block {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hero-container-video {
    height: 660px;
  }
  .hero-container-services {
    height: 540px;
  }
  .hero-container-portfolio {
    height: 640px;
  }
  .hero-container-about,
  .hero-container-contact {
    height: 620px;
  }
}

@media (min-width: 1280px) {
  .hero-container-video {
    height: 720px;
  }
  .hero-container-portfolio {
    height: 680px;
  }
}

/* 4. Core Aspect Ratio Utility Declarations */
.aspect-video {
  aspect-ratio: 16 / 9;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.aspect-\[5\/3\] {
  aspect-ratio: 5 / 3;
}
.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}
.aspect-\[2\/3\] {
  aspect-ratio: 2 / 3;
}
.aspect-\[5\/4\] {
  aspect-ratio: 5 / 4;
}
.aspect-\[480\/318\] {
  aspect-ratio: 480 / 318;
}
.aspect-\[480\/358\] {
  aspect-ratio: 480 / 358;
}
.aspect-\[2160\/984\] {
  aspect-ratio: 2160 / 984;
}

