/* ==========================================================================
   Moore Electric Services - Premium Stylesheet
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --color-bg-dark: #04090e;
  --color-primary: #ff4d4d;      /* Vibrant high-contrast brand red */
  --color-primary-hover: #e63946;
  --color-accent-amber: #ffb703;  /* Glowing electrical yellow */
  --color-text-light: #f8f9fa;
  --color-text-muted: #adb5bd;
  --color-glass-bg: rgba(10, 18, 26, 0.65);
  --color-glass-border: rgba(255, 255, 255, 0.07);
  --color-glass-shadow: rgba(0, 0, 0, 0.4);
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 90px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-type: border-box;
  box-sizing: border-box;
}

html {
  font-family: var(--font-primary);
  color: var(--color-text-light);
  overflow-x: clip;
  /* Scroll Snapping */
  scroll-snap-type: y mandatory;
}

html.no-snap {
  scroll-snap-type: none !important;
}

body {
  overflow-x: clip;
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mobile-break {
  display: none;
}

/* ==========================================================================
   Full-Screen Background & Overlays
   ========================================================================== */
#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Place in front of body background, behind content */
  pointer-events: none;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.12);
  will-change: transform, opacity;
}

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

/* Spotlight Overlay for Landing (only lights up the house area) */
#spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Center of gradient sits roughly over the illuminated house */
  background: radial-gradient(circle 320px at 50% 60%, transparent 10%, rgba(2, 5, 8, 0.98) 60%, #020508 100%);
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
}

/* Global Tint to ensure text readability across different photos */
#global-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(4, 9, 14, 0.3) 0%, rgba(4, 9, 14, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
}

p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
}

.btn-call {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

.btn-call:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 0 15px rgba(184, 29, 36, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-outline:hover {
  background-color: var(--color-text-light);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-accent-amber);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background-color: #e5a500;
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: transparent;
}

#main-header.scrolled {
  height: 80px;
  background: rgba(4, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logo-group:hover .logo-img {
  transform: scale(1.04);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-name {
  font-size: 1.95rem; /* Larger font size as requested */
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.0;
  color: var(--color-text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-sub {
  font-size: 0.75rem; /* Larger font size as requested */
  font-weight: 600;
  letter-spacing: 0.23em;
  color: var(--color-text-muted);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-light);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile Toggle */
#mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-light);
  transition: all 0.3s ease;
}

/* Hamburger active transformation */
#mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

#mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: rgba(4, 9, 14, 0.96);
  backdrop-filter: blur(15px);
  z-index: 99;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: calc(var(--header-height) + 20px) 2rem 2rem;
  border-left: 1px solid var(--color-glass-border);
}

#mobile-drawer.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1.75rem;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-text-light);
}

.mob-cta-item {
  margin-top: 1.5rem;
  list-style: none;
}

/* ==========================================================================
   Page Layout & Sections
   ========================================================================== */
#scroll-container {
  position: relative;
  width: 100%;
  z-index: 5;
}

.scroll-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem;
  /* Snap alignment */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Prevent fixed header from overlapping content when snapping */
.scroll-section:not(#home) {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  .scroll-section:not(#home) {
    scroll-margin-top: 70px;
  }
}

.section-content {
  width: 100%;
  max-width: 1300px; /* Align with header container margin */
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* Glassmorphism utility card */
.glass-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 var(--color-glass-shadow);
}

/* ==========================================================================
   Section 1: Hero LANDING
   ========================================================================== */
#home.scroll-section {
  padding: 0 2rem;
  height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 180px); /* Subtract header and spacing */
  margin-top: var(--header-height);
}

.hero-text-wrapper {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 850px; /* Expanded max-width for 3-line layout */
  margin-left: 0; /* Align perfectly to the left */
  text-align: left;
}

.hero-text-wrapper h1 {
  font-size: 3.65rem; /* Slightly larger on desktop */
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  opacity: 0;
  transform: translateY(30px);
}

