/* ============================================
   Interventional Pain Consultants PA
   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(13, 148, 136, 0.2);
    color: #0f766e;
}

/* ---- Section Shared Styles ---- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
}

.section-desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
}

/* ---- Navbar ---- */
#navbar {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ---- Approach Steps ---- */
.approach-step {
    position: relative;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 28px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 80px;
    line-height: 1;
    color: rgba(13, 148, 136, 0.08);
    pointer-events: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-badge {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-badge {
    animation-delay: 0.1s;
}

h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.2s;
}

.hero p {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.35s;
}

.hero a {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.45s;
}

/* ---- Scroll-triggered animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }

/* ---- Image hover effects ---- */
.rounded-3xl.overflow-hidden {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rounded-3xl.overflow-hidden:hover {
    transform: scale(1.01);
}

/* ---- Button focus states ---- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .testimonial-card::before {
        font-size: 60px;
        top: 16px;
        right: 20px;
    }
}

@media (max-width: 640px) {
    #navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
}
