/*
========================================
Site: Ferreira & Silva - Consultoria Empresarial
Author: Thiago Nunes
Cliente: Ferreira & Silva
Desenvolvido em: 2025
Arquivo: style.css
========================================
*/

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease forwards;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #0a0a0a;
    --dark-section: #1a1a1a;
    --dark-card: #151515;
    --blue-primary: #4a90e2;
    --blue-button: #5b9dd9;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-light-gray: #808080;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0f11;
    color: var(--text-white);
    line-height: 1.6;
    opacity: 0;
    animation: pageLoad 0.8s ease-out forwards;
    overflow-x: hidden;
}

body.page-exit {
    animation: pageExit 0.4s ease-in forwards;
}

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

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background-color: #23262c;
    padding: 12px 0;
    font-size: 13px;
    color: #B4C9E9;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i,
.header-phone i {
    font-size: 15px;
    color: #B4C9E9;
    margin: var(--e-icon-list-icon-margin, 0 calc(var(--e-icon-list-icon-size, 1em) * .25) 0 0);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: transparent;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    background-color: #0f0f11;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--blue-primary);
}

.btn-header {
    background-color: #274C87;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s;
}

.btn-header:hover {
    background-color: #1f3b6a;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 100px 0;
    margin-top: -90px;
    padding-top: 180px;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.9) 100%), url('../images/background-principal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 200px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/background-principal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.hero-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 130px;
    font-weight: 400;
    text-transform: capitalize;
    font-style: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: 40px;
    color: #c1c6ce;
    letter-spacing: 2px;
}

.hero-subtitle-blue {
    color: #274c87;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-images {
    display: flex;
    margin-left: -10px;
}

.stat-images img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
    object-fit: cover;
    margin-left: -10px;
}

.stat-text {
    text-align: left;
}

.stat-text strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-white);
}

.stat-text span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #95663a;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.2;
}

.service-item {
    margin-bottom: 50px;
    position: relative;
}

.service-number {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.service-category {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    font-style: normal;
    line-height: 1.5em;
    color:#c1c6ce;    
    margin-bottom: 30px;
    position: sticky;
    background-color: #121315;
    padding: 20px 20px;
    display: flex;
    gap: 15px;
}

.service-item:nth-child(2) .service-category,
.service-item:nth-child(3) .service-category {
    background-color: #121315;
}

.service-item:nth-child(2) .service-category,
.service-item:nth-child(4) .service-category {
    background-color: #171a1d;
}

.service-item:nth-child(1) .service-category {
    z-index: 14;
}

.service-item:nth-child(2) .service-category {
    z-index: 13;
}

.service-item:nth-child(3) .service-category {
    z-index: 12;
}

.service-item:nth-child(4) .service-category {
    z-index: 11;
}

.service-category::before {
    content: attr(data-number);
    font-size: 1rem;
    color: var(--text-gray);
}

.service-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.service-image {
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-text h4 {
    color: #c1c6ce;  
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
}

.service-text p {
    color: #737f91;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.8;

}

.btn-service {
    display: inline-block;
    background-color: #274C87;
    color: var(--text-white);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 25px;
}

.btn-service:hover {
    background-color: #1f3b6a;
    transform: translateY(-2px);
}

.service-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-tags span {
    color: #737f91;
    padding: 6px 16px;

    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 60px 0;
    background-color: #0f0f11;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-header .section-label {
    color: #95663a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.testimonials-header .section-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.2;
}

.rating-summary {
    display: flex;
    justify-content: center;
}

.rating-average {
    text-align: center;
}

.rating-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    display: block;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.3rem;
    margin: 8px 0;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #171a1d;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-quote {
    margin-bottom: 30px;
}

.testimonial-quote i {
    font-size: 2rem;
    color: #274c87;
    margin-bottom: 20px;
}

.testimonial-quote p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #274c87;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-white);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 400;
}


