/* Athens Pulmonary & Allergy PC — Custom Styles */

/* ── Base & Typography ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #1A1209;
    color: #E8D5C0;
}

::selection {
    background-color: rgba(200, 149, 108, 0.3);
    color: #F2E6D6;
}

/* ── Navbar Scroll State ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 18, 9, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8956C, transparent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.nav-link:hover {
    color: #E8D5C0 !important;
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link:hover {
    color: #D4A574 !important;
    padding-left: 0.5rem;
    transition: padding 0.3s ease, color 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ── Hero Scroll Line ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8956C, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* ── Condition Cards ── */
.condition-card {
    position: relative;
    overflow: hidden;
}

.condition-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8956C, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.condition-card:hover::after {
    opacity: 1;
}

/* ── Form Styles ── */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(200, 149, 108, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.1) !important;
}

select option {
    background-color: #2A1F10;
    color: #E8D5C0;
}

/* ── Scroll Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .condition-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }
}

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

::-webkit-scrollbar-track {
    background: #1A1209;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C8956C, #A87348);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D4A574, #C8956C);
}

/* ── Gold shimmer effect on hover for CTAs ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .scroll-line {
        display: none;
    }
}

/* ── Focus visible for accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8956C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Print styles ── */
@media print {
    body {
        background: white !important;
        color: #1a1a1a !important;
    }
    
    #navbar,
    .scroll-line {
        display: none;
    }
}
