﻿/*
Theme Name: EcoPower Hub WP
Theme URI: https://ecopower.com.br
Author: EcoPower
Description: Tema Wordpress contendo exclusivamente a PÃ¡gina Inicial (Hub de Links).
Version: 1.2
*/

/* Global Styles */
:root {
    --primary-green: #00A651;
    /* Ecopower Institutional Green */
    --primary-dark: #007A3E;
    --secondary-yellow: #FFD700;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --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);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    background-image: linear-gradient(to bottom, #f0fdf4, #fff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 480px;
    /* Mobile-first constraint for a "Links Hub" feel */
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 1. Hero Section */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container svg {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.franchise-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 90%;
}

.subheadline .highlight {
    color: var(--primary-green);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(0, 166, 81, 0.1) 0%, rgba(0, 166, 81, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
}

.social-proof {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 166, 81, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.social-proof i {
    color: var(--primary-green);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background-color: rgba(0, 166, 81, 0.05);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Mobile specific spacing */
.mobile-cta-group {
    margin-bottom: 2.5rem;
    /* Increased spacing as requested */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 2. Segmentation Block */
.section-title {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0.5rem auto 0;
    border-radius: var(--radius-full);
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-btn {
    background-color: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-medium);
    border: 1px solid transparent;
}

.card-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 166, 81, 0.1);
    color: var(--primary-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.residential .icon-box {
    color: #eab308;
    /* Yellowish for Sun */
    background-color: rgba(234, 179, 8, 0.1);
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.card-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.arrow-icon {
    margin-left: auto;
    color: var(--text-light);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.card-btn:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--primary-green);
    opacity: 1;
}

/* 3. Authority Block */
.authority-block {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.authority-list {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.authority-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.check-icon {
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* 4. Content Block */
.content-block {
    margin-top: 1rem;
}

.content-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.content-text {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.btn-content {
    background-color: var(--secondary-yellow);
    color: #1e293b;
    /* Dark text for contrast on yellow */
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.btn-content:hover {
    background-color: #fbbf24;
    transform: scale(1.02);
}

/* 5. Extra Links */
.extra-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-small {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-small:hover {
    background-color: var(--card-bg);
    /* Slight highlight */
    color: var(--primary-green);
    border-color: rgba(0, 166, 81, 0.2);
    box-shadow: var(--shadow-sm);
}

/* 6. Footer */
.footer {
    text-align: center;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.footer-contact {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

.copyright {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-medium);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 166, 81, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
        top: 0;
    }

    20% {
        left: 100%;
        top: -100%;
    }

    /* Fast wipe */
    100% {
        left: 100%;
        top: -100%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    /* Shine effect */
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

/* Card Button Enhancements - Make them pop! */
.card-btn {
    border: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    /* Subtle gradient */
    transition: all 0.3s ease;
}

.card-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 12px 20px -5px rgba(0, 166, 81, 0.15);
    /* Green glowish shadow */
    background: white;
}

.card-btn .icon-box {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card-btn:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-green);
    color: white;
    /* Invert icon colors for impact */
}



/* Arrow pop */
.card-btn:hover .arrow-icon {
    color: var(--primary-green);
    transform: translateX(5px);
}

/* Content/Magnet Button */
.btn-content {
    box-shadow: 0 4px 0 #d97706;
    /* Hard shadow for 3D effect */
    transition: all 0.2s;
}

.btn-content:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #d97706;
}

/* Logo Image */
.logo-img {
    max-width: 200px;
    /* Reduced from 250px for better proportion */
    height: auto;
    margin-bottom: 0.5rem;
    display: block;
}

/* Base CTA styles */
.desktop-only-cta {
    display: none;
    width: 100%;
    margin-top: 2rem;
    gap: 1rem;
    flex-direction: column;
}

/* Arrow rotation fix for mobile */
.card-btn .arrow-icon {
    margin-left: auto;
    color: var(--text-light);
    opacity: 0.5;
    transition: var(--transition-fast);
}

/* Responsive adjustments */
@media (min-width: 640px) {

    /* Tablet improvements */
    .container {
        padding: 3rem 2rem;
        max-width: 600px;
    }
}

@media (min-width: 1024px) {

    /* Desktop Layout - Compact Single Screen */
    body {
        align-items: center;
        justify-content: center;
        padding: 0;
        background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
        height: 100vh;
        overflow: hidden;
    }

    .container {
        max-width: 1200px;
        /* Wider to allow horizontal spreading */
        width: 95%;
        height: 95vh;
        display: grid;
        grid-template-columns: 40% 55%;
        /* Fixed proportions */
        gap: 4rem;
        align-items: center;
        padding: 0 2rem;
        background-color: transparent;
    }

    /* Left Column: Branding & Hero */
    .hero-section {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-right: 2rem;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }

    .logo-container svg,
    .logo-img {
        margin-left: 0;
        max-width: 240px;
    }

    .franchise-name {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 1.125rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .social-proof {
        align-self: flex-start;
        background-color: white;
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(0, 166, 81, 0.1);
        margin-bottom: 2rem;
        white-space: nowrap;
    }

    /* Desktop CTAs in Left Column */
    .desktop-only-cta {
        display: flex;
        margin-top: 2rem;
        /* Was auto, causing huge gap */
        width: 100%;
    }

    .mobile-cta-group {
        display: none;
    }

    /* Right Column: Content Feed - Compact "Dashboard" Style */
    .links-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: 100%;
        padding: 1rem 0;
        justify-content: center;
        /* Vertically center the whole stack */
    }

    /* 1. Segmentation - Compact Cards */
    .section-title {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .section-title::after {
        margin: 0.25rem 0 0;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .card-btn {
        flex-direction: row;
        /* Back to row for compact height? No, column is cleaner */
        align-items: center;
        text-align: left;
        padding: 1rem 1.5rem;
        gap: 1rem;
        height: auto;
        background-color: white;
        border: 1px solid #e5e7eb;
    }

    .card-btn .icon-box {
        margin-bottom: 0;
    }

    .card-btn .card-content {
        flex: 1;
    }

    .card-btn .card-content h3 {
        font-size: 1rem;
    }

    .card-btn .arrow-icon {
        margin: 0;
        transform: none;
        /* Reset rotation */
    }

    /* 2. Authority - Horizontal Row */
    .authority-block {
        padding: 1rem 1.5rem;
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .authority-block .section-title {
        display: none;
        /* Hide title to save space, or make smaller */
    }

    .authority-list {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 0;
    }

    .authority-list li {
        font-size: 0.85rem;
        flex: 1;
        justify-content: center;
        background: white;
        padding: 0.75rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid #f3f4f6;
    }

    /* 3. Content Block - Horizontal Strip */
    .content-block {
        margin-top: 0;
    }

    .content-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 2rem;
    }

    .content-card::before {
        display: none;
        /* Remove heavy animation for cleaner look */
    }

    .content-text {
        margin-bottom: 0;
        flex: 1;
    }

    .content-text h3 {
        font-size: 1.1rem;
    }

    .content-text p {
        font-size: 0.9rem;
        display: none;
        /* Hide description on very tight screens, or keep? Let's keep title only or short desc */
    }

    .btn-content {
        width: auto;
        white-space: nowrap;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* 4. Extra Links & Footer - Minimal */
    .extra-links {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        margin-top: 0;
        /* Remove auto margin to close gap */
    }

    .extra-links .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .footer {
        margin-top: 0.5rem;
        padding-top: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f3f4f6;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .floating-whatsapp {
        display: none;
        /* Not needed on desktop as we have the button */
    }
}
