/* Reset e variáveis CSS com fallbacks para compatibilidade cross-browser */
:root {
  --primary: #003366;
  --primary-light: #004d99;
  --primary-dark: #002244;
  --accent: #ff6b00;
  --accent-light: #ff8533;
  --accent-dark: #e55a00;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-light: #f8f9fa;
  --bg-lighter: #ffffff;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --shadow-active: 0 2px 8px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* Responsive breakpoints */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --large: 1200px;
  --xl: 1400px;
  
  /* Responsive spacing com fallbacks */
  --section-padding: 60px; /* fallback */
  --section-padding: clamp(40px, 8vw, 80px);
  --container-padding: 20px; /* fallback */
  --container-padding: clamp(15px, 4vw, 20px);
  --gap-xs: 8px; /* fallback */
  --gap-xs: clamp(6px, 1.5vw, 10px);
  --gap-small: 12px; /* fallback */
  --gap-small: clamp(10px, 2vw, 15px);
  --gap-medium: 25px; /* fallback */
  --gap-medium: clamp(20px, 4vw, 30px);
  --gap-large: 40px; /* fallback */
  --gap-large: clamp(30px, 6vw, 50px);
  --gap-xl: 60px; /* fallback */
  --gap-xl: clamp(40px, 8vw, 80px);
  
  /* Responsive typography com fallbacks */
  --text-xs: 0.875rem; /* fallback */
  --text-xs: clamp(0.75rem, 2vw, 0.875rem);
  --text-sm: 1rem; /* fallback */
  --text-sm: clamp(0.875rem, 2.5vw, 1rem);
  --text-base: 1.125rem; /* fallback */
  --text-base: clamp(1rem, 3vw, 1.125rem);
  --text-lg: 1.25rem; /* fallback */
  --text-lg: clamp(1.125rem, 3.5vw, 1.25rem);
  --text-xl: 1.5rem; /* fallback */
  --text-xl: clamp(1.25rem, 4vw, 1.5rem);
  --text-2xl: 2rem; /* fallback */
  --text-2xl: clamp(1.5rem, 5vw, 2rem);
  --text-3xl: 2.5rem; /* fallback */
  --text-3xl: clamp(2rem, 6vw, 2.5rem);
  --text-4xl: 3.5rem; /* fallback */
  --text-4xl: clamp(2.5rem, 8vw, 3.5rem);
  
  /* Performance optimizations */
  --gpu-acceleration: translateZ(0);
  --will-change-transform: transform;
  --will-change-auto: auto;
}

/* Reset CSS universal para compatibilidade e performance */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improved focus management */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Performance optimizations */
*,
*::before,
*::after {
  /* Remove default animations that can cause performance issues */
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Re-enable animations for non-reduced motion users */
@media (prefers-reduced-motion: no-preference) {
  *,
  *::before,
  *::after {
    animation-duration: revert !important;
    animation-iteration-count: revert !important;
    transition-duration: revert !important;
    scroll-behavior: revert !important;
  }
}

/* Base body com fallbacks e otimizações mobile */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  color: #333333; /* fallback */
  background-color: var(--bg-light);
  background-color: #f8f9fa; /* fallback */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Performance optimizations for mobile */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  
  /* Mobile viewport optimizations */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  
  /* GPU layer creation for smooth scrolling */
  transform: translateZ(0);
  will-change: scroll-position;
  
  /* Font optimization */
  font-feature-settings: "liga" 1, "kern" 1;
  font-variant-ligatures: common-ligatures;
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    scroll-behavior: auto;
    will-change: auto;
  }
}

/* Enhanced HTML optimization */
html {
  /* Smooth scrolling with performance consideration */
  scroll-behavior: smooth;
  
  /* Better font rendering */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Performance optimization */
  contain: layout style paint;
}

.container {
  width: 100%;
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Responsive container variants */
.container-sm {
  max-width: 600px;
}

.container-md {
  max-width: 900px;
}

.container-lg {
  max-width: var(--large);
}

.container-fluid {
  width: 100%;
  max-width: none;
  padding: 0 var(--container-padding);
}

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

ul {
  list-style: none;
}

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

/* Botões com melhor acessibilidade e performance */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: clamp(12px, 3vw, 16px) clamp(24px, 5vw, 32px);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
  border: 2px solid var(--accent);
  cursor: pointer;
  text-align: center;
  min-height: 48px; /* Enhanced accessibility - minimum touch target */
  line-height: 1.4;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  
  /* Performance optimizations */
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  
  /* Enhanced focus styles */
  outline: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

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

.btn:hover,
.btn:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px) translateZ(0);
  box-shadow: var(--shadow-hover);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px) translateZ(0);
  box-shadow: var(--shadow-active);
}

/* Button variants */
.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--accent);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background-color: var(--bg-light);
  border-color: var(--border);
}

