/* ============================================
   Aluga do Vizinho - Landing Page Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #16a34a;
  --color-primary-dark: #15803d;
  --color-primary-light: #bbf7d0;
  --color-primary-bg: #f0fdf4;
  --color-secondary: #0d9488;
  --color-dark: #111827;
  --color-dark-soft: #1f2937;
  --color-text: #374151;
  --color-text-light: #6b7280;
  --color-text-lighter: #9ca3af;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-bg-dark: #111827;
  --color-border: #e5e7eb;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* --- Section common styles --- */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-heading);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
  position: relative;
}

.navbar-link:hover {
  color: var(--color-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-bg) 100%);
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-footnote {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 500px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===========================
   PROBLEMS
   =========================== */
.problems {
  background: var(--color-bg);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===========================
   BENEFITS
   =========================== */
.benefits {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.benefits .section-title {
  color: var(--color-white);
}

.benefits .section-subtitle {
  color: var(--color-text-lighter);
}

.benefits-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.benefits-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.benefit-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-white);
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--color-text-lighter);
  line-height: 1.6;
}

.benefits-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefits-image img {
  max-width: 440px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* ===========================
   SOLUTION
   =========================== */
.solution {
  background: var(--color-bg);
}

.solution-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.solution-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-bg);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-dark);
  border: 1px solid var(--color-primary-light);
  transition: var(--transition);
}

.solution-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.check-icon {
  font-size: 1.1rem;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.how-it-works .section-title {
  color: var(--color-white);
}

.how-it-works .section-subtitle {
  color: var(--color-text-lighter);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #36d399;
  opacity: 0.8;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--color-text-lighter);
  line-height: 1.6;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
}

.cta-container {
  text-align: center;
}

.cta-section .section-title {
  color: var(--color-white);
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
  background: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ===========================
   FAQ
   =========================== */
.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text-lighter);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--color-dark);
  color: var(--color-text-lighter);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 600;
}

.footer-domain {
  font-family: var(--font-heading);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-lighter);
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for grid items */
.problems-grid .fade-in:nth-child(2),
.steps-grid .fade-in:nth-child(2),
.benefits-list .fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.problems-grid .fade-in:nth-child(3),
.steps-grid .fade-in:nth-child(3),
.benefits-list .fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.solution-features .fade-in:nth-child(2) { transition-delay: 0.05s; }
.solution-features .fade-in:nth-child(3) { transition-delay: 0.1s; }
.solution-features .fade-in:nth-child(4) { transition-delay: 0.15s; }

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-container {
    gap: 40px;
  }

  .hero-image img,
  .benefits-image img {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-cta {
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image img {
    max-width: 340px;
  }

  /* Section titles */
  .section-title {
    font-size: 1.6rem;
  }

  section {
    padding: 60px 0;
  }

  /* Grids */
  .problems-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Benefits */
  .benefits-layout {
    flex-direction: column;
    gap: 40px;
  }

  .benefits-image {
    order: -1;
  }

  .benefits-image img {
    max-width: 300px;
  }

  /* Solution features */
  .solution-features {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .container {
    padding: 0 16px;
  }
}
