/* DPieri Contabilidade - Main Styles */

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

:root {
    --primary-dark: #0A1F44;
    --primary-blue: #1E3A5F;
    --accent-cyan: #00D4FF;
    --accent-light: #4DD0E1;
    --text-white: #FFFFFF;
    --text-gray: #E0E0E0;
    --text-dark: #2C3E50;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/bghero.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero h1 .highlight {
    color: var(--accent-cyan);
    display: block;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.4;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.hero-feature::before {
    content: '✓';
    background: var(--accent-cyan);
    color: var(--primary-dark);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-light) 100%);
    color: var(--primary-dark);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

/* Background colors - alternating blue and white */
.bg-dark {
    background: var(--primary-dark);
}

.bg-blue {
    background: var(--primary-blue);
}

.bg-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.bg-light .section-title {
    color: var(--primary-dark);
}

.bg-light .section-subtitle {
    color: #2C3E50;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--accent-cyan);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: #FFFFFF;
    border-left: 4px solid #4DD0E1;
    border-bottom: 1px solid #E0E0E0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.service-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.service-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.service-item.visible {
    animation: slideInLeft 0.6s ease forwards;
}

.service-item:hover {
    background: #F8F9FA;
    border-left-color: #00D4FF;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.service-item .service-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(77, 208, 225, 0.1) 100%);
    border-radius: 10px;
    color: #00D4FF;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(77, 208, 225, 0.2) 100%);
    transform: scale(1.1);
}

.service-item h3 {
    color: #0A1F44;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* Segments */
.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.segment-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.segment-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(77, 208, 225, 0.2) 100%);
    border-radius: 15px;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.segment-card:hover .segment-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(77, 208, 225, 0.3) 100%);
    transform: scale(1.1) rotate(5deg);
}

.segment-card.visible {
    animation: slideInLeft 0.6s ease forwards;
}

.segment-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

.segment-card h3 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.segment-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.benefit-card:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.benefit-check {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-check {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.benefit-card h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
}

.benefit-card p {
    color: #2C3E50;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section - Now with distinct styling */
.cta-section {
    text-align: center;
    padding: 60px 0;
    margin-top: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 30px;
}

.bg-light .cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a2f4d 0%, #0d1929 100%);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 45px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.3px;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-content {
        padding: 120px 20px 60px;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .service-item {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .service-item .service-icon {
        min-width: 45px;
        width: 45px;
        height: 45px;
    }

    .service-item h3 {
        font-size: 1.05rem;
    }

    .services-grid,
    .segments-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-item {
        min-width: auto;
    }

    section {
        padding: 50px 0;
    }

    .cta-section {
        padding: 40px 0;
        margin-top: 30px;
    }

    .footer {
        padding: 2.5rem 0;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content {
        padding: 120px 25px 60px;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .cta-section {
        padding: 40px 20px;
        margin-top: 25px;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0 15px;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #22c55e;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float .icon {
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float .icon {
        font-size: 24px;
    }
}