/* =======================================================
   Orçamentos Local — style.css (Tema Claro Humanizado)
   Inspirado na referência de alta conversão (Light Theme)
   ======================================================= */

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

:root {
  /* Cores Principais */
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-hero-dark: #7f1d1d; /* Fundo do header / Topo escuro */
  --bg-hero-light: #fef2f2; /* Gradiente vermelho muito claro */
  
  --text-dark: #111827;
  --text-muted: #4b5563;
  --text-light: #f3f4f6;

  --primary: #dc2626;      /* Vermelho principal do app */
  --primary-hover: #b91c1c;
  --secondary: #1f2937;    /* Botão secundário escuro */
  --secondary-hover: #111827;
  
  --accent-yellow: #fbbf24; /* Estrelas e destaques */
  
  --border-light: #e5e7eb;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --transition: all 0.2s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

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

/* ── Header ── */
header {
  background-color: var(--bg-hero-dark);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--primary);
  background: white;
  border-radius: 4px;
  padding: 4px;
  display: flex;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--bg-hero-dark);
}

/* ── Hero Section ── */
.hero-wrapper {
  background: linear-gradient(to bottom, var(--bg-hero-light) 0%, var(--bg-white) 100%);
  padding: 5rem 0 3rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--bg-hero-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Imagem do Hero ── */
/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Features Section ── */
.features {
  padding: 5rem 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.2);
}

.feature-icon-wrapper {
  background: #fee2e2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Testimonials Section ── */
.testimonials-wrapper {
  background-color: var(--bg-gray);
  padding: 5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-dark);
  font-style: italic;
  flex-grow: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── CTA Final ── */
.cta-wrapper {
  background-color: var(--bg-hero-dark);
  padding: 5rem 1.5rem;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
}

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

/* ── Footer ── */
footer {
  background-color: var(--bg-white);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-white);
  border-left: 4px solid var(--primary);
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* ── Responsividade ── */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  h1 {
    font-size: 2.5rem;
  }
  .hero-badges {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none; /* Simplifica o menu no mobile */
  }
  
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
