/* ==========================================================================
   Bright Moon Construction - Design System & Custom CSS
   Aesthetic: Nocturnal Moonlit (Luxury, Refined, Structural, Atmospheric)
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
  /* Palette: Midnight Sky, Moonlit Silver, Warm Lunar Glow */
  --bg-dark-sky: hsl(224, 60%, 4%);        /* Deepest space background */
  --bg-midnight: hsl(224, 45%, 8%);        /* Primary page background */
  --bg-slate-card: hsl(224, 35%, 12%);     /* Cards and nav items */
  --bg-slate-input: hsl(224, 30%, 16%);    /* Input fields background */
  
  --text-pure: hsl(0, 0%, 100%);
  --text-luminous: hsl(210, 40%, 98%);     /* Luminous silver-white */
  --text-silver: hsl(215, 20%, 75%);       /* Standard text */
  --text-muted: hsl(215, 14%, 55%);        /* Captions, labels */

  --lunar-gold: hsl(43, 96%, 56%);         /* Amber golden moon glow */
  --lunar-gold-rgb: 245, 158, 11;
  --lunar-gold-hover: hsl(43, 96%, 66%);
  
  --warning-red: hsl(0, 84%, 60%);         /* Emergency bar warning */
  
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-focus: rgba(245, 158, 11, 0.35);
  --shadow-lunar: 0 10px 40px -10px rgba(0, 0, 0, 0.7), 0 0 50px -10px rgba(245, 158, 11, 0.05);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-hdr: 'Cinzel', serif;
  --font-sub: 'Montserrat', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fluid: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark-sky);
  color: var(--text-silver);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg-midnight);
  min-height: 100vh;
  line-height: 1.6;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-hdr);
  color: var(--text-luminous);
  font-weight: 700;
  line-height: 1.15;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-sky);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-slate-card);
  border: 2px solid var(--bg-dark-sky);
  border-radius: 5px;
  transition: var(--transition-quick);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lunar-gold);
}

/* ==========================================================================
   2. Layout & Utility Components
   ========================================================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
  border: 1px solid transparent;
}

/* Shimmer overlay effect */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after {
  transform: translate(450%, 0) rotate(30deg);
}

/* Repeating shimmer animation for highlight buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.03) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: btn-shimmer-anim 3.5s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
}

@keyframes btn-shimmer-anim {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.btn-primary {
  background-color: var(--lunar-gold);
  color: var(--bg-dark-sky);
}
.btn-primary:hover {
  background-color: var(--lunar-gold-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25), 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-luminous);
  border-color: var(--border-glass);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-luminous);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

.btn-gold {
  background-color: transparent;
  color: var(--lunar-gold);
  border-color: var(--lunar-gold);
}
.btn-gold:hover {
  background-color: var(--lunar-gold);
  color: var(--bg-dark-sky);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25), 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-label {
  font-family: var(--font-sub);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--lunar-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-silver);
}

/* Focus outline styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--lunar-gold);
  outline-offset: 4px;
}

/* ==========================================================================
   3. Navbar & Mobile Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background-color: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: var(--transition-fluid);
}

.nav-container {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo-img {
  height: 82px;
  width: auto;
  display: block;
  transition: var(--transition-fluid);
}
.nav-logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.2));
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  display: block;
  transition: var(--transition-fluid);
}
.footer-logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.15));
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-menu a {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-silver);
  position: relative;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lunar-gold);
  transition: var(--transition-quick);
}
.nav-menu a:hover {
  color: var(--text-luminous);
}
.nav-menu a:hover::after {
  width: 100%;
}

.nav-stripe-link {
  color: var(--lunar-gold) !important;
  font-weight: 700 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Bilingual Language Toggle Switch */
.language-selector {
  position: relative;
}
.lang-btn {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  color: var(--text-luminous);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-quick);
}
.lang-btn:hover {
  border-color: var(--lunar-gold);
}
.lang-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--lunar-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lunar-gold);
  transition: var(--transition-quick);
}
.lang-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-luminous);
  letter-spacing: 0.5px;
}

/* Sticky Contact Call Link */
.btn-phone-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-luminous);
}
.btn-phone-call:hover {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: var(--lunar-gold);
}
.phone-icon {
  color: var(--lunar-gold);
}

/* Mobile burger trigger */
.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-luminous);
  transition: var(--transition-quick);
}

/* Mobile Drawer Menu styles */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-midnight);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 120px 40px 40px;
  transition: var(--transition-fluid);
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-nav-menu ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 32px;
}
.mobile-nav-menu a {
  font-family: var(--font-hdr);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-luminous);
}
.mobile-nav-footer {
  margin-top: 80px;
}
.btn-mobile-call {
  display: block;
  padding: 16px;
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  color: var(--lunar-gold);
}

