/* Morada do Divino v2 - Tema Espiritual */
:root {
    --purple-deep: #1a0a2e;
    --purple-mid: #2d1b4e;
    --purple-light: #4a2c7a;
    --gold: #d4a853;
    --gold-light: #f0d78c;
    --gold-glow: rgba(212, 168, 83, 0.4);
    --cream: #f5e6d3;
    --text: #e8dcc8;
    --text-muted: #a89b8a;
    --success: #5cdb95;
    --warning: #f0ad4e;
    --error: #e85d5d;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--purple-deep);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Estrelas animadas */
.stars {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--gold-light), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, var(--gold), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 200px, var(--gold-light), transparent);
    background-size: 350px 350px;
    animation: twinkle 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes twinkle {
    0% { opacity: 0.4; transform: translateY(0); }
    100% { opacity: 0.8; transform: translateY(-10px); }
}

.aurora {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(74, 44, 122, 0.25) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(212, 168, 83, 0.08) 0%, transparent 40%);
    animation: aurora-drift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora-drift {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 10, 46, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 0;
    flex-shrink: 1;
}

.nav-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--gold); }

.nav-cta {
    background: linear-gradient(135deg, var(--gold), #b8862d);
    color: var(--purple-deep) !important;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-weight: 600 !important;
}

.nav-admin {
    position: relative;
}

.nav-admin-toggle {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(166, 124, 46, 0.15));
    border: 1px solid rgba(212, 168, 83, 0.55);
    color: var(--gold-light);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-admin-toggle:hover,
.nav-admin.open .nav-admin-toggle {
    background: rgba(212, 168, 83, 0.2);
    color: var(--gold);
    border-color: var(--gold);
}

.nav-admin-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: rgba(26, 10, 46, 0.98);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
}

.nav-admin.open .nav-admin-menu {
    display: block;
}

.nav-admin-menu li a {
    display: block;
    padding: 0.55rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.nav-admin-menu li a:hover {
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

/* Hero — viagem espiritual no universo */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--purple-deep);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: -12%;
    background: var(--purple-mid) center/cover no-repeat;
    background-image: var(--hero-bg, none);
    animation: hero-journey 32s ease-in-out infinite alternate;
    will-change: transform;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(26, 10, 46, 0.55) 0%, rgba(45, 27, 78, 0.35) 45%, rgba(26, 10, 46, 0.75) 100%),
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74, 44, 122, 0.45) 0%, transparent 70%);
}

.hero-cosmos {
    position: absolute;
    inset: 0;
    perspective: 900px;
}

.hero-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: screen;
    opacity: 0.55;
    will-change: transform, opacity;
}

.hero-nebula-a {
    width: 70vmin;
    height: 70vmin;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(120, 60, 180, 0.7) 0%, rgba(74, 44, 122, 0.3) 40%, transparent 70%);
    animation: nebula-drift-a 24s ease-in-out infinite alternate;
}

.hero-nebula-b {
    width: 55vmin;
    height: 55vmin;
    bottom: -20%;
    right: -8%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.35) 0%, rgba(166, 124, 46, 0.15) 45%, transparent 70%);
    animation: nebula-drift-b 30s ease-in-out infinite alternate;
}

.hero-nebula-c {
    width: 40vmin;
    height: 40vmin;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle, rgba(94, 196, 196, 0.25) 0%, rgba(45, 27, 78, 0.1) 50%, transparent 75%);
    animation: nebula-drift-c 20s ease-in-out infinite alternate;
}

.hero-stars-layer {
    position: absolute;
    inset: -20%;
    background-repeat: repeat;
    pointer-events: none;
}

.hero-stars-far {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 45% 62%, rgba(240, 215, 140, 0.4), transparent),
        radial-gradient(1px 1px at 78% 34%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 22% 85%, rgba(212, 168, 83, 0.35), transparent);
    background-size: 280px 280px;
    opacity: 0.45;
    animation: stars-drift-far 90s linear infinite;
}

