/* ============================================
   IMPORTS E BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    /* Cores ISARIC */
    --isaric-red: #BA0225;
    --isaric-red-dark: #8f011c;
    --isaric-teal: #1A6B6B;
    --isaric-teal-light: #2a8f8f;
    --isaric-gold: #D1964F;
    --isaric-beige: #F5F0EB;
    --isaric-dark: #1A1A1A;
    --isaric-muted: #4A4A4A;
    --isaric-white: #FFFFFF;
    --isaric-gray: #888888;
    --isaric-border: #E8E3DD;

    /* Fontes */
    --font-inter: 'Inter', sans-serif;
    --font-lato: 'Lato', sans-serif;

    /* Sombras */
    --shadow-sm: 0 1px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.10);
    --shadow-xl: 0 12px 28px rgba(0,0,0,0.10);

    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transições */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lato);
    color: var(--isaric-dark);
    background: var(--isaric-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-inter);
    font-weight: 700;
    color: var(--isaric-dark);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(186, 2, 37, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--isaric-red); }

/* ============================================
   BOTÕES
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--isaric-red);
    color: var(--isaric-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background: var(--isaric-red-dark);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(186, 2, 37, 0.25);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--isaric-white);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--isaric-white);
}

/* ============================================
   HEADER / NAV
   ============================================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    height: 60px;
    display: flex;
    align-items: center;
}

#main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    padding: 2px;
}

.logo-text {
    font-family: var(--font-inter);
}

.logo-text strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--isaric-dark);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.55rem;
    color: var(--isaric-muted);
    line-height: 1.1;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    font-family: var(--font-inter);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--isaric-muted);
    transition: color var(--transition);
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--isaric-red);
    border-bottom-color: var(--isaric-red);
}

.idioma {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.idioma button {
    background: none;
    border: none;
    font-family: var(--font-inter);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--isaric-muted);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.idioma button:hover,
.idioma button.active {
    color: var(--isaric-red);
    background: rgba(186, 2, 37, 0.06);
    font-weight: 700;
}

.idioma .divider {
    color: #DDD;
    font-size: 0.6rem;
}

/* ============================================
   FOOTER
   ============================================ */
#main-footer {
    background: var(--isaric-dark);
    padding: 56px 0 40px;
    color: var(--isaric-white);
}

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

/* Logo */
.footer-brand img {
    height: 48px;
    width: auto;          /* ← IMPEDE ESTICAR */
    display: block;
    margin-bottom: 12px;  /* ← ESPAÇO ENTRE LOGO E TEXTO */
}

.footer-brand p {
    font-family: var(--font-lato);
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 16px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-lato);
    font-size: 0.85rem;
    color: var(--isaric-gold);
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-email svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-lato);
    font-size: 0.85rem;
    color: #0077B5;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-social a:hover {
    color: #00A0DC;
}

.footer-col h4 {
    font-family: var(--font-inter);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--isaric-gold);
    margin-bottom: 16px;
}

.footer-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.footer-col ul li a {
    font-family: var(--font-lato);
    font-size: 0.85rem;
    color: #888;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--isaric-white);
}

.footer-bottom {
    border-top: 1px solid #2A2A2A;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    font-family: var(--font-lato);
    font-size: 0.7rem;
    color: #555;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-family: var(--font-lato);
    font-size: 0.7rem;
    color: #555;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--isaric-white);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
    nav ul {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.7rem;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}