/* ============================================
   GLAM ROOM — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --color-midnight-950: #030714;
    --color-midnight-900: #060d1f;
    --color-mint-300: #5fe8be;
    --color-mint-400: #2dd4a0;
    --color-mint-500: #14b88a;
    --color-mint-600: #0f9672;
    --color-mint-100: #ccfbef;
    --color-mint-50: #f0fdf9;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, sans-serif;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Selection ---- */
::selection {
    background-color: var(--color-mint-400);
    color: var(--color-midnight-950);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-midnight-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-mint-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-mint-300);
}

/* ---- Header Transition ---- */
#site-header.scrolled {
    background: rgba(3, 7, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Service Cards ---- */
.service-card {
    will-change: transform;
}

.service-card a {
    text-decoration: none;
}

/* ---- Gallery ---- */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    display: block;
}

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

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

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .gallery-item img {
        transition: none;
    }

    .service-card {
        transition: none;
    }
}

/* ---- Focus Visible ---- */
:focus-visible {
    outline: 2px solid var(--color-mint-400);
    outline-offset: 2px;
}

/* ---- Utility: Custom underline animation ---- */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-mint-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ---- Smooth image loading ---- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ---- Print ---- */
@media print {
    #site-header,
    #contact,
    #gallery {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
