/* ==========================================================================
   🎨 DESIGN SYSTEM & VARIABLES - G&S GUAÇUÍ ENERGIA SOLAR
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - G&S Guaçuí Premium Identity */
  --color-primary: #0F4C81;        /* Deep Solar Navy / Blue */
  --color-primary-dark: #0B355B;   /* Darker Solar Navy */
  --color-accent: #22C55E;         /* Vibrant Eco Green */
  --color-accent-hover: #16A34A;   /* Darker Eco Green */
  --color-dark: #0F172A;           /* Slate Navy Dark */
  --color-dark-surface: #1E293B;   /* Dark Card Surface */
  --color-light: #F8FAFC;          /* Clean Grey / White tint */
  --color-white: #FFFFFF;
  --color-silver: #CBD5E1;         /* Silver Accent */
  
  /* Text Colors */
  --text-main: #334155;            /* Slate Dark */
  --text-muted: #64748B;           /* Slate Muted */
  --text-light: #94A3B8;           /* Slate Light */
  --text-white: #FFFFFF;
  
  /* Borders and Shadows */
  --border-color: #E2E8F0;
  --border-light: rgba(255, 255, 255, 0.08);
  --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);
  --shadow-premium: 0 20px 40px -5px rgba(15, 76, 129, 0.12), 0 10px 20px -10px rgba(0, 0, 0, 0.1);
  
  /* Fonts */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   🛠️ BASE RESET & STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

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

/* Section Common Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--color-primary);
}

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

/* ==========================================================================
   🧭 HEADER & NAVIGATION
   ========================================================================== */
header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition-normal);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}

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

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

.logo-img {
  height: 54px;
  width: auto;
}

.logo-text {
  display-self: center;
}

.logo-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-dark);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

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

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

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

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

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

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

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* ==========================================================================
   🚀 HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 120px;
  background-image: linear-gradient(135deg, rgba(11, 19, 32, 0.88) 30%, rgba(11, 19, 32, 0.65) 100%), url('solar_house_bg.png');
  background-size: cover;
  background-position: center 30%;
  color: var(--color-white);
  position: relative;
}

/* Premium Curved Divider */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-divider .shape-fill {
  fill: var(--color-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bullet-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.bullet-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   📊 STATS BAR
   ========================================================================== */
.stats-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 30px 0;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   💡 BENEFITS
   ========================================================================== */
.benefits {
  background-color: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-card {
  background-color: var(--color-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-card:hover {
  background-color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  color: var(--color-primary);
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
}

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

/* ==========================================================================
   🎯 PROCESS SECTION (HOW IT WORKS)
   ========================================================================== */
.process {
  background-color: var(--color-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.process-grid::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: rgba(16, 185, 129, 0.2);
  z-index: 1;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 3px solid var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.process-item:hover .process-number {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.process-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 160px;
}

/* ==========================================================================
   🧮 SIMULATOR SECTION (CALCULATOR)
   ========================================================================== */
.simulator {
  background-color: var(--color-white);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.simulator-info {
  position: sticky;
  top: 100px;
}

.simulator-photo {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Calculator Card Styling */
.calc-card {
  background-color: var(--color-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calc-section-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 12px;
  margin-bottom: 16px;
}

/* Tabs styles (Residencial/Comercial, Monofasico etc) */
.tab-group {
  display: flex;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Fields & Selects */
.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.select-control {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

/* Slider and numerical input */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.slider-input-box {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  width: 130px;
}

.slider-input-box input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  text-align: right;
}

.slider-input-box span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: var(--color-primary);
}

/* Simulated Bill input */
.input-currency {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency span {
  position: absolute;
  left: 14px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.input-currency input {
  width: 100%;
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 12px 12px 42px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  outline: none;
}

/* Results panel styles */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-value {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Highlight box/Card results */
.highlight-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.highlight-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.highlight-value {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 12px;
}

.highlight-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.calc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   👥 TESTIMONIALS
   ========================================================================== */
.testimonials {
  background-color: var(--color-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-headings);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
}

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

/* ==========================================================================
   📞 FOOTER
   ========================================================================== */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   📱 MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .simulator-info {
    position: relative;
    top: 0;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .process-grid::after {
    display: none;
  }
  .process-desc {
    max-width: 100%;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-bullets {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .calc-card {
    padding: 24px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .highlight-result-box {
    grid-column: span 1 !important;
  }
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 20px;
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .btn-header-cta {
    width: 100%;
    text-align: center;
  }
}

/* --- ADICIONAIS G&S GUAÇUÍ (PROJETOS & MAPA COM PULSATION) --- */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.pulsing-marker {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.marker-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  border: 1px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.marker-pulse {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  position: absolute;
  animation: pulse-pin 1.8s infinite ease-in-out;
  opacity: 0;
}

@keyframes pulse-pin {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
