:root {
  --bg-primary: #0A0D10;
  --bg-secondary: #111418;
  --accent-primary: #D9A608;
  --accent-secondary: #2AF5A0;
  --accent-solar: #FF6B2B;
  --text-main: #E8EAF0;
  --text-muted: #8892A0;
  --border-color: #1E2530;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(14px, 1vw + 0.5rem, 18px); }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-main); }
h1 { font-family: var(--font-display); font-size: 5rem; letter-spacing: 2px; line-height: 1; text-transform: uppercase; }
h2 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-family: var(--font-heading); font-size: 1.5rem; }
a { color: var(--text-main); text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

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

/* Blueprint Grid */
.bg-blueprint { position: relative; }
.bg-blueprint::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.04; z-index: 0; pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; font-family: var(--font-heading); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: all 0.3s ease; border: 1px solid transparent; border-radius: 4px;
  font-size: 0.95rem;
}
.btn-primary { background-color: var(--accent-primary); color: var(--bg-primary); }
.btn-primary:hover { background-color: #BF9207; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(217,166,8,0.3); }
.btn-outline { background-color: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--text-main); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-main); border: none; padding: 1rem 0; }
.btn-ghost:hover { color: var(--accent-primary); }

/* Corner Brackets */
.bracket-box { position: relative; padding: 2rem; background-color: var(--bg-secondary); border-radius: 6px; }
.bracket-box::before, .bracket-box::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border-color: var(--text-muted); border-style: solid; transition: border-color 0.3s;
}
.bracket-box::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.bracket-box::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.bracket-box:hover::before, .bracket-box:hover::after { border-color: var(--accent-primary); }

/* Badges */
.badge-mono {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
  padding: 0.25rem 0.6rem; background-color: var(--border-color); color: var(--text-main); border-radius: 3px;
}

/* Layout */
.section-padding { padding: 6rem 0; }
.grid { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Section Header */
.section-separator { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; height: 20px; }
.section-separator span { font-family: var(--font-mono); color: var(--accent-primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }
.klyfe-symbol { height: 100%; width: auto; max-width: 100%; display: block; }
.klyfe-symbol path, .klyfe-symbol rect { fill: var(--accent-solar); }

/* ═══ LOGO ANIMADA (SVG) ═══ */
.logo-animated { height: 50px; display: flex; align-items: center; }
.logo-animated svg { height: 100%; width: auto; display: block; }
.logo-animated-footer { height: 40px; }
.logo-animated-footer svg { height: 100%; width: auto; }
.logo-mobile-wrapper { height: 45px; margin-bottom: 2rem; display: flex; justify-content: center; }
.logo-mobile-wrapper svg { height: 100%; width: auto; }

/* Efeito de Pulsação Elétrica */
.logo-symbol-energy {
  animation: logoPulse 5s infinite;
  transform-origin: center;
}

@keyframes logoPulse {
  0%, 70%, 74%, 78%, 100% { 
    filter: drop-shadow(0 0 10px var(--accent-solar)); 
    opacity: 1;
  }
  72%, 76% { 
    filter: none;
    opacity: 0.1;
  }
}

.logo-animated:hover .logo-cls-white { fill: var(--accent-primary); }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 80px;
  background: rgba(10, 13, 16, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color); z-index: 1000;
  display: flex; align-items: center;
}
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-location-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 200, 66, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 200, 66, 0.2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-mobile-actions { display: flex; }
}

/* Quick City Selector Mobile */
.quick-city-selector {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 1500;
    backdrop-filter: blur(10px);
}

.quick-city-selector.open {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.quick-city-header {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--border-color);
}

.quick-city-selector a {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.quick-city-selector a.active {
    background: rgba(245, 200, 66, 0.05);
    color: var(--accent-primary);
}

.quick-city-selector a i {
    width: 20px;
    text-align: center;
    color: var(--accent-primary);
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-family: var(--font-heading); text-transform: uppercase; font-size: 1rem; font-weight: 700; position: relative; }
.nav-links a:hover { color: var(--accent-primary); }
.nav-links a.active { color: var(--accent-primary); }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -1rem;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  min-width: 260px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s; border-radius: 6px;
  padding: 0.5rem 0;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg-primary); padding-left: 1.5rem; color: var(--accent-primary); }

