/* ==========================================
   1. Design System & Variables
   ========================================== */
:root {
  /* Colors */
  --primary: hsl(210, 100%, 45%);       /* Clean Professional Blue */
  --primary-hover: hsl(210, 100%, 38%);
  --secondary: hsl(200, 15%, 95%);
  --success: #25d366;                   /* WhatsApp Green */
  --dark: hsl(215, 28%, 17%);
  --light: hsl(0, 0%, 100%);
  --text-dark: hsl(215, 28%, 17%);
  --text-light: hsl(210, 20%, 98%);
  --text-muted: hsl(215, 16%, 47%);
  --border-color: hsl(214, 32%, 91%);
  --white: #ffffff;
  
  /* Fonts */
  --font-hebrew: 'Assistant', 'Rubik', sans-serif;
  --font-english: 'Assistant', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
body.dark-theme {
  --primary: hsl(210, 100%, 60%);
  --primary-hover: hsl(210, 100%, 68%);
  --secondary: hsl(215, 28%, 13%);
  --dark: hsl(210, 20%, 98%);
  --light: hsl(215, 28%, 18%);
  --text-dark: hsl(210, 20%, 90%);
  --text-light: hsl(215, 28%, 18%);
  --text-muted: hsl(215, 16%, 67%);
  --border-color: hsl(215, 28%, 25%);
  --white: hsl(215, 28%, 22%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body.dark-theme .hero {
  background: radial-gradient(circle at 10% 20%, hsl(215, 28%, 18%) 0%, hsl(215, 28%, 12%) 100%);
  border-bottom: 1px solid var(--border-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.theme-toggle-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Light mode: show sun, hide moon */
.theme-toggle-btn site-icon[name="sun"] {
  display: inline-flex !important;
}
.theme-toggle-btn site-icon[name="sun"] i,
.theme-toggle-btn site-icon[name="sun"] svg {
  color: #ff9800 !important;
}
.theme-toggle-btn site-icon[name="moon"] {
  display: none !important;
}

/* Dark mode: show moon, hide sun */
body.dark-theme .theme-toggle-btn site-icon[name="sun"] {
  display: none !important;
}
body.dark-theme .theme-toggle-btn site-icon[name="moon"] {
  display: inline-flex !important;
}
body.dark-theme .theme-toggle-btn site-icon[name="moon"] i,
body.dark-theme .theme-toggle-btn site-icon[name="moon"] svg {
  color: #ffc107 !important;
}

/* ==========================================
   2. Reset & Base Styles
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-hebrew);
  color: var(--text-dark);
  background-color: var(--light);
  line-height: 1.6;
}

body[dir="ltr"] {
  font-family: var(--font-english);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
}

/* ==========================================
   3. Layout Components
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background-color: var(--light);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1010;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 100% !important;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.logo:hover {
  opacity: 0.85;
}

.logo span {
  color: var(--dark);
}

.logo span strong {
  color: var(--primary) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--primary);
}


nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--dark);
}

nav a:hover, nav a.active {
  color: var(--primary);
}

.lang-switch {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-switch:hover {
  background-color: var(--primary);
  color: var(--light);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 234, 254) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--light);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--light);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: hsl(210, 100%, 96%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--primary);
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact & Lead Form */
.contact-section {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
}

.info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Lead Form */
.lead-form-wrapper {
  background-color: var(--light);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lead-form-wrapper h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-block {
  width: 100%;
}

/* Footer */
footer {
  background-color: hsl(215, 28%, 17%) !important;
  color: hsl(210, 20%, 98%) !important;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

footer .logo {
  color: hsl(210, 20%, 98%) !important;
}

footer .logo span {
  color: hsl(210, 20%, 98%) !important;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: hsl(215, 16%, 75%) !important;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary) !important;
}

.footer-copy {
  color: hsl(215, 16%, 65%) !important;
  font-size: 0.9rem;
}

/* ==========================================
   4. Floating Action Buttons (CTA)
   ========================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  display: none !important; /* Hidden globally since site is in SEO-only mode */
  flex-direction: column;
  gap: 0.75rem;
}

body[dir="ltr"] .floating-actions {
  left: auto;
  right: 2rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--light);
}

.float-whatsapp {
  background-color: var(--success);
}

.float-phone {
  background-color: var(--primary);
  display: none; /* Shown on mobile */
}

/* ==========================================
   5. Accessibility Toolbar Elements
   ========================================== */
.acc-menu-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

body[dir="ltr"] .acc-menu-toggle {
  right: auto;
  left: 2rem;
}

.acc-menu-toggle:hover {
  transform: scale(1.1);
}

.acc-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 1000;
  width: 320px;
  background-color: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: none; /* Toggled by JS */
  flex-direction: column;
  gap: 1rem;
}

body[dir="ltr"] .acc-panel {
  right: auto;
  left: 2rem;
}

.acc-panel.active {
  display: flex;
}

.acc-panel h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.acc-btn {
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--secondary);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.acc-btn i {
  font-size: 1.1rem;
}

.acc-btn:hover {
  background-color: var(--primary);
  color: var(--light);
  border-color: var(--primary);
}

.acc-btn.active {
  background-color: var(--primary-hover);
  color: var(--light);
  border-color: var(--primary-hover);
}

.acc-reset {
  grid-column: span 2;
  background-color: var(--dark);
  color: var(--light);
  font-weight: 700;
  margin-top: 0.5rem;
}

.acc-reset:hover {
  background-color: #000;
}

/* Accessibility Modifications via JS */
.accessible-contrast {
  filter: contrast(140%);
  background-color: #000 !important;
  color: #fff !important;
}

.accessible-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.accessible-contrast a, .accessible-contrast button {
  color: #ffff00 !important;
  text-decoration: underline !important;
}







.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #0066cc);
  color: #fff;
  padding: 10px 20px;
  z-index: 9999;
  border-radius: 0 0 5px 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ==========================================
   6. Responsive Styles (Mobile Adaptability)
   ========================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .nav-container {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--light);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
  }
  
  nav.active {
    max-height: 600px;
  }
  
  nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: stretch;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem;
    font-size: 1.1rem;
  }
  
  .lang-dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: var(--secondary);
    margin-top: 0.5rem;
    min-width: 100%;
  }
  
  .lang-dropdown-content a {
    text-align: center !important;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-group {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  
  .cta-group .btn {
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
  }
  
  .hero-trust-elements {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .lead-form-wrapper {
    padding: 1.5rem;
  }
  
  .float-phone {
    display: flex; /* Show phone button on mobile */
  }
  
  .floating-actions {
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  body[dir="ltr"] .floating-actions {
    right: 1.5rem;
  }
  
  .acc-menu-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  body[dir="ltr"] .acc-menu-toggle {
    left: 1.5rem;
  }
  
  .acc-panel {
    bottom: 5.5rem;
    right: 1.5rem;
    width: 290px;
  }
  
  body[dir="ltr"] .acc-panel {
    left: 1.5rem;
  }
}

/* ==========================================
   7. Multilingual Language Dropdown Selector
   ========================================== */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--dark);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.lang-dropdown-btn:hover {
  background-color: var(--primary);
  color: var(--light);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light);
  min-width: 140px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  z-index: 110;
  overflow: hidden;
}

body[dir="rtl"] .lang-dropdown-content {
  left: auto;
  right: 0;
}

.lang-dropdown-content a {
  color: var(--dark);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  transition: var(--transition);
}

body[dir="ltr"] .lang-dropdown-content a {
  text-align: left;
}

.lang-dropdown-content a:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.lang-dropdown:hover .lang-dropdown-content {
  display: block;
}

/* ==========================================
   8. Responsive Grid Layout Utilities
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 400px;
}

.service-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .about-grid div:first-child {
    order: 2; /* Text below image on mobile for better visual balance */
  }
  
  .about-grid div:last-child {
    order: 1; /* Image above text on mobile */
  }
  
  .service-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================
   9. Testimonials & FAQ Section Styles
   ========================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.testimonial-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  text-align: inherit;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-question i {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.6;
}

