/* =====================================================
   PERFORMANCE / OTIMIZAÇÃO
   ===================================================== */

html {
  scroll-behavior: smooth;
}

/* Defer rendering de seções fora da tela (economiza CPU/GPU) */
.problems-solution,
.services,
.about-section,
.processo,
.testimonials,
.faq {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Global Styles */
:root {
  --primary-color: #0F172A;
  --secondary-color: #1E293B;
  --accent-color: #D4AF37;
  --text-color: #1F2937;
  --light-bg: #E5E7EB;
  --white: #FFFFFF;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --accent-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 50%, #B38728 100%);

  --font-main: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  /* Anti-selection features from Modelo */
  -webkit-user-select: none;
  user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

/* Text Gradient */
.text-gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Rotating Text Animation */
.rotating-text {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Buttons - Premium Style from Modelo */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: var(--primary-color);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn {
  will-change: transform;
}

.btn:hover {
  background: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
  color: var(--accent-color);
}

/* Shimmer Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.btn:hover::after {
  left: 150%;
  transition: left 0.7s ease;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* Header */
header {
  background-color: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 10px 0;
}

.navbar {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent-color);
  margin-left: 5px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)),
    url('../imagens/centro.webp') no-repeat center center/cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
}

/* Hero Bottom Fade Effect - Special Effect */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--light-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(10px);
  padding: 8px 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
  color: var(--accent-color);
  display: block;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Problems / Solutions (Adapted from Modelo with Special Effects) */
