﻿/* Dominican Upholstery LLC — Luxury Design System & CSS stylesheet */

/* Google Fonts: Cormorant Garamond for Serif Luxury Titles, Inter for clean Sans-Serif Text */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@200;300;400;500;600;700&display=swap');

:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #121212;
  --color-bg-tertiary: #1a1a1a;
  --color-text-primary: #fbfbf9;
  --color-text-secondary: #8e8e93;
  --color-gold: #d4af37;
  --color-gold-hover: #f3e5ab;
  --color-gold-muted: rgba(212, 175, 55, 0.25);
  --color-gold-glow: rgba(212, 175, 55, 0.4);
  --color-bronze: #8c7853;
  --color-success: #34c759;
  --color-error: #ff3b30;
  
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(212, 175, 55, 0.15);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-muted);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Typographical Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.text-gold {
  color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-gold) 0%, #ffe494 50%, var(--color-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Preloader Styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  max-width: 320px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preloader-logo {
  width: 95px !important;
  height: auto;
  position: absolute;
  z-index: 2;
  animation: pulseLogo 3s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(197, 168, 128, 0.25));
}

.preloader-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  z-index: 1;
}

#preloader-progress-circle {
  transition: stroke-dashoffset 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: stroke-dashoffset;
  filter: drop-shadow(0 0 8px var(--color-gold-glow));
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.65));
  }
}

.preloader-percentage {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.preloader-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* Header & Navigation (Improved, Decluttered & Compact) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

/* Top Tiny Header Bar */
.top-header {
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  padding: 0.35rem 3rem;
  transition: var(--transition-smooth);
}

.top-header-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-icon {
  width: 13px;
  height: 13px;
  fill: var(--color-gold);
  display: inline-block;
  vertical-align: middle;
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 75px; /* Enhanced luxury size for better visibility */
  width: auto;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  gap: 1.2rem; /* Compact gap */
  list-style: none;
  align-items: center;
  flex-shrink: 1;
}

/* Install App link inside nav-menu should ONLY appear on mobile hamburger */
.header-install-btn {
  display: none !important;
}
@media (max-width: 991px) {
  .header-install-btn.show-mobile {
    display: block !important;
  }
}

.nav-item {
  font-size: 0.74rem; /* Compact font size */
  letter-spacing: 0.08em; /* Elegantly compact letter-spacing */
  text-transform: uppercase;
  font-weight: 500;
}

.nav-item a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Compact gap */
  flex-shrink: 0;
}

/* Specific Header Action Button Sizing */
.nav-actions .btn-gold {
  padding: 0.45rem 0.9rem; /* Compact padding */
  font-size: 0.68rem; /* Compact text size */
  letter-spacing: 0.06em;
  font-weight: 600;
  border-radius: 0;
}

.lang-switch {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.lang-switch:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Header Instagram Icon */
.instagram-header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.instagram-header-link:hover {
  color: var(--color-gold);
  transform: scale(1.1);
}

.instagram-header-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Call to Action Button */
.btn-gold {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-gold);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
  transition: var(--transition-smooth);
  z-index: -1;
}

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

.btn-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
  box-shadow: 0 0 20px var(--color-gold-glow);
  transform: translateY(-2px);
}

.btn-gold-solid {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
  font-weight: 500;
}

.btn-gold-solid:hover {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-pwa-install {
  display: none; /* Dynamic in app.js */
  background: var(--color-gold-muted);
  border-color: var(--color-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-fast);
}

/* Views & Containers */
.view-section {
  padding: 10rem 2rem 5rem 2rem; /* Increased top padding for larger header */
  min-height: calc(100vh - 400px);
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInView 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO SECTION SLIDER */
.hero-slider-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.85) 100%);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.1;
  max-width: 1000px;
  margin-bottom: 2rem;
  font-weight: 300;
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta-container {
  display: flex;
  gap: 1.5rem;
  animation: slideUpLarge 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpLarge {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 3;
}

.slider-dot {
  width: 30px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-gold);
  width: 50px;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.section-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto;
}

