/* ============================================
   Studio 330 — Custom Styles
   Bold editorial | Midnight blue + Mint
   ============================================ */

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

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

body {
    margin: 0;
    min-height: 100vh;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B18;
}
::-webkit-scrollbar-thumb {
    background: #1B3A5C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1FA876;
}

/* --- Selection --- */
::selection {
    background: rgba(31, 168, 118, 0.3);
    color: #D5F5E8;
}

/* --- Focus styles --- */
:focus-visible {
    outline: 2px solid #3BC191;
    outline-offset: 2px;
}

/* --- Scroll Reveal (progressive enhancement) --- */
/* Default state: content is visible (JS-disabled friendly) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When JS is enabled, hide initially then reveal on scroll */
.has-js .reveal {
    opacity: 0;
    transform: translateY(32px);
}

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

/* Stagger children */
.has-js .reveal.revealed > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-js .reveal.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.has-js .reveal.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.has-js .reveal.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.has-js .reveal.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.has-js .reveal.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.has-js .reveal.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.has-js .reveal.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .has-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal > *,
    .has-js .reveal.revealed > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* --- Navbar glass effect --- */
#navbar.scrolled {
    background: rgba(4, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .font-serif {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Hero asymmetric layout adjustments --- */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #040B18 0%, #0A1628 50%, #0F2035 100%);
    z-index: 0;
}

/* --- Button hover lift --- */
button:hover,
a[href="#contact"] {
    transform: translateY(-1px);
}

button:active,
a[href="#contact"]:active {
    transform: translateY(0);
}

/* --- Form select arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231FA876' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Mobile menu transitions --- */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

/* --- Service card image hover --- */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* --- Testimonial card hover --- */
.bg-midnight-800\\/50:hover {
    border-color: rgba(59, 193, 145, 0.2);
    box-shadow: 0 0 40px rgba(31, 168, 118, 0.05);
}

/* --- Smooth image loading --- */
img {
    loading: lazy;
    will-change: transform;
}

/* --- Print styles --- */
@media print {
    #navbar,
    #mobileMenu,
    #bookingForm,
    iframe {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
