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

:root {
    --primary: #1B5E6C;
    --primary-dark: #154d59;
    --primary-darker: #0e353e;
    --accent: #2E8F99;
    --accent-hover: #278a93;
    --accent-light: rgba(46, 143, 153, 0.1);
    --light: #f4f4f4;
    --white: #ffffff;
    --gray: #777777;
    --gray-light: #eeeeee;
    --text: #333333;
    --text-light: #555555;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
}

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

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: var(--white);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links > li > a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    border: none;
    position: absolute;
    bottom: -4px;
    left: 0;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 143, 153, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 94, 108, 0.35);
}

.btn-nav {
    padding: 7px 20px;
    font-size: 0.8rem;
    border-radius: 3px;
    color: var(--white) !important;
}

.btn-nav::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

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

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

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

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(27, 94, 108, 0.82), rgba(14, 53, 62, 0.9)),
                url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 20px 80px;
}

.hero .container {
    max-width: 820px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero p strong {
    color: var(--white);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== PAGE HERO ========== */
.page-hero {
    background: linear-gradient(rgba(27, 94, 108, 0.82), rgba(14, 53, 62, 0.9)),
                url('/assets/images/hero-empresa.jpg');
    background-size: cover;
    background-position: center;
    padding: 140px 20px 60px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== ABOUT PAGE ========== */
.about-page {
    background: var(--white);
}

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

.about-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ========== FARDAS SECTION ========== */
.fardas-section {
    background: var(--light);
}

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

.fardas-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    min-width: 210px;
    padding: 14px 32px;
}

/* ========== SECTIONS COMMON ========== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== SERVICOS ========== */
.servicos {
    background: var(--light);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.servico-card {
    background: var(--white);
    border-radius: 6px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-top: 3px solid transparent;
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent);
}

.servico-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    transition: all 0.3s;
}

.servico-card:hover .icon {
    background: var(--accent);
    color: var(--white);
}

.servico-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.servico-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ========== SOBRE / NUMEROS ========== */
.sobre {
    background: var(--white);
}

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

.sobre-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.sobre-text .line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 24px;
    border-radius: 2px;
}

.sobre-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.numero-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 6px;
    transition: all 0.3s;
}

.numero-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.numero-item .numero {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.numero-item .label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== TESTEMUNHOS ========== */
.testemunhos {
    background: var(--light);
    overflow: hidden;
}

.carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testemunho-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
}

.testemunho-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.testemunho-card .quote {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.testemunho-card p {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testemunho-card .author {
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 143, 153, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-size: 1.05rem;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-darker);
    color: rgba(255, 255, 255, 0.65);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about .logo {
    margin-bottom: 16px;
}

.footer-about .logo img {
    height: 38px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-contact .contact-info small {
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 2px;
}

.footer-contact .icon-inline {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ========== ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ========== MOBILE NAV ========== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-nav-group-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-group .mobile-nav-link {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-dropdown-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

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

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

    .numero-item .numero {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testemunho-card {
        padding: 30px 20px;
    }

    .testemunho-slide {
        min-width: 100%;
    }

    .testemunho-slide .testemunho-card:nth-child(2) {
        display: none;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .hero-buttons .btn {
        min-width: 170px;
        padding: 12px 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .numeros-grid {
        grid-template-columns: 1fr 1fr;
    }

    .numero-item {
        padding: 20px 10px;
    }

    .numero-item .numero {
        font-size: 1.8rem;
    }

    .testemunho-slide {
        min-width: 100%;
    }
}