/* ============================================
   The Clara Zeno House — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --gold-500: #C8A656;
    --gold-400: #D4B76A;
    --gold-600: #A8883E;
    --navy-950: #050D1A;
    --navy-900: #0A1628;
    --navy-800: #0F1F38;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--navy-950);
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--gold-500);
    color: var(--navy-950);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-600);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-500);
}

/* --- Gold Line Decoration (Logo) --- */
.gold-line-decoration {
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}
.gold-line-decoration::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--gold-500);
    transform: rotate(45deg);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.gold-line-decoration::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--gold-500);
    transform: rotate(0deg);
    transition: transform 0.4s ease;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(5, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 166, 86, 0.1);
}

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}
.menu-line {
    transition: all 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero --- */
.hero-image {
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}
.hero-fade-in {
    animation: heroFade 1.2s ease-out forwards;
}
@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 0.8; height: 60px; }
}

/* --- Room Cards --- */
.room-card {
    position: relative;
}
.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200, 166, 86, 0);
    border-radius: inherit;
    transition: border-color 0.4s ease;
    z-index: 10;
    pointer-events: none;
}
.room-card:hover::before {
    border-color: rgba(200, 166, 86, 0.3);
}

/* --- Buttons --- */
button[type="submit"],
a[href="#contact"] {
    position: relative;
    overflow: hidden;
}
button[type="submit"]::before,
a[href="#contact"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
button[type="submit"]:hover::before,
a[href="#contact"]:hover::before {
    opacity: 1;
}

/* --- Input Focus States --- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(200, 166, 86, 0.2);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Divider --- */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 166, 86, 0.3), transparent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet adjustments */
}

/* --- Print --- */
@media print {
    body {
        background: white;
        color: black;
    }
    .no-print {
        display: none;
    }
}
