/* ============================================
   KARMA A CRAIG EDWARD SALON — STYLESHEET
   Bold Editorial · Terracotta + Sand Palette
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #4a3228;
    background-color: #fdfbf7;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #efe9e0;
}
::-webkit-scrollbar-thumb {
    background: #c44115;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a13112;
}

/* ---- Marquee Animation ---- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ---- Navigation ---- */
#nav {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(203, 173, 148, 0.2);
    transition: all duration-500;
}

#nav.scrolled {
    padding: 0;
    box-shadow: 0 1px 20px rgba(42, 29, 22, 0.08);
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Testimonial Cards ---- */
.bg-bark-900\/50 {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bg-bark-900\/50:hover {
    transform: translateY(-4px);
}

/* ---- Button Focus States ---- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e05520;
    outline-offset: 2px;
}

/* ---- Selection ---- */
::selection {
    background: #f9c4a0;
    color: #4a3228;
}

/* ---- 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;
    }
    .animate-marquee {
        animation: none;
    }
}

/* ---- Print ---- */
@media print {
    #nav, #mobile-menu, .animate-marquee {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