.faq-answer p {
  padding-top: 1rem;
  margin: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* ==========================================
   10. Cookie Consent Banner (GDPR & Israel Privacy Compliance)
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 90%;
  width: 750px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-text {
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner-text a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-btns {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: #fff;
}

.cookie-btn-accept:hover {
  background-color: var(--primary-hover);
}

.cookie-btn-decline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    bottom: 1rem;
    text-align: center;
  }
  
  .cookie-banner-btns {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
  }
}


/* ==========================================
   CRO & Conversion Optimizations
   ========================================== */
.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.emergency-badge i {
  animation: croPulse 1.5s infinite;
}

@keyframes croPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.hero-trust-elements {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-trust-elements span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.dark-theme .hero-trust-elements span {
  color: #e2e8f0;
}

.hero-trust-elements span i,
.hero-trust-elements span svg {
  color: var(--primary);
}

.hero-trust-elements span i.fa-star,
.hero-trust-elements span svg.fa-star {
  color: #ffc107;
}

/* Sticky Bottom Mobile Bar */
.sticky-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 9998;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-theme .sticky-bottom-bar {
  background: rgba(15, 23, 42, 0.9);
  border-top-color: var(--border-color);
}



.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  height: 100%;
  color: #fff;
  transition: var(--transition);
}

.sticky-btn-phone {
  background-color: var(--primary);
}

.sticky-btn-phone:hover {
  background-color: var(--primary-hover);
}

.sticky-btn-whatsapp {
  background-color: #25d366;
}

.sticky-btn-whatsapp:hover {
  background-color: #20ba5a;
}

@media (max-width: 768px) {
  .sticky-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 0 !important;
  }
  .acc-menu-toggle {
    bottom: 80px !important;
  }
}


/* Neighborhoods Section Responsive Layout */
.neighborhoods-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.neighborhood-card {
  flex: 1 1 calc(50% - 0.5rem);
  max-width: 220px;
  min-width: 120px;
  background-color: var(--white);
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neighborhood-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .neighborhoods-container {
    gap: 1.5rem;
  }
  .neighborhood-card {
    flex: 1 1 180px;
    padding: 1.25rem;
    font-size: 1rem;
  }
}


