/* ==========================================
   HEADER VARIABLES
========================================== */
.rk-header {
    --rk-teal: #CBE7EC;
    --rk-gray: #505059;
    --rk-rose: #A78278;
    --rk-white: #FFFFFF;
    --rk-dark: #1a1a2e;
    --rk-rose-rgb: 167, 130, 120;
    --rk-teal-rgb: 203, 231, 236;
    --rk-dark-rgb: 26, 26, 46;
}

.rk-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   HEADER WRAPPER
========================================== */
.rk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.rk-header--transparent {
    background: transparent;
}

.rk-header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 26, 46, 0.06);
}

/* White background when mobile menu is open */
.rk-header--menu-open {
    background: #fff !important;
    box-shadow: none !important;
}

.rk-header--scrolled .rk-topbar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

/* SVG icon base */
.rk-header svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================
   TOP BAR
========================================== */
.rk-topbar {
    padding: 4px 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    transition: all 0.3s ease;
    max-height: 36px;
    opacity: 1;
    overflow: hidden;
}

.rk-topbar__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.rk-topbar__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rk-topbar__info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 400;
    text-decoration: none;
    color: var(--rk-gray);
    transition: color 0.2s ease;
}

.rk-topbar__info-item:hover {
    color: var(--rk-rose);
}

.rk-topbar__reviews svg {
    color: #fbbf24;
}

.rk-topbar__divider {
    width: 1px;
    height: 10px;
    background: var(--rk-dark);
    opacity: 0.1;
}

/* ==========================================
   MAIN NAVIGATION
========================================== */
.rk-nav {
    padding: 16px 0;
    transition: padding 0.3s ease;
}

.rk-header--scrolled .rk-nav {
    padding: 10px 0;
}

.rk-nav__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

/* Logo */
.rk-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10001;
    flex-shrink: 0;
    margin-right: auto;
}

.rk-nav__logo img {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

.rk-header--scrolled .rk-nav__logo img {
    height: 45px;
}

/* Menu */
.rk-nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.rk-nav__item {
    position: relative;
}

.rk-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    color: var(--rk-dark);
}

.rk-nav__link:hover {
    color: var(--rk-rose);
    background: rgba(167, 130, 120, 0.06);
}

.rk-nav__link .rk-chevron {
    transition: transform 0.3s ease;
}

.rk-nav__item:hover .rk-nav__link .rk-chevron {
    transform: rotate(180deg);
}

/* CTA Buttons */
.rk-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
}

.rk-nav__actions .dc-cta-btn {
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(167,130,120,0.15);
    white-space: nowrap;
    gap: 10px;
}
.rk-nav__actions .dc-cta-btn .dc-cta-btn__label { display: none; }
.rk-nav__actions .dc-cta-btn .dc-cta-btn__title { font-size: 12px; font-family: 'Inter', sans-serif; font-weight: 600; }
.rk-nav__actions .dc-cta-btn .dc-cta-btn__arrow { width: 28px; height: 28px; }
.rk-nav__actions .dc-cta-btn .dc-cta-btn__arrow svg { width: 13px; height: 13px; }
.rk-nav__actions .dc-cta-btn--light { box-shadow: none; }

/* ==========================================
   MEGA MENU
========================================== */
.rk-mega {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--rk-white);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(26, 26, 46, 0.12), 0 0 0 1px rgba(26, 26, 46, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.rk-nav__item:hover .rk-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.rk-mega--wide {
    width: 980px;
}

/* Main layout: cat-tabs (left) + panels (center) + featured (right) */
.rk-mega__layout {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    grid-template-rows: 1fr auto;
    min-height: 380px;
}

/* ── Left: category tabs ── */
.rk-mega__tabs {
    padding: 16px 0 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-right: 1px solid rgba(26,26,46,0.05);
}
.rk-mega__tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.rk-mega__tab:hover,
.rk-mega__tab.rk-mega__tab--active {
    background: rgba(167,130,120,0.05);
}
.rk-mega__tab.rk-mega__tab--active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--rk-rose);
    border-radius: 2px;
}
.rk-mega__tab-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(167,130,120,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rk-rose);
    flex-shrink: 0;
    transition: all 0.2s;
}
.rk-mega__tab.rk-mega__tab--active .rk-mega__tab-icon {
    background: var(--rk-rose);
    color: #fff;
}
.rk-mega__tab-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--rk-gray);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rk-mega__tab.rk-mega__tab--active .rk-mega__tab-name,
.rk-mega__tab:hover .rk-mega__tab-name {
    color: var(--rk-dark);
    font-weight: 600;
}
.rk-mega__tab-name:hover {
    text-decoration: none;
    text-underline-offset: 2px;
}
.rk-mega__tab-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: var(--rk-rose);
    background: rgba(167,130,120,0.08);
    border-radius: 50px;
    padding: 2px 8px;
    line-height: 1.4;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Center: treatment panels ── */
.rk-mega__panels {
    position: relative;
    padding: 20px 24px;
}
.rk-mega__panel {
    display: none;
    column-count: 2;
    column-gap: 8px;
}
.rk-mega__panel.rk-mega__panel--active {
    display: block;
}
.rk-mega__panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rk-rose);
    padding: 0 10px 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(167,130,120,0.08);
    column-span: all;
}
.rk-mega__panel .rk-mega__link {
    break-inside: avoid;
}