/* Burger active animation */
.menu-burger.active .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-burger.active .burger-bar:nth-child(2) {
  opacity: 0;
}
.menu-burger.active .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   4. Hero Section & Emergency Bar
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(7, 11, 19, 0.85) 30%, rgba(7, 11, 19, 0.5) 70%, rgba(7, 11, 19, 0.8) 100%), url('assets/gallery/image_41.webp');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.65);
  transform: scale(1.05);
  z-index: 0;
}

/* Lunar glow decorative elements */
.hero-glow-1 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 1;
}
/* Delicate technical structural lines overlay */
.hero-structural-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rating-badge {
  color: var(--text-luminous);
}
.rating-badge .stars {
  color: var(--lunar-gold);
}
.license-badge {
  color: var(--text-silver);
}
.license-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text-pure) 50%, var(--text-silver) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-silver);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@keyframes emergency-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes red-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8); }
  40% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  50% { opacity: 0.2; transform: scale(0.85); }
  60% { opacity: 1; }
}

/* High contrast Emergency bar */
.emergency-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(40, 8, 8, 0.97) 0%, rgba(60, 10, 10, 0.97) 50%, rgba(40, 8, 8, 0.97) 100%);
  border-top: 1px solid rgba(220, 38, 38, 0.5);
  padding: 14px 24px;
  z-index: 10;
  display: block;
  text-decoration: none;
  transition: var(--transition-fluid);
}
.emergency-bar:hover {
  background: linear-gradient(90deg, rgba(60, 10, 10, 0.99) 0%, rgba(80, 15, 15, 0.99) 50%, rgba(60, 10, 10, 0.99) 100%);
  border-top-color: var(--warning-red);
}
.emergency-bar:hover .emergency-text {
  color: #ffd700;
}
.emergency-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.emergency-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  flex-shrink: 0;
  animation: red-dot-blink 1.1s ease-in-out infinite;
}
.emergency-tag {
  background-color: var(--warning-red);
  color: var(--text-luminous);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.emergency-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--transition-fluid);
  text-align: center;
}

/* ==========================================================================
   5. Services Section
   ========================================================================== */

.services-section {
  background-color: var(--bg-midnight);
  border-bottom: 1px solid var(--border-glass);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  padding: 48px;
  border-radius: 4px;
  transition: var(--transition-fluid);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: var(--lunar-gold);
  transition: var(--transition-fluid);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lunar);
}
.service-card:hover::before {
  height: 100%;
}

.service-icon-wrapper {
  color: var(--lunar-gold);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-icon {
  width: 52px;
  height: 52px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.15));
}
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(2deg);
}
.service-card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-card-desc {
  color: var(--text-silver);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
}
.service-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '▪';
  color: var(--lunar-gold);
}

/* ==========================================================================
   6. Portfolio Grid & Lightbox
   ========================================================================== */

.portfolio-section {
  background-color: var(--bg-dark-sky);
  border-bottom: 1px solid var(--border-glass);
}

/* Tabs/filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  color: var(--text-silver);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-quick);
}
.filter-btn:hover {
  border-color: var(--lunar-gold);
  color: var(--text-luminous);
}
.filter-btn.active {
  background-color: var(--lunar-gold);
  color: var(--bg-dark-sky);
  border-color: var(--lunar-gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.homepage-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .homepage-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .homepage-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: var(--transition-fluid);
}
.portfolio-item.hidden {
  display: none;
}
.portfolio-item:hover {
  transform: scale(1.02);
  border-color: var(--lunar-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.portfolio-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}
.portfolio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item:hover img {
  transform: scale(1.08);
}

/* Image Hover overlay text info */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Corner-bracket expand indicator (portfolio page) */
.expand-corners {
  width: 52px;
  height: 52px;
  position: relative;
  flex-shrink: 0;
}
.expand-corners::before,
.expand-corners::after,
.expand-corners .corner-br,
.expand-corners .corner-bl {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.9);
  border-style: solid;
}
.expand-corners::before {
  top: 0; left: 0;
  border-width: 2px 0 0 2px;
}
.expand-corners::after {
  top: 0; right: 0;
  border-width: 2px 2px 0 0;
}
.expand-corners .corner-br {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  border-width: 0 2px 2px 0;
}
.expand-corners .corner-bl {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  border-width: 0 0 2px 2px;
}

/* Arrow-only overlay (homepage highlights) */
.portfolio-arrow-only {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(135deg, transparent 60%, rgba(7,11,19,0.55) 100%);
}
.portfolio-item:hover .portfolio-arrow-only {
  opacity: 1;
}
.portfolio-arrow-only .arrow-icon {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  font-weight: 300;
}