.hero-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.arrow-line {
  position: relative;
  width: 1px;
  height: 45px;
  background-color: var(--color-text-light);
  display: block;
  animation: arrow-bounce 2s infinite ease-in-out;
}

.arrow-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-bottom: 1px solid var(--color-text-light);
  border-right: 1px solid var(--color-text-light);
  transform: rotate(45deg);
}

/* Subtle bounce animation for arrow and line */
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Section 2: Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 2rem;
}

.services-slide {
  display: contents; /* Wrappers behave like they are not there on desktop/tablet */
}

.service-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  overflow: hidden; /* Ensure image doesn't overflow rounded corners */
  padding: 0; /* Remove default padding for full-bleed image */
  box-shadow: 0 8px 32px 0 var(--color-glass-shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 77, 77, 0.15);
}

.service-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px; /* Consistent height for grid alignment */
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

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

.service-card-title-banner {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #020508; /* Solid black base */
  color: var(--color-text-light);
  padding: 8px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.service-card:hover .service-card-title-banner {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.banner-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .banner-arrow {
  transform: translateX(4px);
}

.service-card-desc {
  padding: 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  flex-grow: 1; /* Pushes descriptions to equal heights */
}

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Services Carousel and Compact Cards (max-width: 768px) */
.services-carousel-controls {
  display: none;
}

@media (max-width: 768px) {
  .services-grid {
    display: block; /* Break grid layout for absolute/relative slides */
    min-height: 480px; /* Pre-allocated stable height */
    position: relative;
  }
  
  .services-slide {
    display: none;
    opacity: 0;
    width: 100%;
    /* We transition opacity using GSAP in JS */
  }
  
  .services-slide.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    opacity: 1;
  }
  
  .service-card-image-wrapper {
    height: 120px; /* Slower height on mobile for compactness */
  }
  
  .service-card-title-banner {
    bottom: 8px;
    left: 8px;
    padding: 6px 12px;
    font-size: 0.65rem;
    gap: 6px;
  }
  
  .service-card-desc {
    padding: 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
  }
  
  /* Carousel Controls styling */
  .services-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .services-control-btn {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .services-control-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
  }
  
  .services-control-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .services-dots-container {
    display: flex;
    gap: 10px;
  }
  
  .services-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .services-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--color-primary);
  }
}

/* ==========================================================================
   Section 3: About
   ========================================================================== */
.about-image-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-family-img {
  width: 100%;
  height: 380px; /* Taller image to show full photo */
  object-fit: cover;
  object-position: center top; /* Focuses on the top/heads to keep husband visible */
  display: block;
  transition: transform 0.6s ease;
}

.about-image-card:hover .about-family-img {
  transform: scale(1.03);
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center; /* Vertically center the photo with the left column */
}

.about-content-left {
  display: flex;
  flex-direction: column;
}

.about-content-left.glass-panel {
  padding: 3rem 2.5rem;
  background: rgba(4, 9, 14, 0.45); /* translucent backing to separate text from background image */
}

.about-content-right {
  display: flex;
  flex-direction: column;
}

.about-column-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-text-light);
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.about-column-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.about-body {
  margin-bottom: 2.5rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0px;
  min-width: 120px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.stat-num.gold-text {
  color: var(--color-accent-amber);
  text-shadow: 0 2px 10px rgba(255, 183, 3, 0.25), 0 2px 5px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.about-header-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.about-badge-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.about-badge-sep {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .about-badge-sep {
    display: none;
  }
  .about-header-badges {
    flex-direction: column;
    gap: 6px;
  }
  .about-stats {
    gap: 1.5rem;
  }
  .stat-num {
    font-size: 2rem;
  }
}

.about-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4.5rem;
  padding: 2rem 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin: 0;
}

.btn-call-large {
  font-size: 0.95rem;
  padding: 0.85rem 2.25rem;
}

@media (max-width: 900px) {
  .about-bottom-cta {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
  }
}

/* ==========================================================================
   Section 4: Service Area
   ========================================================================== */

.area-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.interactive-map-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 3.5rem;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  position: relative;
}