.rk-mega__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 400;
    color: var(--rk-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.rk-mega__link svg {
    color: rgba(167,130,120,0.35);
    transition: color 0.2s ease;
    flex-shrink: 0;
}
.rk-mega__link:hover {
    background: rgba(167,130,120,0.06);
    color: var(--rk-dark);
    padding-left: 14px;
}
.rk-mega__link:hover svg {
    color: var(--rk-rose);
}

/* ── Right: featured doctor card ── */
.rk-mega__featured {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 0 20px 20px 0;
    grid-row: 1 / -1;
    grid-column: 3;
}
.rk-mega__featured-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.rk-mega__featured-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, #1a1a2e, transparent);
    pointer-events: none;
}
.rk-mega__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}
.rk-mega:hover .rk-mega__featured-img img {
    transform: scale(1.05);
}
.rk-mega__featured-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 16px 18px 18px;
}
.rk-mega__featured-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}
.rk-mega__featured-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 3px;
    font-family: 'Cinzel', serif;
}
.rk-mega__featured-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    margin-bottom: 12px;
}
.rk-mega__featured-usp {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: 14px;
}
.rk-mega__featured-usp-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
}
.rk-mega__featured-usp-item svg {
    color: var(--rk-rose);
    flex-shrink: 0;
}
.rk-mega__featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--rk-rose);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    justify-content: center;
}
.rk-mega__featured-cta:hover {
    background: #96726a;
    transform: translateY(-1px);
}
.rk-mega__featured-cta svg {
    transition: transform 0.3s ease;
}
.rk-mega__featured-cta:hover svg {
    transform: translateX(2px);
}

/* ── Bottom bar: USPs + CTA ── */
.rk-mega__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-top: 1px solid rgba(26,26,46,0.05);
    background: rgba(167,130,120,0.02);
    grid-column: 1 / 3;
}
.rk-mega__usps {
    display: flex;
    gap: 14px;
}
.rk-mega__usp {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--rk-gray);
}
.rk-mega__usp svg {
    color: var(--rk-rose);
}
.rk-mega__footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #8B6B62;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(167,130,120,0.15);
    transition: all 0.2s ease;
}
.rk-mega__footer-cta:hover {
    background: rgba(167,130,120,0.06);
    border-color: var(--rk-rose);
}
.rk-mega__footer-cta svg {
    transition: transform 0.3s ease;
}

.rk-mega__footer-cta:hover svg {
    transform: translateX(2px);
}

/* Simple dropdown */
.rk-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--rk-white);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px;
    min-width: 220px;
    z-index: 10000;
    pointer-events: none;
}

.rk-nav__item:hover .rk-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.rk-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 400;
    color: var(--rk-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rk-dropdown__link:hover {
    background: rgba(167, 130, 120, 0.06);
    color: var(--rk-dark);
}

.rk-dropdown__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(167, 130, 120, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rk-rose);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.rk-dropdown__link:hover .rk-dropdown__icon {
    background: rgba(167, 130, 120, 0.14);
}

/* ==========================================
   HAMBURGER
========================================== */
.rk-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rk-hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--rk-dark);
    transition: all 0.3s ease;
}

.rk-hamburger--active .rk-hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.rk-hamburger--active .rk-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.rk-hamburger--active .rk-hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   MOBILE OVERLAY
   (element lives outside <header> to avoid
    backdrop-filter containing-block bug)
========================================== */
.rk-mobile {
    --rk-white: #FFFFFF;
    --rk-dark: #1a1a2e;
    --rk-rose: #A78278;
    --rk-gray: #505059;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rk-white);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 100px 30px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.rk-mobile *,
.rk-mobile *::before,
.rk-mobile *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rk-mobile--active {
    opacity: 1;
    visibility: visible;
}

.rk-mobile__menu {
    list-style: none;
}

.rk-mobile__item {
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

.rk-mobile__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--rk-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rk-mobile__link:hover {
    color: var(--rk-rose);
}

.rk-mobile__link .rk-chevron {
    transition: transform 0.3s ease;
}

.rk-mobile__sub {
    display: none;
    padding: 0 0 8px 12px;
    list-style: none;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rk-mobile__sub--active {
    display: block;
}

.rk-mobile__sub-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rk-rose);
    padding: 10px 0 4px;
    position: sticky;
    top: 0;
    background: var(--rk-white);
    z-index: 1;
}

.rk-mobile__sub-link {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--rk-gray);
    text-decoration: none;
}

.rk-mobile__sub-link:hover {
    color: var(--rk-rose);
}

.rk-mobile__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.rk-mobile__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.rk-mobile__cta--outline {
    border: 1.5px solid rgba(26, 26, 46, 0.2);
    color: var(--rk-dark);
    background: transparent;
}

.rk-mobile__cta--filled {
    background: var(--rk-rose);
    color: var(--rk-white);
    border: 1.5px solid var(--rk-rose);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    .rk-topbar__container {
        justify-content: flex-end;
    }
}

@media (max-width: 1024px) {
    .rk-nav__menu,
    .rk-topbar {
        display: none;
    }

    .rk-hamburger {
        display: flex;
    }

    .rk-mobile {
        display: block;
    }

    .rk-nav__actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .rk-nav__container {
        padding: 0 16px;
    }

    .rk-nav__logo img {
        height: 40px;
    }

    .rk-header--scrolled .rk-nav__logo img {
        height: 36px;
    }
}
