/* ── Custom styles for Pristine Skincare Studio ── */

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

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

/* Smooth focus visible */
:focus-visible {
    outline: 2px solid #d1453a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #f9d8cc;
    color: #612327;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf6ea; }
::-webkit-scrollbar-thumb { background: #e98a7c; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #d1453a; }

/* ── Navbar scroll state ── */
nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ── Service card tilt effect (subtle) ── */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* ── Button ripple (subtle) ── */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-primary:active::after, .btn-secondary:active::after {
    width: 200px;
    height: 200px;
}

/* ── Gallery image hover overlay ── */
.rounded-2xl.overflow-hidden {
    position: relative;
}
.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(97, 35, 39, 0.15), transparent 40%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* ── Select dropdown 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='%23d1453a' 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 1rem center;
    padding-right: 2.5rem;
}

/* ── Mobile link underline ── */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #d1453a;
    transition: width 0.3s;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ── 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.hidden-init {
        opacity: 1;
        transform: none;
    }
    .rounded-2xl.overflow-hidden:hover::after { opacity: 0; }
    .service-card:hover { transform: none; }
    .blob { animation: none; }
}