/* Fix Language Dropdown on Mobile */
.lang-dropdown-content.active {
  display: block !important;
}


/* Mobile Navigation & Language Switcher Perfection Override */
@media (max-width: 768px) {
  nav.active {
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important; /* Enable scrolling inside mobile menu */
  }

  /* Hide the dropdown button on mobile */
  .lang-dropdown-btn {
    display: none !important;
  }

  /* Display the language content as a horizontal row of pill buttons on mobile */
  .lang-dropdown-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    margin-top: 0.5rem !important;
    min-width: 100% !important;
    padding: 0.5rem 0 !important;
    border-top: 1px solid var(--border-color) !important;
  }

  .lang-dropdown-content a {
    display: inline-block !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--dark) !important;
    background-color: var(--white) !important;
    text-align: center !important;
    min-width: auto !important;
  }

  .lang-dropdown-content a:hover {
    background-color: var(--primary) !important;
    color: var(--light) !important;
  }
}





/* Strict 2-Column Grid Layout for Neighborhoods on Mobile */
@media (max-width: 767px) {
  .neighborhoods-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .neighborhood-card {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 0.25rem !important;
    font-size: 0.85rem !important;
  }
}


/* Static Map Hover Effects */
.static-map-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.static-map-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}
.static-map-link:hover img {
  transform: scale(1.05);
}
.static-map-link:hover .map-overlay {
  opacity: 1 !important;
}

/* Force HTML & Body to Full Width to prevent dark layout margins */
html, body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Global Logo strong tag coloring */
.logo strong {
  color: var(--primary) !important;
}

/* Calculator Price Display style */
.calc-price-display {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  direction: ltr;
}

/* Services Carousel for Mobile */
@media (max-width: 768px) {
  .services-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 1.25rem !important;
    padding: 1rem 1.5rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  }
  
  .services-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }
  
  .services-grid .service-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Carousel Dots styling */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
  }
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

  max-width: 220px;
  min-width: 120px;
  background-color: var(--white);
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neighborhood-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .neighborhoods-container {
    gap: 1.5rem;
  }
  .neighborhood-card {
    flex: 1 1 180px;
    padding: 1.25rem;
    font-size: 1rem;
  }
}


/* Fix Language Dropdown on Mobile */
.lang-dropdown-content.active {
  display: block !important;
}


/* Mobile Navigation & Language Switcher Perfection Override */
@media (max-width: 768px) {
  nav.active {
    max-height: calc(100vh - 70px) !important;
    overflow-y: auto !important; /* Enable scrolling inside mobile menu */
  }

  /* Hide the dropdown button on mobile */
  .lang-dropdown-btn {
    display: none !important;
  }

  /* Display the language content as a horizontal row of pill buttons on mobile */
  .lang-dropdown-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
    margin-top: 0.5rem !important;
    min-width: 100% !important;
    padding: 0.5rem 0 !important;
    border-top: 1px solid var(--border-color) !important;
  }

  .lang-dropdown-content a {
    display: inline-block !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--dark) !important;
    background-color: var(--white) !important;
    text-align: center !important;
    min-width: auto !important;
  }

  .lang-dropdown-content a:hover {
    background-color: var(--primary) !important;
    color: var(--light) !important;
  }
}





/* Strict 2-Column Grid Layout for Neighborhoods on Mobile */
@media (max-width: 767px) {
  .neighborhoods-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .neighborhood-card {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 0.25rem !important;
    font-size: 0.85rem !important;
  }
}


/* Static Map Hover Effects */
.static-map-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.static-map-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}
.static-map-link:hover img {
  transform: scale(1.05);
}
.static-map-link:hover .map-overlay {
  opacity: 1 !important;
}

/* Force HTML & Body to Full Width to prevent dark layout margins */
html, body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Global Logo strong tag coloring */
.logo strong {
  color: var(--primary) !important;
}

/* Calculator Price Display style */
.calc-price-display {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  direction: ltr;
}

/* Services Carousel for Mobile */
@media (max-width: 768px) {
  .services-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 1.25rem !important;
    padding: 1rem 1.5rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  }
  
  .services-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }
  
  .services-grid .service-card {
    flex: 0 0 85% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Carousel Dots styling */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
  }
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

body.dark-theme .carousel-dot {
  background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .carousel-dot.active {
  background-color: var(--primary);
}

/* Testimonials Carousel for Mobile */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 1.25rem !important;
    padding: 1rem 1.5rem !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important; /* Hide scrollbar for Firefox */
  }
  
  .testimonials-grid::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for Chrome/Safari */
  }
  
  .testimonials-grid .testimonial-card {
    flex: 0 0 85% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Header Actions Layout & Responsive Ordering */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 3;
}

@media (min-width: 768px) {
  nav {
    order: 2;
    margin-inline-start: auto !important;
    margin-inline-end: 2rem !important;
  }
}

@media (max-width: 768px) {
  .header-actions {
    gap: 0.5rem;
  }
}

/* Prevent background scrolling when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
  height: 100vh !important;
}
