/* 
   Elec Eco Habitation - Premium Styling System (UPDATED & ALIGNED)
   Unified stylesheet with responsive layouts, modern grids, cards, header, forms, toasts,
   interactive carousel, Google reviews, partner logos, certifications grid, and custom bullet icons.
*/

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --primary: #377f3d;
  --primary-hover: #2e6932;
  --primary-light: rgba(55, 127, 61, 0.08);
  --primary-glow: rgba(55, 127, 61, 0.25);

  --dark-slate: #111827;
  /* Dark slate text/bg */
  --charcoal: #1f2937;
  /* Neutral dark */
  --charcoal-light: #374151;
  /* Muted text */

  --bg-soft: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;

  --border-color: #e2e8f0;
  --border-focus: #377f3d;

  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --font-family: 'Poppins', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-premium-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  /* Optimized border radius */
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- BUTTONS --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.cta-btn.secondary {
  background-color: transparent;
  color: var(--dark-slate);
  border: 2px solid var(--border-color);
  box-shadow: none;
}

.cta-btn.secondary:hover {
  background-color: var(--bg-soft);
  border-color: var(--charcoal-light);
  transform: translateY(-2px);
}

.cta-btn.white-btn {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cta-btn.white-btn:hover {
  background-color: var(--bg-soft);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* --- HEADER / NAVIGATION --- */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

header.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
}

header.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-normal);
}

header.site-header.scrolled .header-container {
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.logo-link i {
  color: var(--primary);
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text span {
  color: var(--primary);
  font-weight: 400;
}

/* Navigation Links - Desktop */
.nav-menu {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
  }

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

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

  .nav-link.active {
    color: var(--primary);
    font-weight: 600;
  }

  .header-actions {
    display: block;
  }
}

.header-actions {
  display: none;
}

/* Mobile Hamburger Menu Button */
.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background-color: var(--dark-slate);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast) ease-in-out, background-color var(--transition-fast) ease-in-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--dark-slate);
  position: absolute;
  left: 0;
  transition: transform var(--transition-fast) ease-in-out;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Active hamburger states */
.hamburger.is-active .hamburger-inner {
  background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--dark-slate);
}

.hamburger.is-active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--dark-slate);
}

/* Mobile Dropdown Navigation Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 1005;
  box-shadow: var(--shadow-xl);
  padding: 100px 2rem 2rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav.is-open {
  right: 0;
}

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

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-slate);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mobile-nav-footer {
  margin-top: auto;
}

.mobile-nav-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Overlay for Mobile menu click-away */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Prevent scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* --- HOME PAGE HERO BANNER --- */
.home-hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--charcoal) 100%);
  color: var(--text-white);
  padding: 7rem 0 5rem 0;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(55, 127, 61, 0.18) 0%, transparent 75%);
  pointer-events: none;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.home-hero-badge i {
  color: var(--primary);
}

.home-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.home-hero-content h1 span {
  color: var(--primary);
}

.home-hero-content p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.home-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-hero-image-panel {
  position: relative;
  display: none;
}

@media (min-width: 992px) {
  .home-hero-image-panel {
    display: block;
  }
}

.home-hero-img-box {
  width: 100%;
  height: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

.home-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--bg-white);
  color: var(--dark-slate);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.floating-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.floating-card-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.floating-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SECTORS SECTION & CARD ALIGNMENTS --- */
.sectors-section {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--dark-slate);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sector Card Premium Design & Alignment */
.sector-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-premium);
  border: none;
  border-top: 4px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Forces identical card height in grid rows */
}

.sector-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-hover);
  border-top-color: var(--primary);
}

.sector-card-icon-container {
  margin-bottom: 1.5rem;
}

.sector-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-soft);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.sector-card:hover .sector-card-icon {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 12px var(--primary-glow);
  border-color: var(--primary);
}

.sector-card-text {
  flex-grow: 1;
  /* Pushes the CTA link to the very bottom line */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.sector-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.sector-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sector-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: auto;
  /* Aligns "En savoir plus" triggers on the exact same row */
}

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

