/* ============================================================
   EXITOSUN / ENERGIA SOLAR — Solar Section Stylesheet
   Extends the main styles.css with solar-specific components
   ============================================================ */

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--solar-dark, #d97706), var(--solar, #f59e0b), var(--solar-light, #fbbf24));
  z-index: 10001;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(245,158,11,.5);
}

/* --- ANIMAÇÕES DE ENTRADA --- */
[data-anim] {
  opacity: 0;
  transition: all .7s cubic-bezier(.16,1,.3,1);
}
[data-anim].anim-visible { opacity: 1; transform: none !important; }

[data-anim="fade-up"] { transform: translateY(50px); }
[data-anim="fade-down"] { transform: translateY(-50px); }
[data-anim="fade-left"] { transform: translateX(-60px); }
[data-anim="fade-right"] { transform: translateX(60px); }
[data-anim="scale-up"] { transform: scale(.85); }
[data-anim="blur-in"] { transform: translateY(30px); filter: blur(8px); }
[data-anim="blur-in"].anim-visible { filter: blur(0); }
[data-anim="zoom-rotate"] { transform: scale(.7) rotate(-5deg); }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all .5s cubic-bezier(.16,1,.3,1);
}
[data-stagger] > *.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- TILT 3D --- */
[data-tilt] {
  transition: transform .3s ease;
  will-change: transform;
}

/* --- TYPING CURSOR --- */
[data-typing]::after {
  content: '|';
  animation: blink .7s infinite;
  color: var(--solar);
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* --- GRADIENT TEXT ANIMADO --- */
.gradient-text {
  background: linear-gradient(135deg, var(--solar), var(--solar-light), #ff6b35, var(--solar));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* --- GLOW PULSE NOS BOTÕES --- */
.btn-solar {
  position: relative;
  overflow: hidden;
}
.btn-solar::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: rotate(45deg) translateX(-100%);
  transition: none;
}
.btn-solar:hover::after {
  animation: btn-shine .6s ease;
}
@keyframes btn-shine {
  from { transform: rotate(45deg) translateX(-100%); }
  to { transform: rotate(45deg) translateX(100%); }
}

/* --- HEADER SMOOTH --- */
.header {
  transition: transform .35s ease, background .3s ease, box-shadow .3s ease;
}

/* --- FLOATING ELEMENTS --- */
.float-anim {
  animation: float-updown 3s ease-in-out infinite;
}
@keyframes float-updown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- SOLAR DESIGN TOKENS --- */
:root {
  --solar:       #f59e0b;
  --solar-light: #fbbf24;
  --solar-dark:  #d97706;
  --solar-glow:  rgba(245,158,11,.25);
  --solar-bg:    rgba(245,158,11,.06);
  --solar-border:rgba(245,158,11,.18);
}

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: .82rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--solar); }
.breadcrumb span { color: var(--text-faint, #64748b); margin: 0 6px; }
.breadcrumb .current { color: var(--solar); }

/* --- SOLAR HERO --- */
.solar-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 64px;
}
.solar-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(245,158,11,.16) 0%, transparent 55%),
              linear-gradient(180deg, var(--dark) 0%, var(--dark-2, #111118) 100%);
}
.solar-hero .sun-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, rgba(245,158,11,.04) 40%, transparent 70%);
  animation: sun-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sun-pulse { 0%,100%{opacity:.7} 50%{opacity:1} }

.solar-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.solar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--solar);
  margin-bottom: 20px;
}
.solar-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}
.solar-hero h1 .highlight { color: var(--solar); }
.solar-hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.solar-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* --- SOLAR STATS BAR --- */
.solar-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border: 1px solid var(--solar-border);
  border-radius: 20px;
  background: var(--solar-bg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.solar-stat {
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  border-right: 1px solid var(--solar-border);
}
.solar-stat:last-child { border-right: none; }
.solar-stat-val {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--solar);
}
.solar-stat-label {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- SECTION LABELS --- */
.solar-section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--solar);
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* --- SOLAR CALCULATOR --- */
.calculator-section {
  background: var(--dark-2, #111118);
  padding: 80px 0;
}
.calculator-box {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 24px;
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}
.calculator-box h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  text-align: center;
}
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.calc-field input,
.calc-field select {
  background: var(--dark-4, #1e1e28);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--solar);
}
.calc-field select option {
  background: var(--dark-3, #18181f);
  color: var(--text);
}
.calc-btn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--solar), var(--solar-dark));
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,.4);
}

