/* ============================================
   BELLOTTO PHOTOGRAPHIAS - ESTILO RETRÔ
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
    --ouro: #c9a96e;
    --ouro-claro: #e8d5a3;
    --ouro-escuro: #8b7355;
    --marrom: #3d2b1f;
    --marrom-escuro: #1a120b;
    --creme: #f5f0e8;
    --sepia: #d4c4a8;
}

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

body {
    background: var(--marrom-escuro);
    color: var(--creme);
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.7;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    30% { transform: translate(3%, -15%); }
    50% { transform: translate(12%, 9%); }
    70% { transform: translate(9%, 4%); }
    90% { transform: translate(-1%, 7%); }
}

@keyframes pulseOuro {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Classe utilitária para animações */
.anim-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.anim-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}
.anim-slide-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}
.anim-slide-right {
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}
.anim-scale {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* ========== NAVEGAÇÃO RETRÔ ========== */
nav {
    background: rgba(26, 18, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: var(--sepia);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--ouro);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

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

nav a:hover::after {
    width: 100%;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ========== TIPOGRAFIA RETRÔ ========== */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ouro-claro);
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--ouro);
    margin: 15px auto 0;
    opacity: 0.5;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--ouro);
}

p {
    color: var(--sepia);
    font-size: 17px;
    line-height: 1.8;
}

/* ========== EFEITO DE FILME/GRAIN ========== */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 9998;
    animation: grain 8s steps(10) infinite;
}

/* ========== BOTÕES RETRÔ ========== */
.btn-retro {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid var(--ouro);
    color: var(--ouro);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.btn-retro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ouro);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-retro:hover {
    color: var(--marrom-escuro);
}

.btn-retro:hover::before {
    left: 0;
}

/* ========== SEPARADOR RETRÔ ========== */
.separador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    color: var(--ouro-escuro);
    font-size: 14px;
}

.separador::before,
.separador::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ouro-escuro), transparent);
    max-width: 100px;
}

/* ========== CARTÃO RETRÔ ========== */
.cartao-retro {
    background: rgba(61, 43, 31, 0.4);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 2px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.cartao-retro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ouro), transparent);
    opacity: 0.3;
}

/* ========== FORMULÁRIOS ========== */
form input,
form textarea,
form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    background: rgba(61, 43, 31, 0.5);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--creme);
    border-radius: 2px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--ouro);
    box-shadow: 0 0 15px rgba(201, 169, 110, 0.1);
}

form input::placeholder,
form textarea::placeholder {
    color: var(--ouro-escuro);
    font-style: italic;
}

form button {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--ouro);
    border: 1px solid var(--ouro);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ouro);
    transition: left 0.4s ease;
    z-index: -1;
}

form button:hover {
    color: var(--marrom-escuro);
}

form button:hover::before {
    left: 0;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    nav { gap: 20px; padding: 15px 20px; flex-wrap: wrap; }
    nav a { font-size: 11px; letter-spacing: 2px; }
    .container { padding: 40px 20px; }
}
