/* Fontes de backup (Google Fonts): Poiret One ~ Safira March | Josefin Sans p/ textos | Great Vibes ~ scripts */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Josefin+Sans:wght@300;400;600;700&family=Allura&display=swap');
/* ===== FONTES DA MARCA =====*/
@font-face {
    font-family: 'Safira March';
    src: url('fontes/SafiraMarch.woff2') format('woff2'),
         url('fontes/SafiraMarch.otf') format('opentype'),
         url('fontes/SafiraMarch.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Blosta Script';
    src: url('fontes/BlostaScript.woff2') format('woff2'),
         url('fontes/BlostaScript.otf') format('opentype'),
         url('fontes/BlostaScript.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Slight';
    src: url('fontes/Slight.woff2') format('woff2'),
         url('fontes/Slight.otf') format('opentype'),
         url('fontes/Slight.ttf') format('truetype');
    font-display: swap;
}

/* ===== VARIÁVEIS DA PALETA ===== */
:root {
    --verde-escuro: #2d3a08;
    --verde-medio: #465911;
    --verde-claro: #d4ddbb;
    --verde-palido: #f0f2e9;
    --verde-borda: #d5d9c6;
    --texto: #fcfcfc;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.25);
    --raio: 14px;
    --transicao: 0.35s ease;

    /* Fontes: a primeira é a da marca, as seguintes são os backups */
--fonte-titulo: 'Italiana', 'Poiret One', serif;
--fonte-texto: 'Josefin Sans', 'Lato', sans-serif;
--fonte-script: 'Allura', 'Great Vibes', cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-texto);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--texto);
    background-color: var(--verde-escuro);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(95, 120, 25, 0.95) 0%, transparent 60%),
        radial-gradient(circle at 90% 100%, rgba(95, 120, 25, 0.85) 0%, transparent 55%);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: var(--fonte-titulo);
    font-weight: 400; 
    color: var(--verde-claro);
    letter-spacing: 1px;
}


h1, h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    margin: 0 0 1.6rem;
    position: relative;
    padding-bottom: 0.9rem;
}

/* Detalhe decorativo sob os títulos */
h2::after {
    content: "";
    display: block;
    width: 160px;
    height: 4px;
    margin: 0.8rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--verde-claro) 25%, var(--verde-claro) 75%, transparent 100%);
    box-shadow: 0 0 12px rgba(212, 221, 187, 0.45);
}

/* Texto pequeno em fonte manuscrita, acima dos títulos */
.sobretitulo {
    display: block;
    font-family: var(--fonte-script);
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.1;
    color: var(--verde-palido);
    margin-bottom: 0.3rem;
}

a {
    color: var(--verde-claro);
}

/* ===== CABEÇALHO ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(212, 221, 187, 0.94);
    /* Mesmo efeito de círculos do fundo da página, em tons claro e escuro sobre o verde-claro */
    background-image:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.75) 0%, transparent 55%),
        radial-gradient(circle at 92% 100%, rgba(95, 120, 25, 0.35) 0%, transparent 60%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Mesma linha decorativa dos títulos, na base do cabeçalho */
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--verde-medio) 25%, var(--verde-medio) 75%, transparent 100%);
    pointer-events: none;
}

.logo {
    height: 150px;
    width: auto;
    margin: -25px 0 -25px 20px; 
    padding: 0;
    transition: transform var(--transicao);
}

.logo:hover {
    transform: scale(1.04);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

nav ul li a {
    position: relative;
    color: var(--verde-escuro);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    padding: 10px 16px;
    transition: var(--transicao);
    border-radius: 999px;
    display: inline-block;
}

nav ul li a:hover,
nav ul li a.ativo {
    background-color: var(--verde-medio);
    color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(45, 58, 8, 0.3);
}

/* Botão do menu (só aparece no celular) */
.menu-toggle {
    display: none;
    background: var(--verde-medio);
    color: var(--verde-claro);
    border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    line-height: 1;
    padding: 8px 14px;
    cursor: pointer;
    width: auto;
}

/* ===== CONTEÚDO ===== */
main {
    flex: 1;
    padding: 3.5rem 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    animation: surgir 0.8s ease both;
}

main p {
    font-size: 1.2rem; 
    line-height: 1.75;
}

/* Cartão translúcido reutilizável */
.cartao {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 221, 187, 0.22);
    border-radius: var(--raio);
    padding: 2rem;
    box-shadow: var(--sombra);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ===== RODAPÉ ===== */
footer {
    background-color: var(--verde-medio);
    color: var(--verde-claro);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 3px solid rgba(212, 221, 187, 0.35);
}

footer p {
    margin: 0;
}

/* ===== FOTO AMPLIADA (LIGHTBOX) =====*/

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(20, 27, 4, 0.92);
    cursor: zoom-out;
}

.lightbox.ativo {
    display: flex;
    animation: surgir 0.3s ease both;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--raio);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-fechar {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 1.8rem;
    color: var(--verde-claro);
    cursor: pointer;
}

/* ===== ANIMAÇÕES ===== */
@keyframes surgir {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Elementos que aparecem ao rolar a página (controlado pelo script.js) */
.revelar {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .revelar {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        margin: -12px 0;
        height: 94px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    nav.aberto {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 0.8rem 0 0.4rem;
    }

    nav ul li a {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 12px;
    }

    main {
        padding: 2.2rem 1rem;
    }

    main p {
        font-size: 1.1rem;
    }

    .cartao {
        padding: 1.3rem;
    }
}