.btn-small {
  padding: clamp(6px, 2vw, 10px) clamp(12px, 3vw, 18px);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn-large {
  padding: clamp(14px, 4vw, 18px) clamp(28px, 6vw, 36px);
  font-size: var(--text-lg);
  min-height: 52px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* HEADER */
header {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(12px, 3vw, 18px) var(--container-padding);
  min-height: 80px;
}

header .logo {
  display: flex;
  align-items: center;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  gap: var(--gap-small);
}

header .logo img {
  height: clamp(32px, 6vw, 45px);
  width: auto;
}

header .logo span {
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: clamp(15px, 4vw, 25px);
  align-items: center;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: clamp(5px, 2vw, 8px) 0;
  font-size: var(--text-sm);
  white-space: nowrap;
  min-height: 44px; /* Touch target */
  display: flex;
  align-items: center;
}

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

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

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: clamp(4px, 1.5vw, 6px);
  cursor: pointer;
  padding: clamp(8px, 2vw, 12px);
  border-radius: 6px;
  transition: var(--transition);
  min-width: 48px; /* Larger touch target for mobile */
  min-height: 48px;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  display: block;
  width: clamp(24px, 6vw, 28px);
  height: clamp(3px, 0.8vw, 4px);
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle span.active:nth-child(1) {
  transform: translateY(clamp(7px, 2.2vw, 10px)) rotate(45deg);
}

.menu-toggle span.active:nth-child(2) {
  opacity: 0;
}

.menu-toggle span.active:nth-child(3) {
  transform: translateY(clamp(-7px, -2.2vw, -10px)) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Better performance on mobile */
  color: var(--white);
  padding: var(--section-padding) 0;
  text-align: center;
  min-height: clamp(300px, 50vh, 450px);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: clamp(15px, 4vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: clamp(20px, 5vw, 35px);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Section Styling */
section {
  padding: var(--section-padding) 0;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(30px, 6vw, 50px);
  font-size: var(--text-3xl);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: clamp(40px, 8vw, 60px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-title {
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 320px), 1fr));
  gap: var(--gap-medium);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: clamp(20px, 5vw, 35px);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--primary-light);
}

.service-icon {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: clamp(15px, 4vw, 25px);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: clamp(10px, 3vw, 15px);
  color: var(--primary);
  line-height: 1.3;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: clamp(15px, 4vw, 20px);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
}

.service-card:hover .service-link {
  transform: translateX(5px);
}

/* Features Section */
.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 35vw, 280px), 1fr));
  gap: var(--gap-medium);
}

.feature {
  text-align: center;
  padding: clamp(15px, 4vw, 25px);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(45px, 8vw, 60px);
  height: clamp(45px, 8vw, 60px);
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: clamp(15px, 4vw, 25px);
  transition: var(--transition);
}

.feature:hover .feature-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.feature h3 {
  margin-bottom: clamp(10px, 3vw, 18px);
  color: var(--primary);
  font-size: var(--text-lg);
  line-height: 1.3;
}

.feature p {
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background: rgba(0, 51, 102, 0.05);
  border-radius: var(--border-radius);
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
}

.client {
  font-weight: 600;
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: clamp(40px, 8vw, 80px) 0 clamp(15px, 4vw, 25px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 35vw, 250px), 1fr));
  gap: var(--gap-large);
  margin-bottom: clamp(25px, 6vw, 50px);
}

.footer-col h3 {
  margin-bottom: clamp(15px, 4vw, 25px);
  font-size: var(--text-xl);
  position: relative;
  line-height: 1.3;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: clamp(30px, 6vw, 50px);
  height: clamp(2px, 0.5vw, 4px);
  background: var(--accent);
  margin-top: clamp(8px, 2vw, 12px);
}

.footer-col p,
.footer-col li {
  margin-bottom: clamp(8px, 2vw, 12px);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  min-height: 44px; /* Touch target */
  display: inline-block;
  padding: 2px 0;
  font-size: inherit;
  line-height: 1.5;
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--white);
  text-decoration: underline;
}

.social-links li a {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
  padding: clamp(8px, 2vw, 12px) 0;
  min-height: 48px; /* Larger touch target for mobile */
}

/* Font Awesome Icon Styles */
.footer-col i {
  font-size: clamp(14px, 3vw, 16px);
  margin-right: clamp(6px, 2vw, 8px);
  color: var(--accent);
  width: clamp(16px, 4vw, 20px);
  text-align: center;
  vertical-align: middle;
}

.social-links i {
  font-size: clamp(16px, 3.5vw, 18px);
  color: var(--accent);
  transition: var(--transition);
  margin-right: clamp(6px, 2vw, 8px);
}

.social-links a:hover i,
.social-links a:focus i {
  color: var(--white);
  transform: scale(1.1);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
  margin-top: clamp(10px, 3vw, 20px);
}

