/* ============================================
   t(hair)apy by Mary — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(58, 157, 135, 0.2);
    color: #122a54;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #a3b8d6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7695c4;
}

/* Navbar */
#navbar {
    will-change: transform;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3a9d87;
    transition: width 0.3s ease;
}

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

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

.mobile-nav-link {
    position: relative;
}

/* Scroll Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Line Animation */
@keyframes scrollLine {
    0% {
        top: -50%;
    }
    100% {
        top: 150%;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Service Card Hover */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card h3 {
    transition: color 0.5s ease;
}

.service-card p {
    transition: color 0.5s ease;
}

/* Form Styles */
select option {
    background-color: #ffffff;
    color: #122a54;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #95d9c4 !important;
    box-shadow: 0 0 0 3px rgba(149, 217, 196, 0.15);
}

/* Image Hover */
.group:hover img {
    transform: scale(1.05);
}

/* 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-scroll-line {
        animation: none;
    }
}

/* Print */
@media print {
    #navbar,
    #mobile-menu,
    .reveal[data-reveal] {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .service-card {
        padding: 2rem !important;
    }
}
