/* =============================================
   ANIVERSÁRIO DE MIRLA — Design System
   Tema: Vermelho Elegante / Gold / Dark Luxury
   ============================================= */

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

:root {
    --red-deep: #8a1020;
    --red-main: #b41e28;
    --red-light: #d4303c;
    --red-soft: #f0a0a0;
    --gold: #c9a84c;
    --gold-light: #e8d08a;
    --cream: #f8efe8;
    --dark-bg: #0d0608;
    --dark-card: #160810;
    --dark-surface: #200c12;
    --text-primary: #f0e8e0;
    --text-secondary: #c0a090;
    --text-muted: #806050;
    --border: rgba(255,255,255,0.08);
    --border-accent: rgba(180,30,40,0.35);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-glow: 0 0 60px rgba(180,30,40,0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,50,60,0.4), transparent 70%);
    animation: float-particle linear infinite;
    opacity: 0;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* conteúdo fica embaixo, foto à mostra */
    overflow: hidden;
    background-image: url('../foto-mirla.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay leve no topo (rosto visível), escuro apenas na base */
    background:
        linear-gradient(to bottom,
            rgba(5,2,4,0.10) 0%,
            rgba(8,2,5,0.15) 35%,
            rgba(8,1,4,0.75) 70%,
            var(--dark-bg) 100%);
    z-index: 1;
}

.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem 4.5rem; /* empurra para o fundo */
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Photo frame — hidden when using bg photo */
.photo-frame { display: none; }
.mirla-photo { display: none; }
.photo-placeholder { display: none; }
.photo-glow { display: none; }

/* Hero decorative line */
.hero-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-main), var(--gold), var(--red-main), transparent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    animation: fadeInDown 0.8s ease 0.1s forwards;
    opacity: 0;
}

.badge-celebrate {
    display: inline-block;
    background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.1));
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 1.2rem;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

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

