/**
 * Theme Styles - Homely Physio
 * Design System: "The Clinical Sanctuary"
 */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html, body {
    overflow-x: hidden;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .editorial-grid {
        gap: 2rem;
    }
}

/* Admin bar offset for fixed nav */
.admin-bar nav.fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar nav.fixed {
        top: 46px;
    }
}

/* Testimonial track scrollbar hide for webkit */
.hp-testimonial-track::-webkit-scrollbar {
    display: none;
}


/* ═══════════════════════════════════════════════
 *  HEADER NAVIGATION - Desktop
 * ═══════════════════════════════════════════════ */

.hp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level link */
.hp-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #171D1E;
    opacity: 0.55;
    text-decoration: none !important;
    border: none;
    border-bottom: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hp-nav-link::after {
    display: none;
}

.hp-nav-link:hover {
    opacity: 1;
    color: #171D1E;
    background-color: transparent;
}

.hp-nav-link--active {
    opacity: 1;
    color: #006876;
    position: relative;
}

.hp-nav-link.hp-nav-link--active::after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: #006876;
    border-radius: 1px;
}

/* Arrow icon in nav */
.hp-nav-arrow {
    font-size: 18px !important;
    transition: transform 0.2s ease;
}

.hp-nav-item:hover .hp-nav-arrow {
    transform: rotate(180deg);
}

/* ── Dropdown (Level 2) ─────────────────────── */

.hp-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(23, 29, 30, 0.08),
        0 1px 4px rgba(23, 29, 30, 0.04);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(188, 201, 204, 0.3);
}

.hp-nav-item:hover > .hp-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-level link */
.hp-nav-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #171D1E;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hp-nav-sub-link:hover {
    background-color: rgba(0, 104, 118, 0.06);
    color: #006876;
}

.hp-nav-sub-link--active {
    color: #006876;
    background-color: rgba(0, 104, 118, 0.08);
    font-weight: 600;
}

.hp-nav-arrow-sub {
    font-size: 16px !important;
    color: #6D797C;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.hp-nav-sub-item:hover > .hp-nav-sub-link .hp-nav-arrow-sub {
    color: #006876;
    transform: translateX(2px);
}

/* ── Dropdown (Level 3) - flyout ────────────── */

.hp-nav-dropdown--sub {
    position: absolute;
    top: -8px;
    left: 100%;
    margin-left: 4px;
}

.hp-nav-sub-item:hover > .hp-nav-dropdown--sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(0);
}

/* Invisible bridge to prevent gap hover loss */
.hp-nav-item > .hp-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.hp-nav-sub-item > .hp-nav-dropdown--sub::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 8px;
    bottom: 0;
}


/* ═══════════════════════════════════════════════
 *  HEADER NAVIGATION - Mobile
 * ═══════════════════════════════════════════════ */

.hp-mobile-toggle-sub .material-symbols-outlined {
    display: block;
}

.hp-mobile-toggle-sub.is-open .material-symbols-outlined {
    transform: rotate(180deg);
}


/* ═══════════════════════════════════════════════
 *  FOOTER
 * ═══════════════════════════════════════════════ */

.hp-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-footer-menu a {
    text-decoration: none;
}

.hp-footer-heading {
    letter-spacing: -0.01em;
}

/* Footer logo link - remove default WP styling */
.hp-footer .custom-logo-link {
    display: inline-block;
}

.hp-footer .custom-logo {
    max-height: 32px;
    width: auto;
}


/* ═══════════════════════════════════════════════
 *  FEATURE CARDS — responsive grid (override Elementor)
 * ═══════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .hp-features-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════
 *  SERVICES / PRICING PAGE
 * ═══════════════════════════════════════════════ */

/* Service card hover/active interaction */
.hp-service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

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

.hp-service-card.is-active {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(23, 29, 30, 0.1);
}

/* Details panel: only active tab visible, with fade animation */
.hp-service-tab {
    display: none;
}

.hp-service-tab.is-active {
    display: block;
    animation: hpTabFadeIn 0.4s ease;
}

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

/* Bio Promo image fill */
.hp-bio-promo-box {
    position: relative;
}

.hp-bio-promo-box > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
