/* Shared sticky header + section nav — used across all site pages */
@import url('appointment-modal.css');

/* Hidden off-screen until keyboard focus (top:-40px left a white sliver visible) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: white;
    padding: 8px;
    z-index: 99999;
    color: var(--text-dark);
    font-weight: bold;
}
.skip-link:focus {
    left: 0;
    top: 0;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 20px;
    padding: 12px 5%;
    background: rgba(239, 235, 223, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(168, 123, 98, 0.2);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-center {
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-center::-webkit-scrollbar { display: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    justify-self: end;
}

.phone-link {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.phone-link:hover { color: var(--primary-color); }

.nav-divider {
    color: rgba(168, 123, 98, 0.4);
    margin: 0 5px;
}

.social-icon { color: var(--primary-color); font-size: 1.5rem; transition: transform 0.2s; }
.social-icon:hover { transform: translateY(-2px); color: var(--text-dark); }

.book-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}
.book-btn:hover { opacity: 0.9; }

.section-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.section-nav li { margin: 0; padding: 0; }

.section-nav a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: var(--primary-color);
    white-space: nowrap;
    transition: all 0.25s;
}
.section-nav a:hover,
.section-nav a:focus {
    background: white;
    border-color: rgba(168, 123, 98, 0.35);
    color: var(--text-dark);
}

@media (max-width: 1100px) {
    .section-nav a {
        padding: 7px 10px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    nav {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding-top: 15px;
    }

    .nav-center {
        width: 100%;
        overflow-x: visible;
        justify-content: center;
    }

    .section-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
    }

    .section-nav a {
        padding: 6px 8px;
        font-size: 0.6rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        justify-self: center;
    }

    .nav-divider { display: none; }
    .social-icon, .book-btn { order: 1; }
    .phone-link {
        order: 2;
        width: 100%;
        text-align: center;
        margin-top: 5px;
        font-size: 1rem;
    }
}
