/* Custom Properties */
:root {
    --primary-blue: #003B95; /* Deep corporate blue */
    --secondary-blue: #002255; /* Dark Navy Blue */
    --accent-blue: #007FFF; /* Azure Blue for highlights/buttons */
    --accent-hover: #005ECC;
    --white: #FFFFFF;
    --light-bg: #F4F7FB;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --text-light: #F0F0F0;
    --border-color: #E0E6ED;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-blue);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Header & Navigation */
header {
    background-color: #F7F7F7;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    z-index: 1100;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue) !important;
}

.dropdown-content a::after {
    display: none !important; /* Hide underline effect for dropdown items */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero.hero-small {
    min-height: 50vh;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    max-width: 900px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    max-width: 800px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Carousel Section */
.carousel-section {
    background-color: var(--secondary-blue);
    padding: 0;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 600px;
    background-color: var(--text-dark); /* Fundo escuro para preencher o espaço lateral das imagens */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Retornando ao preenchimento total */
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 59, 149, 0.85);
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.carousel-prev, .carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border: none;
    z-index: 20;
}

.carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: var(--accent-blue);
}

/* Services Overview */
.services-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Features/About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    transition: transform 0.5s ease;
}

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

/* CTA Section */
.cta-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Inner Page Header */
.page-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1; /* Prevents overlapping with the main sticky header */
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-blue);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.1);
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar and Mobile Menu */
    .navbar {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
    }
    
    .logo a img {
        max-height: 60px !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a, .dropdown .dropbtn {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }
    
    .nav-links a::after {
        display: none; /* No underline effect on mobile */
    }
    
    /* Dropdown inside mobile */
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 1rem;
        background-color: var(--light-bg);
        width: 100%;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content {
        display: block;
    }
    
    /* Typography */
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Layout Adjustments */
    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-caption {
        font-size: 1.1rem;
        bottom: 20px;
        padding: 10px 15px;
        width: 90%;
    }
    
    .carousel-prev, .carousel-next {
        padding: 10px;
        font-size: 18px;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .mini-carousel {
        min-height: 300px !important;
    }
}