/* keep tag/title classes non-visible (still in DOM for JS translation, hidden visually) */
.portfolio-tag, .portfolio-title-overlay {
  display: none;
}
.portfolio-zoom-icon {
  display: none;
}

/* Native Dialog Lightbox Modal */
.lightbox-dialog {
  margin: auto;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: visible; /* CRITICAL: prevent close button clipping */
}

.lightbox-dialog::backdrop {
  background-color: rgba(7, 11, 19, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.lightbox-close-btn {
  position: absolute;
  top: 0;
  right: -70px; /* Position to the right of the image on desktop */
  width: 50px;
  height: 50px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.lightbox-close-btn:hover {
  background-color: var(--lunar-gold);
  color: var(--bg-dark-sky);
  border-color: var(--lunar-gold);
  transform: scale(1.1) rotate(90deg);
}

@media (max-width: 1023px) {
  .lightbox-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* ==========================================================================
   7. About Us Section
   ========================================================================== */

.about-section {
  position: relative;
  background-color: var(--bg-midnight);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.about-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(30px);
  pointer-events: none;
}

.about-grid-container {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  z-index: 2;
  aspect-ratio: 4/5;
}
.about-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grid-breaking Badge Container */
.about-badges {
  position: absolute;
  bottom: -30px;
  right: -30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}

.experience-card {
  background-color: var(--bg-slate-card);
  border: 1px solid var(--lunar-gold);
  padding: 20px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lunar);
  transition: var(--transition-fluid);
}
.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--lunar-gold-hover);
}

.satisfaction-card {
  background-color: var(--bg-slate-card);
  border: 1px solid var(--lunar-gold);
  padding: 20px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lunar);
  transition: var(--transition-fluid);
}
.satisfaction-card:hover {
  transform: translateY(-3px);
  border-color: var(--lunar-gold-hover);
}
.satisfaction-stars {
  color: var(--lunar-gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.satisfaction-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-luminous);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.exp-number {
  font-family: var(--font-hdr);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--lunar-gold);
  font-weight: 800;
}
.exp-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-luminous);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  white-space: nowrap;
}

.about-text {
  position: relative;
  z-index: 2;
}

.about-paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-silver);
  margin-bottom: 24px;
}
.about-paragraph.highlight {
  font-size: 1.2rem;
  color: var(--text-luminous);
  font-weight: 600;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}
.bullet-item {
  display: flex;
  gap: 16px;
}
.bullet-check {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--lunar-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.bullet-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-luminous);
  margin-bottom: 4px;
}
.bullet-item p {
  font-size: 0.9rem;
  color: var(--text-silver);
}

/* ==========================================================================
   8. Contact Section, Form, and Stripe
   ========================================================================== */

.contact-section {
  background-color: var(--bg-dark-sky);
  border-bottom: 1px solid var(--border-glass);
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 5.5fr 6.5fr;
  gap: 70px;
  align-items: start;
}

.contact-desc {
  margin-bottom: 40px;
  font-size: 1rem;
}

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: 4px;
  transition: var(--transition-fluid);
}
a.info-card:hover {
  border-color: var(--lunar-gold);
  transform: translateX(4px);
}

.info-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lunar-gold);
  flex-shrink: 0;
}
.info-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-luminous);
}

/* Highlighting warranties block */
.warrant-card {
  border-color: rgba(245, 158, 11, 0.15);
  background-color: rgba(245, 158, 11, 0.02);
}
.warrant-icon {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}
.warrant-title {
  color: var(--lunar-gold);
}

/* Stripe Payment Component Box */
.stripe-container {
  margin-top: 48px;
  padding: 30px;
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  position: relative;
}
.stripe-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.stripe-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.stripe-desc {
  font-size: 0.88rem;
  color: var(--text-silver);
  margin-bottom: 20px;
}
.stripe-btn {
  gap: 8px;
  width: 100%;
}

/* Form Styling */
.contact-form-container {
  background-color: var(--bg-slate-card);
  border: 1px solid var(--border-glass);
  padding: 48px;
  border-radius: 4px;
  position: relative;
}

.form-heading {
  font-size: 1.5rem;
  margin-bottom: 30px;
  position: relative;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-slate-input);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-luminous);
  transition: var(--transition-quick);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lunar-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f1f5f9'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 20px;
  padding-right: 48px;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

.form-status-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.form-status-msg.success {
  color: #10b981;
}
.form-status-msg.error {
  color: var(--warning-red);
}

