:root {
    --primary-color: #2b5b84; /* Azul inspirado na logo */
    --primary-dark: #1a3a5a;
    --accent-color: #4a90e2;
    --gray-dark: #333333;
    --gray-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --text-color: #2c3e50;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafafa;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Glassmorphism */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-header.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--glass-shadow);
}

.glass-header.scrolled .logo-memp,
.glass-header.scrolled .logo-sub {
    color: var(--primary-dark);
}

.glass-header.scrolled nav a {
    color: var(--text-color);
}

/* Logo Setup */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-memp {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}
.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(43, 91, 132, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff !important;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('mosaico_memp.jpg') center/cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 90, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 3rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
}

.hero .title {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.section-title.center {
    display: block;
    text-align: center;
}
.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: #666;
}

/* Sobre Section */
.sobre {
    background-color: #fff;
}

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

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.sobre-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--gray-light);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Obras Section */
.obras {
    background-color: var(--gray-light);
}

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

.obra-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.obra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.obra-card.highlight {
    background: var(--primary-color);
    color: #fff;
}
.obra-card.highlight h3 { color: #fff; }
.obra-card.highlight p { color: rgba(255,255,255,0.8); }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.obra-card.highlight .icon-wrapper {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.obra-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.obra-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 5rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    margin-top: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 300px;
}

.footer-contact h4, .footer-legal h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-contact ul, .footer-legal ul {
    list-style: none;
}

.footer-contact li, .footer-legal li {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Animations */
.hidden-state {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

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

/* Responsive */
@media (max-width: 992px) {
    .sobre-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero .title {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}
