/* =========================================================================
   BASE STYLES & VARIABLES (SUPERLOGICA INSPIRED CORPORATE THEME)
   ========================================================================= */
:root {
  /* Corporate Blue Theme */
  --primary: #1034F2;         /* Strong Corporate Blue */
  --primary-dark: #1034F2;    
  --primary-light: #e6f0fa;   
  
  --secondary: #0056b3;       /* Using Primary as secondary for consistency */
  --secondary-hover: #004494; 
  
  --accent: #28a745;          
  --accent-light: #eaf6ec;    
  
  /* Neutral Colors */
  --bg-main: #FFFFFF;
  --bg-alt: #F8F9FA;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --text-main: #343a40;       
  --text-muted: #495057;      
  --white: #FFFFFF;
  --border-color: #dee2e6;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Asap', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  
  /* Effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0, 86, 179, 0.08);
  --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

:root[data-theme="dark"] {
  /* VS Code Style Dark Mode */
  --bg-main: #1e1e1e;
  --bg-alt: #252526;
  --bg-glass: rgba(30, 30, 30, 0.95);
  
  --text-main: #cccccc;
  --text-muted: #969696;
  --white: #fff; /* Inverted for buttons relying on white text over primary */
  --border-color: #333333;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary); /* Vibrant Blue for Titles */
  line-height: 1.2;
}


a {
  text-decoration: none;
  color: var(--primary); /* Default link color */
  transition: var(--transition);
}


a:hover {
  filter: brightness(1.2);
}

.telefone {
  text-decoration: none;
  color: #fff; /* Default link color */
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* =========================================================================
   UTILITIES & COMPONENTS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

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

.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--primary); /* Premium border line */
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px; /* Increased logo size */
  width: auto;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a:not(.btn) {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  position: relative;
}

.nav-menu a:not(.btn):hover {
  color: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* Theme Switcher */
.theme-switch {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem; /* Increased size for visibility */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-switch:hover {
  color: var(--primary);
}

html[data-theme="dark"] .ph-moon {
  display: none;
}
html[data-theme="dark"] .ph-sun {
  display: block !important;
}

/* Client Area Dropdown (Acesse seu condomínio) */
.client-area {
  position: relative;
}

.client-area-dropdown {
  position: absolute;
  top: 140%;
  right: 0;
  width: 320px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.client-area-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.client-area-dropdown h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.login-form .form-group {
  margin-bottom: 1rem;
}

.login-form .form-group label {
  font-size: 0.85rem;
}

.login-form .form-group input {
  padding: 0.6rem 0.8rem;
}

.login-form .form-row-inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.login-form .form-row-inline input {
  flex: 1;
}

.btn-login {
  padding: 0.6rem 1rem;
  height: 42px;
}

.login-links {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.login-links a {
  color: var(--primary);
}

.login-links a:hover {
  text-decoration: underline;
}

/* =========================================================================
   HERO CAROUSEL SECTION
   ========================================================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Dark overlay to make text readable */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,61,130,0.85) 0%, rgba(0,86,179,0.4) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(251, 249, 249, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem; /* Slightly larger */
  color: rgba(255,255,255,0.95);
  margin-bottom: 2.5rem;
  font-weight: 300;
  font-style: italic; /* Italics as requested */
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* Stronger shadow */
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

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

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* =========================================================================
   DIFFERENTIALS SECTION
   ========================================================================= */
.differentials {
  padding: var(--section-padding);
  background-color: var(--bg-alt);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.card {
  background: var(--bg-main);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

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

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about {
  padding: var(--section-padding);
  background-color: var(--bg-main);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
}

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

.features-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.features-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  color: var(--primary);
  border-radius: 12px;
  border: 2px solid var(--secondary);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ph {
  color: inherit; 
}

.footer-contact .ph {
  color: #fff;
  margin-right: 5px;
}

/* Explicitly color icons inside specific headings or cards */
.card-icon .ph,
h3 .ph {
  color: var(--primary);
}

.ph-moon {
  color: var(--text-main);
}

.features-list strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.telefone {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

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

.footer-contact .telefone,
.footer-contact p,
.footer .telefone {
  color: #fff !important;
}

.footer-contact .telefone:hover,
.footer .telefone:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.features-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.summary-text {
  padding: 1.5rem;
  background: var(--primary-light);
  border-radius: var(--border-radius);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact {
  padding: var(--section-padding);
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-form-wrapper {
  padding: 2.5rem;
  background: var(--bg-main);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

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

textarea {
  resize: vertical;
}

/* Form Loader */
.loader {
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

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

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

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-img {
  margin-bottom: 1rem;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  max-width: 300px;
  font-size: 1rem;
}

.footer h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

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

.footer-contact p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* =========================================================================
   WHATSAPP BUTTON
   ========================================================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================= */
/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 100px; /* Positioned slightly to the left of the WhatsApp button */
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transform: scale(1.1);
}
@media (max-width: 992px) {
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header {
    background: var(--bg-main); /* Solid bg for mobile */
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .nav-menu.active {
    max-height: 300px;
    padding: 1.5rem;
  }
  
  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}
