/* ============================================
   Twin Kiss — Custom Styles
   Premium Dark Luxury | Forest Green + Gold
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #FAF9F6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A0D09;
}
::-webkit-scrollbar-thumb {
    background: #284f33;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #356642;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    /* Staggered delays handled in JS */
}

/* --- Navbar glass effect --- */
#navbar.scrolled {
    background: rgba(10, 13, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Mobile menu transitions --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Gold shimmer on CTA buttons --- */
button[type="submit"]:hover,
a[href="#contact"]:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* --- Input autofill override --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0A0D09 inset !important;
    -webkit-text-fill-color: #FAF9F6 !important;
}

/* --- Focus visible for accessibility --- */
:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.6);
    outline-offset: 2px;
}

/* --- Image loading placeholder --- */
img {
    background-color: #1A1D18;
}

/* --- Subtle grain texture overlay (optional, for hero) --- */
.hero-grain {
    position: relative;
}
.hero-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
    pointer-events: none;
    opacity: 0.4;
}

/* --- Mobile-specific adjustments --- */
@media (max-width: 639px) {
    .font-display {
        line-height: 1.15;
    }

    #mobile-menu {
        padding: 0 2rem;
    }
}

/* --- Print styles --- */
@media print {
    body {
        background: white;
        color: #1a1a1a;
    }
    #navbar, #mobile-menu, button, .reveal {
        display: none !important;
    }
}
