/* ==========================================================
   ESTILOS GERAIS - FILS Engenharia (Versão separada)
   ========================================================== */

:root {
    --primary: #0E2A4C;
    /* Azul Institucional */
    --primary-light: #164673;
    --brand-orange: #F15A24;
    --brand-blue: #38B0F4;
    --brand-yellow: #F8D52B;
    --secondary: #F8D52B;
    --secondary-light: #FFE28A;
    --white: #FFFFFF;
    --light-gray: #F7F9FB;
    --medium-gray: #D7DEE8;
    --dark-gray: #192B3C;
    --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

a:hover {
    color: var(--brand-orange);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Utilitários --- */
.padding-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.title-line {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto 30px;
}

.title-line-left {
    margin: 15px 0 30px;
}

/* --- Botões --- */
.btn-custom {
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom {
    background: var(--brand-orange);
    color: var(--white);
    border: 2px solid var(--brand-orange);
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--brand-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(241, 90, 36, 0.25);
}

.btn-dark-custom {
    background: var(--brand-blue);
    color: var(--white);
    border: 2px solid var(--brand-blue);
}

.btn-dark-custom:hover {
    background: transparent;
    color: var(--brand-blue);
    transform: translateY(-3px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Novo botão WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.top-bar .contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar .social-links a {
    margin-left: 12px;
    color: var(--dark-gray);
}

.top-bar .social-links a:hover {
    color: var(--secondary);
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    display: block;
}

.navbar-brand .brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.navbar-brand .brand-text span {
    color: var(--brand-orange);
}

.navbar-nav .nav-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary);
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    width: 100%;
}

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    height: 100% !important;
    width: 100% !important;
}

.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* SETAS CENTRALIZADAS */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.4rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--secondary) !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .hero-slider {
        height: 75vh !important;
    }
}

@media (max-width: 991px) {
    .hero-slider {
        height: 85vh !important;
    }
}

/* --- Seção Bem-Vindo --- */
.welcome-card {
    background: var(--white);
    box-shadow: var(--shadow-card);
    padding: 30px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    height: 100%;
    border-radius: 4px;
}

.welcome-card:hover {
    border-bottom-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.welcome-card .card-img-wrap {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    height: 250px;
}

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

.welcome-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.welcome-sidebar .service-list-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
    cursor: pointer;
}

.welcome-sidebar .service-list-item:last-child {
    border-bottom: none;
}

.welcome-sidebar .service-list-item:hover {
    color: var(--secondary);
}

.welcome-sidebar .icon-circle {
    width: 55px;
    height: 55px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.welcome-sidebar h5 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.welcome-sidebar p {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin: 0;
}

/* --- Seção Funcionalidades (PROJETOS REALIZADOS) --- */
#funcionalidades {
    background: #0d1e34;
    color: var(--white);
}

#funcionalidades .section-title {
    color: var(--white);
}

#funcionalidades .section-title span {
    color: var(--secondary);
}

#funcionalidades .project-filters {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

#funcionalidades .filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: var(--transition);
    margin: 4px 0;
    cursor: pointer;
}

#funcionalidades .filter-btn:hover,
#funcionalidades .filter-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark-gray);
    transform: none;
}

.project-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.project-feature-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: none;
}

.project-feature-card:hover img {
    transform: none;
}

.project-feature-info {
    padding: 30px 28px 32px;
}

.project-feature-info .category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(248, 213, 43, 0.95);
    color: var(--dark-gray);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.project-feature-info h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.1;
}

.project-feature-info p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin-bottom: 22px;
}

.project-feature-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-feature-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.project-feature-info li i {
    color: var(--secondary);
    font-size: 1.15rem;
    line-height: 1.2;
    margin-top: 3px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 280px;
    gap: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    height: 100%;
    background: #10203a;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.project-card:hover img {
    transform: none;
}

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.94));
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.project-card:hover .overlay {
    opacity: 0.95;
}

.project-card .overlay h5 {
    color: var(--white);
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.project-card .overlay span {
    color: var(--secondary);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gallery-header .section-title {
    font-size: 1.9rem;
}

.gallery-header p {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }

    #funcionalidades .project-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .project-feature-card img {
        height: 260px;
    }

    .project-feature-info h3 {
        font-size: 1.7rem;
    }

    #funcionalidades {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* --- Seção Por que nos escolher --- */
.why-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--medium-gray);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.why-card:hover {
    box-shadow: var(--shadow-card);
    transform: none;
}

.why-card .corner-fold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--secondary);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.why-card .icon-outline {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.why-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.why-numbers .num-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.why-numbers .num-item .num {
    width: 35px;
    height: 35px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Depoimentos --- */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    box-shadow: var(--shadow-card);
    text-align: center;
    border-radius: 4px;
    margin: 20px 0;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.testimonial-card .stars {
    color: var(--secondary);
    margin-bottom: 20px;
}

.testimonial-card .author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 4px solid var(--light-gray);
}

.testimonial-card .author-name {
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.testimonial-card .author-role {
    font-size: 0.85rem;
    color: var(--secondary);
}

/* --- Footer --- */
.footer-top {
    background: #2d3e50;
    color: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
}

.footer-top .info-box:last-child {
    border-right: none;
}

.footer-top .info-box i {
    font-size: 2rem;
    color: var(--secondary);
}

.footer-top .info-box h6 {
    color: var(--white);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-top .info-box span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-main {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
}

.footer-main .footer-logo {
    margin-bottom: 15px;
}

.footer-main .footer-logo img {
    max-height: 56px;
    width: auto;
    display: block;
}

.footer-main ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-main ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-main .social-links a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 8px;
    color: var(--white);
}

.footer-main .social-links a:hover {
    background: var(--secondary);
    transform: none;
}

.footer-bottom {
    background: #07111b;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Back to Top --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(200, 154, 75, 0.4);
    transition: var(--transition);
}

#back-to-top:hover {
    transform: none;
    background: var(--white);
    color: var(--secondary);
}

#back-to-top.show {
    display: flex;
}

/* --- Responsividade --- */
@media (max-width: 991px) {
    .top-bar .contact-info {
        text-align: center;
        margin-bottom: 5px;
    }

    .top-bar .social-links {
        text-align: center;
    }

    .footer-top .info-box {
        border-right: none;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-top .info-box:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}
