/* ========================================
   My Kitchen Remodeling — Custom Styles
   Classic & Elegant | Teal + Slate Grey
   ======================================== */

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* --- Selection --- */
::selection {
    background: #0f766e;
    color: #f0fdfa;
}

/* --- Header Transition --- */
#site-header {
    will-change: background-color, box-shadow;
}

#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* --- Mobile Menu Button Animation --- */
#mobile-menu-btn[aria-expanded="true"] #bar1 {
    transform: translateY(6px) rotate(45deg);
}
#mobile-menu-btn[aria-expanded="true"] #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn[aria-expanded="true"] #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Portfolio Images --- */
.group img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* --- Input Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* --- Print Styles --- */
@media print {
    #site-header,
    #back-to-top,
    #mobile-menu-btn {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}