.interactive-map-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.map-instruction {
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.area-map-layout {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

/* Left side: Interactive Map SVG */
.map-visual-container {
  flex: 1.5;
  position: relative;
  border-radius: 12px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

/* Right side: Sidebar list (no title label) */
.map-sidebar-container {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
}

.map-city-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  height: 100%;
  align-content: space-between;
}

.map-city-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.map-city-item .city-name-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 2px;
  display: inline-block;
  transition: all 0.25s ease-in-out;
}

.map-city-item:hover .city-name-text,
.map-city-item.active-highlight .city-name-text {
  color: #ffffff;
  border-bottom-color: var(--color-primary);
  transform: translateX(4px);
}

.map-city-item-static {
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}

.map-city-item-static .city-name-text-static {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: left;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  display: inline-block;
  opacity: 0.8;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
}

/* Waterways & Rivers */
.map-river {
  fill: none;
  stroke: rgba(100, 180, 220, 0.22);
  stroke-width: 3.5px;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke 0.3s ease;
}

.map-svg:hover .map-river {
  stroke: rgba(100, 180, 220, 0.35);
}

/* Highways & Roads */
.map-highway {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5px;
  pointer-events: none;
  transition: stroke 0.3s ease;
}

.map-svg:hover .map-highway {
  stroke: rgba(255, 255, 255, 0.25);
}

/* Geographic Regions */
.map-region-path {
  fill: rgba(255, 255, 255, 0.01);
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.2px;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.map-region-group {
  outline: none;
}

.map-region-group:hover .map-region-path,
.map-region-group.active-highlight .map-region-path {
  fill: rgba(255, 77, 77, 0.06);
  stroke: var(--color-primary);
}

/* City Center Marker Nodes */
.map-city-marker {
  fill: rgba(255, 255, 255, 0.3);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.2px;
  transition: all 0.25s ease-in-out;
  pointer-events: none;
}

.map-region-group:hover .map-city-marker,
.map-region-group.active-highlight .map-city-marker {
  fill: var(--color-primary);
  stroke: #ffffff;
  r: 6px;
}

/* City Name Labels */
.map-region-label {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transition: all 0.25s ease-in-out;
  font-family: var(--font-primary);
  letter-spacing: 0.02em;
}

.map-region-group:hover .map-region-label,
.map-region-group.active-highlight .map-region-label {
  fill: #ffffff;
}

/* Floating dynamic cursor tooltips */
.map-tooltip-overlay {
  position: fixed;
  pointer-events: none;
  background: rgba(10, 18, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.map-tooltip-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.tooltip-city-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.tooltip-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.tooltip-action {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-style: normal;
  letter-spacing: 0.01em;
}

/* Footer card footnotes */
.area-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  width: 100%;
}

.area-footnote svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  .area-map-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .map-sidebar-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .map-visual-container {
    padding: 0.5rem;
    background: rgba(2, 5, 8, 0.35);
  }
  .map-region-label {
    font-size: 14.5px;
  }
  .interactive-map-card {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .map-city-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Section 5: Gallery
   ========================================================================== */
.gallery-section-content {
  max-width: 1600px;
}

.projects-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1600px; /* Expanded to fit 30% larger viewport */
  margin: 0 auto;
}

.projects-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 1430px; /* Expanded by 30% from 1100px */
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0; /* Add vertical padding so hover scale doesn't clip */
}

.projects-carousel-track {
  position: relative;
  display: flex;
  gap: 2rem;
  width: 100%;
  will-change: transform;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Native 16:9 aspect ratio */
  height: auto; /* Remove hardcoded height */
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, z-index 0.4s;
}

.gallery-item.carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 2); /* 2 cards on desktop */
  box-sizing: border-box;
  opacity: 0.85; /* Keep visible cards mostly readable */
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  pointer-events: auto;
}

