/* ===== Custom Styles for Ocean Shores Pharmacy ===== */

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

/* Hero right clip path - asymmetric geometric shape */
.clip-hero-right {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Custom focus styles */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Service card hover tilt */
.group:hover .rounded-2xl.bg-teal-100 {
    transform: scale(1.05) rotate(-2deg);
}

/* Subtle pattern overlay for sections */
.bg-slate-900::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

#mobile-menu.closed {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Print styles */
@media print {
    #site-header, #menu-btn, .reveal { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