/* ==========================================================================
   9. Footer Landmark
   ========================================================================== */

.footer {
  background-color: var(--bg-dark-sky);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding-bottom: 60px;
}

.footer-brand .footer-logo-link {
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-silver);
  margin-bottom: 16px;
  max-width: 350px;
}
.footer-rating-summary {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--lunar-gold);
  font-weight: 700;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-silver);
}
.footer-links a:hover {
  color: var(--lunar-gold);
  transform: translateX(2px);
}

.footer-legal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-stripe-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lunar-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 16px;
  border-radius: 4px;
}
.footer-stripe-btn:hover {
  background-color: rgba(245, 158, 11, 0.05);
  border-color: var(--lunar-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 30px 0;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-lic-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-silver);
}

/* Return to Home Button */
.return-home-container {
  display: flex;
  align-items: center;
}
.btn-return-home {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lunar-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
.btn-return-home:hover {
  color: var(--lunar-gold-hover);
}
.return-home-icon {
  transition: transform 0.3s ease;
}
.btn-return-home:hover .return-home-icon {
  transform: translateX(-4px);
}

/* Portfolio Hover Details */
.portfolio-title-overlay {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-luminous);
  margin-top: 2px;
  line-height: 1.3;
}


/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   10. Responsive Design & Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .section-container {
    padding: 60px 24px;
  }
  
  .services-grid {
    gap: 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-grid-container {
    gap: 40px;
  }
  
  .contact-grid-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    display: none;
  }
  .menu-burger {
    display: flex;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto;
  }
  .emergency-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 32px;
  }
  
  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* About Us */
  .about-grid-container {
    grid-template-columns: 1fr;
  }
  .about-visual {
    max-width: 400px;
    margin: 0 auto 60px;
  }
  .about-badges {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
  }
  .experience-card, .satisfaction-card {
    position: static;
    flex: 1;
    padding: 16px;
    align-items: center;
    text-align: center;
  }
  
  /* Contact */
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .contact-form-container {
    padding: 32px;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .lang-btn {
    padding: 6px 10px;
  }
  .btn-phone-call .phone-number {
    display: none;
  }
  .btn-phone-call {
    padding: 10px;
  }
}

/* ==========================================================================
   11. Unified Mobile Optimization Overrides
   ========================================================================== */
@media (max-width: 768px) {
  /* Navbar & Container */
  .navbar {
    height: 70px !important;
  }
  .nav-container {
    padding: 0 16px !important;
  }
  .nav-logo-img {
    height: 44px !important;
  }
  
  /* Compact Header CTA Buttons */
  .language-selector {
    display: none !important; /* Hide from navbar, relocated to drawer */
  }
  .btn-phone-call {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border-glass) !important;
  }
  .btn-phone-call .phone-number {
    display: none !important;
  }
  .btn-phone-call svg {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Mobile Nav Drawer Layers */
  .mobile-nav-drawer {
    z-index: 1200 !important;
    padding: 90px 24px 40px !important;
    width: 280px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  /* Burger Icon above drawer */
  .menu-burger {
    z-index: 1300 !important;
  }
  
  /* Hide navbar actions when drawer is open */
  body.nav-open .nav-logo-link,
  body.nav-open .btn-phone-call {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }
  
  /* Mobile language selector within drawer */
  .mobile-lang-selector {
    margin-top: 30px;
    padding: 0 4px;
  }
  .mobile-lang-selector .lang-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    border-radius: 24px !important;
    background: var(--bg-slate-card) !important;
  }

  /* Main Wrapper padding override */
  #main-content {
    padding-top: 70px !important;
  }
  
  /* Hero Overrides */
  .hero-section {
    min-height: auto !important;
    padding: 100px 16px 40px !important;
  }
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .hero-ctas .btn {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .hero-badge-container {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  .hero-badge {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
  
  /* Emergency Services Banner */
  .emergency-bar {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 30px !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(220, 38, 38, 0.4) !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
  }
  .emergency-bar-content {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .emergency-text {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
  .emergency-tag {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    letter-spacing: 1px !important;
  }
  
  /* Services Section Overrides */
  .services-section .section-title,
  .section-container .section-title {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Contact Form Container Overrides */
  .contact-form-container {
    padding: 24px 16px !important;
  }
  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .contact-grid-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .contact-grid-container .section-title {
    font-size: 2rem !important;
    text-align: center !important;
  }
  .contact-grid-container p {
    text-align: center !important;
  }
  .contact-grid-container .section-label {
    display: block;
    text-align: center !important;
  }
}

/* Hide lang-long-text on mobile */
@media (max-width: 768px) {
  .lang-long-text {
    display: none !important;
  }
}