/* --- CALCULATOR RESULTS --- */
.calc-results {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
  animation: fadeInUp .4s ease;
}
.calc-results.active { display: grid; }
.calc-result-card {
  background: var(--solar-bg);
  border: 1px solid var(--solar-border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.calc-result-val {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--solar);
}
.calc-result-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.calc-results-cta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SERVICE CARDS (solar types) --- */
.solar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.solar-card {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 20px;
  padding: 28px;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.solar-card:hover {
  border-color: rgba(245,158,11,.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(245,158,11,.1);
}
.solar-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,.1);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.solar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.solar-card p {
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.solar-card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--solar);
  background: rgba(245,158,11,.1);
  padding: 3px 10px;
  border-radius: 8px;
}

/* --- PRICE TABLE --- */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--solar-border);
}
.price-table thead th {
  background: rgba(245,158,11,.1);
  padding: 14px 20px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--solar);
  text-align: left;
  border-bottom: 1px solid var(--solar-border);
}
.price-table tbody td {
  padding: 14px 20px;
  font-size: .88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  background: var(--dark-3, #18181f);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td {
  background: var(--dark-4, #1e1e28);
}
.price-highlight {
  color: var(--solar);
  font-weight: 800;
  font-family: var(--font-display, 'Outfit', sans-serif);
}

/* --- DIFFERENTIALS GRID --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.diff-card {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245,158,11,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.diff-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: .92rem;
  color: var(--white, #fff);
}
.diff-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- FAQ --- */
.solar-faq { max-width: 800px; margin: 48px auto 0; }
.solar-faq-item {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.solar-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  gap: 12px;
  color: var(--text);
  transition: color .2s;
}
.solar-faq-q:hover { color: var(--solar); }
.solar-faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(245,158,11,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  color: var(--solar);
}
.solar-faq-item.open .solar-faq-icon {
  background: var(--solar);
  color: #000;
  transform: rotate(45deg);
}
.solar-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.solar-faq-item.open .solar-faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}
.solar-faq-a p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- BLOG POSTS (static cards) --- */
.solar-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.solar-blog-card {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.solar-blog-card:hover {
  border-color: var(--solar-border);
  transform: translateY(-3px);
}
.solar-blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.solar-blog-cat {
  font-size: .7rem;
  font-weight: 700;
  color: var(--solar);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.solar-blog-card h4 {
  font-size: .95rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.solar-blog-card p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.solar-blog-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--solar);
  margin-top: 12px;
}

/* --- CTA STRIP --- */
.solar-cta-strip {
  background: linear-gradient(135deg, var(--solar-dark), var(--solar));
  padding: 20px 0;
}
.solar-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.solar-cta-inner strong { font-size: 1.05rem; color: #000; font-weight: 800; }
.solar-cta-inner p { font-size: .88rem; color: rgba(0,0,0,.7); }
.solar-cta-inner a {
  background: #000;
  color: var(--solar);
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
}

/* --- TESTIMONIALS --- */
.solar-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.solar-testimonial {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 16px;
  padding: 24px;
}
.solar-stars { color: var(--solar); margin-bottom: 12px; font-size: 1rem; }
.solar-testimonial blockquote {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}
.solar-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.solar-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--solar), var(--solar-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: #000;
  flex-shrink: 0;
}
.solar-author-name { font-weight: 700; font-size: .85rem; color: var(--white, #fff); }
.solar-author-role { font-size: .73rem; color: var(--solar); }

/* --- CITIES GRID --- */
.solar-cities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.solar-city-card {
  background: var(--dark-3, #18181f);
  border: 1px solid var(--solar-border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
  display: block;
}
.solar-city-card:hover {
  border-color: rgba(245,158,11,.4);
  transform: translateY(-3px);
}
.solar-city-card h4 { font-size: .95rem; margin-bottom: 6px; }
.solar-city-card p { font-size: .78rem; line-height: 1.5; }

/* --- CONTENT SECTIONS --- */
.solar-content {
  padding: 80px 0;
}
.solar-content h2 {
  margin-bottom: 20px;
}
.solar-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}
.solar-content ul {
  margin: 16px 0;
  padding-left: 24px;
}
.solar-content ul li {
  margin-bottom: 10px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
  list-style: disc;
}
.solar-content ul li strong { color: var(--solar); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .solar-cards,
  .diff-grid,
  .solar-testimonials { grid-template-columns: repeat(2, 1fr); }
  .solar-cities { grid-template-columns: repeat(2, 1fr); }
  .solar-blog-grid { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .solar-cards,
  .diff-grid,
  .solar-testimonials,
  .solar-cities { grid-template-columns: 1fr; }
  .calculator-box { padding: 24px 18px; }
  .calc-results { grid-template-columns: 1fr; }
  .solar-hero { padding: 80px 0 48px; }
}