.newsletter-form input {
  flex: 1;
  padding: clamp(12px, 3vw, 16px);
  border: none;
  border-radius: var(--border-radius);
  outline: none;
  font-size: var(--text-sm);
  min-height: 48px; /* Larger touch target for mobile */
  background: var(--white);
  color: var(--text);
  width: 100%;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.newsletter-form button {
  border-radius: var(--border-radius);
  white-space: nowrap;
  padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
  min-height: 48px;
  width: 100%;
  font-size: var(--text-sm);
}

/* Responsive newsletter form */
@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    gap: var(--gap-small);
  }
  
  .newsletter-form input,
  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.icon {
  font-style: normal;
}

/* Media Queries - Mobile First Approach */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 clamp(15px, 4vw, 25px);
  }
  
  .service-grid,
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 45vw, 300px), 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    padding: clamp(15px, 4vw, 25px);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    z-index: 1000;
  }

  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  nav ul {
    flex-direction: column;
    gap: clamp(12px, 3vw, 20px);
  }
  
  nav ul li a {
    padding: clamp(12px, 3vw, 16px) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  
  nav ul li:last-child a {
    border-bottom: none;
  }

  .service-grid, 
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 80vw, 280px), 1fr));
    gap: var(--gap-medium);
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-medium);
  }
  
  .newsletter {
    grid-column: 1 / -1;
  }
  
  /* Hero adjustments for tablets */
  .hero {
    min-height: clamp(350px, 60vh, 500px);
    padding: clamp(40px, 10vw, 60px) 0;
  }
  
  /* Button adjustments */
  .btn {
    padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
    font-size: var(--text-base);
  }
}

/* Large phones and small tablets */
@media (max-width: 640px) {
  .service-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter {
    grid-column: 1;
  }
  
  /* Stack newsletter form vertically */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: var(--border-radius);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(30px, 8vw, 50px);
    --container-padding: 15px;
  }
  
  /* Header adjustments for mobile */
  header .container {
    padding: 12px 15px;
  }
  
  header .logo {
    font-size: var(--text-base);
  }
  
  header .logo img {
    height: clamp(28px, 7vw, 35px);
  }
  
  /* Hero mobile adjustments */
  .hero {
    min-height: clamp(300px, 50vh, 400px);
    padding: clamp(30px, 8vw, 50px) 0;
  }
  
  /* Service cards mobile */
  .service-card,
  .feature {
    padding: clamp(15px, 4vw, 20px);
  }
  
  /* Buttons mobile */
  .btn {
    padding: 12px 20px;
    font-size: var(--text-sm);
    min-height: 44px;
  }
  
  .btn-block {
    width: 100%;
    margin: 10px 0;
  }
  
  /* Typography mobile */
  .section-title {
    margin-bottom: clamp(20px, 5vw, 30px);
  }
  
  /* Footer mobile optimized */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 30px);
    margin-bottom: clamp(20px, 4vw, 30px);
  }
  
  .footer-col {
    text-align: left;
    padding: 0 10px;
  }
  
  .footer-col h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 15px;
  }
  
  .footer-col p,
  .footer-col li {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 10px;
  }
  
  .footer-col a {
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 8px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .social-links li a {
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 12px 0;
    min-height: 52px;
  }
  
  .newsletter-form {
    margin-top: 15px;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 14px 16px;
    min-height: 50px;
  }
  
  .copyright {
    padding-top: 20px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Very small devices - Optimized for better mobile experience */
@media (max-width: 360px) {
  .container {
    padding: 0 clamp(12px, 3vw, 16px);
  }
  
  .hero {
    min-height: clamp(280px, 60vh, 350px);
    padding: clamp(25px, 6vw, 35px) 0;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 20px;
  }
  
  .service-card,
  .feature {
    padding: clamp(12px, 4vw, 16px);
    margin-bottom: 16px;
  }
  
  .btn {
    padding: clamp(10px, 3vw, 14px) clamp(16px, 4vw, 20px);
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    min-height: 48px;
    width: 100%;
    display: block;
    text-align: center;
    border-radius: 6px;
  }
  
  /* Ensure all interactive elements have proper touch targets */
  .btn,
  .menu-toggle,
  nav ul li a,
  .footer-col a,
  .filter-btn,
  .property-card .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Optimize typography for small screens */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }
  
  .service-card h3,
  .feature h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }
  
  /* Grid optimizations */
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .properties-grid {
    gap: 16px;
  }
  
  /* Form optimizations */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
    min-height: 50px;
  }
}

/* Additional responsive utilities and mobile optimizations */

/* Performance optimizations for mobile devices */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific optimizations */
  .property-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .service-card:hover,
  .feature:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* CSS Grid and Flexbox utilities */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Spacing utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Modern layout utilities */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-photo { aspect-ratio: 4 / 3; }