.gallery-item.carousel-slide.active-card {
  opacity: 1;
  transform: scale(1);
}

/* Pop forward on hover */
.gallery-item:hover {
  transform: scale(1.05) translateY(-5px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Main image layer - fits the 16:9 card perfectly */
.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05); /* Gentle inner zoom on hover */
}

/* Gallery Section Bottom CTA */
.gallery-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.5rem 3rem;
  margin-top: 4rem;
  border-radius: 20px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px 0 var(--color-glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-bottom-cta .cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-bottom-cta p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 950px;
  margin: 0; /* Centered vertically */
}


#btn-gallery-cta {
  flex-shrink: 0;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .projects-carousel-container {
    position: relative;
    max-width: 100%;
  }
  .projects-carousel-viewport {
    max-width: 100%;
  }
  .projects-carousel-container #btn-projects-prev {
    position: absolute;
    left: 15px;
    z-index: 15;
    background: rgba(4, 9, 14, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .projects-carousel-container #btn-projects-next {
    position: absolute;
    right: 15px;
    z-index: 15;
    background: rgba(4, 9, 14, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .gallery-item.carousel-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 900px) {
  .gallery-bottom-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .projects-carousel-viewport {
    max-width: 100%;
    padding: 10px 0;
  }
  .gallery-item {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .gallery-item.carousel-slide {
    flex: 0 0 100%;
  }
  .projects-carousel-container {
    gap: 0;
  }
  .projects-carousel-container #btn-projects-prev {
    left: 10px;
    width: 40px;
    height: 40px;
  }
  .projects-carousel-container #btn-projects-next {
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Section 6: Reviews
   ========================================================================== */
.reviews-gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1240px; /* Expanded for 3 columns */
  margin: 0 auto;
}

.reviews-gallery-viewport {
  position: relative;
  width: 100%;
  max-width: 1100px; /* Fits 3 cards nicely */
  min-height: 380px; /* Pre-allocated stable height */
  margin: 0 auto;
  overflow: hidden;
}

.reviews-gallery-track {
  position: relative;
  display: flex;
  gap: 2rem;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.review-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px 0 var(--color-glass-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card.gallery-slide {
  flex: 0 0 calc((100% - 4rem) / 3); /* 3 cards on desktop */
  box-sizing: border-box;
  opacity: 0.45; /* Dim inactive cards */
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

.review-card.gallery-slide.active-card {
  opacity: 1;
  transform: scale(1);
}

.review-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .reviews-gallery-viewport {
    max-width: 720px; /* Fits 2 cards nicely */
  }
  .review-card.gallery-slide {
    flex: 0 0 calc((100% - 2rem) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 768px) {
  .reviews-gallery-viewport {
    max-width: 100%;
    min-height: 400px; /* Fits 1 card on mobile */
  }
  .review-card.gallery-slide {
    flex: 0 0 100%; /* 1 card on mobile */
  }
}

.gallery-nav-btn {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.4);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--color-primary);
}

@media (max-width: 600px) {
  .reviews-gallery-container {
    gap: 1rem;
  }
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.google-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text-light);
}


.google-icon {
  width: 14px;
  height: 14px;
}

.google-badge-text {
  letter-spacing: 0.02em;
}

.review-stars {
  color: var(--color-accent-amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.review-author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.author-loc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#main-footer {
  background-color: rgba(2, 5, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-glass-border);
  padding: 5rem 2rem 2rem;
  position: relative;
  z-index: 5;
  /* Snap to bottom when scrolled to footer */
  scroll-snap-align: end;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 3rem;
  gap: 4rem;
}

.footer-left {
  max-width: 500px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.0;
}

.footer-brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--color-text-muted);
}

.footer-desc {
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-contact-info p strong {
  color: var(--color-text-light);
}

.footer-contact-info a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-contact-info a:hover {
  color: var(--color-text-light);
}


.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Adjustments (Mobile, Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  /* Header navigation mobile toggle */
  #desktop-menu,
  .header-cta {
    display: none;
  }

  #mobile-menu-toggle {
    display: flex;
  }

  .logo-img {
    height: 48px;
  }

  .company-name {
    font-size: 1.45rem;
  }

  /* Section header titles */
  .section-title {
    font-size: 1.85rem;
  }

  /* Hero Section */
  .hero-text-wrapper h1 {
    font-size: 2.5rem;
  }

  .hero-bottom-row {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  #btn-hero-contact {
    width: 100%;
  }

  /* Service Area Grid */
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }



  /* Footer Layout */
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  #home.scroll-section {
    padding: 0 1.25rem;
  }
  .hero-text-wrapper h1 {
    font-size: 1.8rem;
    line-height: 1.35;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    padding: 2rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   Contact Form Modal & Simulator Styles
   ========================================================================== */

/* Modal Popup Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(4, 9, 14, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

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

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Modal Form Styles */
.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
  text-align: left;
}