.hero-stars-mid {
    background-image:
        radial-gradient(1.5px 1.5px at 8% 42%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 32% 12%, rgba(240, 215, 140, 0.7), transparent),
        radial-gradient(2px 2px at 58% 68%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 72% 22%, rgba(212, 168, 83, 0.6), transparent),
        radial-gradient(2px 2px at 92% 55%, rgba(255, 255, 255, 0.55), transparent);
    background-size: 220px 220px;
    opacity: 0.65;
    animation: stars-drift-mid 55s linear infinite;
}

.hero-stars-near {
    background-image:
        radial-gradient(2px 2px at 15% 28%, var(--gold-light), transparent),
        radial-gradient(2.5px 2.5px at 38% 72%, #fff, transparent),
        radial-gradient(2px 2px at 65% 38%, var(--gold), transparent),
        radial-gradient(3px 3px at 82% 62%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 48% 48%, var(--gold-light), transparent);
    background-size: 160px 160px;
    opacity: 0.85;
    animation: stars-drift-near 28s linear infinite;
}

.hero-portal-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    width: min(520px, 80vw);
    height: min(520px, 80vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 168, 83, 0.18) 0%, rgba(74, 44, 122, 0.12) 35%, transparent 65%);
    animation: portal-pulse 6s ease-in-out infinite;
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-ring-1 {
    width: 55%;
    height: 55%;
    animation: portal-ring 22s linear infinite;
}

.hero-ring-2 {
    width: 75%;
    height: 75%;
    border-color: rgba(94, 196, 196, 0.1);
    animation: portal-ring 32s linear infinite reverse;
}

.hero-ring-3 {
    width: 95%;
    height: 95%;
    border-style: dashed;
    border-color: rgba(240, 215, 140, 0.08);
    animation: portal-ring 45s linear infinite;
}

.hero-cosmic-dust {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 5% 15%, rgba(240, 215, 140, 0.6), transparent),
        radial-gradient(1px 1px at 18% 55%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 35% 25%, rgba(212, 168, 83, 0.5), transparent),
        radial-gradient(1px 1px at 52% 80%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 68% 40%, rgba(240, 215, 140, 0.45), transparent),
        radial-gradient(1px 1px at 85% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 92% 70%, rgba(212, 168, 83, 0.35), transparent);
    animation: cosmic-dust-float 18s ease-in-out infinite alternate;
    opacity: 0.7;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, rgba(26, 10, 46, 0.55) 100%),
        linear-gradient(0deg, rgba(26, 10, 46, 0.85) 0%, transparent 35%),
        linear-gradient(180deg, rgba(26, 10, 46, 0.5) 0%, transparent 25%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    text-align: center;
}

@keyframes hero-journey {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1.5%, -1%); }
    100% { transform: scale(1.14) translate(1%, 0.5%); }
}

@keyframes nebula-drift-a {
    0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    100% { transform: translate(8%, 6%) scale(1.15); opacity: 0.65; }
}

@keyframes nebula-drift-b {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.4; }
    100% { transform: translate(-6%, -8%) rotate(12deg); opacity: 0.6; }
}

@keyframes nebula-drift-c {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-4%, 5%) scale(1.2); opacity: 0.5; }
}

@keyframes stars-drift-far {
    0% { transform: translateY(0); }
    100% { transform: translateY(-280px); }
}

@keyframes stars-drift-mid {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-220px) translateX(30px); }
}

@keyframes stars-drift-near {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-160px) translateX(-40px); }
}

@keyframes portal-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes portal-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cosmic-dust-float {
    0% { transform: translate(0, 0); opacity: 0.5; }
    100% { transform: translate(2%, -3%); opacity: 0.85; }
}

.hero .spirit-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.85), transparent);
    animation: float-particle ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    50% { transform: translate(var(--dx, 12px), -28px) scale(1.35); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-nebula,
    .hero-stars-layer,
    .hero-portal-glow,
    .hero-ring,
    .hero-cosmic-dust,
    .hero .spirit-particle {
        animation: none !important;
    }
}

.hero-tag {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--cream);
    text-shadow: 0 0 40px var(--gold-glow);
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    min-width: 140px;
}