/* Location Selector */
.location-selector .nav-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}
.location-selector:hover .nav-location {
    border-color: var(--accent-primary);
    color: var(--text-main);
    background: rgba(217, 166, 8, 0.05);
}
.location-selector .nav-location i.fa-map-marker-alt {
    color: var(--accent-primary);
    font-size: 0.9rem;
}
.location-selector .dropdown-menu {
    min-width: 200px;
    right: 0;
    left: auto;
}


/* ═══ HERO ═══ */
.hero { 
  min-height: 100vh; 
  padding-top: 80px; 
  display: flex; 
  align-items: center; 
  position: relative; 
  overflow: hidden;
  background-image: linear-gradient(to right, rgba(10, 10, 10, 0.9) 30%, rgba(10, 10, 10, 0.4) 100%), url('../img/hero-klyfe.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: lightning 5s infinite;
}

@keyframes lightning {
  0%, 85%, 100% { filter: brightness(1) contrast(1) saturate(1); }
  88% { filter: brightness(2.2) contrast(0.95) saturate(0.7); }
  90% { filter: brightness(1.3) contrast(1); }
  93% { filter: brightness(3.2) contrast(0.9) saturate(0.6); }
  96% { filter: brightness(1) contrast(1) saturate(1); }
}

/* ═══ HERO INTERNO ═══ */
.hero-internal {
  padding: 180px 0 100px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed !important;
}
.hero-internal h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-top: 1rem;
}

/* ═══ COMPONENTES ADICIONAIS ═══ */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}
.faq-item h4 {
  cursor: pointer;
  transition: color 0.3s;
}
.faq-item h4:hover {
  color: var(--accent-solar);
}

.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 650px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin: 1.5rem 0 2rem; max-width: 550px; line-height: 1.7; }
.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.stat-item h4 { font-family: var(--font-mono); font-size: 2.2rem; color: var(--text-main); }
.stat-item p { font-family: var(--font-heading); color: var(--text-muted); text-transform: uppercase; font-size: 0.9rem; }

/* Page Hero (subpages) */
.page-hero { padding: 8rem 0 4rem; border-bottom: 1px solid var(--border-color); }
.page-hero .breadcrumb { font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.85rem; }
.page-hero .breadcrumb a { color: var(--text-muted); }
.page-hero .breadcrumb a:hover { color: var(--accent-primary); }

/* ═══ SOLUTIONS ACCORDION ═══ */
.accordion-list { max-width: 600px; }
.accordion-item {
  border-bottom: 1px solid var(--border-color); cursor: pointer;
  transition: all 0.3s;
}
.accordion-item:hover { border-color: var(--accent-primary); }
.accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0; font-family: var(--font-heading); font-size: 1.4rem;
  font-weight: 700; text-transform: uppercase;
}
.accordion-header i { font-size: 0.8rem; transition: transform 0.3s; color: var(--text-muted); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--accent-primary); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
}
.accordion-item.active .accordion-body { max-height: 500px; }
.accordion-body-inner { padding-bottom: 1.5rem; }

/* ═══ CARDS SOLUÇÕES ═══ */
.card-solucao {
  background: var(--bg-secondary); padding: 2.5rem; position: relative;
  border-left: 4px solid var(--border-color); transition: all 0.4s ease;
  border-radius: 6px; display: block;
}
.card-solucao:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-solucao.eletrica { border-left-color: var(--accent-primary); }
.card-solucao.automacao { border-left-color: var(--accent-secondary); }
.card-solucao.solar { border-left-color: var(--accent-solar); }
.card-solucao ul { margin-top: 1.5rem; }
.card-solucao ul li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; color: var(--text-muted); }
.card-solucao ul li::before { content: '→'; position: absolute; left: 0; }

/* ═══ FEATURE GRID (Automação style) ═══ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--accent-secondary); transform: translateY(-4px); }
.feature-card .icon {
  width: 50px; height: 50px; border-radius: 12px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: rgba(42, 245, 160, 0.1); color: var(--accent-secondary);
}
.feature-card h4 { font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* ═══ ZIGZAG TIMELINE ═══ */
.zigzag-timeline { position: relative; }
.zigzag-step { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 2rem; margin-bottom: 3rem; }
.zigzag-step .step-content { padding: 2rem; }
.zigzag-step .step-line { display: flex; flex-direction: column; align-items: center; }
.zigzag-step .step-dot {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-primary);
  background: var(--bg-primary);
}
.zigzag-step .step-connector { width: 2px; height: 40px; background: var(--border-color); }
.zigzag-step:nth-child(odd) .step-content:first-child { text-align: right; }
.zigzag-step:nth-child(even) .step-content:first-child { order: 3; }

