/* ============================================
   Jilceu Castro Contábil - Landing Page
   Design: Elegância Moderna com Profundidade
   Paleta: Azul Corporativo (#0052CC) + Dourado (#D4AF37)
   ============================================ */

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0052CC;
    --primary-dark: #0041A0;
    --primary-light: #E3F2FD;
    --accent: #D4AF37;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --bg-neutral: #F5F5F5;
    --border-color: #E0E0E0;
    --footer-bg: #1A1A1A;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
}

.italic {
    font-style: italic;
}

.font-semibold {
    font-weight: 600;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn i {
    font-size: 0.875em;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--text-light);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-dropdown {
    position: static;
}

.nav-mobile .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--primary-light);
    margin-top: 0.5rem;
    display: none;
}

.nav-mobile .nav-dropdown.active .dropdown-menu {
    display: block;
}

.nav-link-mobile {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link-mobile:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background-image: url('img/banner')!important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;

}

.hero-grid {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    border-radius: 9999px;
}

.hero-badge span {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 30rem;
    color: black!important;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 640px) {
    .trust-indicators {
        flex-direction: row;
        gap: 3rem;
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.trust-label {
    font-size: 0.875rem;
    color: black!important;
}

.hero-image {
    display: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

@media (min-width: 1024px) {
    .hero-image {
        display: none;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 5rem var(--spacing-sm);
    background-color: var(--primary-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
    order: 2;
}

@media (min-width: 1024px) {
    .about-image {
        order: 1;
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    order: 1;
}

@media (min-width: 1024px) {
    .about-content {
        order: 2;
    }
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.values-list i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.value-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.value-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
    padding: 5rem var(--spacing-sm);
    background-color: var(--text-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.problem-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.problem-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.problem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-detailed {
    padding: 5rem var(--spacing-sm);
    background-color: var(--bg-neutral);
}

.services {
    padding: 5rem var(--spacing-sm);
    background-color: var(--bg-neutral);
}

.section-header {
    text-align: center;
    margin-bottom: 0;
    display: none;
    
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.services-grid {
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Services Grid Detailed */
.services-grid-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid-detailed {
        grid-template-columns: repeat(3, 2fr);
    }
}

/* Ajustar o 4º e 5º cards para ficarem na segunda linha */
@media (min-width: 1024px) {
    .service-card-detailed:nth-child(4),
    .service-card-detailed:nth-child(5) {
        grid-column: auto;
    }
    
    /* Centralizar os 2 cards da segunda linha */
    .services-grid-detailed {
        justify-items: start;
    }
    
    .service-card-detailed:nth-child(4) {
        grid-column: 1;
    }
    
    .service-card-detailed:nth-child(5) {
        grid-column: 2;
    }
}

.service-card {
    background-color: var(--text-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.service-card.featured {
    border: 2px solid var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-list i {
    color: var(--primary);
}

.services-footer {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Detailed Services Section */
..section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: none;
}

.services-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .services-title {
        font-size: 2.5rem;
    }
}

.services-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 40rem;
    margin: 0 auto;
}

.service-card-detailed {
    background-color: var(--text-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-detailed:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.service-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #E8F1FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-detailed h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 1.5rem 1.5rem 0.5rem;
}

.service-subtitle-card {
    padding: 0 1.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.service-details {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-details li {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-service {
    margin: 0 1.5rem 1.5rem;
    background-color: #0052CC;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-service:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 5rem var(--spacing-sm);
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.cta-section .btn {
    margin-top: 1rem;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    padding: 5rem var(--spacing-sm);
    background-color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.team-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem var(--spacing-sm) 2rem;
    background-color: var(--footer-bg);
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h3,
.footer-col h4 {
    justify-content: center!important; /* horizontal */
    align-items: center!important;     /* vertical */
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-col p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col li,
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .services-grid-detailed {
        grid-template-columns: 1fr;
    }

    .services-title {
        font-size: 1.5rem;
    }
}

/* Responsividade para grid 3-2 */
@media (min-width: 1024px) and (max-width: 1439px) {
    .services-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .services-grid-detailed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: slideIn 0.5s ease-out;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.service-card {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
