/* --- CONFIGURACOES GERAIS --- */
:root {
    --bg-black: #050505;
    --bg-section: #080808;
    --bg-card: #0d0d0d;
    --bg-navbar: rgba(5, 5, 5, 0.90);
    --hero-glow: rgba(212, 175, 55, 0.10);
    --gold: #d4af37;
    --gold-bright: #f4df90;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --line: rgba(212, 175, 55, 0.12);
    --line-strong: rgba(212, 175, 55, 0.25);
    --input-line: #222222;
    --neon-glow: rgba(212, 175, 55, 0.30);
    --gold-soft-bg: rgba(212, 175, 55, 0.12);
    --gold-focus-ring: rgba(212, 175, 55, 0.28);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

[data-theme="pastel"] {
    --bg-black: #f6efe7;
    --bg-section: #ede1d5;
    --bg-card: #fff7ef;
    --bg-navbar: rgba(255, 248, 240, 0.92);
    --hero-glow: rgba(193, 155, 99, 0.18);
    --gold: #c19b63;
    --gold-bright: #debf93;
    --text-main: #3b2f2c;
    --text-dim: #7b6a62;
    --line: rgba(193, 155, 99, 0.22);
    --line-strong: rgba(193, 155, 99, 0.34);
    --input-line: rgba(59, 47, 44, 0.24);
    --neon-glow: rgba(193, 155, 99, 0.28);
    --gold-soft-bg: rgba(193, 155, 99, 0.14);
    --gold-focus-ring: rgba(193, 155, 99, 0.30);
}

[data-theme="white"],
[data-theme="light"] {
    --bg-black: #f4f4f4;
    --bg-section: #ececec;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.93);
    --hero-glow: rgba(184, 134, 11, 0.16);
    --gold: #b8860b;
    --gold-bright: #d9a73f;
    --text-main: #1f1f1f;
    --text-dim: #5d5d5d;
    --line: rgba(184, 134, 11, 0.20);
    --line-strong: rgba(184, 134, 11, 0.32);
    --input-line: rgba(31, 31, 31, 0.18);
    --neon-glow: rgba(184, 134, 11, 0.26);
    --gold-soft-bg: rgba(184, 134, 11, 0.12);
    --gold-focus-ring: rgba(184, 134, 11, 0.26);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition:
        background-color 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.40s ease,
        border-color 0.42s ease,
        box-shadow 0.45s ease,
        opacity 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

/* BARRA DE ROLAGEM */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, transparent 0%, var(--gold) 50%, transparent 100%);
    border-radius: 10px;
    border: 2px solid var(--bg-black);
}

body {
    background:
        radial-gradient(circle at 85% 8%, var(--hero-glow), transparent 34%),
        var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER PADRAO */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* CORTINA */
.curtain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.panel {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    transition: transform 1.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.panel-top-left {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.panel-bottom-right {
    bottom: 0;
    right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.curtain-open .panel-top-left {
    transform: translate(-100%, -100%);
}

.curtain-open .panel-bottom-right {
    transform: translate(100%, 100%);
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 100;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img-sm {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.28s ease, transform 0.22s ease, text-shadow 0.32s ease;
}

nav a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--neon-glow);
}

.btn-contact {
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    color: var(--gold) !important;
}

.btn-contact:hover {
    background: var(--gold);
    color: var(--bg-black) !important;
    box-shadow: 0 0 20px -10px var(--neon-glow);
}

.btn-login {
    border: 1px solid var(--line-strong);
    padding: 0.5rem 1.3rem;
    color: var(--text-main) !important;
    border-radius: 999px;
}

.btn-login:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: var(--gold-soft-bg);
    box-shadow: 0 0 16px -10px var(--neon-glow);
}

.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--gold);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.theme-icon {
    width: 16px;
    height: 16px;
}

.theme-icon-btn:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 0 16px -9px var(--neon-glow);
}

.theme-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-focus-ring), 0 0 16px -8px var(--neon-glow);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 190px;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    z-index: 120;
}

.theme-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-option {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dim);
    text-align: left;
    font-size: 0.74rem;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
}

.theme-option:hover,
.theme-option.is-active {
    color: var(--gold);
    background: var(--gold-soft-bg);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, var(--hero-glow), transparent 42%),
        linear-gradient(150deg, var(--bg-section), var(--bg-black));
}

.hero-content {
    max-width: 850px;
    z-index: 10;
    padding-left: 10%;
}

.subtitle {
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 400;
}

.gold-text {
    color: var(--gold);
    font-style: italic;
}

.description {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--gold);
    color: var(--bg-black);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px -10px var(--neon-glow);
}

/* SECTIONS */
.section-dark {
    padding: 10rem 0;
    background-color: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 400;
}

.separator {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 4rem 2.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px var(--line), 0 0 24px -10px var(--neon-glow);
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 1rem 0;
}

/* SOBRE */
.section-about {
    padding: 12rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.image-wrapper:hover img {
    filter: grayscale(0%);
}

.gold-outline {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.narrative p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* CONTATO */
.section-contact {
    padding: 10rem 0;
    background: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
}

.contact-info {
    padding-top: 2rem;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

.contact-details {
    margin-top: 3rem;
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item span {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--input-line);
    color: var(--text-main);
    font-family: var(--font-sans);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
    box-shadow: 0 10px 20px -18px var(--neon-glow);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* FOOTER */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 0.8rem;
    background: var(--bg-black);
}

/* ANIMACOES */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-play-state: paused;
}

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

.delay-1 {
    animation-delay: 1.3s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 1.7s;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

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

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding-left: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .logo-img-sm {
        height: 44px;
    }
}