/* Performance optimization classes */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.optimized-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.optimized-paint {
  contain: layout style paint;
}

.optimized-composite {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Responsive spacing utilities */
.p-responsive {
  padding: var(--section-padding);
}

.m-responsive {
  margin: var(--section-padding);
}

.gap-responsive {
  gap: var(--gap-medium);
}

/* Responsive text utilities */
.text-center-mobile {
  text-align: left;
}

/* Mobile-first optimization - font display swap for Google Fonts */
/* Applied automatically via the Google Fonts CSS link with display=swap parameter */

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Critical performance optimizations */
.critical-resource {
  /* For above-the-fold content */
  contain: layout style paint;
  will-change: contents;
}

.lazy-resource {
  /* For below-the-fold content */
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Enhanced focus styles for accessibility */
.focus-visible-enhanced:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.2);
}

/* Reduce animations on low-power devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .lazy-resource {
    content-visibility: visible;
  }
}

@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* Responsive visibility */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

/* Responsive flexbox utilities */
.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-medium);
}

.flex-responsive > * {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 768px) {
  .flex-responsive {
    flex-direction: column;
  }
  
  .flex-responsive > * {
    flex: none;
    width: 100%;
  }
}

/* Responsive image utilities */
.img-responsive {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.img-cover {
  object-fit: cover;
  object-position: center;
}

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

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure minimum touch targets on all interactive elements */
button,
input[type="submit"],
input[type="button"],
.btn,
a {
  min-height: 44px;
  min-width: 44px;
}

/* Responsive form styles */
.form-row {
  display: flex;
  gap: var(--gap-medium);
  margin-bottom: var(--gap-medium);
}

.form-group {
  flex: 1;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: clamp(5px, 1.5vw, 8px);
  font-weight: 500;
  color: var(--text);
  font-size: var(--text-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: clamp(10px, 3vw, 14px);
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: clamp(80px, 20vw, 120px);
}

/* Form responsiveness */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: var(--gap-small);
  }
  
  .form-group {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: clamp(14px, 4vw, 18px);
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 50px;
    border-radius: 8px;
    border: 2px solid #e1e1e1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
  }
  
  .form-group label {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
}

/* Form status messages */
.form-status {
  padding: clamp(10px, 3vw, 15px);
  border-radius: var(--border-radius);
  margin-top: var(--gap-small);
  font-size: var(--text-sm);
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading states */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* About Page Styles */
.about-hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.about-section {
  background-color: var(--white);
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-content h3 {
  color: var(--primary);
  margin: 25px 0 10px;
  font-size: 1.4rem;
}

.about-content p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.team-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.member-image {
  height: 200px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  padding: 15px 20px 5px;
  color: var(--primary);
}

.member-role {
  padding: 0 20px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-member p {
  padding: 0 20px 20px;
  color: var(--text-light);
}

.values-section {
  background-color: var(--white);
  padding: 60px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  background: var(--bg-light);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.value-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.value-card p {
  color: var(--text-light);
}

/* Media Queries for About Page */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 20px;
  }
  
  .about-image img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.contact-section {
  background-color: var(--white);
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info h2, .contact-form h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-info p, .contact-form p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-details p, .contact-details a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.5;
}

.contact-details a:hover {
  color: var(--accent);
}

.social-contact {
  margin-top: 20px;
}

.social-contact h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  background-color: rgba(0, 51, 102, 0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.google-form {
  height: 600px;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: var(--white);
}

.google-form iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.map-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Media Queries for Contact Page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .google-form {
    height: 700px;
  }
}

.footer-col a {
  color: #ffcc00;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Construction Page Styles */
.construction-hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.services-detail {
  padding: 80px 0;
}

.services-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

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

.services-grid.detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-features {
  margin-top: 15px;
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.service-features li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.process-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.projects-section {
  padding: 80px 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.project-image {
  height: 200px;
  background-color: var(--primary-light);
  overflow: hidden;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-info p {
  color: var(--text-light);
}

.projects-cta {
  text-align: center;
  margin-top: 50px;
}

.testimonials-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.testimonial-content {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  color: var(--accent);
  font-size: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--primary);
}

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

.cta-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

@media (max-width: 768px) {
  .services-grid.detailed,
  .process-steps,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Imoveis Page Styles */
.imoveis-hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
}

.filters-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
}

.filters-navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.properties-section {
  padding: 60px 0;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 4vw, 30px);
  margin-top: clamp(30px, 6vw, 40px);
}

.property-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
  opacity: 1;
}

.property-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .property-card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
}

.property-image {
  position: relative;
  height: clamp(180px, 35vw, 220px);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

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

@media (hover: none) and (pointer: coarse) {
  .property-card:hover .property-image img {
    transform: none;
  }
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 500;
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.property-content {
  padding: 25px;
}

.property-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.property-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.property-details {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.detail-item .icon {
  font-size: 1rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.property-actions {
  display: flex;
  gap: 10px;
}

.property-btn, .contact-btn {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
}

/* Estilo específico para botão de contacto nos imóveis */
.property-actions .contact-btn {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.property-actions .contact-btn:hover {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Estilos para status dos imóveis */
.property-card.reserved {
  opacity: 0.9;
  position: relative;
}

.property-card.reserved .property-image {
  position: relative;
}

.reserved-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(243, 156, 18, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 3;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.property-status {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-warning {
  background-color: #f39c12;
  color: white;
  border: none;
}

.btn-warning:hover {
  background-color: #e67e22;
}

/* Estilos melhorados para status dos imóveis */
.property-status.status-disponivel {
    background: #27ae60 !important;
}

.property-status.status-reservado {
    background: #f39c12 !important;
}

.property-status.status-vendido {
    background: #e74c3c !important;
}

/* Status overlay para imóveis não disponíveis */
.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
}

.status-overlay.reservado {
    background: rgba(243, 156, 18, 0.85);
    color: white;
}

.status-overlay.vendido {
    background: rgba(231, 76, 60, 0.85);
    color: white;
}

/* Efeitos visuais para cartões não disponíveis */
.property-card.unavailable {
    opacity: 0.8;
    border: 2px solid #ddd;
    position: relative;
}

.property-card.unavailable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.05) 10px,
        rgba(0,0,0,0.05) 20px
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}

.property-card.status-vendido {
    filter: grayscale(20%);
}

.property-card.status-reservado {
    border-left: 4px solid #f39c12;
}

/* Info box para status */
.status-info {
    background: #f8f9fa;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #ddd;
}

.status-info strong {
    display: block;
    margin-bottom: 5px;
}

/* Preço com status não disponível */
.price-unavailable {
    opacity: 0.7;
}

/* Animações para status */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.property-status:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Responsividade para status */
@media (max-width: 768px) {
    .status-overlay {
        font-size: 1rem;
    }
    
    .property-status {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

.btn-warning:hover {
  background-color: transparent;
  color: #f39c12;
  border: 2px solid #f39c12;
}

.property-contact-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
}

.property-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

/* Property Card Filter States */
.property-card.hidden {
  display: none;
}

/* Property Modal Styles - Melhorado */
.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: none;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.property-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-modal.active .modal-content {
  transform: scale(1);
}

.modal-large {
  max-width: 1200px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  height: 80vh;
  max-height: 600px;
  min-height: 500px;
}

.modal-left {
  flex: 1.5;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

.modal-right {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--white);
}

/* GALLERY STYLES */
.modal-gallery {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main-image-container {
  flex: 1;
  position: relative;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.main-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  height: 100%;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  margin: 20px;
}

/* Modal Right Content Styles */
.modal-header-info {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f8f9fa;
}

.modal-header-info h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-price small {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.modal-location {
  color: var(--text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-location .icon {
  font-size: 1.1rem;
}

/* Modal Sections */
.modal-details,
.modal-description,
.modal-amenities,
.modal-location-details {
  margin-bottom: 25px;
}

.modal-details h3,
.modal-description h3,
.modal-amenities h3,
.modal-location-details h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 5px;
  display: inline-block;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.detail-item {
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: var(--transition);
}

.detail-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.description-text {
  line-height: 1.6;
  color: var(--text-light);
  font-size: 0.95rem;
}

.description-text p {
  margin-bottom: 15px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-tag {
  background: var(--accent);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Modal Actions */
.modal-actions {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions .btn {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--transition);
}

.modal-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image Navigation */
.image-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
}

.nav-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: all;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Thumbnails */
.thumbnails-container {
  height: 100px;
  background: white;
  border-top: 1px solid #e9ecef;
  padding: 10px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.thumbnail-item {
  min-width: 80px;
  height: 80px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
}

.thumbnail-item:hover {
  border-color: var(--accent);
}

.thumbnail-item.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal-body {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
  }
  
  .modal-left {
    flex: none;
    height: 300px;
  }
  
  .modal-right {
    flex: none;
    height: auto;
    max-height: 400px;
    padding: 20px;
  }
  
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .property-modal {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header-info h2 {
    font-size: 1.4rem;
  }
  
  .modal-price {
    font-size: 1.2rem;
  }
  
  .modal-actions .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.property-gallery {
  background: #f0f0f0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  flex: 1;
  min-height: 400px;
}

.modal-main-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #e3e3e3 0%, #d1d1d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  border-radius: var(--border-radius);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumbnail {
  height: 80px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
}

.thumbnail .placeholder-image {
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.property-info {
  padding: 40px;
  overflow-y: auto;
}

.property-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.modal-property-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.modal-property-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-group {
  margin-bottom: 40px;
}

.detail-group h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

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

.detail-group .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.detail-group .detail-item .icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.modal-description p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

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

.amenity-item {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
  padding: 5px 0;
}

.location-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.location-info .icon {
  margin-top: 2px;
  color: var(--primary);
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.modal-actions .btn {
  flex: 1;
  padding: 15px 20px;
  font-size: 1rem;
}

/* Media Queries for Modal */
@media (max-width: 1024px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  
  .property-gallery {
    padding: 20px;
    max-height: 50vh;
  }
  
  .main-image {
    min-height: 250px;
  }
  
  .modal-main-image {
    min-height: 250px;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .thumbnail {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .property-info {
    padding: 20px;
  }
  
  .modal-property-title {
    font-size: 1.5rem;
  }
  
  .modal-property-price {
    font-size: 1.8rem;
  }
  
  .details-grid,
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .close-modal {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Media Queries for Imoveis Page */
@media (max-width: 768px) {
  .filters-navbar {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    min-height: 48px;
    border-radius: 6px;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
    margin-top: clamp(20px, 5vw, 30px);
  }
  
  .property-card {
    margin: 0 auto;
    max-width: 100%;
    min-width: unset;
  }
  
  .property-image {
    height: clamp(180px, 40vw, 220px);
  }
  
  .property-content {
    padding: clamp(16px, 4vw, 20px);
  }
  
  .property-title {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .property-price {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    margin-bottom: 12px;
  }
  
  .property-features {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    margin-bottom: 12px;
  }
  
  .property-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .property-actions .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    min-height: 48px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 25px;
    margin: 0 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* LOADING AND NO PROPERTIES STYLES */
.loading-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.no-properties {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.no-properties h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* PROPERTY MODAL STYLES - ENHANCED */
.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

/* Modal content já definido acima */

.modal-large {
  max-width: 1200px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  height: 90vh;
  max-height: 800px;
}

.modal-left {
  flex: 1.2;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
}

.modal-right {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--white);
}

/* GALLERY STYLES */
.modal-gallery {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.main-image-container {
  flex: 1;
  position: relative;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.main-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 50%, #d0d0d0 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.placeholder-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.image-navigation {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-btn {
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: all;
}

.nav-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.thumbnails-container {
  height: 120px;
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 15px;
}

.thumbnails {
  display: flex;
  gap: 10px;
  height: 100%;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbnail {
  min-width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid transparent;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MODAL INFO STYLES */
.modal-header-info h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.modal-price {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
}

.modal-location {
  color: var(--text-light);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.modal-details h3,
.modal-description h3,
.modal-amenities h3,
.modal-location-details h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 8px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.details-grid .detail-item {
  background: var(--bg-light);
  padding: 15px 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.details-grid .detail-item:hover {
  background: var(--primary-light);
  color: var(--white);
}

.modal-description {
  margin-bottom: 25px;
}

.description-text p {
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.amenities-list .amenity-item {
  background: var(--primary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.amenities-list .amenity-item:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.location-info {
  margin-bottom: 25px;
}

.location-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  line-height: 1.6;
}

.location-info strong {
  color: var(--primary);
  min-width: 80px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--bg-light);
}

.modal-actions .btn {
  flex: 1;
  min-width: 180px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* RESPONSIVE MODAL */
@media (max-width: 1024px) {
  .modal-body {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
  }
  
  .modal-left {
    height: 50vh;
    min-height: 300px;
  }
  
  .modal-right {
    padding: 20px;
    height: auto;
  }
  
  .thumbnails-container {
    height: 80px;
    padding: 10px;
  }
  
  .thumbnail {
    min-width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .property-modal {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 98vh;
  }
  
  .modal-header-info h2 {
    font-size: 22px;
  }
  
  .modal-price {
    font-size: 20px;
  }
  
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    min-width: unset;
  }
  
  .modal-right {
    padding: 15px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .image-navigation {
    left: 10px;
    right: 10px;
  }
}

/* SERVICES PAGE STYLES */
.services-hero {
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.7)), url('../images/eletricista.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.services-pricing-section {
  padding: 80px 0;
  background: var(--white);
}

.pricing-intro {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-intro p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

.services-table-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.services-table {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  align-items: center;
  padding: 40px;
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:hover {
  background: var(--bg-light);
}

.service-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.service-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-details h3 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-details p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  color: var(--text);
  font-size: 14px;
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.service-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-pricing {
  flex-shrink: 0;
  text-align: center;
  min-width: 200px;
}

.price-info {
  margin-bottom: 20px;
}

.price-from {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.price-value {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

.btn-quote {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quote:hover {
  background: #e55a00;
  transform: translateY(-2px);
}

/* Others Section Specific Styles */
.others-section .service-details {
  width: 100%;
}

.other-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.other-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.other-service:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.service-name {
  font-weight: 500;
  color: var(--text);
}

.service-price {
  font-weight: 600;
  color: var(--primary);
}

/* QUOTE MODAL STYLES */
.quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quote-modal.show {
  opacity: 1;
  visibility: visible;
}

.quote-modal .modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(-50px) scale(0.9);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.quote-modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.quote-modal .modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 32px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.quote-modal .modal-close:hover {
  color: var(--white);
  background: var(--danger);
  transform: rotate(90deg);
}

.quote-modal .modal-body {
  padding: 60px 80px;
  overflow-y: auto;
  flex: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.quote-modal h2 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.quote-modal h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.quote-modal #service-name {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 20px;
  text-align: center;
  padding: 15px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.quote-form .form-row {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.quote-form .form-group {
  flex: 1;
  position: relative;
}

.quote-form .form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
  position: relative;
}

.quote-form .form-group label:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.quote-form .form-group:focus-within label:after {
  width: 100%;
}

.quote-form .form-group input,
.quote-form .form-group textarea,
.quote-form .form-group select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.quote-form .form-group input:focus,
.quote-form .form-group textarea:focus,
.quote-form .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.quote-form .form-group input:valid,
.quote-form .form-group textarea:valid,
.quote-form .form-group select:valid {
  border-color: #10b981;
}

.quote-form .form-group input:invalid:not(:placeholder-shown),
.quote-form .form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.quote-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.quote-form .form-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
}

.quote-form .btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.quote-form .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

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

.quote-form .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.quote-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
}

.quote-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.quote-form .btn-primary.loading {
  position: relative;
  color: transparent;
}

.quote-form .btn-primary.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.quote-form .btn-secondary {
  background: #6c757d;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.quote-form .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* SERVICES FEATURES SECTION */
.services-features-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.services-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 80px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.testimonial-content p {
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
}

.testimonial-content p::before {
  content: '"';
  font-size: 24px;
  color: var(--accent);
  font-weight: bold;
}

.testimonial-content p::after {
  content: '"';
  font-size: 24px;
  color: var(--accent);
  font-weight: bold;
}

.testimonial-author {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.author-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.author-location {
  font-size: 14px;
  color: var(--text-light);
}

/* EMERGENCY SECTION */
.emergency-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: var(--white);
}

.emergency-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.emergency-info {
  flex: 1;
}

.emergency-info h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 32px;
}

.emergency-info p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.emergency-info ul {
  list-style: none;
  padding: 0;
}

.emergency-info li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.emergency-info li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #fff;
}

.emergency-contact {
  text-align: center;
  flex-shrink: 0;
}

.phone-label {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.emergency-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 15px;
  transition: var(--transition);
}

.emergency-number:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.emergency-note {
  font-size: 12px;
  opacity: 0.8;
  max-width: 200px;
}

/* RESPONSIVE STYLES FOR SERVICES PAGE */
@media (max-width: 1024px) {
  .service-row {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .service-info {
    flex-direction: column;
    text-align: center;
  }
  
  .other-services-grid {
    grid-template-columns: 1fr;
  }
  
  .emergency-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 100px 0 60px;
  }
  
  .services-pricing-section {
    padding: 60px 0;
  }
  
  .service-row {
    padding: 30px 20px;
  }
  
  .service-details h3 {
    font-size: 20px;
  }
  
  .service-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
  }
  
  .quote-form .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .quote-form .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .quote-modal .modal-content {
    max-width: 95%;
    max-height: 90vh;
    margin: 20px 10px;
    border-radius: 16px;
  }
  
  .quote-modal .modal-body {
    padding: 30px 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
  }
  
  .quote-modal h2 {
    font-size: 28px;
  }
  
  .quote-modal #service-name {
    font-size: 18px;
    padding: 12px;
  }
  
  .quote-form .btn {
    width: 100%;
    min-width: auto;
  }
  
  .emergency-info h2 {
    font-size: 24px;
  }
  
  .emergency-number {
    font-size: 28px;
  }
}

/* TABLET STYLES */
@media (max-width: 1024px) and (min-width: 769px) {
  .quote-modal .modal-content {
    max-width: 95%;
    width: 95%;
  }
  
  .quote-modal .modal-body {
    padding: 50px 60px;
  }
  
  .quote-form .form-row {
    gap: 25px;
  }
}

/* SMALL MOBILE STYLES */
@media (max-width: 480px) {
  .quote-modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }
  
  .quote-modal .modal-content {
    border-radius: 16px;
    max-height: 85vh;
    width: 100%;
    margin: 0;
  }
  
  .quote-modal .modal-body {
    padding: 25px 15px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
  }
  
  .quote-modal h2 {
    font-size: 24px;
  }
  
  .quote-modal .modal-close {
    top: 15px;
    right: 20px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .quote-form .form-group input,
  .quote-form .form-group textarea,
  .quote-form .form-group select {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .quote-form .btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* CUSTOM FORMS STYLES */
.contact-form-html {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.contact-form-html .form-row {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.contact-form-html .form-group {
  flex: 1;
}

.contact-form-html .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.contact-form-html .form-group input,
.contact-form-html .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.contact-form-html .form-group input:focus,
.contact-form-html .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.contact-form-html .form-actions {
  text-align: center;
  margin-top: 30px;
}

.contact-form-html .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-form-html .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.contact-form-html .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.contact-form-html .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form-html .btn-primary.loading {
  color: transparent;
}

.contact-form-html .btn-primary.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Newsletter Form Styles */
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form .btn-small {
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* SISTEMA DE FILTROS AVANÇADOS - IMÓVEIS */
.search-section {
  background: var(--white);
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.search-container {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  min-width: 300px;
}

.search-input {
  width: 100%;
  padding: 15px 55px 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

#advanced-filters-toggle {
  white-space: nowrap;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  transition: all 0.3s ease;
}

#advanced-filters-toggle:hover {
  background: var(--primary);
  color: var(--white);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

#advanced-filters-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.advanced-filters {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  animation: slideDown 0.3s ease;
}

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

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--white);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.price-range-container,
.area-range-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-separator {
  color: var(--text-light);
  font-weight: 500;
  font-size: 12px;
}

.features-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: var(--white);
  border: 1px solid #e2e8f0;
}

.checkbox-label:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox-label span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.filters-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.filters-actions .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#apply-filters {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
}

#apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

#clear-filters {
  background: #6c757d;
  color: var(--white);
  border: none;
}

#clear-filters:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.results-counter {
  background: #e3f2fd;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #bbdefb;
}

#results-count {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.quick-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

.sorting-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sorting-section label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

#sort-options {
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  min-width: 200px;
}

#sort-options:focus {
  outline: none;
  border-color: var(--primary);
}

/* MELHORIAS NOS CARDS DE IMÓVEIS */
.property-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-reference {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 5px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* Responsividade para referência */
@media (max-width: 768px) {
  .property-reference {
    font-size: 0.85rem;
    margin: 3px 0 8px 0;
  }
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.property-content {
  padding: 25px;
}

.property-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.property-location {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-description {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.detail-item .icon {
  font-size: 14px;
  color: var(--primary);
}

.property-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-per-sqm {
  font-size: 12px;
  color: var(--text-light);
  font-weight: normal;
}

.property-actions {
  display: flex;
  gap: 12px;
}

.property-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.view-details-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
}

.view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.contact-property-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.contact-property-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* RESPONSIVE FILTROS */
@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input-wrapper {
    min-width: unset;
  }
  
  #advanced-filters-toggle {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .search-section {
    padding: 20px 0;
  }
  
  .advanced-filters {
    padding: 20px 15px;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .price-range-container,
  .area-range-container {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .range-separator {
    text-align: center;
    padding: 5px 0;
  }
  
  .features-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .results-counter {
    text-align: center;
  }
  
  .quick-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .sorting-section {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  #sort-options {
    min-width: unset;
    width: 100%;
  }
  
  .property-details {
    flex-direction: column;
    gap: 8px;
  }
  
  .detail-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .search-input {
    padding: 12px 45px 12px 15px;
    font-size: 14px;
  }
  
  .search-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  #advanced-filters-toggle {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .advanced-filters {
    padding: 15px 10px;
  }
  
  .filter-group label {
    font-size: 12px;
  }
  
  .filter-group select,
  .filter-group input {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .property-card {
    margin: 0 -5px;
  }
  
  .property-content {
    padding: 20px;
  }
  
  .property-content h3 {
    font-size: 1.2rem;
  }
  
  .property-price {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .property-actions {
    flex-direction: column;
    gap: 8px;
  }
}

.newsletter-form .btn-small:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.newsletter-form .btn-small:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.newsletter-form .btn-small.loading {
  color: transparent;
  position: relative;
}

.newsletter-form .btn-small.loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive Styles for Custom Forms */
@media (max-width: 768px) {
  .contact-form-html {
    padding: 30px 20px;
  }
  
  .contact-form-html .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .newsletter-form .btn-small {
    width: 100%;
  }
  
  /* Garantir visibilidade em mobile */
  .contact-form-html .form-group input,
  .contact-form-html .form-group textarea {
    min-height: 48px;
    padding: 14px 16px;
  }
  
  .contact-form-html .form-group textarea {
    min-height: 120px;
  }
}

/* =================================================================
   DEVELOPER CREDITS STYLES
   ================================================================= */

.developer-credit {
  font-size: var(--text-xs) !important;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

.developer-credit a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.developer-credit a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .developer-credit {
    font-size: 0.75rem;
    margin-top: 6px;
  }
}
