/* ProEnergy Solutions - Professional Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary: hsl(152, 55%, 35%);
  --primary-hover: hsl(152, 55%, 30%);
  --primary-light: hsl(152, 55%, 35%, 0.1);
  --primary-foreground: #ffffff;
  
  --secondary: hsl(215, 70%, 45%);
  --secondary-hover: hsl(215, 70%, 40%);
  --secondary-light: hsl(215, 70%, 45%, 0.1);
  --secondary-foreground: #ffffff;
  
  --accent: hsl(41, 55%, 43%);
  --accent-hover: hsl(41, 55%, 36%);
  --accent-light: hsl(41, 55%, 43%, 0.1);
  --accent-foreground: #ffffff;
  
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 20%, 15%);
  
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 15%);
  
  --muted: hsl(150, 10%, 93%);
  --muted-foreground: hsl(220, 15%, 45%);
  
  --border: hsl(220, 15%, 90%);
  
  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --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 -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);
  
  /* Border radius */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Dark Mode Variables */
html.dark {
  --primary: hsl(152, 55%, 40%);
  --primary-hover: hsl(152, 55%, 45%);
  --primary-light: hsl(152, 55%, 40%, 0.15);
  
  --secondary: hsl(215, 60%, 50%);
  --secondary-hover: hsl(215, 60%, 55%);
  --secondary-light: hsl(215, 60%, 50%, 0.15);
  
  --accent: hsl(41, 55%, 48%);
  --accent-hover: hsl(41, 55%, 40%);
  --accent-light: hsl(41, 55%, 48%, 0.15);
  
  --background: hsl(220, 20%, 10%);
  --foreground: hsl(210, 20%, 90%);
  
  --card: hsl(220, 18%, 13%);
  --card-foreground: hsl(210, 20%, 90%);
  
  --muted: hsl(220, 15%, 18%);
  --muted-foreground: hsl(220, 10%, 60%);
  
  --border: hsl(220, 15%, 20%);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  height: 3.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(46, 125, 91, 0.4);
}

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

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

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

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

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

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

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

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Cards */
.card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-hover {
  transition: all 0.3s ease;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent);
}

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

.badge-free-market{
  background-color: var(--primary-foreground);
  color: var(--secondary);
}

.badge-transport{
  background-color: var(--primary-foreground);
  color: var(--accent);
}

.badge-solar-energy{
  background-color: var(--primary-foreground);
  color: var(--primary);
  margin-bottom: 15px;
}


/* Form elements */
/* .form-group {
  margin-bottom: 1.5rem;
} */

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground) !important;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