/* --- PREMIUM SERVICE HERO OVERLAY SECTION --- */
.service-page {
  padding-top: 80px;
  /* Offset for sticky header */
}

.service-hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
  background-color: var(--dark-slate);
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-hero-split {
    grid-template-columns: 1fr 1fr;
    height: 480px;
  }
}

.hero-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-image {
    height: 100%;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.service-hero-split:hover .hero-image img {
  transform: scale(1.05);
}

/* Clean linear dark gradient over hero images */
.service-hero-split::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17, 24, 39, 0.4) 0%, rgba(17, 24, 39, 0.85) 100%);
  z-index: 5;
  pointer-events: none;
}

/* Title and description placed directly ON TOP of split images */
.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-white);
}

.hero-overlay-content .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.hero-overlay-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 800px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-overlay-content p {
  font-size: 1.05rem;
  max-width: 650px;
  color: #e2e8f0;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .hero-overlay-content h1 {
    font-size: 2.8rem;
  }

  .hero-overlay-content p {
    font-size: 1.15rem;
  }
}

/* --- SERVICE INTRO SECTION --- */
.service-intro {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-white);
  position: relative;
}

.service-intro::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.service-intro .container {
  max-width: 800px;
  text-align: center;
}

.service-intro h2 {
  font-size: 2rem;
  color: var(--dark-slate);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-intro p {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  line-height: 1.8;
}

/* Custom premium checkmark features list */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

@media (min-width: 576px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}

.feature-item i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* --- SERVICE DETAILS SECTION (GRID-3) --- */
.service-details {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-soft);
}

/* Detail Box Premium Design */
.detail-box {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  /* 16px */
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: none;
  border-top: 4px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Forces cards to equal height in grid rows */
}

.detail-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium-hover);
  border-top-color: var(--primary);
}

.detail-box .img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.detail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.detail-box:hover img {
  transform: scale(1.08);
}

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

/* Floating icon effect */
.detail-box-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  margin-top: -3.75rem;
  /* Floating icon effect */
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(55, 127, 61, 0.15);
  border: 2px solid var(--bg-white);
}

.detail-box-icon i {
  color: var(--primary);
  font-size: 1.25rem;
}

.detail-box h3 {
  font-size: 1.35rem;
  color: var(--dark-slate);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.detail-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* --- LIGHT CTA SERVICE SECTION --- */
.cta-service-light {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-slate) 100%);
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-service-light::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(55, 127, 61, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-service-light .container {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.cta-service-light h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cta-service-light h2 {
    font-size: 2.2rem;
  }
}

/* --- INTERACTIVE PHOTO CAROUSEL --- */
.carousel-section {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-soft);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 350px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-slide {
    height: 500px;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.carousel-slide:hover img {
  transform: scale(1.06);
}

.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.75) 100%);
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 3.5rem;
  left: 2rem;
  right: 2rem;
  z-index: 5;
  color: var(--text-white);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.15s;
}

.carousel-slide.active .carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

.carousel-caption h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .carousel-caption h3 {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.carousel-caption p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.carousel-badge {
  background-color: rgba(55, 127, 61, 0.2);
  border: 1px solid rgba(55, 127, 61, 0.4);
  color: #4ade80;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
}

.carousel-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 1.5rem;
}

.carousel-btn.next {
  right: 1.5rem;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
}

@media (min-width: 768px) {
  .carousel-dots {
    left: auto;
    right: 2rem;
    transform: none;
  }
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 4px;
  transform: none;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- GOOGLE REVIEWS SECTION --- */
.reviews-section {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-white);
}

.reviews-meta-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.google-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
}

.google-brand i {
  color: #4285f4;
  /* Google Blue */
  font-size: 1.6rem;
}

.google-rating-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal-light);
}

.star-rating i {
  color: #f59e0b;
  /* Amber Stars */
  font-size: 1rem;
  margin-right: 0.1rem;
}

.review-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition-normal);
  height: 100%;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(55, 127, 61, 0.15);
}

.user-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.user-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.6;
  font-style: italic;
}