.modal-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.modal-form input,
.modal-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.2);
}

.modal-form textarea {
  resize: vertical;
}

.form-checkbox-group {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.form-checkbox-group input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.7rem !important;
  line-height: 1.45 !important;
  color: var(--color-text-muted) !important;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

.disclaimer-link {
  color: var(--color-text-light);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.disclaimer-link:hover {
  color: var(--color-primary);
}

.modal-form .submit-btn {
  margin-top: 1.25rem;
}

/* Services & Reviews CTA Button style */
.services-bottom-cta,
.reviews-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 4.5rem;
  padding: 2.5rem 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 900px) {
  .services-bottom-cta,
  .reviews-bottom-cta {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
  }
}

/* Simulator Modal Styles */
.simulator-card {
  max-width: 650px;
}

.simulator-content {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.sim-section {
  margin-bottom: 1.5rem;
}

.sim-section:last-of-type {
  margin-bottom: 0;
}

.sim-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sms-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.highlight-text {
  color: var(--color-accent-amber);
}

.sim-code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 0.85rem;
  color: #a9b7c6;
  white-space: pre-wrap;
  word-break: break-all;
}

.sim-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  text-align: center;
}

.success-color {
  color: #2ec4b6;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   Admin Portal Styles
   ========================================================================== */
.admin-page {
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-text-light);
  overflow-y: auto;
  scroll-snap-type: none !important;
}

.admin-page #bg-container {
  display: block;
  opacity: 0.15; /* Subtly show background slider image underneath */
}

.admin-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  z-index: 10;
  width: 100%;
}

.admin-login-container {
  width: 100%;
  max-width: 450px;
}

.admin-login-card {
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.admin-login-card .logo-group {
  justify-content: center;
  margin-bottom: 2rem;
}

.admin-login-card h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.admin-login-card p {
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.admin-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.admin-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.admin-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.2);
}

.admin-login-error {
  color: var(--color-primary);
  font-size: 0.85rem;
  margin-top: 1rem;
  min-height: 1.2rem;
  text-align: center;
}

/* Dashboard Styles */
.admin-dashboard-container {
  width: 100%;
  max-width: 1200px;
  display: none; /* Controlled by JS */
  flex-direction: column;
  gap: 2rem;
}

.admin-dashboard-container.active {
  display: flex;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--color-glass-border);
  padding-bottom: 1.5rem;
}

.admin-dashboard-header h1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dashboard-header h1 span {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 77, 77, 0.15);
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 77, 77, 0.2);
}

.admin-header-actions {
  display: flex;
  gap: 1rem;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.admin-stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 183, 3, 0.1);
  color: var(--color-accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-val {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-light);
}