.hero-title {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

.title-small {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(240,210,200,0.85);
    letter-spacing: 0.18em;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.title-name {
    display: block;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, #ffccc0, #ffffff, #e87080);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.9));
    animation: gradient-flow 4s ease infinite, fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    color: rgba(210,180,170,0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.countdown-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.event-pill {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,240,235,0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.event-pill:hover {
    background: rgba(180,30,40,0.45);
    border-color: rgba(180,30,40,0.6);
    color: white;
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(220,190,180,0.8);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
    margin-top: 0.3rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===== BOTÃO FLUTUANTE — RESERVA ===== */
.btn-reserva-float {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255,240,235,0.92);
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s;
    margin-top: 1.2rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn-reserva-float:hover {
    background: rgba(180,30,40,0.5);
    border-color: rgba(180,30,40,0.6);
    color: white;
    transform: translateY(-2px);
}

.btn-reserva-float .lock-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== MAIN CONTENT ===== */
.main-content { position: relative; z-index: 1; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 4rem 0 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(180,30,40,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-card:hover {
    border-color: var(--border-accent);
    background: rgba(180,30,40,0.07);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.info-card:hover::before { opacity: 1; }

.info-card.featured {
    border-color: rgba(180,30,40,0.4);
    background: rgba(180,30,40,0.08);
    grid-column: span 1;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.info-card h3 {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.info-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--red-soft);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}

.info-link:hover { color: var(--gold-light); }

/* ===== PRICE BANNER ===== */
.price-banner {
    background: linear-gradient(135deg, rgba(180,30,40,0.15) 0%, rgba(100,10,20,0.25) 100%);
    border: 1px solid rgba(180,30,40,0.35);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.price-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,30,40,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.price-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.price-content { flex: 1; min-width: 150px; }

.price-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.1;
}

.price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.price-map-btn {
    background: linear-gradient(135deg, var(--red-main), var(--red-deep));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(180,30,40,0.4);
}

.price-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(180,30,40,0.5);
}

/* ===== STATS ===== */
.stats-section { padding: 1rem 0 2rem; }

.stats-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}
.stat-divider {
    color: rgba(180,30,40,0.5);
    font-size: 1rem;
}

/* ===== FORM SECTION ===== */
.form-section { padding: 2rem 0 5rem; }

.form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 5vw, 3rem);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-deep), var(--red-light), var(--gold), var(--red-light), var(--red-deep));
    background-size: 200% 100%;
    animation: shimmer-bar 3s linear infinite;
}

@keyframes shimmer-bar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    animation: slideInAlert 0.5s ease forwards;
}

@keyframes slideInAlert {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(30, 160, 60, 0.12);
    border: 1px solid rgba(30,160,60,0.3);
    color: #80e0a0;
}

.alert-warning {
    background: rgba(200, 160, 20, 0.12);
    border: 1px solid rgba(200,160,20,0.3);
    color: #e0d080;
}

.alert-error {
    background: rgba(200, 30, 30, 0.12);
    border: 1px solid rgba(200,30,30,0.3);
    color: #f08080;
}

.alert-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Form elements */
.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    outline: none;
    appearance: none;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23806050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #200c12;
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(180,30,40,0.5);
    background: rgba(180,30,40,0.06);
    box-shadow: 0 0 0 3px rgba(180,30,40,0.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* Submit button */
.btn-confirm {
    width: 100%;
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-deep) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(180,30,40,0.4);
    letter-spacing: 0.02em;
}

.btn-confirm::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(180,30,40,0.5);
}

.btn-confirm:hover::before { opacity: 1; }
.btn-confirm:active { transform: translateY(0); }

.btn-icon {
    transition: transform 0.3s;
    font-style: normal;
}
.btn-confirm:hover .btn-icon { transform: translateX(4px); }

/* Form footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.social-link:hover { color: var(--gold-light); }

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: rgba(0,0,0,0.3);
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.footer-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.footer-made {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   RESPONSIVE — Mobile First
   Breakpoints: 480 | 600 | 768 | 960
   ============================================================ */

/* ----- Base mobile (< 480px) ----- */
@media (max-width: 480px) {

    /* Hero */
    .hero {
        /* iOS não suporta background-attachment:fixed — usa scroll */
        background-attachment: scroll;
        min-height: 100svh; /* safe-area aware */
    }

    .hero-content {
        padding: 0 1rem 3.5rem;
    }

    .hero-content::before {
        margin-bottom: 1rem;
    }

    .badge-celebrate {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 0.8rem;
    }

    .title-small {
        font-size: 0.9rem;
        letter-spacing: 0.12em;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.2rem;
    }

    .countdown-row {
        gap: 0.5rem;
    }

    .event-pill {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
    }

    .btn-reserva-float {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-top: 0.9rem;
    }

    /* Info grid: 2 colunas no mobile */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .info-card {
        padding: 1rem 0.8rem;
    }

    .info-icon { font-size: 1.5rem; }
    .info-value { font-size: 1rem; }
    .info-sub { font-size: 0.72rem; }

    /* Price banner: coluna única */
    .price-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 1rem;
        gap: 0.8rem;
    }

    .price-icon { font-size: 2rem; }
    .price-value { font-size: 1.6rem; }

    .price-map-btn {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }

    /* Stats */
    .stats-bar {
        flex-direction: column;
        gap: 0.8rem;
        border-radius: var(--radius);
        padding: 1rem;
    }
    .stat-divider { display: none; }
    .stat-num { font-size: 1.5rem; }

    /* Form */
    .form-section { padding: 1.5rem 0 3rem; }

    .form-card {
        border-radius: var(--radius-sm);
        margin: 0 0.5rem;
    }

    .form-header h2 { font-size: 1.4rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .site-footer { padding: 2rem 1rem; }
    .footer-title { font-size: 0.9rem; }
}

/* ----- Small phones (480px – 600px) ----- */
@media (min-width: 480px) and (max-width: 600px) {

    .hero {
        background-attachment: scroll;
        min-height: 100svh;
    }

    .hero-content {
        padding: 0 1.2rem 4rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-banner {
        flex-direction: column;
        text-align: center;
    }

    .price-map-btn {
        width: 100%;
        text-align: center;
    }

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
        border-radius: var(--radius);
    }

    .stat-divider { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

/* ----- Tablets (600px – 768px) ----- */
@media (min-width: 600px) and (max-width: 768px) {

    .hero {
        background-attachment: scroll;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-banner {
        gap: 1rem;
    }

    .stats-bar {
        gap: 1.2rem;
    }
}

/* ----- Landscape mobile: hero não fica muito alto ----- */
@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        min-height: 100svh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 1.5rem 2rem;
    }

    .title-name {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-subtitle { display: none; }

    .countdown-row { margin-bottom: 0.5rem; }
}

/* ----- Desktop largo (> 960px) ----- */
@media (min-width: 960px) {

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-section { padding: 5rem 0 2.5rem; }

    .form-section { padding: 2.5rem 0 6rem; }

    .price-banner {
        padding: 1.8rem 2.5rem;
    }
}