/* --- BRAND PARTNERS & LOGOS --- */
.partners-section {
  padding: 4rem 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.partners-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.partner-logo-box {
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
  transition: all var(--transition-fast);
}

.partner-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.partner-placeholder-text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- TRUST BADGES, LABELS & CERTIFICATIONS GRID --- */
.certifications-section {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.cert-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(55, 127, 61, 0.2);
}

.cert-image-placeholder {
  width: 80px;
  height: 80px;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.cert-img {
  max-width: 120px;
  height: 80px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

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

.cert-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- GLOBAL CONTACT FORM SECTION --- */
.contact-section {
  padding: 80px 0;
  /* Standardized Airiness padding */
  background-color: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-panel {
  padding-right: 0;
}

@media (min-width: 1024px) {
  .contact-info-panel {
    padding-right: 2rem;
    position: sticky;
    top: 100px;
  }
}

.contact-info-panel h2 {
  font-size: 2.2rem;
  color: var(--dark-slate);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-info-panel p.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-info-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-info-content h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-content p,
.contact-info-content a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.contact-info-content a:hover {
  color: var(--primary);
}

/* Trust badges inside contact panel */
.trust-badges {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.trust-badges h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-soft);
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
}

.trust-badge-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* Modern Form Box */
.contact-form-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 3rem;
  }
}

.contact-form-card h3 {
  font-size: 1.5rem;
  color: var(--dark-slate);
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.75rem;
}

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

@media (min-width: 768px) {
  .form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--dark-slate);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--bg-white);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

/* Checkbox container styling */
.form-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: var(--border-radius-sm);
  margin-top: 0.15rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  user-select: none;
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1rem;
}

/* Dynamic State of Submit Button during submit */
.form-submit-btn.is-loading {
  background-color: var(--primary-hover);
  color: transparent;
  position: relative;
  pointer-events: none;
}

.form-submit-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

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

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  min-width: 320px;
  max-width: 450px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  padding: 1.25rem;
  border-left: 6px solid #ccc;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-slate);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-muted);
}

/* --- FOOTER --- */
footer.site-footer {
  background-color: var(--dark-slate);
  color: var(--text-white);
  padding: 5rem 0 2rem 0;
  border-top: 4px solid var(--primary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

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

.footer-links a {
  color: #cbd5e1;
  display: inline-block;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #cbd5e1;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
  font-size: 1rem;
}

.footer-cert-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-cert-item-box {
  width: calc(50% - 0.25rem);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.footer-cert-item-box .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.footer-cert-item-box .val {
  font-size: 0.6rem;
  color: #e2e8f0;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--text-white);
}

/* --- DEDICATED CONTACT PAGE SPECIAL STYLING --- */
.contact-hero {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--charcoal) 100%);
  color: var(--text-white);
  padding: 5rem 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* --- ACCESSIBILITY / HANDIBAT SPECIFIC LAYOUT --- */
.badge-handibat {
  background-color: rgba(55, 127, 61, 0.15) !important;
  border: 1px solid var(--primary);
}

/* --- PREMIUM IMAGE LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.88); /* Deep translucent slate */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000; /* Above all other elements */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.is-active .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(15, 23, 42, 0.5);
}

.lightbox-caption {
  margin-top: 1.5rem;
  color: var(--text-white);
  text-align: center;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lightbox-caption h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lightbox-caption p {
  font-size: 0.95rem;
  color: #cbd5e1; /* slate-300 */
  line-height: 1.5;
}

/* Close button with premium hover effect */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3010;
}

.lightbox-close:hover {
  background-color: #ef4444; /* Alert red */
  border-color: #ef4444;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Premium Left/Right Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3010;
}

.lightbox-nav:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

/* Responsiveness adjustments for smaller devices */
@media (max-width: 1024px) {
  .lightbox-content {
    max-width: 90%;
  }
  .lightbox-content img {
    max-height: 60vh;
  }
  .lightbox-nav.prev {
    left: 1rem;
  }
  .lightbox-nav.next {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .lightbox-content img {
    max-height: 50vh;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-nav.prev {
    left: 0.5rem;
  }
  .lightbox-nav.next {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .lightbox-caption {
    padding: 1rem;
    margin-top: 1rem;
  }
  .lightbox-caption h3 {
    font-size: 1.1rem;
  }
  .lightbox-caption p {
    font-size: 0.85rem;
  }
}

/* --- REVIEWS CAROUSEL --- */
.reviews-carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.reviews-carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 0.5rem;
  margin: -1.5rem 0;
}

.reviews-carousel-track {
  display: flex;
  width: 100%;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reviews-carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  opacity: 0.4;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

@media (min-width: 768px) {
  .reviews-carousel-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .reviews-carousel-slide {
    flex: 0 0 calc((100% - 4.5rem) / 4);
  }
}

.reviews-carousel-slide .review-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  margin: 0 auto;
  max-width: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.reviews-carousel-slide .review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium-hover);
}

/* Reviews Carousel Buttons */
.reviews-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
}

.reviews-carousel-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-50%) scale(1.1);
}