.admin-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.admin-table-card {
  padding: 2rem;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  padding: 1.2rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 1.2rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.admin-table tr {
  transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.admin-col-date {
  width: 15%;
  white-space: nowrap;
}

.admin-col-name {
  width: 15%;
  font-weight: 600;
}

.admin-col-contact {
  width: 20%;
}

.admin-col-message {
  width: 40%;
}

.admin-col-actions {
  width: 10%;
  text-align: right;
}

.admin-contact-link {
  display: block;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  font-size: 0.85rem;
}

.admin-contact-link:hover {
  color: var(--color-accent-amber);
}

.admin-msg-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-btn-delete {
  background: rgba(255, 77, 77, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(255, 77, 77, 0.2);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-btn-delete:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.admin-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.admin-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  opacity: 0.3;
  margin-bottom: 1rem;
  fill: currentColor;
}

.admin-empty-state p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Desktop-Only Specific Overrides (min-width: 769px) - 30% Larger Service Area
   ========================================================================== */
@media (min-width: 769px) {
  #service-area .section-content {
    max-width: 1430px !important;
  }
  #service-area .interactive-map-card {
    max-width: 1430px !important;
    padding: 4.5rem !important;
  }
  #service-area .interactive-map-card h3 {
    font-size: 2.1rem !important;
    margin-bottom: 1.25rem !important;
  }
  #service-area .map-instruction {
    font-size: 1.25rem !important;
    margin-bottom: 3.5rem !important;
    max-width: 900px !important;
  }
  #service-area .area-map-layout {
    gap: 4.5rem !important;
  }
  #service-area .map-visual-container {
    flex: 1.6 !important;
  }
  #service-area .map-svg {
    max-height: 620px !important;
  }
  #service-area .map-region-label {
    font-size: 17px !important;
  }
  #service-area .map-region-group:hover .map-city-marker,
  #service-area .map-region-group.active-highlight .map-city-marker {
    r: 9px !important;
  }
  #service-area .map-sidebar-container {
    flex: 1.1 !important;
  }
  #service-area .map-city-list {
    gap: 1.2rem 2.5rem !important;
  }
  #service-area .map-city-item .city-name-text,
  #service-area .map-city-item-static .city-name-text-static {
    font-size: 1.15rem !important;
  }
  #service-area .area-footnote {
    padding-top: 2rem !important;
    font-size: 1.1rem !important;
    gap: 12px !important;
  }
  #service-area .area-footnote svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ==========================================================================
   Mobile-Only Specific Overrides (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  #main-header,
  #main-header.scrolled {
    height: 70px !important;
  }

  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .section-title {
    font-size: 1.65rem !important;
    margin-bottom: 0.4rem !important;
  }

  .scroll-section,
  .scroll-section:not(#home) {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 70px 1rem 1rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    scroll-snap-align: center !important;
    scroll-margin-top: 0 !important;
  }

  /* Enforce 4-line layout for the Hero Title on mobile/tablet */
  #home.scroll-section {
    padding: 0 1rem !important;
  }
  #home.scroll-section .hero-content {
    height: calc(100vh - 120px) !important;
    margin-top: 70px !important;
    justify-content: space-around !important;
  }
  .hero-text-wrapper h1 {
    font-size: 3.2rem !important;
    line-height: 1.15 !important;
  }
  .mobile-break {
    display: inline !important;
  }

  /* Compact Services Section */
  .services-grid {
    min-height: 380px !important;
  }
  .services-slide.active {
    gap: 0.75rem !important;
  }
  .service-card-image-wrapper {
    height: 110px !important;
  }
  .service-card-title-banner {
    bottom: 6px !important;
    left: 6px !important;
    padding: 4px 10px !important;
    font-size: 0.6rem !important;
    gap: 4px !important;
  }
  .service-card-desc {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    padding: 0.4rem 0.5rem !important;
    margin: 0 !important;
    color: var(--color-text-muted) !important;
    text-align: left !important;
  }
  .services-carousel-controls {
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  .services-bottom-cta {
    margin-top: 0.4rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .services-bottom-cta .cta-message {
    display: none !important;
  }
  .services-bottom-cta .btn-call-large {
    font-size: 0.78rem !important;
    padding: 0.45rem 1.5rem !important;
    width: auto !important;
  }

  /* Compact About Section */
  #about .about-header-badges {
    display: none !important;
  }
  #about .about-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  #about .about-content-right {
    position: static !important;
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 0.25rem !important;
  }
  #about .about-image-card {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    margin: 0.25rem auto !important;
    border: 3px solid var(--color-primary) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4) !important;
  }
  #about .about-family-img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  #about .about-content-left.glass-panel {
    order: 2 !important;
    padding: 1rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  #about .about-column-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
    padding-right: 0 !important;
    text-align: center !important;
    display: inline-block !important;
  }
  #about .about-column-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  #about .about-lead {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
  #about .about-body {
    font-size: 0.76rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
  #about .about-extended-text {
    display: none !important;
  }
  #about .about-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 1.2rem !important;
  }
  #about .stat-item {
    min-width: 80px !important;
    align-items: center !important;
    text-align: center !important;
  }
  #about .stat-num {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem !important;
  }
  #about .stat-label {
    font-size: 0.6rem !important;
  }
  #about .about-bottom-cta {
    margin-top: 0.4rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    flex-direction: row !important;
    justify-content: center !important;
  }
  #about .about-bottom-cta .cta-message {
    display: none !important;
  }
  #about .about-bottom-cta .btn-call-large {
    font-size: 0.78rem !important;
    padding: 0.45rem 1.5rem !important;
    width: auto !important;
  }

  /* Compact Service Area Section */
  #service-area .interactive-map-card {
    padding: 1rem 0.75rem !important;
  }
  #service-area .interactive-map-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
  }
  #service-area .map-instruction {
    display: none !important;
  }
  #service-area .area-map-layout {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  #service-area .map-visual-container {
    width: 100% !important;
    max-height: 250px !important;
    padding: 0.25rem !important;
    background: rgba(2, 5, 8, 0.35) !important;
  }
  #service-area .map-svg {
    max-height: 220px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
  #service-area .map-sidebar-container {
    width: 100% !important;
    padding: 0 !important;
  }
  #service-area .map-city-list {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.25rem 0.5rem !important;
  }
  #service-area .map-city-item, 
  #service-area .map-city-item-static {
    padding: 0.1rem 0 !important;
  }
  #service-area .map-city-item .city-name-text,
  #service-area .map-city-item-static .city-name-text-static {
    font-size: 0.72rem !important;
  }
  #service-area .area-footnote {
    padding-top: 0.5rem !important;
    font-size: 0.7rem !important;
    gap: 6px !important;
  }
  #service-area .area-footnote svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Compact Gallery Section */
  #gallery .projects-carousel-viewport {
    padding: 5px 0 !important;
  }
  #gallery .gallery-bottom-cta {
    margin-top: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    justify-content: center !important;
  }
  #gallery .gallery-bottom-cta .cta-content {
    display: none !important;
  }
  #btn-gallery-cta {
    width: 100% !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  /* Compact Reviews Section */
  #reviews .review-card {
    padding: 1.25rem 1rem !important;
  }
  #reviews .review-text {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
  }
  #reviews .review-card-header {
    margin-bottom: 0.75rem !important;
  }
  #reviews .reviews-bottom-cta {
    margin-top: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    justify-content: center !important;
  }
  #reviews .reviews-bottom-cta .cta-message {
    display: none !important;
  }
  #btn-reviews-contact {
    width: 100% !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.85rem !important;
  }

  /* Service Card Sticky Highlight */
  .service-card.selected-highlight {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4) !important;
  }
  .service-card.selected-highlight .service-card-title-banner {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3) !important;
  }
}

