/* ========================================
   Carrie's Cut & Style — Custom Styles
   Premium Dark Luxury Theme
   Teal + Slate Grey Palette
======================================== */

/* ---------- Base Reset & Typography ---------- */
*, *::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;
}

::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #f1f5f9;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080e1a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 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.5' 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 12px center;
    padding-right: 40px;
}

/* ---------- Navbar Transition ---------- */
#navbar.scrolled {
    background-color: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Mobile Menu Animation ---------- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* ---------- Hamburger Animation ---------- */
#menuBtn.active #bar1 {
    transform: translateY(3.5px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #bar3 {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 1.5rem;
}

/* ---------- Service Card Hover Glow ---------- */
.group:hover .group-hover\:scale-110 {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
}

/* ---------- Button Press Effect ---------- */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* ---------- Image Loading ---------- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ---------- 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
