/* ==========================================
   Ace Acupuncture Clinic — Custom Styles
   ========================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Selection Color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0d9488;
}

/* ==========================================
   Navbar
   ========================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   Hero Animations
   ========================================== */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================
   About Section
   ========================================== */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   Approach Section
   ========================================== */
.approach-image {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.approach-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   Testimonial Cards
   ========================================== */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==========================================
   Decorative Divider
   ========================================== */
.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0d9488, #5eead4);
    border: none;
    margin: 1.5rem 0;
}

.divider-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Mobile Menu
   ========================================== */
.mobile-menu-open {
    overflow: hidden;
}

#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   Form Styles
   ========================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 span {
        display: block;
    }
}

@media (max-width: 640px) {
    #navbar .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================
   Focus Visible for Accessibility
   ========================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    #navbar,
    #contactForm,
    .service-card,
    .testimonial-card {
        display: none;
    }

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