/* ==========================================================================
   Domain - Auditoria Financeira | CSS Styles
   Цветовая палитра:
   - Основной фон: градиент от #1DD1A1 к #5F27CD
   - Акценты: #FFC312 (жёлтый), #FF6B6B (коралловый)
   - Текст: #222F3E (графитовый)
   - Блоки: #F9F6F1 (песочный)
   ========================================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222F3E;
    background: linear-gradient(135deg, #1DD1A1 0%, #5F27CD 100%);
    min-height: 100vh;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: 80px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(34, 47, 62, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideInLeft 0.8s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: #1DD1A1;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #FFC312;
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #F9F6F1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1DD1A1, #FFC312);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1DD1A1;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta .btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #FFC312, #FF6B6B);
    color: #222F3E;
    border: none;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 195, 18, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1DD1A1;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1DD1A1 0%, #5F27CD 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 47, 62, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #F9F6F1;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInLeft 1.2s ease;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #F9F6F1;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInRight 1.2s ease;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: scaleIn 1.5s ease;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: rgba(249, 246, 241, 0.1);
    color: #F9F6F1;
    border: 2px solid #F9F6F1;
}

.btn-secondary:hover {
    background: #F9F6F1;
    color: #222F3E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 246, 241, 0.3);
}

/* Hover для кнопки Ver Serviços на странице обrigado */
a[href="./#servicos"]:hover {
    background: #5F27CD !important;
    color: #F9F6F1 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(95, 39, 205, 0.3) !important;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 80px 0;
    animation: fadeInUp 0.8s ease;
}

.section-alt {
    background: rgba(249, 246, 241, 0.95);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #222F3E;
    animation: fadeInUp 0.8s ease;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    animation: fadeInUp 1s ease;
}

/* ==========================================================================
   CARDS & GRID
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: #F9F6F1;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(34, 47, 62, 0.1);
    animation: scaleIn 0.8s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 47, 62, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1DD1A1, #5F27CD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #F9F6F1;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222F3E;
}

.card-description {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, #F9F6F1 0%, #fff 100%);
    padding: 40px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    animation: fadeInUp 0.8s ease;
}

.service-card:hover {
    border-color: #1DD1A1;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(29, 209, 161, 0.2);
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222F3E;
}

.service-price {
    font-size: 20px;
    font-weight: 600;
    color: #5F27CD;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1DD1A1;
    font-weight: bold;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(249, 246, 241, 0.95);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(34, 47, 62, 0.1);
    animation: scaleIn 0.8s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222F3E;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1DD1A1;
    box-shadow: 0 0 15px rgba(29, 209, 161, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group a {
    color: #5F27CD;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #1DD1A1;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(45deg, #1DD1A1, #5F27CD);
    color: #F9F6F1;
    font-size: 18px;
    font-weight: 600;
    padding: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(29, 209, 161, 0.4);
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(34, 47, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    color: #F9F6F1;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: #1DD1A1;
    text-decoration: underline;
}

.btn-accept-cookies {
    background: linear-gradient(45deg, #FFC312, #FF6B6B);
    color: #222F3E;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 195, 18, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, #222F3E 0%, #1a1f2e 100%);
    color: #F9F6F1;
    padding: 60px 0 20px;
    animation: fadeInUp 0.8s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1DD1A1;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #1DD1A1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFC312;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #F9F6F1;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #1DD1A1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 246, 241, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom-content p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-disclaimer {
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Sobre a Domain - responsive */
    #sobre div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    #localizacao div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 0 15px;
    }
    
    .contact-form {
        margin: 0 15px;
        padding: 25px 15px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.fade-in {
    animation: fadeInUp 0.8s ease;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}
