/* ==========================================================================
   ELETROESTE - Soluções em Eletricidade
   Stylesheet principal - Mobile First
   ========================================================================== */

/* RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0F3D6B;
    --navy-dark: #0A2E52;
    --orange: #E87722;
    --orange-hover: #C8651A;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-text: #1A1A1A;
    --whatsapp: #25D366;
    --whatsapp-hover: #1DA851;

    --font-heading: 'Montserrat', 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', 'Open Sans', system-ui, sans-serif;

    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

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

.text-orange {
    color: var(--orange);
}

/* TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-text);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 64px 0;
}

@media (min-width: 768px) {
    section { padding: 80px 0; }
}

/* BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    white-space: nowrap;
}

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

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

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

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

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

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

.btn--white:hover {
    background: var(--gray-light);
    color: var(--orange-hover);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: background var(--transition);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
    letter-spacing: 1px;
}

.header__logo img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.nav {
    display: none;
}

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

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-weight: 500;
    color: var(--gray-text);
    transition: color var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--orange);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header__cta {
    display: none;
}

@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

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

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1023px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - var(--header-h));
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 32px 24px;
        transition: right var(--transition);
        display: block;
    }

    .nav.is-open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.1rem;
        font-weight: 600;
    }
}

/* HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 64px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__circuit {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.hero__particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatParticle 8s infinite ease-in-out;
}

.hero__particles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero__particles span:nth-child(2) { top: 25%; left: 80%; animation-delay: 1s; }
.hero__particles span:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; }
.hero__particles span:nth-child(4) { top: 75%; left: 70%; animation-delay: 3s; }
.hero__particles span:nth-child(5) { top: 40%; left: 50%; animation-delay: 4s; }
.hero__particles span:nth-child(6) { top: 85%; left: 30%; animation-delay: 1.5s; }
.hero__particles span:nth-child(7) { top: 20%; left: 60%; animation-delay: 2.5s; }
.hero__particles span:nth-child(8) { top: 50%; left: 90%; animation-delay: 3.5s; }
.hero__particles span:nth-child(9) { top: 70%; left: 45%; animation-delay: 0.5s; }
.hero__particles span:nth-child(10) { top: 30%; left: 25%; animation-delay: 4.5s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(20px, -30px); opacity: 0.8; }
}

.hero__inner {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero__bolt {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    animation: pulseBolt 2s infinite ease-in-out;
    filter: drop-shadow(0 0 16px rgba(232, 119, 34, 0.6));
}

@keyframes pulseBolt {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(232, 119, 34, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 24px rgba(232, 119, 34, 0.9)); }
}

.hero__title {
    font-size: clamp(1.85rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 36px;
    opacity: 0.92;
}

.hero__cta {
    margin-bottom: 32px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    font-size: 0.9rem;
    opacity: 0.92;
}

.hero__badges li {
    font-weight: 500;
}

/* FEATURE CARDS (Why)
   ========================================================================== */
.why {
    background: var(--gray-light);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--4 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

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

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

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
}

/* SERVICES
   ========================================================================== */
.services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid #E5E9EF;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    background: rgba(232, 119, 34, 0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 18px;
    flex: 1;
}

.service-card__cta {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap var(--transition);
    display: inline-flex;
    gap: 4px;
}

.service-card__cta:hover {
    gap: 10px;
    color: var(--orange-hover);
}

/* ABOUT
   ========================================================================== */
.about {
    background: var(--gray-light);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

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

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.about__image svg {
    width: 100%;
    height: auto;
    display: block;
}

.about__tag {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about__content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about__content p {
    color: #444;
    margin-bottom: 16px;
}

.about__list {
    margin: 24px 0 28px;
    display: grid;
    gap: 10px;
}

.about__list li {
    color: var(--gray-text);
    font-weight: 500;
}

/* CTA BANNER
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
    color: var(--white);
    padding: 48px 0;
}

.cta-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

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

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 4px;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* TESTIMONIALS
   ========================================================================== */
.testimonials {
    background: var(--white);
}

.testimonials__carousel {
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials__track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    flex: 0 0 100%;
    padding: 32px;
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.testimonial__stars {
    color: var(--orange);
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.testimonial p {
    font-style: italic;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 20px;
}

.testimonial footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial footer strong {
    color: var(--navy);
    font-weight: 700;
}

.testimonial footer span {
    color: #666;
    font-size: 0.9rem;
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.carousel-btn:hover {
    background: var(--orange);
    transform: scale(1.1);
}

.testimonials__dots {
    display: flex;
    gap: 8px;
}

.testimonials__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E0;
    transition: background var(--transition);
}

.testimonials__dots button.is-active {
    background: var(--orange);
    width: 28px;
    border-radius: 5px;
}

/* FAQ
   ========================================================================== */
.faq {
    background: var(--gray-light);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq__item {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #E5E9EF;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    color: var(--orange);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform var(--transition);
}

.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 24px 20px;
    color: #555;
    line-height: 1.7;
}

/* FOOTER
   ========================================================================== */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
}

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

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer__logo img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

.footer__col p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer__col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__col ul {
    display: grid;
    gap: 10px;
}

.footer__col ul li,
.footer__col ul a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer__col ul a:hover {
    color: var(--orange);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.footer__bottom {
    background: rgba(0,0,0,0.25);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 99;
    animation: pulseWhats 2s infinite;
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulseWhats {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-text);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    font-weight: 500;
}

.whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-left: 6px solid var(--gray-text);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
    opacity: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-float__tooltip {
        display: none;
    }
}

/* UTILITIES & ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