.testimonial-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-text p {
    font-size: 1.3rem;
    color: var(--text-white);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-author span {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 60px 0;
}

.cta-content {
    background-color: #171a1d;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.cta-image {
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.cta-label {
    color: #95663a;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: #c1c6ce;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 400;
}

.cta-text p {
    color: #737f91;
    margin-bottom: 35px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.btn-cta {
    background-color: #274C87;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: #1f3b6a;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0f0f11;
    padding: 60px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    padding-top: 40px;
}

.footer-col h4 {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.3em;
}

.footer-col h5 {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-col p {
    color: #c0c0c0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col i {
    color: #c0c0c0;
    font-size: 14px;
    width: 18px;
}

.footer-col a {
    display: block;
    color: #737f91;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #274C87;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 5px;
    object-fit: contain;
}

.footer-subtitle {
    color: #8a9a9d;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-copyright {
    color: #737f91;
    font-size: 0.8rem;
}

.footer-bottom-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link {
    color: #737f91;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #274C87;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #274C87;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4a88c9;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .container {
        padding: 0 30px;
    }
    .logo img {
        height: 35px;
        width: auto;
        object-fit: contain;
    }

    .btn-header {
        display: none;
    }

    .hero {
        background-attachment: scroll;
        background-position: center center;
    }

    .hero::before {
        background-attachment: scroll;
        background-position: center center;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: auto !important;
        right: -100% !important;
        bottom: auto !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        gap: 40px;
        transition: right 0.3s ease-in-out;
        z-index: 9998;
        margin: 0 !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu .nav-link {
        font-size: 1.5rem;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 300px;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 10000;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .service-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        max-width: 100%;
    }

    .testimonials-header {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
        max-width: 100%;
    }

    .testimonials-header .section-label,
    .testimonials-header .section-title {
        text-align: center;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* 404 Error Page - 968px */
    .error-number {
        font-size: 8rem;
        gap: 15px;
    }

    .number-0 i {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2.5rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Contact Page - 968px */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 30px;
    }

    /* Services Page - 968px */
    .services-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        max-width: 100%;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .hero,
    .contact-hero,
    .services-hero {
        margin-top: 0 !important;
        padding-top: 140px !important;
        z-index: 1 !important;
        position: relative !important;
    }
    .hero-bottom {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .hero-description {
        text-align: center !important;
    }
    .testimonials-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        padding: 0 20px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .testimonials-grid::-webkit-scrollbar {
        display: none !important;
    }
    .testimonial-card {
        min-width: 280px !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
        padding: 30px 25px !important;
    }
    .testimonials-header .section-title {
        font-size: 2rem !important;
    }
    .container {
        padding: 0 40px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        background-color: transparent !important;
        transition: background-color 0.3s ease !important;
    }
    .navbar.scrolled {
        background-color: #0f0f11 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    .navbar .container {
        padding: 0 20px;
    }

    .header {
        display: none;
    }

    /* Regra geral para prevenir overflow horizontal */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix para elementos que vazam do container */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .btn-submit,
    .contact-form-container,
    .contact-info-container,
    .service-card,
    .error-content {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix para grids que podem causar overflow */
    .contact-wrapper,
    .services-grid,
    .form-row,
    .process-grid,
    .consultation-process,
    .service-content,
    .testimonials-header,
    .footer-content {
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .logo img {
        height: 30px;
        width: auto;
        object-fit: contain;
        max-width: 150px;
    }

    .header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .hero {
        padding: 60px 0;
        background-attachment: scroll;
        background-size: cover;
        background-position: center 30%;
    }

    .hero::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center 30%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .stat-images img {
        width: 40px;
        height: 40px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .service-text h4 {
        font-size: 1.1rem;
    }

    .btn-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .cta-text h2 {
        font-size: 1.8rem;
    }

    .cta-image img {
        height: 300px;
    }

    .footer-col h4 {
        font-size: 24px;
    }

    /* 404 Error Page - 768px */
    .error-section {
        padding: 60px 0;
        min-height: auto;
    }

    .error-number {
        font-size: 5rem;
        gap: 10px;
    }

    .number-0 i {
        font-size: 4rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
    }

    /* Contact Page - 768px */
    .contact-hero {
        padding: 60px 0 40px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 25px 20px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .contact-section .container {
        padding: 0 40px;
    }
    .contact-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .contact-info-item {
        flex-wrap: wrap;
    }
    .contact-details {
        word-wrap: break-word;
        max-width: 100%;
    }
    .form-group input,
    .form-group select, 
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .map-container {
        height: 350px;
    }

    /* Services Page - 768px */
    .services-hero {
        padding: 60px 0 40px;
    }

    .services-title {
        font-size: 2rem;
    }

    .services-description {
        font-size: 1rem;
    }

    .services-grid-section,
    .consultation-process,
    .cta-services {
        padding: 40px 0;
    }
    .testimonials {
        padding: 40px 0 !important;
    }
    .cta {
        padding: 40px 0 !important;
    }
    .services {
        padding: 40px 0 !important;
    }
    .consultation-process .container {
        padding: 0 25px !important;
    }

    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        max-width: 100%;
        padding: 0;
    }

    .process-step {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 30px 25px !important;
        min-height: auto;
        display: block;
    }
    .process-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 15px !important;
        flex-shrink: 0;
    }
    .process-icon i {
        font-size: 1.4rem !important;
    }
    .process-step h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    .process-step p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        text-align: center;
    }
    .process-number {
        font-size: 1.8rem !important;
        top: 20px !important;
        right: 20px !important;
    }

    .cta-services-content h2 {
        font-size: 2rem;
    }
}

/* ===== 404 ERROR PAGE ===== */
.error-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background-color: #0f0f11;
}

.error-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.error-visual {
    margin-bottom: 40px;
}

.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Playfair Display SC', serif;
    font-size: 10rem;
    font-weight: 700;
    color: #274c87;
    line-height: 1;
}

.number-4,
.number-0 {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.number-4:first-child {
    animation-delay: 0s;
}

.number-0 {
    animation-delay: 0.5s;
}

.number-4:last-child {
    animation-delay: 1s;
}

.number-0 i {
    font-size: 8rem;
    color: #274c87;
    animation: rotate 4s linear infinite;
}

.error-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 3rem;
    color: #c1c6ce;
    margin-bottom: 20px;
    font-weight: 400;
}

.error-description {
    font-size: 1.1rem;
    color: #737f91;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: #274c87;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1f3b6a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 76, 135, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #c1c6ce;
    border: 2px solid #274c87;
}

.btn-secondary:hover {
    background-color: #274c87;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    padding: 80px 0 60px;
    margin-top: -80px;
    padding-top: 160px;
    background-color: #0f0f11;
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #c1c6ce;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-description {
    font-size: 1.1rem;
    color: #737f91;
    line-height: 1.8;
}

.contact-section {
    padding: 80px 0;
    background-color: #0f0f11;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background-color: #171a1d;
    padding: 40px;
    border-radius: 8px;
}

.contact-form-container h2 {
    font-size: 1.8rem;
    color: #c1c6ce;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #c1c6ce;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #121315;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #c1c6ce;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #274c87;
    background-color: #0f0f11;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background-color: #274c87;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #1f3b6a;
    transform: translateY(-2px);
}

.contact-info-container {
    background-color: #171a1d;
    padding: 40px;
    border-radius: 8px;
}

.contact-info-container h2 {
    font-size: 1.8rem;
    color: #c1c6ce;
    margin-bottom: 30px;
    font-weight: 400;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 40px;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #274c87;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: #ffffff;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: #c1c6ce;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-details p {
    font-size: 0.95rem;
    color: #737f91;
    line-height: 1.6;
}

.contact-details a {
    color: #737f91;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #274c87;
}

.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links h3 {
    font-size: 1.1rem;
    color: #c1c6ce;
    margin-bottom: 20px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background-color: #121315;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #274c87;
    border-color: #274c87;
    transform: translateY(-3px);
}

.social-icons a i {
    font-size: 1.1rem;
    color: #c1c6ce;
}

.social-icons a:hover i {
    color: #ffffff;
}

.map-section {
    margin-top: -1px;
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.3) brightness(0.9);
}

/* ===== SERVICES PAGE ===== */
.services-hero {
    padding: 80px 0 60px;
    margin-top: -80px;
    padding-top: 160px;
    background-color: #0f0f11;
    text-align: center;
}

.services-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-title {
    font-family: 'Playfair Display SC', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #c1c6ce;
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-description {
    font-size: 1.1rem;
    color: #737f91;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 76, 135, 0.05) 0%, rgba(31, 59, 106, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(39, 76, 135, 0.25);
}

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

.service-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.btn-service-card {
    padding: 12px 32px;
    background-color: #274c87;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-service-card:hover {
    background-color: #1f3b6a;
    transform: translateY(-2px);
}

.service-card-content {
    padding: 30px;
}

.service-card-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.service-card-content p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.service-card-tags span {
    padding: 6px 14px;
    background-color: #f5f5f5;
    color: #666666;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.service-card-tags span:hover {
    background-color: #274c87;
    color: #ffffff;
}

.consultation-process {
    padding: 60px 0;
    background-color: #0f0f11;
}

.section-description {
    font-size: 1.05rem;
    color: #737f91;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 40px 20px;
    background-color: #171a1d;
    border-radius: 8px;
}


.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: 'Playfair Display SC', serif;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #274c87 0%, #1f3b6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.process-step:hover .process-icon {
    transform: translateY(-5px);
}

.process-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.process-step h3 {
    font-size: 1.3rem;
    color: #c1c6ce;
    margin-bottom: 15px;
    font-weight: 500;
}

.process-step p {
    font-size: 0.9rem;
    color: #737f91;
    line-height: 1.7;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: #274c87;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #274c87;
    font-family: 'Playfair Display SC', serif;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '%';
    font-size: 2rem;
}

.stat-card:last-child .stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
    line-height: 1.5;
}

.cta-services {
    padding: 100px 0;
    background: linear-gradient(135deg, #274c87 0%, #1f3b6a 100%);
    text-align: center;
}

.cta-services-content h2 {
    font-family: 'Playfair Display SC', serif;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.cta-services-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-services {
    display: inline-block;
    padding: 16px 40px;
    background-color: #ffffff;
    color: #274c87;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta-services:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes pageLoad {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-section);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a88c9;
}