/* Pattern backgrounds */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(46, 125, 91, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pattern-grid {
  background-image: 
    linear-gradient(rgba(34, 45, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 45, 55, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Gradient backgrounds */
.bg-gradient-hero {
  background: linear-gradient(180deg, hsl(152, 30%, 97%) 0%, hsl(0, 0%, 100%) 50%);
}

/* Text gradients */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary), hsl(152, 55%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary), hsl(215, 70%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============= HEADER ============= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.35s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background-color: var(--background);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.header-hidden {
  transform: translateY(-100%);
}

html.dark .header {
  background-color: var(--card);
}

/* Theme toggle */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--foreground);
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background-color: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  width: 1.25rem;
  height: 1.25rem;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-top {
  background-color: var(--foreground);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 1024px) {
  .header-top { display: block; }
}

.header.scrolled .header-top {
  display: none;
}

.header-top a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.header-top a:hover {
  color: #fff;
}

.header-nav {
  padding: 1rem 0;
}

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

.header-logo img {
  height: 3rem;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo img { height: 3.5rem; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ============= HERO SECTION ============= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, hsl(152, 30%, 97%) 0%, hsl(0, 0%, 100%) 50%);
  position: relative;
  overflow: hidden;
}

html.dark .hero {
  background: linear-gradient(180deg, hsl(220, 20%, 12%) 0%, hsl(220, 20%, 10%) 50%);
}

html.dark .section-muted {
  background-color: hsla(220, 15%, 15%, 0.7);
}

html.dark .section-muted-light {
  background-color: hsla(220, 15%, 15%, 0.35);
}

html.dark .bg-gradient-hero {
  background: linear-gradient(180deg, hsl(220, 20%, 12%) 0%, hsl(220, 20%, 10%) 50%);
}

html.dark .page-hero {
  background: linear-gradient(180deg, hsl(220, 20%, 12%) 0%, hsl(220, 20%, 10%) 50%);
}

html.dark .footer {
  background-color: hsl(220, 20%, 8%);
}

/* Logo branca no dark mode */
html.dark .header-logo img {
  filter: brightness(0) invert(1);
}

/* Header top — fixo, não muda com o dark mode */
html.dark .header-top {
  background-color: hsl(220, 20%, 15%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark .header-top a {
  color: rgba(255, 255, 255, 0.8);
}

html.dark .header-top a:hover {
  color: #ffffff;
}

html.dark .pattern-dots {
  background-image: radial-gradient(circle, rgba(46, 125, 91, 0.15) 1px, transparent 1px);
}

/* Dark mode transition */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
  background-color: var(--background);
  color: var(--foreground);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.hero-content {
  order: 2;
}

@media (min-width: 1024px) {
  .hero-content { order: 1; }
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-title { 
    font-size: 3rem; 
    color: #fff;
  }
  
}

@media (min-width: 1024px) {
  .hero-title { 
    font-size: 3.75rem; 
    color: #fff;
  }
  
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 540px;
  color: #fff;
}

.hero-benefits {
  margin-bottom: 2.5rem;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.hero-benefit svg {
  color: var(--primary);
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--foreground);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stat-divider {
  width: 1px;
  height: 3rem;
  background-color: var(--border);
}

.hero-image {
  order: 1;
}

@media (min-width: 1024px) {
  .hero-image { order: 2; }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

@media (min-width: 1024px) {
  .hero-image-main img { height: 550px; }
}

.hero-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-floating-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.hero-floating-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.hero-floating-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-service-icons {
  position: absolute;
  top: -1rem;
  right: -1rem;
  display: flex;
  gap: 0.5rem;
}

.hero-service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.hero-service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.hero-service-icon.primary { background-color: var(--primary); }
.hero-service-icon.secondary { background-color: var(--secondary); }
.hero-service-icon.accent { background-color: var(--accent); }

/* ============= SERVICES SECTION ============= */
.services {
  padding: 6rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 3rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card {
  display: grid;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .service-card { grid-template-columns: 1fr 1fr; }
  .service-card.reversed { direction: rtl; }
  .service-card.reversed > * { direction: ltr; }
}

.service-image {
  position: relative;
  height: 100%;
  /* min-height: 510px; */
}

.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .service-content { padding: 3rem; }
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-icon.primary {
  background-color: var(--primary-light);
}

.service-icon.primary svg { color: var(--primary); }

.service-icon.secondary {
  background-color: var(--secondary-light);
}

.service-icon.secondary svg { color: var(--secondary); }

.service-icon.accent {
  background-color: var(--accent-light);
}

.service-icon.accent svg { color: var(--accent); }

.service-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service-subtitle.primary { color: var(--primary); }
.service-subtitle.secondary { color: var(--secondary); }
.service-subtitle.accent { color: var(--accent); }

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .service-title { font-size: 1.875rem; }
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.service-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.service-benefit svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.service-benefit.primary svg { color: var(--primary); }
.service-benefit.secondary svg { color: var(--secondary); }
.service-benefit.accent svg { color: var(--accent); }

/* ============= STATS SECTION ============= */
.stats {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
}

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

.stats-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(34, 45, 55, 0.85);
}

.impact-bg {
  position: absolute;
  inset: 0;
}

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

.impact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgb(23 67 35 / 77%);
}

.stats-content {
  position: relative;
  z-index: 10;
}

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

.stats-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .stats-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .stats-title { font-size: 3rem; }
}

.stats-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40rem;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.stat-card {
  text-align: center;
  padding: 1.5rem 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: rgba(46, 125, 91, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .stat-value { font-size: 2.25rem; }
}

.stat-label {
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============= TESTIMONIALS SECTION ============= */
.testimonials {
  padding: 6rem 0;
  background-color: rgba(240, 243, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 3rem;
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #facc15;
  color: #facc15;
}

.testimonial-content {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .testimonial-content { font-size: 1.5rem; }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.testimonial-name {
  font-weight: 700;
  font-family: var(--font-display);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  width: 2rem;
  background-color: var(--primary);
}

.testimonial-arrows {
  display: flex;
  gap: 0.5rem;
}

.testimonial-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.testimonial-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============= TRUST SECTION ============= */
.trust {
  padding: 6rem 0;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.trust-card {
  padding: 2rem;
}

.trust-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.trust-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--secondary);
}

.trust-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trust-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ============= CTA SECTION ============= */
.cta {
  padding: 6rem 0;
  /* background-color: var(--muted); */
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  display: none;
}

.cta-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  
  /* 1. Inverte o grid de CTA: Formulário sobe, Cards de contato descem */
  .cta-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
  }
  
  /* Remove a margem superior que empurrava os cards para baixo no desktop */
  .cta-cards {
    margin-top: 0 !important;
  }

  /* 2. Força altura mínima para as imagens que possuem position: absolute */
  .service-image {
    min-height: 280px;
  }

}
.cta-content {
  text-align: left;
}

@media (min-width: 1024px) {
  .cta-content { text-align: left; }
}

.cta-title {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .cta-title { font-size: 3rem; }
}

.cta-title span { color: var(--primary); text-decoration: none; }

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

@media (min-width: 1024px) {
  .cta-buttons { justify-content: flex-start; }
}

.cta-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cta-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsla(152, 55%, 35%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.cta-card-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.cta-card-value {
  font-weight: 600;
  /* font-size: 0.88rem; */
  font-size: 1rem;
  color: var(--foreground);
  word-break: break-all; /* Força a quebra em qualquer lugar */
  overflow-wrap: break-word; /* Garante que palavras longas quebrem */
}

.cta-card-value a {
  transition: color 0.2s;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
}

.cta-card-value a:hover {
  color: var(--primary);
}

/* CTA Form */
.cta-form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}


.cta-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-form .form-label {
  color: var(--foreground);
  font-weight: 500;
}

.cta-form .form-input {
  color: var(--foreground);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

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

.footer-grid {
  display: grid;
  gap: 3rem;
}

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

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand img {
  /* height: 3.5rem; */
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.footer-social a:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer-title {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

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

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ============= WHATSAPP BUTTON ============= */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 4rem;
  height: 4rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}

.whatsapp-btn:hover {
  background-color: #20BA5C;
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-btn svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}

/* ============= INTERNAL PAGES ============= */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(180deg, hsl(152, 30%, 97%) 0%, hsl(0, 0%, 100%) 50%);
  position: relative;
}

/* Overflow hidden only when using background image via picture element */
.page-hero.page-hero-wrapper {
  overflow: hidden;
}

.page-hero-content {
  max-width: 48rem;
}

.page-hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

@media (min-width: 768px) {
  .page-hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .page-hero-title { font-size: 3.75rem; }
}

.page-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Section variations */
.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: hsla(150, 10%, 93%, 0.7);
}

.section-muted-light {
  background-color: hsla(150, 10%, 93%, 0.35);
}

.section-primary {
  background-color: var(--primary);
  color: #fff;
  /* background-image: url("../assets/solar-technician.jpg"); */
}

.section-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.section-accent {
  background-color: var(--accent);
  color: #fff;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step {
  text-align: center;
  position: relative;
}

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

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

.benefit-card {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon.secondary {
  background-color: var(--secondary-light);
}

.benefit-icon.secondary svg {
  color: var(--secondary);
}

.benefit-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Calculator */
.calculator {
  max-width: 56rem;
  margin: 0 auto;
}

.calculator-group-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 0.375rem;
  margin-bottom: 1.5rem;
}

.calculator-group-btn {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  background-color: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  line-height: 1.4;
  font-family: var(--font-body);
}

.calculator-group-btn small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.125rem;
  opacity: 0.75;
}

.calculator-group-btn:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--foreground);
}

html.dark .calculator-group-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
}

.calculator-group-btn.active {
  background-color: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.calculator-group-btn.active small {
  opacity: 0.8;
}

.calculator-fields-hidden {
  display: none !important;
}

.calculator-form {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calculator-form { grid-template-columns: repeat(2, 1fr); }
}

.calculator-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--secondary-light);
  border-radius: var(--radius);
  text-align: center;
}

.calculator-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.calculator-result-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.calculator-result-value.secondary { color: var(--secondary); }
.calculator-result-value.primary { color: var(--primary); }

/* FAQ */
.faq {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  font-family: var(--font-body);
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.faq-question:hover {
  background-color: var(--muted);
}

.faq-question svg {
  transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1rem 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Partners Section */
.partners-section {
  padding: 5rem 0;
  background-color: var(--muted);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(5, 1fr); }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo img {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

html.dark .partner-logo {
  filter: grayscale(100%) brightness(0) invert(1);
}

@media (min-width: 768px) {
  .partner-logo img { max-height: 4rem; }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Utility classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-white { color: #fff; }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-muted { background-color: var(--muted); }

.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.w-full { width: 100%; }

/* ============= SCROLL REVEAL ANIMATIONS ============= */
[data-scroll-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-scroll-reveal="up"] {
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal="down"] {
  transform: translateY(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal="left"] {
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal="right"] {
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal="scale"] {
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal="fade"] {
  transition: opacity 0.7s ease-out;
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Icon reveal animation */
[data-icon-reveal] {
  transform: scale(0) rotate(45deg);
  transition: transform 0.5s ease-out;
}

[data-icon-reveal].icon-revealed {
  transform: scale(1) rotate(0deg);
}

/* Image zoom reveal */
[data-img-reveal] {
  transform: scale(1.1);
  transition: transform 1s ease-out;
}

[data-img-reveal].img-revealed {
  transform: scale(1);
}

/* Stagger delays via CSS custom property */
[data-scroll-reveal][data-scroll-delay] {
  transition-delay: calc(var(--delay, 0) * 1ms);
}

/* CountUp initial state */
[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* Fallback: Se o preloader for removido e as animações travarem, 
   garantimos que o conteúdo seja visível */
#preloader.hidden ~ * [data-scroll-reveal] {
    transition: opacity 0.5s ease;
}

/* Caso o JS de animação não carregue, podemos forçar a visão após 5s */
body.js-timeout [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
}
/* ============= PRELOADER ============= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: hsl(0, 0%, 98%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.visible {
  opacity: 1;
  visibility: visible;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader img {
  height: 3.5rem;
  width: auto;
}

.preloader-bar {
  width: 180px;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, hsl(152, 55%, 35%), hsl(215, 60%, 45%));
  border-radius: 9999px;
  animation: preloader-progress 10s ease-out forwards;
}

@keyframes preloader-progress {
  0%   { width: 0%; }
  30%  { width: 50%; }
  60%  { width: 75%; }
  85%  { width: 90%; }
  100% { width: 98%; }
}

/* ============= UTILITY LAYOUT HELPERS ============= */
/* Form grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 639px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Form card wrapper */
.form-card-wrapper {
  max-width: 40rem;
  margin: 0 auto;
}

/* Card with padding */
.card-padded {
  padding: 2rem;
}

/* Badge spacing */
.badge-spaced {
  margin-bottom: 1.5rem;
}

/* Form security note */
.form-security-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.form-security-note svg {
  display: inline;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Footer location item */
.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-location svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Section with image background */
.section-img-bg {
  position: relative;
  overflow: hidden;
}

.section-img-bg > picture,
.section-img-bg > .section-bg-img {
  position: absolute;
  inset: 0;
}

.section-img-bg > picture img,
.section-img-bg > .section-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-img-overlay {
  position: absolute;
  inset: 0;
}

.section-img-content {
  position: relative;
  z-index: 10;
}

/* Hero content overlay layout */
.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.65), rgba(0,0,0,0.4));
}

/* Inline flex header-top */
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============= MOBILE NAV THEME BUTTON ============= */
.mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ============= MOBILE NAV CTA BUTTON ============= */
.mobile-nav-cta {
  margin-top: 1rem;
}

/* ============= PAGE HERO ============= */
.page-hero-wrapper {
  position: relative;
  overflow: hidden;
}

.page-hero-picture {
  position: absolute;
  inset: 0;
}

.page-hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.65), rgba(0,0,0,0.4));
}

.page-hero-container {
  position: relative;
  z-index: 10;
}

/* ============= HERO (index) ============= */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content-wrapper {
  max-width: 35rem;
}

/* ============= HERO BADGE (green neon style) ============= */
.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
  margin-bottom: 2rem;
}

.badge-hero-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
}

/* ============= HERO TEXT COLORS ============= */
.hero-accent-color { color: #00ff88; }
.text-white-80 { color: rgba(255, 255, 255, 0.8); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.hero-benefit-item { color: #fff; }

/* ============= HERO BUTTONS ============= */
.btn-hero-primary {
  background: #00ff88;
  color: #000;
  font-weight: 600;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ============= HERO STATS ============= */
.hero-stat-white { color: #fff; }
.hero-stat-divider-white { background: rgba(255, 255, 255, 0.2); }
.hero-stats-border-white { border-top-color: rgba(255, 255, 255, 0.2); }

/* ============= TRANSPORT BENEFIT CARDS ============= */
.transport-benefit-card {
  padding: 1.5rem;
  text-align: center;
}

.transport-benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.transport-card-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.transport-card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ============= OBRIGADO PAGE ============= */
.thankyou-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.thankyou-inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.thankyou-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5rem auto 2rem;
}

.thankyou-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thankyou-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.thankyou-subtext {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.thankyou-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ============= HERO BADGE (neon green) ============= */
.badge-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.25);
  margin-bottom: 2rem;
}

.badge-neon-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============= HERO BUTTONS ============= */
.btn-neon {
  background: #00ff88;
  color: #000;
  font-weight: 600;
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============= CALCULATOR CARD ============= */
.calculator-card {
  padding: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

/* ============= TRANSPORT SERVICES GRID ============= */
.transport-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.transport-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  align-items: center;
}

@media (max-width: 767px) {
  .transport-services-grid {
    grid-template-columns: 1fr;
  }
}

.transport-services-list {
  margin-top: 2rem;
}

.transport-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* ============= ML CONTENT GRID ============= */
.ml-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .ml-content-grid { grid-template-columns: 1fr; }
}

.ml-text-body {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
}

.ml-text-paragraph {
  margin-bottom: 1rem;
}

/* ============= HERO BUTTONS WRAPPER ============= */
.hero-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============= SECTION TITLE VARIANTS ============= */
.section-title-left {
  text-align: left;
}

.section-title-center-mb {
  text-align: center;
  margin-bottom: 3rem;
}


html:not(.dark) .section-secondary .text-secondary {
  /* Opção 1: Azul Gelo */
  color: #93C5FD; 
  
  /* Opção 2: Se preferir usar o seu Accent (Dourado/Mostarda) descomente a linha abaixo */
  /* color: var(--accent); */
}

/* Se você estiver usando a classe de gradiente na palavra "Frequentes" */
html:not(.dark) .section-secondary .text-gradient-secondary {
  /* Opção 1: Gradiente Azul Gelo */
  background: linear-gradient(135deg, #BAE6FD, #7DD3FC);
  
  /* Opção 2: Gradiente Dourado (Descomente abaixo se preferir) */
  /* background: linear-gradient(135deg, var(--accent), #FCD34D); */
  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============= DARK MODE FIXES ============= */

/* 1. Page hero subtitle — white on all inner pages */
.page-hero-subtitle {
  color: #fff;
}

/* 2. Form inputs/selects/textareas in dark mode —
   forces dark background even when browser autofill kicks in */
html.dark .form-input,
html.dark .form-select,
html.dark .form-textarea {
  background-color: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

html.dark .form-input::placeholder,
html.dark .form-select::placeholder,
html.dark .form-textarea::placeholder {
  color: var(--muted-foreground);
}

/* Fix browser autofill overriding dark background */
html.dark .form-input:-webkit-autofill,
html.dark .form-input:-webkit-autofill:hover,
html.dark .form-input:-webkit-autofill:focus,
html.dark .form-select:-webkit-autofill,
html.dark .form-select:-webkit-autofill:hover,
html.dark .form-select:-webkit-autofill:focus,
html.dark .form-textarea:-webkit-autofill,
html.dark .form-textarea:-webkit-autofill:hover,
html.dark .form-textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset !important;
  -webkit-text-fill-color: var(--foreground) !important;
  border-color: var(--border) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* 3. FAQ question text — white in dark mode */
html.dark .faq-question {
  color: var(--foreground);
}

/* 4. Mercado Livre form inputs that use glass style — fix placeholder color */
html.dark .form-input-dark::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

html.dark .form-input-dark:-webkit-autofill,
html.dark .form-input-dark:-webkit-autofill:hover,
html.dark .form-input-dark:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* select option text in dark mode */
html.dark .form-select option {
  background-color: var(--card);
  color: var(--foreground);
}

/* Fix ML contact form — inputs with glass style need white placeholder always */
.section-secondary .form-input::placeholder,
.section-secondary .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

html.dark .section-secondary .form-input::placeholder,
html.dark .section-secondary .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}


/* 5. Fundo Azul Escuro elegante para seções secundárias (Mercado Livre) */
html.dark .section-secondary,
html.dark .bg-secondary {
  /* Mantém o tom do seu azul original (215), mas muito mais escuro e sofisticado */
  background-color: hsl(215, 40%, 12%); 
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Garante que qualquer badge ou card com fundo muito claro dentro dessa seção ganhe um contraste melhor no dark mode */
html.dark .section-secondary .badge-white,
html.dark .section-secondary .badge-free-market {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

html.dark .badge-solar-energy,
html.dark .card .badge-white {
  background-color: #ffffff !important;
  color: #0F172A !important; /* Tom de preto/chumbo super elegante e com alto contraste */
  font-weight: 700;
}

/* Fix autofill on glass-style inputs in ML section */
.section-secondary .form-input:-webkit-autofill,
.section-secondary .form-input:-webkit-autofill:hover,
.section-secondary .form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset !important;
  -webkit-text-fill-color: #fff !important;
}


.proposta-hero{
  background:linear-gradient(135deg,hsl(152,55%,20%),hsl(215,70%,28%));
  padding:10rem 0 3rem;text-align:center
}

.proposta-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);
  color:#fff;
  padding:.4rem 1rem;
  border-radius:9999px;
  font-size:.875rem;
  font-weight:600;
  margin-bottom:1.25rem
}

.section-proposta {
  padding: 1rem 0;
}

.proposta-hero h1{
  font-family:var(--font-display);
  font-size:2.25rem;
  font-weight:800;
  color:#fff;
  margin-bottom:.875rem;
  line-height:1.2
}

@media(min-width:768px){.proposta-hero h1{font-size:2.75rem}}
.proposta-hero p{font-size:1.0625rem;color:rgba(255,255,255,.82);max-width:36rem;margin:0 auto;line-height:1.7}
.trust-badges{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;margin-top:1.75rem}
.trust-badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:9999px;padding:.35rem .875rem;font-size:.8125rem;color:rgba(255,255,255,.9);font-weight:500}
.sim-summary{display:none;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-lg);padding:1.25rem 1.5rem;margin-bottom:1.75rem}
.sim-summary-title{font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--primary);margin-bottom:.875rem}
.sim-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem}
.sim-stat{text-align:center}
.sim-stat-value{font-size:1.375rem;font-weight:800;color:var(--primary);font-family:var(--font-display)}
.sim-stat-label{font-size:.8rem;color:var(--muted-foreground);margin-top:.125rem}
.form-section-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-foreground);margin:1.75rem 0 1rem;display:flex;align-items:center;gap:.5rem}
.form-section-label::after{content:'';flex:1;height:1px;background:var(--border)}
.cep-wrapper{position:relative}
.cep-spinner{position:absolute;right:.875rem;top:50%;transform:translateY(-50%);display:none}
.cep-spinner.active{display:block}
.cep-spinner svg{animation:cep-spin .8s linear infinite;color:var(--primary)}
@keyframes cep-spin{to{transform:rotate(360deg)}}
.addr-grid-2{display:grid;grid-template-columns:1fr 5.5rem;gap:1rem}
.addr-grid-3{display:grid;grid-template-columns:1fr 1fr 3.5rem;gap:1rem}
@media(max-width:560px){.addr-grid-2{grid-template-columns:1fr}.addr-grid-3{grid-template-columns:1fr 1fr}.addr-grid-3 .f-estado{grid-column:1/-1}}
.cep-notice{display:none;font-size:.8125rem;color:var(--accent);margin-top:.375rem}
.form-submit-area{margin-top:2rem;display:flex;flex-direction:column;gap:.75rem}
.form-privacy-note{font-size:.8125rem;color:var(--muted-foreground);display:flex;align-items:flex-start;gap:.5rem}
@keyframes btn-spin{to{transform:rotate(360deg)}}
.btn-loading svg{animation:btn-spin .8s linear infinite}