/* ═══ FAQ ACCORDION ═══ */
.faq-item {
  border: 1px solid var(--border-color); border-radius: 6px;
  margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--accent-primary); }
.faq-question {
  padding: 1.2rem 1.5rem; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  background: var(--bg-secondary); transition: background 0.3s;
}
.faq-question:hover { background: var(--border-color); }
.faq-question i { font-size: 0.8rem; transition: transform 0.3s; color: var(--text-muted); }
.faq-item.active .faq-question { background: var(--border-color); }
.faq-item.active .faq-question i { transform: rotate(45deg); color: var(--accent-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 1000px; }
.faq-answer-inner { padding: 1.2rem 1.5rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; border-top: 1px solid var(--border-color); }

/* ═══ PROJECT CARDS (overlapping) ═══ */
.projects-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  position: relative; overflow: hidden; border-radius: 8px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  transition: all 0.4s ease; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.project-card.large { grid-column: span 2; min-height: 320px; }
.project-card .project-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-primary) 100%);
}
.project-card .project-info { position: relative; z-index: 1; padding: 2rem; }

/* ═══ TESTIMONIALS ═══ */
.testimonial-card { padding: 2rem; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--border-color); }
.testimonial-card .quote { font-size: 2rem; color: var(--accent-primary); font-family: serif; line-height: 1; margin-bottom: 1rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; line-height: 1.7; }
.testimonial-card .author { font-family: var(--font-heading); color: var(--text-main); font-weight: 700; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #A67C00 100%);
  padding: 5rem 0; position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--bg-primary); margin-bottom: 1rem; font-size: 3rem; }
.cta-banner p { color: rgba(10,13,16,0.7); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; }
.cta-banner .btn-dark {
  background: var(--bg-primary); color: var(--text-main);
  padding: 1rem 2rem; border-radius: 4px; font-family: var(--font-heading);
  font-weight: 700; text-transform: uppercase; display: inline-flex;
  align-items: center; gap: 0.5rem; transition: all 0.3s; border: none; cursor: pointer;
}
.cta-banner .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* ═══ STAT CIRCLES ═══ */
.stat-circle {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid var(--accent-secondary); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
}
.stat-circle h4 { font-family: var(--font-mono); font-size: 1.8rem; color: var(--accent-secondary); line-height: 1; }
.stat-circle p { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* ═══ BRANDS ROW ═══ */
.brands-row { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.brands-row span {
  font-family: var(--font-body); font-size: 1rem; color: var(--text-muted);
  transition: color 0.3s; letter-spacing: 0.5px;
}
.brands-row span:hover { color: var(--text-main); }

/* ═══ CALCULATOR ═══ */
.calculator-box {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 2.5rem; max-width: 450px;
}
.calculator-result {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 2.5rem; text-align: center;
}
.calculator-result .big-value { font-family: var(--font-display); font-size: 4rem; color: var(--accent-solar); line-height: 1; }

/* ═══ FOOTER ═══ */
footer { background: var(--bg-primary); border-top: 2px solid var(--accent-primary); padding: 4rem 0 2rem; }

/* ═══ WHATSAPP ═══ */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px;
  background-color: #25D366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 1000; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ═══ ANIMATIONS ═══ */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══ 1. MARQUEE TICKER ═══ */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color); padding: 1rem 0;
  background: var(--bg-secondary);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 25s linear infinite;
}
.marquee-track span {
  flex-shrink: 0; padding: 0 3rem;
  font-family: var(--font-display); font-size: 1.8rem;
  text-transform: uppercase; color: var(--text-muted); letter-spacing: 2px;
  white-space: nowrap;
}
.marquee-track .dot {
  padding: 0 1.5rem; color: var(--accent-primary); font-size: 1rem;
  display: flex; align-items: center;
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ═══ 2. SCROLL SPY NAV ═══ */
.scroll-nav {
  position: fixed; left: 2rem; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 1.2rem;
}
.scroll-nav .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-color); transition: all 0.3s; cursor: pointer;
  position: relative;
}
.scroll-nav .dot.active { background: var(--accent-primary); box-shadow: 0 0 10px rgba(245,200,66,0.4); }
.scroll-nav .dot::after {
  content: attr(data-label); position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.scroll-nav .dot:hover::after { opacity: 1; }

/* ═══ 3. REVEAL CARDS ═══ */
.reveal-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; overflow: hidden; transition: all 0.4s ease;
  cursor: pointer; position: relative;
}
.reveal-card:hover { border-color: var(--accent-primary); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.reveal-card .card-top { padding: 2.5rem 2rem 1.5rem; position: relative; }
.reveal-card .card-top .card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: all 0.4s;
}
.reveal-card:hover .card-top .card-icon { transform: scale(1.1); }
.reveal-card .card-bottom {
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease;
  padding: 0 2rem; background: rgba(0,0,0,0.15);
}
.reveal-card:hover .card-bottom { max-height: 300px; }
.reveal-card .card-bottom-inner { padding: 1.5rem 0; border-top: 1px solid var(--border-color); }
.reveal-card .card-bottom ul li {
  padding: 0.3rem 0; padding-left: 1.2rem; position: relative;
  color: var(--text-muted); font-size: 0.9rem;
}
.reveal-card .card-bottom ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent-primary); }