/* BEFORE & AFTER SLIDER */
.before-after-section {
  padding: 5rem 0;
  background-color: var(--color-bg-secondary);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.before-after-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  user-select: none;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.image-before {
  /* Dynamic width via app.js */
  width: 50%;
  z-index: 2;
  border-right: 1px solid var(--color-gold);
}

.image-after {
  width: 100%;
  z-index: 1;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  transform: translateY(-50%);
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  cursor: ew-resize;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--color-gold-glow);
  transition: transform 0.1s ease;
}

.slider-handle:hover {
  transform: translateY(-50%) scale(1.1);
}

.slider-handle::before,
.slider-handle::after {
  content: '';
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.slider-handle::before {
  border-right: 5px solid var(--color-gold);
  margin-right: 4px;
}
.slider-handle::after {
  border-left: 5px solid var(--color-gold);
  margin-left: 4px;
}

.slider-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 4;
}

.label-before {
  left: 1.5rem;
}
.label-after {
  right: 1.5rem;
}

/* CARDS GRID & CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.luxury-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.luxury-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08);
}

.card-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* WHY CHOOSE US */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  border-color: var(--color-gold);
  background-color: var(--color-bg-tertiary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* MATERIALS GALLERY */
.materials-section {
  padding: 5rem 0;
  background-color: var(--color-bg-primary);
}

.materials-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.material-chip {
  padding: 1.5rem 2.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition-smooth);
  cursor: default;
  flex: 1 1 200px;
  max-width: 300px;
}

.material-chip:hover {
  border-color: var(--color-gold);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
  transform: scale(1.03);
}

.material-chip-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.material-chip-type {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* TIMELINE (ABOUT PAGE) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--color-gold-muted);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* PORTFOLIO FILTERS */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(212, 175, 55, 0.05);
}

/* BLOG ARTIClE DETAILS & NEWS SOURCE BUTTON */
.blog-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: auto;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.blog-source-btn:hover {
  color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
}