.hero-gira-card {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(45, 27, 78, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #a67c2e);
    color: var(--purple-deep);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-outline {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover { background: rgba(212, 168, 83, 0.15); }

.btn-danger {
    background: rgba(232, 93, 93, 0.2);
    border: 1px solid var(--error);
    color: #ffb4b4;
}

.btn-danger:hover {
    background: rgba(232, 93, 93, 0.35);
    color: #fff;
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }

.pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px var(--gold-glow); }
    50% { box-shadow: 0 4px 40px rgba(212, 168, 83, 0.7); }
}

.float-slow { animation: float-slow 4s ease-in-out infinite; }

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

/* Services quick */
.services-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    padding: 3rem 0;
    margin-top: -2rem;
}

.service-card {
    background: rgba(45, 27, 78, 0.6);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card img {
    width: 72px;
    height: 72px;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 0.3rem;
}

.service-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Sections */
.section { padding: 4rem 0; }

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.section-title span { color: var(--gold); }
.section-title.light { color: var(--cream); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.gira-info-box {
    background: rgba(45, 27, 78, 0.5);
    border-left: 4px solid var(--gold);
    padding: 2rem;
    border-radius: var(--radius);
}

.gira-info-box blockquote {
    border-left: 3px solid var(--gold-light);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--gold-light);
}

.text-gold { color: var(--gold); }
.img-rounded { border-radius: var(--radius); max-width: 100%; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }

.servicos-section {
    position: relative;
    background: center/cover no-repeat;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 10, 46, 0.88);
}

.servicos-section .container { position: relative; }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.servico-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(74, 44, 122, 0.3);
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.servico-item:hover { transform: scale(1.05); }
.servico-item img { width: 80px; height: 80px; margin-bottom: 0.8rem; }
.servico-item h4 { font-family: var(--font-display); color: var(--gold-light); }

.contato-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contato-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    background: rgba(45, 27, 78, 0.6);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
}

.contato-btn:hover { border-color: var(--gold); }
.contato-btn img { width: 40px; height: 40px; }

/* Forms */
.form-page {
    position: relative;
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.form-page-bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0.15;
}