/* ═══ 4. BENTO GRID ═══ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.bento-grid .bento-item {
  position: relative; overflow: hidden; border-radius: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: all 0.4s; padding: 0;
}
.bento-grid .bento-item:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.bento-grid .bento-item.span-2 { grid-column: span 2; min-height: 320px; }
.bento-grid .bento-item .bento-bg {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--text-main);
}
.bento-grid .bento-item .bento-info { position: relative; z-index: 1; padding: 2rem; background: linear-gradient(transparent, rgba(10,13,16,0.95)); }

/* ═══ 5. SECTION NUMBER ═══ */
.section-numbered { position: relative; }
.section-numbered .section-number {
  position: absolute; top: -1rem; left: 0;
  font-family: var(--font-display); font-size: 12rem; line-height: 1;
  color: var(--text-main); opacity: 0.03; pointer-events: none; z-index: 0;
  user-select: none;
}

/* ═══ FORM ═══ */
.form-group { margin-bottom: 1.5rem; }
.form-control {
  width: 100%; padding: 1rem; background-color: var(--bg-primary);
  border: 1px solid var(--border-color); color: var(--text-main);
  font-family: var(--font-body); border-radius: 4px; transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: var(--accent-primary); }
label {
  display: block; margin-bottom: 0.5rem; font-family: var(--font-heading);
  color: var(--text-muted); text-transform: uppercase; font-size: 0.9rem;
}