/* FAQ ACCORDION */
.faq-container {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  padding: 0.5rem 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer-content {
  padding: 1rem 0 0.5rem 0;
}

.faq-icon-cross {
  font-size: 1.2rem;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-cross {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 250px;
}

/* FORMS (CONTACT & ONLINE ESTIMATE) */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.form-group {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.form-control {
  width: 100%;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  color: var(--color-text-primary);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* File Upload Premium Style */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  border: 1px dashed var(--color-gold-muted);
  background-color: var(--color-bg-primary);
  border-radius: var(--border-radius-sm);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
  border-color: var(--color-gold);
  background-color: rgba(212, 175, 55, 0.03);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.file-upload-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.uploaded-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.uploaded-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-gold);
}

/* MAP WRAPPER */
.map-wrapper {
  margin-top: 3rem;
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* FOOTER */
footer {
  background-color: #050505;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-column h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-about-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
}

.social-icon:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* KEYPAD FOR ADMIN VERIFICATION */
.passcode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.passcode-modal.active {
  opacity: 1;
  visibility: visible;
}

.keypad-container {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.keypad-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.keypad-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.passcode-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.passcode-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-gold-muted);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.passcode-dot.active {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.passcode-dot.error {
  background-color: var(--color-error);
  border-color: var(--color-error);
  box-shadow: 0 0 10px var(--color-error);
  animation: shakeDot 0.3s ease;
}

@keyframes shakeDot {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.keypad-btn {
  aspect-ratio: 1/1;
  background-color: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.keypad-btn:hover {
  background-color: var(--color-gold-muted);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.keypad-btn:active {
  transform: scale(0.92);
}

.keypad-btn.action {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.keypad-btn.action:hover {
  color: var(--color-error);
  border-color: var(--color-error);
  background-color: rgba(255, 59, 48, 0.05);
}

/* CLIENT DASHBOARD */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  margin-top: 2rem;
}

.dashboard-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tracking progress bar */
.project-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 3rem 0;
}

.project-tracker::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-bg-tertiary);
  z-index: 1;
}

.tracker-line-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background-color: var(--color-gold);
  z-index: 1;
  transition: width 0.8s ease;
}

.tracker-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.tracker-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.tracker-node.active .tracker-circle {
  border-color: var(--color-gold);
  background-color: var(--color-bg-primary);
  box-shadow: 0 0 10px var(--color-gold-glow);
  color: var(--color-gold);
}

.tracker-node.completed .tracker-circle {
  border-color: var(--color-gold);
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
}

.tracker-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

.tracker-node.active .tracker-label {
  color: var(--color-gold);
}

/* List/Tables styling inside dashboards */
.dashboard-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--color-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.dashboard-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: inline-block;
}

.status-badge.paid,
.status-badge.won {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.status-badge.pending,
.status-badge.quoted,
.status-badge.scheduled {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  border: 1px solid var(--color-gold-muted);
}

.status-badge.overdue,
.status-badge.lost {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(255, 59, 48, 0.25);
}

.status-badge.new,
.status-badge.contacted {
  background-color: rgba(255,255,255,0.05);
  color: var(--color-text-secondary);
  border: 1px solid var(--glass-border);
}

/* ADMIN PANEL PANEL DESIGN */
.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

.admin-sidebar {
  background-color: var(--color-bg-secondary);
  border-right: 1px solid var(--glass-border);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar-header {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.admin-menu-item {
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background-color: var(--color-bg-tertiary);
  color: var(--color-gold);
}

.admin-content {
  padding: 2rem 3rem 4rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* CMS Editor layout grids */
.cms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.cms-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  position: relative;
}

.cms-card-header {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-image-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

/* Statistics row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--color-success);
}

/* Analytics Chart SVG */
.chart-box {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.chart-svg {
  width: 100%;
  height: 240px;
  margin-top: 1.5rem;
}

/* CRM board view */
.crm-pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.pipeline-col {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pipeline-col-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.pipeline-card {
  background-color: var(--color-bg-primary);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pipeline-card:hover {
  border-color: var(--color-gold-muted);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pipeline-card-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.pipeline-card-desc {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.pipeline-card-price {
  font-size: 0.8rem;
  color: var(--color-gold);
}

/* Toast Notification styling */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
  width: 90%;
}

.toast {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-gold);
  color: var(--color-text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

@keyframes slideInToast {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.error {
  border-color: var(--color-error);
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1100px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid var(--color-gold) !important;
    border-radius: var(--border-radius-sm) !important;
    z-index: 10001 !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25) !important;
  }

  .menu-toggle span {
    width: 22px !important;
    height: 2px !important;
    background-color: var(--color-gold) !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-container {
    position: relative !important;
    padding: 0.5rem 1rem !important;
  }
  
  .nav-actions {
    display: none !important; /* Hide action buttons on mobile — they are inside hamburger */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 7rem 2.5rem;
    gap: 1.5rem;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-only-action {
    display: block !important;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .dashboard-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-container {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .admin-sidebar-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .admin-content {
    padding: 2rem;
  }
}

@media (max-width: 680px) {
  /* Hide heavy buttons on mobile header bar, keep them inside slide-out menu */
  .nav-actions a.btn-gold,
  .nav-actions button.btn-gold {
    display: none;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .comparison-slider {
    aspect-ratio: 1/1;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    text-align: left !important;
    padding-left: 3.5rem;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 14px !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }
  
  .keypad-container {
    padding: 1.5rem;
  }
}

/* PWA Guide Modal */
.pwa-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.pwa-modal.active {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

.pwa-modal-content {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-gold);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pwa-modal-content::-webkit-scrollbar {
  width: 6px;
}
.pwa-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.pwa-modal-content::-webkit-scrollbar-thumb {
  background: var(--color-gold-muted);
  border-radius: 3px;
}

.pwa-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.pwa-modal-close:hover {
  color: var(--color-text-primary);
}

.pwa-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.pwa-instruction-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
}

/* Make sure the PWA install buttons display only when browser is ready */
.btn-pwa-install {
  display: none;
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--color-gold-muted);
}

.header-install-btn {
  display: none;
}

/* TESTIMONIALS SLIDER */
.testimonials-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 3rem;
  padding: 1rem 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 15px 35px rgba(197, 168, 128, 0.1);
}

.testimonial-quote-icon {
  font-size: 4rem;
  color: var(--color-gold-muted);
  font-family: var(--font-serif);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 2rem;
  opacity: 0.2;
}

.testimonial-text {
  color: var(--color-text-primary);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drawCheck {
  from { stroke-dasharray: 50; stroke-dashoffset: 50; }
  to { stroke-dasharray: 50; stroke-dashoffset: 0; }
}

/* ==========================================================================
   LIGHT MODE FOR ADMIN PORTAL (WHITE BACKGROUND, BLACK TEXT) & RESPONSIVE FIXES
   ========================================================================== */

/* Target the admin console page and passcode modals */
.admin-container,
.passcode-modal {
  --color-bg-primary: #ffffff !important;
  --color-bg-secondary: #f4f4f7 !important; /* light gray background */
  --color-bg-tertiary: #e5e5ea !important;
  --color-text-primary: #1c1c1e !important; /* dark text */
  --color-text-secondary: #6e6e73 !important; /* gray text */
  --glass-border: rgba(0, 0, 0, 0.1) !important;
  color: #1c1c1e !important;
}

/* Base styles for admin portal container */
#view-admin {
  background-color: #ffffff !important;
}

/* Force light background on passcode modal and edit lead modal overlays */
.passcode-modal {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.passcode-modal .keypad-container,
.passcode-modal .form-container {
  background-color: #ffffff !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Adjust colors of keypad components for light theme */
.keypad-title {
  color: #1c1c1e !important;
}

.keypad-btn {
  background-color: #f4f4f7 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1c1c1e !important;
}

.keypad-btn:hover {
  background-color: #e5e5ea !important;
  color: #1c1c1e !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.keypad-btn.action {
  color: #6e6e73 !important;
}

.keypad-btn.action:hover {
  color: var(--color-error) !important;
  border-color: rgba(255, 59, 48, 0.2) !important;
  background-color: rgba(255, 59, 48, 0.05) !important;
}

/* Admin Dashboard Elements Overrides */
.admin-sidebar {
  background-color: #f4f4f7 !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.admin-sidebar-header {
  color: #1c1c1e !important;
}

.admin-sidebar-header span {
  color: #6e6e73 !important;
}

.admin-menu-item {
  color: #6e6e73 !important;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background-color: #e5e5ea !important;
  color: var(--color-gold) !important;
}

/* Scope elements inside admin console and passcode modal to keep client dashboard dark */
.admin-container .stat-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.admin-container .stat-label {
  color: #6e6e73 !important;
}

.admin-container .stat-value {
  color: #1c1c1e !important;
}

/* Chart styling for light theme visibility */
.admin-container .chart-box {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.admin-container .chart-svg line {
  stroke: rgba(0, 0, 0, 0.08) !important;
}

.admin-container .chart-svg text {
  fill: #6e6e73 !important;
}

/* Dashboard Cards & Tables */
.admin-container .dashboard-card,
.admin-container .cms-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.admin-container .pipeline-col {
  background-color: #f4f4f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.admin-container .pipeline-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  color: #1c1c1e !important;
}

.admin-container .pipeline-card:hover {
  border-color: var(--color-gold) !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1) !important;
}

.admin-container .dashboard-title,
.admin-container .cms-card-header {
  color: #1c1c1e !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.admin-container .dashboard-table th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--color-gold) !important;
}

.admin-container .dashboard-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #1c1c1e !important;
}

/* Forms & inputs inside admin console and passcode/edit modals */
.admin-container .form-control,
.passcode-modal .form-control {
  background-color: #ffffff !important;
  color: #1c1c1e !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.admin-container .form-control:focus,
.passcode-modal .form-control:focus {
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2) !important;
}

.admin-container .form-group label,
.passcode-modal .form-group label {
  color: #6e6e73 !important;
}

.admin-container .file-upload-wrapper {
  background-color: #f4f4f7 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

/* Passcode dots visibility in light mode */
.passcode-modal .passcode-dot {
  border: 2px solid rgba(0, 0, 0, 0.25) !important;
}
.passcode-modal .passcode-dot.active {
  background-color: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
}

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

/* Mobile & Safari Responsiveness overrides for the Admin Dashboard */
@media (max-width: 991px) {
  .admin-container {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .admin-sidebar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    justify-content: flex-start !important;
    padding: 0.75rem 1rem !important;
    gap: 0.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    scrollbar-width: none !important; /* Hide scrollbar */
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar */
  }

  .admin-sidebar-header {
    display: none !important; /* Hide header on mobile for vertical space */
  }

  .admin-menu-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
  }
  
  #admin-logout-btn {
    margin-top: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .admin-content {
    padding: 1rem 1.5rem !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* AI Chatbot Floating Bubble & Window */
#chatbot-bubble-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chatbot-tooltip {
  background: #000;
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

#chatbot-bubble-container:hover #chatbot-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chatbot-bubble-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  animation: bubble-pulse 3s infinite ease-in-out;
  padding: 4px; /* Space for the rotating border */
  overflow: hidden;
}

/* Dynamic rotating gradient border */
.chatbot-bubble-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #000000 0%,
    var(--color-gold) 25%,
    #ffffff 50%,
    var(--color-gold) 75%,
    #000000 100%
  );
  animation: rotate-glow 4s linear infinite;
  z-index: 1;
}

.chatbot-bubble-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: #000;
  border-radius: 50%;
  z-index: 2;
}

.chatbot-bubble-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  z-index: 3;
  border-radius: 50%;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bubble-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(212,175,55,0.4), 0 0 5px rgba(255,255,255,0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(212,175,55,0.8), 0 0 12px rgba(255,255,255,0.4);
  }
}

#chatbot-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 350px;
  height: 480px;
  background: #0d0d0f;
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#chatbot-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  background: #000;
  border-bottom: 1px solid rgba(212,175,55,0.25);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-header-info img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.chatbot-header-title {
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.chatbot-header-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.65rem;
}

.chatbot-close-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chatbot-close-btn:hover {
  color: var(--color-gold);
}

.chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.user {
  background: var(--color-gold);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chatbot-message.bot {
  background: #18181b;
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.chatbot-input-area {
  padding: 12px;
  background: #000;
  border-top: 1px solid rgba(212,175,55,0.15);
  display: flex;
  gap: 8px;
}

.chatbot-input-field {
  flex-grow: 1;
  background: #18181b;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.chatbot-input-field:focus {
  border-color: var(--color-gold);
  outline: none;
}

.chatbot-send-btn {
  background: var(--color-gold);
  border: none;
  color: #000;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  background: #e2c044;
}

@media (max-width: 480px) {
  #chatbot-window {
    width: calc(100% - 30px);
    height: 400px;
    right: 15px;
    bottom: 85px;
  }
  #chatbot-bubble-container {
    right: 15px;
    bottom: 15px;
  }
}

/* --- LUXURY INTERACTIVE ANIMATIONS, TRANSITIONS & HAMBURGER MENUS --- */

/* Hover effects for buttons */
.btn-gold, .btn-gold-solid, .btn-gold-outline {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease !important;
}
.btn-gold:hover, .btn-gold-solid:hover, .btn-gold-outline:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25);
}
.btn-gold:active, .btn-gold-solid:active, .btn-gold-outline:active {
  transform: translateY(0) scale(1);
}

/* Portfolio cards hover lift */
.portfolio-card, .service-card, .blog-card, .dashboard-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.portfolio-card:hover, .service-card:hover, .blog-card:hover, .dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Desktop navigation underline animation */
@media (min-width: 992px) {
  .nav-menu .nav-item a {
    position: relative;
    padding-bottom: 4px;
  }
  .nav-menu .nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-menu .nav-item a:hover::after {
    width: 100%;
    left: 0;
  }
  .nav-menu .nav-item.active a::after {
    width: 100%;
    left: 0;
  }
}

/* Sticky Header Scroll Effect */
header {
  transition: padding 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
}
header.scrolled {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  background-color: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
header.scrolled .logo-img {
  height: 60px !important; /* Scale down logo slightly on scroll */
}

/* Scroll reveal element styling */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade animation for page transition overlay */
.preloader {
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile responsive hamburger overrides with luxury menu icons */
@media (max-width: 991px) {
  .nav-menu {
    padding: 7rem 2.5rem !important;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%) !important;
    backdrop-filter: blur(15px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
  }

  .nav-menu .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-menu .nav-item a {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
  }

  /* Sleek luxury icon prefixes for mobile hamburger menu */
  .nav-menu .nav-item[data-view="home"] a::before {
    content: "\1F3DB";
    font-size: 1.1rem;
  }
  .nav-menu .nav-item[data-view="services"] a::before {
    content: "\1F6CB";
    font-size: 1.1rem;
  }
  .nav-menu .nav-item[data-view="projects"] a::before {
    content: "\1F4F7";
    font-size: 1.1rem;
  }
  .nav-menu .nav-item[data-view="about"] a::before {
    content: "\1F465";
    font-size: 1.1rem;
  }
  .nav-menu .nav-item[data-view="contact"] a::before {
    content: "\2709";
    font-size: 1.1rem;
  }
  
  /* Estimate & Admin buttons mobile customizations */
  .nav-menu .nav-item.mobile-only-action a::before {
    content: "\26A1";
  }
  .nav-menu .nav-item.mobile-only-action + .mobile-only-action a::before {
    content: "\1F512";
  }
}
/* --- COMPREHENSIVE MOBILE SYMMETRY, OVERFLOW PROTECTION & PERFECT MENU ICONS --- */

/* 1. Global Overflow Protection for Mobile */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

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

/* 2. Responsive symmetry overrides for mobile viewports */
@media (max-width: 768px) {
  .view-section {
    padding: 7rem 1rem 3rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-section {
    padding: 6rem 1rem 3rem 1rem !important;
    text-align: center !important;
  }

  .hero-title, h1 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    word-wrap: break-word !important;
  }

  .hero-subtitle, h2 {
    font-size: 1.4rem !important;
    word-wrap: break-word !important;
  }

  .section-title {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  .section-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  .container, .main-container, .content-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Grid & Flex symmetry for cards */
  .services-grid, .portfolio-grid, .blog-grid, .stats-grid, .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .service-card, .portfolio-card, .blog-card, .dashboard-card, .contact-card {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Image & media clamping */
  img, video, iframe, svg {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Form row stacking */
  .form-row, .form-row-3 {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .form-group {
    width: 100% !important;
  }

  .form-control {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Top header bar mobile adjustment */
  .top-header-container {
    flex-direction: column !important;
    gap: 0.25rem !important;
    text-align: center !important;
    font-size: 0.65rem !important;
  }
}

/* 3. Complete and Bulletproof Mobile Hamburger Menu Icons */
@media (max-width: 1100px) {
  .nav-menu .nav-item a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.1rem !important;
    padding: 0.6rem 0 !important;
  }

  /* Home */
  .nav-menu .nav-item[data-view="home"] a::before,
  .nav-menu .nav-item a[href*="index"]::before {
    content: "\1F3DB" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* Services */
  .nav-menu .nav-item[data-view="services"] a::before,
  .nav-menu .nav-item a[href*="services"]::before {
    content: "\1F6CB" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* Gallery / Projects */
  .nav-menu .nav-item[data-view="projects"] a::before,
  .nav-menu .nav-item[data-view="gallery"] a::before,
  .nav-menu .nav-item a[href*="gallery"]::before {
    content: "\1F4F7" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* About Us */
  .nav-menu .nav-item[data-view="about"] a::before,
  .nav-menu .nav-item a[href*="about"]::before {
    content: "\1F465" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* Contact */
  .nav-menu .nav-item[data-view="contact"] a::before,
  .nav-menu .nav-item a[href*="contact"]::before {
    content: "\2709" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* Estimate Button inside mobile hamburger */
  .nav-menu .nav-item a[href*="estimate"]::before {
    content: "\26A1" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }

  /* Admin Button inside mobile hamburger */
  .nav-menu .nav-item a[href*="admin"]::before {
    content: "\1F512" !important;
    font-size: 1.15rem !important;
    display: inline-block !important;
  }
}