.problems-solution {
  padding: 120px 0;
  background-color: var(--light-bg);
  /* Dot Pattern Background */
  background-image: radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.section-header {
  text-align: center;
}

.section-label-center {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

/* Problem Cards */
.problem-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border-left: 5px solid var(--accent-color);
  /* Red for problems */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.problem-card:hover {
  transform: translateX(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.problem-card i {
  font-size: 2rem;
  color: var(--accent-color);
}

.problem-card h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: 700;
}

.problem-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Solution Box */
.solution-box-inner {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.solution-box-inner:hover {
  transform: translateY(-5px);
}

/* Glow Effect - Special Effect */
.solution-box-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.solution-box-inner h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2rem;
}

.solution-box-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

.solution-list li {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.solution-list li i {
  background: var(--accent-color);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Services / Properties Grid */
.owl-carousel .item {
  padding: 10px;
  /* Add padding to account for shadow */
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  height: 100%;
  /* Ensure uniform height in carousel */
}

.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.property-img {
  /* aspect-ratio previne CLS (Cumulative Layout Shift) */
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  will-change: transform;
}

.service-card:hover .property-img img {
  transform: scale(1.1);
}

.property-content {
  padding: 25px;
}

.property-price {
  font-size: 1.5rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.property-tags span {
  background: var(--secondary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 5px;
}

/* Owl Carousel Custom Navigation */
.owl-theme .owl-nav {
  margin-top: 30px;
}

.owl-theme .owl-nav [class*='owl-'] {
  background: transparent !important;
  color: var(--primary-color) !important;
  font-size: 2rem !important;
  margin: 0 10px !important;
  padding: 0 !important;
  transition: all 0.3s ease;
}

.owl-theme .owl-nav [class*='owl-']:hover {
  color: var(--accent-color) !important;
  transform: scale(1.2);
}

.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  background: #ccc !important;
  transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--accent-color) !important;
  transform: scale(1.2);
}

/* About Section Side-by-Side */
.about-section {
  padding: 100px 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
}

.feature-box {
  background: var(--light-bg);
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  margin-top: 20px;
  border-radius: 0 8px 8px 0;
}

/* FAQ Accordion */
.faq {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-color);
}

/* Global Section Spacing for Focus Visibility */
.services,
.about-section,
.testimonials,
.processo,
.cta-conversion {
  margin-top: 40px;
}

.problems-solution,
.faq {
  margin-top: 0;
}

.faq-answer {
  padding: 0 20px 20px;
  display: none;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.step {
  padding: 30px;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
}

/* CTA Section */
.cta-conversion {
  padding: 80px 0;
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
  margin-top: 100px;
}

.cta-banner {
  background: var(--primary-color); border: none; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-banner p {
  color: var(--white);
  margin-top: 20px;
  margin-bottom: 40px;
  /* Space requested */
  font-size: 1.2rem;
}

.cta-banner .btn i {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* Footer */
/* Footer - Premium UI */
footer {
  background-color: #111;
  color: #ccc;
  padding: 80px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr;
  /* 4 Columns */
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h3 {
  color: var(--white);
  /* White Logo Text */
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col h3 i {
  color: var(--white);
  /* White Icon */
}

.footer-col p {
  color: #667085;
  /* Muted text */
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #98a2b3;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-col ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* Contact List Icons */
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #98a2b3;
  font-size: 0.95rem;
}

.contact-list i {
  color: var(--accent-color);
  /* Gold/Orange accent for icons */
  margin-top: 4px;
  /* Align with text */
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color); border: none; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  /* Rounded squares */
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  /* Center align copyright */
  color: #667085;
  font-size: 0.85rem;
}

/* Whatsapp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Desktop Specific Spacing */
@media (min-width: 901px) {
  .processo {
    padding-bottom: 120px;
    /* Extra space before Testimonials */
  }

  .testimonials {
    padding-top: 100px;
    /* Ensure testimonials also have breathing room */
  }

  /* Increase space between Testimonials Header and Cards */
  .testimonials .section-header {
    margin-bottom: 100px;
  }
}


/* Mobile & Responsive Tweaks */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    background: var(--white);
    flex-direction: column;
    width: 100%;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: calc(100vh - 70px);
    justify-content: flex-start;
    gap: 30px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a:not(.btn) {
    color: var(--primary-color);
  }

  .nav-toggle {
    display: block;
    margin-right: 15px;
    /* Adjust position to left */
  }

  .logo {
    margin-left: 15px;
    /* Adjust logo slightly to right */
  }

  /* Typography Scaling */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
    background-position: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .hero .btn {
    width: 100%;
  }

  /* Sections Spacing */
  .problems-solution,
  .services,
  .about-section,
  .testimonials,
  .processo,
  .faq,
  .cta-conversion {
    padding: 60px 0;
  }

  /* Feature Grid & Layouts */
  .feature-grid,
  .about-wrapper,
  .footer-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Problem Cards */
  .problem-card {
    flex-direction: column;
    /* Stack icon and text */
    text-align: center;
    align-items: center;
    padding: 25px;
  }

  .problem-card i {
    margin-bottom: 10px;
  }

  /* Solution Box */
  .solution-box-inner {
    padding: 30px;
  }

  /* Carousel */
  .owl-carousel .owl-nav {
    display: none;
    /* Hide arrows on mobile for cleaner look */
  }

  /* About Section */
  .about-img {
    order: -1;
    /* Image on top */
  }

  .about-text {
    text-align: center;
  }

  .about-text .section-label-center {
    margin: 0 auto 10px;
    /* Center label */
  }

  .feature-box {
    border-left: none;
    border-top: 4px solid var(--accent-color);
    border-radius: 8px;
  }

  /* CTA */
  .cta-banner {
    padding: 30px 20px;
  }

  .cta-banner .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .cta-banner .btn i {
    font-size: 1.5rem;
    margin-right: 10px;
  }

  /* Footer */
  footer {
    text-align: center;
  }

  .footer-col h4 {
    margin-top: 30px;
  }

  .footer-col h3,
  .contact-list li,
  .social-links {
    justify-content: center;
  }

  .footer-col p {
    margin: 0 auto;
    /* Center the specific width paragraph */
  }

  .footer-col h4 {
    margin-top: 20px;
  }
}