/* ═══ MOBILE NAV ═══ */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); background: none; border: none; }
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: var(--bg-secondary); z-index: 2000; padding: 2rem;
  transition: right 0.4s ease; border-left: 1px solid var(--border-color);
  display: flex; flex-direction: column;
}
.mobile-nav.open { right: 0; }
.mobile-nav .close-btn { align-self: flex-end; font-size: 1.5rem; cursor: pointer; color: var(--text-main); background: none; border: none; margin-bottom: 2rem; }
.mobile-nav a { display: block; padding: 1rem 0; font-family: var(--font-heading); font-size: 1.3rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.mobile-nav a:hover { color: var(--accent-primary); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* Mobile Location Selector Styles */
.mobile-location-selector {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease;
}
.mobile-location-selector.highlight {
    animation: mobile-pulse 0.8s ease-in-out 3;
    border-radius: 8px;
}
@keyframes mobile-pulse {
    0% { background: transparent; }
    50% { background: rgba(245, 200, 66, 0.15); }
    100% { background: transparent; }
}
.mobile-location-selector p {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-family: var(--font-mono);
}
.mobile-location-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.mobile-location-links a {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 4px;
    background: rgba(255,255,255,0.02);
    text-transform: none !important;
    transition: all 0.3s;
}
.mobile-location-links a.active {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    background: rgba(217, 166, 8, 0.05);
}
.mobile-location-links a i {
    font-size: 0.9rem;
    color: var(--accent-primary);
    width: 20px;
    text-align: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-showcase { grid-template-columns: repeat(2, 1fr); }
  .project-card.large { grid-column: span 1; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .zigzag-step { grid-template-columns: 40px 1fr; }
  .zigzag-step .step-content:last-child { display: none; }
  .zigzag-step:nth-child(even) .step-content:first-child { order: unset; }
  .scroll-nav { display: none; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid .bento-item.span-2 { grid-column: span 2; }
  .section-numbered .section-number { font-size: 8rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-showcase { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .section-padding { padding: 4rem 0; }
  .cta-banner h2 { font-size: 2rem; }
  .brands-row { gap: 1.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .bento-item.span-2 { grid-column: span 1; }
  .marquee-track span { font-size: 1.2rem; padding: 0 1.5rem; }
  .section-numbered .section-number { font-size: 6rem; }
}

/* ═══ SOLAR CALCULATOR ═══ */
.calc-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.calc-input-group { display: flex; flex-direction: column; gap: 2rem; }
.calc-slider-wrap { position: relative; }
.calc-label { 
  display: flex; justify-content: space-between; 
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.calc-label span:last-child { color: var(--accent-solar); font-weight: bold; font-size: 1.2rem; }

input[type=range] {
  -webkit-appearance: none; width: 100%; background: transparent;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 6px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
  height: 24px; width: 24px; border-radius: 50%; background: var(--accent-solar);
  cursor: pointer; -webkit-appearance: none; margin-top: -9px;
  box-shadow: 0 0 15px var(--accent-solar);
}

.calc-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.result-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
  padding: 2rem; border-radius: 4px; text-align: center;
  transition: transform 0.3s;
}
.result-card:hover { transform: translateY(-5px); border-color: var(--accent-solar); }
.result-card h4 { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; }
.result-card .value { font-family: var(--font-heading); font-size: 2rem; color: var(--text-main); }
.result-card .unit { font-size: 0.9rem; color: var(--accent-solar); }

@media (max-width: 1024px) {
  .calc-container { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
}

/* ═══ NEW PREMIUM FOOTER ═══ */
.main-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  color: var(--text-main);
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 30px;
  height: 2px;
  background: var(--accent-primary);
}
.footer-logo { display: flex; align-items: center; margin-bottom: 1.5rem; width: fit-content; height: 50px; }
.footer-logo svg { height: 100%; width: auto; display: block; }
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.google-reviews { display: flex; flex-direction: column; gap: 0.5rem; }
.google-reviews .stars { color: var(--accent-solar); font-size: 0.8rem; }
.google-reviews span { color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-mono); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent-primary); transform: translateX(5px); }

.contact-info {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.8rem;
  line-height: 1.5;
}
.contact-info i { color: var(--accent-primary); margin-top: 3px; }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.copyright p { color: var(--text-muted); font-size: 0.9rem; }
.developer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.developer img {
  height: 22px;
  opacity: 0.6;
  transition: opacity 0.3s;
  filter: grayscale(1);
}
.developer a:hover img { opacity: 1; filter: grayscale(0); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .main-footer { padding: 4rem 0 2rem; }
}

/* ═══ HERO BLACKOUT ANIMATION ═══ */
.hero {
  transition: filter 0.8s ease, opacity 0.8s ease;
  will-change: filter, opacity;
}

/* Efeito de Flicker ao 'Cair a Energia' */
.hero.shutting-down {
  animation: powerFlicker 1.2s ease-out forwards !important;
}

@keyframes powerFlicker {
  0% { filter: brightness(1) contrast(1); opacity: 1; }
  10% { filter: brightness(0.3) contrast(1.5); opacity: 0.8; }
  20% { filter: brightness(1) contrast(1); opacity: 1; }
  30% { filter: brightness(0.2) contrast(2); opacity: 0.6; }
  40% { filter: brightness(0.8) contrast(1.2); opacity: 0.9; }
  50% { filter: brightness(0) contrast(1); opacity: 0.4; }
  60% { filter: brightness(0.4) contrast(1.5); opacity: 0.7; }
  100% { filter: brightness(0.1) grayscale(0.5); opacity: 0.3; }
}

/* Estado de Energia Desligada (após o flicker) */
.hero.power-off {
  animation: none !important;
  filter: brightness(0.05) grayscale(0.8);
  opacity: 0.2;
}

.hero.power-off .bg-blueprint::before {
  opacity: 0;
}