.reviews-carousel-btn.prev {
  left: -3.5rem;
}

.reviews-carousel-btn.next {
  right: -3.5rem;
}

/* Dots */
.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.reviews-carousel-dot {
  width: 8px;
  height: 8px;
  background-color: #cbd5e1; /* slate-300 */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reviews-carousel-dot:hover {
  background-color: var(--charcoal-light);
}

.reviews-carousel-dot.active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Adjustments for smaller devices */
@media (max-width: 992px) {
  .reviews-carousel-btn.prev {
    left: -1rem;
    background-color: rgba(255, 255, 255, 0.95);
  }
  .reviews-carousel-btn.next {
    right: -1rem;
    background-color: rgba(255, 255, 255, 0.95);
  }
}

@media (max-width: 576px) {
  .reviews-carousel-container {
    padding: 0 0.5rem;
  }
  .reviews-carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
  .reviews-carousel-slide {
    padding: 0 0.5rem;
  }
}

/* === SEO / privacy additions - preserve original responsive layout === */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-checkbox-label a { color: var(--primary); text-decoration: underline; }
.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .65rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.reviews-google-link:hover { text-decoration: underline; }
.legal-page { background: #f7f9fc; min-height: 65vh; }
.legal-hero { padding: 8rem 0 3rem; background: linear-gradient(135deg,#0f172a 0%,#1f2937 100%); color:#fff; }
.legal-hero h1 { margin:0 0 1rem; font-size:clamp(2rem,5vw,3.25rem); }
.legal-hero p { max-width:760px; color:#dbe2ea; line-height:1.7; }
.legal-content { padding:3rem 0 5rem; }
.legal-container { max-width:900px; }
.legal-block { background:#fff; padding:1.6rem 1.8rem; border-radius:14px; box-shadow:0 8px 30px rgba(15,23,42,.06); margin-bottom:1.25rem; }
.legal-block h2 { font-size:1.25rem; margin:0 0 .8rem; color:#111827; }
.legal-block p { margin:.55rem 0; color:#4b5563; line-height:1.75; }

/* Mobile safety net: prevents any content from forcing desktop width. */
@media (max-width: 767px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden; }
  .container { width:100%; max-width:100%; padding-left:1rem; padding-right:1rem; }
  .home-hero { min-height:auto; padding-top:6.5rem; padding-bottom:3.5rem; }
  .home-hero-content h1 { font-size:clamp(1.85rem, 8vw, 2.35rem); }
  .home-hero-btns { width:100%; flex-direction:column; }
  .home-hero-btns .cta-btn { width:100%; }
  .contact-grid, .form-grid.two-cols { grid-template-columns:1fr !important; }
  .contact-form-card, .contact-info-panel, .form-group, .form-input, .form-select, .form-textarea { min-width:0; max-width:100%; }
  .reviews-carousel-container, .carousel-container { max-width:100%; }
  .legal-hero { padding-top:6.5rem; }
  .legal-block { padding:1.25rem; }
}

