/* ================================================================
   MIA ENGENHARIA — DESIGN SYSTEM v2.0 (COMPLETO + PÁGINAS-ESPECÍFICAS)
   Performance-optimized | Quiet Luxury | Hermès Standard
   Versão: 2.0 (2026-02-15)
   ================================================================ */

/* === DESIGN TOKENS === */
:root {
    /* Colors */
    --bg-color: #F7F6F3;
    --bg-white: #FFFFFF;
    --bg-light-gray: #FAFAF8;
    --bg-evidence: #F4F4F2;
    --bg-black: #111111;
    --text-primary: #111111;
    --text-secondary: #6B6B6B;
    --line-color: rgba(17, 17, 17, 0.08);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Responsive Font Sizes (clamp) */
    --font-size-hero: clamp(3.5rem, 7vw, 8rem);
    --font-size-h2: clamp(2.5rem, 5vw, 4.5rem);
    --font-size-h3: clamp(1.5rem, 3vw, 2rem);
    --font-size-subtitle: clamp(1.25rem, 2.5vw, 1.75rem);
    --font-size-body: 1.125rem;
    --font-size-small: 1rem;
    --font-size-label: 0.85rem;
    --font-size-mono: 0.75rem;
    
    /* Spacing Scale (Hermès) */
    --space-xs: 2rem;   /* 32px */
    --space-sm: 4rem;   /* 64px */
    --space-md: 6rem;   /* 96px */
    --space-lg: 10rem;  /* 160px */
    --space-xl: 14rem;  /* 224px */
    
    /* Container */
    --container-width: 1140px;
    --container-padding-xl: 6rem;
    --container-padding-lg: 4rem;
    --container-padding-md: 3rem;
    --container-padding-sm: 2rem;
    
    /* Animation */
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: var(--font-size-body);
}

/* === RESPONSIVE CONTAINER === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding-xl);
}

@media (max-width: 1440px) {
    .container {
        padding: var(--container-padding-lg);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: var(--container-padding-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: var(--container-padding-sm);
    }
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(247, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
    z-index: 100;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.7;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--font-size-label);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    opacity: 0.6;
    transition: opacity 0.6s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-cta {
    font-family: var(--font-body);
    font-size: var(--font-size-label);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.6rem 1.2rem;
    transition: all 0.4s var(--easing);
    background: transparent;
}

.nav-cta:hover {
    border-color: var(--bg-black);
    background: var(--bg-black);
    color: var(--bg-white);
}

/* === MOBILE MENU === */
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    padding: 6rem 2rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.4s var(--easing);
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.7;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.mobile-menu a:hover {
    opacity: 1;
}

.mobile-cta {
    display: block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-black);
    color: var(--bg-white);
    text-align: center;
    border-radius: 2px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        padding: 1.5rem 2rem;
    }
}

/* === PAGE HEADER === */
.page-header {
    padding: 12rem 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    border-bottom: 1px solid var(--line-color);
}

.page-eyebrow {
    font-family: var(--font-body);
    font-size: var(--font-size-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    display: block;
    margin-bottom: 2rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 900px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

/* === TYPOGRAPHY === */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--font-size-hero);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--font-size-subtitle);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 700px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-md);
}

h3 {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.serif {
    font-family: var(--font-display);
}

.mono {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: var(--font-size-mono);
    letter-spacing: 0.05em;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-size: var(--font-size-label);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s var(--easing);
    font-weight: 500;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

.btn-primary:hover {
    background: #2A2A2A;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--font-size-label);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.4s var(--easing);
    font-weight: 500;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* === SECTIONS === */
section {
    padding: var(--space-lg) 0;
}

.section-white {
    background: var(--bg-white);
}

.section-light {
    background: var(--bg-light-gray);
}

.section-evidence {
    background: var(--bg-evidence);
}

.section-black {
    background: var(--bg-black);
    color: var(--bg-white);
}

/* === FOOTER === */
footer {
    background: var(--bg-black);
    color: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

footer .logo-footer {
    margin-bottom: 2rem;
}

footer .logo-footer img {
    height: 80px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

footer .logo-footer img:hover {
    opacity: 1;
}

footer .footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 0.7rem;
    opacity: 0.6;
}

footer .footer-info a {
    color: var(--bg-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer .footer-info a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    footer .footer-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .page-title,
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s var(--easing);
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.text-italic {
    font-style: italic;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-900 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* === PERFORMANCE === */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}