.form-card {
    position: relative;
    max-width: min(520px, 100%);
    width: 100%;
    margin: 0 auto;
    background: rgba(45, 27, 78, 0.85);
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.form-logo, .form-icon-lg {
    display: block;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.form-icon { width: 80px; margin-bottom: 1rem; }

.form-card h1 {
    font-family: var(--font-display);
    text-align: center;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.gira-highlight {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(26, 10, 46, 0.5);
    border-radius: var(--radius);
}

.gira-highlight h2 { color: #c44; font-size: 1.1rem; }
.gira-highlight p { color: var(--text-muted); }

.mdd-form .form-group { margin-bottom: 1.2rem; }

.mdd-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.mdd-form input,
.mdd-form select,
.mdd-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 8px;
    background: rgba(26, 10, 46, 0.6);
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
}

.mdd-form input:focus,
.mdd-form select:focus,
.mdd-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-hint { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.form-hint a { color: var(--gold); }
.form-address { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

.map-embed {
    margin: 1rem 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-embed iframe { width: 100%; height: 220px; border: 0; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-gold { background: var(--gold); color: var(--purple-deep); }
.badge-muted { background: var(--text-muted); color: var(--purple-deep); }

/* Alerts */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin: 1rem auto;
    max-width: 1140px;
    animation: slideDown 0.4s ease;
}

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

.alert-success { background: rgba(92, 219, 149, 0.2); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(232, 93, 93, 0.2); border: 1px solid var(--error); color: var(--error); }
.alert-warning { background: rgba(240, 173, 78, 0.2); border: 1px solid var(--warning); color: var(--warning); }

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.data-table th {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.data-table a { color: var(--gold-light); }

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
}

.table-scroll .data-table {
    min-width: 560px;
}

.content-card {
    background: rgba(45, 27, 78, 0.5);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

.menu-table-wrap {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(45, 27, 78, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
}

.center { display: block; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Footer */
.site-footer {
    background: rgba(15, 5, 30, 0.95);
    border-top: 1px solid rgba(212, 168, 83, 0.15);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

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

.footer-logo { width: 64px; margin-bottom: 0.8rem; }
.footer-grid h4 { font-family: var(--font-display); color: var(--gold); margin-bottom: 0.8rem; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-address { color: var(--text-muted); margin-bottom: 0.6rem; line-height: 1.5; }
.footer-social { display: flex; gap: 0.8rem; align-items: center; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.footer-social img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}
.footer-copy { text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.footer-copy a,
.footer-copy a:visited {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-copy a:hover {
    color: var(--gold);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Google Login */
.google-login-wrap { margin-bottom: 1rem; }
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: box-shadow 0.2s, background 0.2s;
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 168, 83, 0.25);
}
/* Cadastro */
.form-intro { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }

/* Galeria / Carrossel */
.galeria-section {
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 78, 0.4) 50%, transparent 100%);
}

.galeria-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.galeria-sub {
    color: var(--text-muted);
    margin: -0.5rem 0 2rem;
    max-width: 560px;
    text-align: center;
}

.galeria-empty {
    padding: 3rem 1.5rem;
    background: rgba(45, 27, 78, 0.5);
    border: 1px dashed rgba(212, 168, 83, 0.3);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.galeria-empty code {
    color: var(--gold-light);
}

.carousel {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(212, 168, 83, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: 520px;
    background: transparent;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide:not(.active) .carousel-caption {
    display: none;
}

.carousel-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(transparent, rgba(26, 10, 46, 0.92));
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(212, 168, 83, 0.5);
    border-radius: 50%;
    background: rgba(26, 10, 46, 0.85);
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--purple-deep);
    border-color: var(--gold);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 168, 83, 0.3);
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--gold);
    transform: scale(1.2);
}

.carousel-thumbs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    background: none;
}

.carousel-thumb.active,
.carousel-thumb:hover {
    border-color: var(--gold);
    opacity: 1;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.form-card-narrow {
    max-width: min(420px, 100%);
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: min(1140px, 94%);
    }

    main {
        overflow-x: clip;
        max-width: 100vw;
    }

    .nav-logo {
        width: 48px;
        height: 48px;
    }

    .nav-brand span {
        font-size: 0.9rem;
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header .nav {
        padding: 0.65rem 0;
    }

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

    .form-page {
        padding: 1.5rem 0;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .form-card h1 {
        font-size: 1.35rem;
    }

    .mdd-form input,
    .mdd-form select,
    .mdd-form textarea {
        font-size: 16px;
        min-width: 0;
    }

    input[type="datetime-local"],
    input[type="date"],
    input[type="time"] {
        min-width: 0;
        width: 100%;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-quick {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 2rem 0;
        margin-top: -1rem;
    }

    .service-card {
        padding: 1rem 0.65rem;
    }

    .service-card img {
        width: 56px;
        height: 56px;
    }

    .service-card h3 {
        font-size: 0.9rem;
    }

    .service-card p {
        font-size: 0.78rem;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .servico-item {
        padding: 1rem 0.65rem;
    }

    .servico-item img {
        width: 64px;
        height: 64px;
    }

    .gira-info-box {
        padding: 1.25rem;
    }

    .contato-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .contato-btn {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .site-footer {
        padding: 2rem 0 1.25rem;
        margin-top: 2rem;
    }

    .alert {
        width: 94%;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
    }

    .menu-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content-card {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .table-scroll .data-table {
        min-width: 480px;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .carousel { max-width: 100%; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.4rem; }
    .carousel-thumbs { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 10, 46, 0.98);
        padding: 1rem;
        border-bottom: 1px solid rgba(212, 168, 83, 0.2);
        z-index: 120;
        pointer-events: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        display: block;
        padding: 0.65rem 0;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(212, 168, 83, 0.2);
    }
    .nav-admin { width: 100%; }
    .nav-admin-toggle { width: 100%; text-align: center; }
    .nav-admin-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }
    .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero { min-height: 70vh; }
    .hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .hero-sub { font-size: 1rem; padding: 0 0.5rem; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .pagination {
        gap: 0.65rem;
    }
}

@media (max-width: 400px) {
    .services-quick {
        grid-template-columns: 1fr;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .nav-brand span {
        max-width: 42vw;
    }
}
