:root {
    --primary-color: #2B5570;    /* Azul da logo */
    --secondary-color: #1e3d4f;  /* Azul mais escuro */
    --accent-color: #4CAF50;     /* Verde da logo */
    --light-blue: #e8f4f8;      /* Azul claro para backgrounds */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fira Sans', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Navbar */
.navbar-custom {
    background: rgba(43, 85, 112, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.navbar-custom.scrolled {
    background: rgba(43, 85, 112, 0.98);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
}

.logo-navbar {
    height: 40px;
    width: auto;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #87ceeb !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="%23FFF" opacity="0.05" d="M0 400c200-50 400-50 600 0s400 50 600 0v200H0z"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo-hero {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(43, 85, 112, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(43, 85, 112, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(43, 85, 112, 0.15);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

/* Gallery optimized */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 85, 112, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Background Sections */
.bg-light-blue {
    background: linear-gradient(135deg, var(--light-blue) 0%, #f8f9fa 100%);
}

/* Contact Section */
.contact-info {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.3rem;
}

.contact-item i {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: #87ceeb;
}

/* Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(43, 85, 112, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 5px;
    transition: all 0.3s ease;
    color: white;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #45a049;
}

/* Animations optimized */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }

    .logo-hero {
        max-width: 150px;
    }

    .logo-navbar {
        height: 35px;
    }
}

/* Performance: Reduce animations on slow devices */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}