/* ============================================
   Whitehall Drug — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 180, 194, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(92, 138, 92, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(123, 45, 59, 0.08);
    border-radius: 20px;
    top: 35%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 180, 194, 0.08);
    top: 60%;
    right: 8%;
    transform: rotate(-20deg);
}

/* ============================================
   Hero Geometric Elements
   ============================================ */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-burgundy {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
}

.hero-geo-blush {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 180, 194, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -100px;
}

.hero-geo-sage {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(92, 138, 92, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: 30%;
    left: 45%;
}

.hero-geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 20%;
    right: 10%;
    border-radius: 50%;
}

/* ============================================
   Hero Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: slideInLeft 0.8s ease-out both;
}

.hero-image-container {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out 1s infinite;
}

/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 2.5s ease-in-out infinite;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B2D3B, #ff7ea3);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    position: relative;
    padding-left: 16px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFB4C2;
    transition: background 0.2s;
}

.mobile-nav-link:hover::before {
    background: #7B2D3B;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3B, #FFB4C2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Button & Link Focus States
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #3d1319;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-square-1,
    .geo-triangle-1 {
        display: none;
    }

    .hero-geo-burgundy {
        width: 300px;
        height: 300px;
    }

    .hero-geo-blush {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-shape,
    .hero-geo,
    .scroll-indicator {
        display: none !important;
    }

    #navbar {
        position: static;
        background: white;
    }

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