/* 
   LDA Eletricidade - Design System
   Theme: Dark Mode / High Voltage
   Colors: Black (#0A0A0A) + Electric Yellow (#FFD700)
   Fonts: Clash Display + General Sans
*/

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600&display=swap');

:root {
    /* Colors */
    --color-primary: #FFD700;
    /* Electric Yellow */
    --color-primary-glow: rgba(255, 215, 0, 0.4);

    --color-bg: #0A0A0A;
    /* Deep Black */
    --color-surface: #141414;
    /* Dark Gray */
    --color-surface-hover: #1E1E1E;
    /* Lighter Gray */

    --color-text-main: #FFFFFF;
    --color-text-muted: #A0A0A0;
    --color-border: #333333;

    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'General Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --section-gap: 120px;
    --grid-gap: 2rem;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--color-primary-glow);
    background-color: #FFEA00;
}

/* Typography Utilities */
.display-text {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, #FFFFFF, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HEADER REMOVED PER REQuest */

/* HERO SECTION - Split Asymmetric */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
    overflow: hidden;
}

.hero-logo {
    display: block;
    width: 250px;
    margin-bottom: 2rem;
}

.hero-logo svg {
    max-width: 100%;
    height: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    border-left: 2px solid var(--color-primary);
    padding-left: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-img {
    filter: grayscale(0%) contrast(110%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 1;
}

/* Decoration */
.bolt-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 700;
}

/* SERVICES SECTION - Bento Grid */
.services {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 215, 0, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}

.bento-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

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

/* Grid Spans */
.span-6 {
    grid-column: span 6;
}

.span-4 {
    grid-column: span 4;
}

.span-8 {
    grid-column: span 8;
}

/* Large card */

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo {
        margin: 0 auto 2rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
        border-left: none;
        border-top: 2px solid var(--color-primary);
        padding-top: 1rem;
        padding-left: 0;
    }

    .hero-image-wrapper {
        height: 50vh;
    }

    .span-6,
    .span-4,
    .span-8 {
        grid-column: span 12;
    }
}

/* DIFFERENTIALS SECTION - Timeline */
.differentials {
    padding: var(--section-gap) 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
    margin: 0 auto 4rem;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Central Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #333;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradient to simulate filling light */
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    background-size: 100% 200%;
    animation: timelineFlow 3s linear infinite;
}

@keyframes timelineFlow {
    0% {
        background-position: 0% 200%;
    }

    100% {
        background-position: 0% -200%;
    }
}

/* Timeline Item Structure */
.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
}

.timeline-empty {
    width: 45%;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    position: relative;
    /* Keep it above line */
}

/* Hover effect for marker */
.timeline-item:hover .timeline-marker {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

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

.timeline-content.right {
    text-align: left;
}

.timeline-content.left {
    text-align: right;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        /* Shift line to left */
    }

    /* Item 1, 3 (Even children): Content Left -> Reverse to put marker left */
    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: flex-start;
    }

    /* Item 2, 4 (Odd children): Content Right -> Keep row to keep marker left */
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .timeline-empty {
        display: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .timeline-marker svg {
        width: 20px;
        height: 20px;
    }
}

/* CTA BANNER SECTION - Spotlight */
.cta-banner {
    padding: 6rem 0;
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    /* Noise texture simulation using radial gradient */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-bg);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-bg);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* Inverse Button */
.btn-inverse {
    background-color: var(--color-bg);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-inverse:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

/* FOOTER SECTION */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* MODAL STYLES - Dark Theme */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    z-index: 2;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

/* FORM STYLES - Dark Theme */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    background-color: #0A0A0A;
    color: #FFF;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #000;
    box-shadow: 0 0 0 1px var(--color-primary-glow);
}

.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-feedback.success {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* FLOATING WHATSAPP BUTTON */
.fab-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 900;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.fab-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp svg {
    width: 32px;
    height: 32px;
}

/* Include Select Wrapper from previous clean-up if lost */
.select-wrapper {
    position: relative;
}