button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.header-logo {
    width: 200px;
    height: 85px;
    display: block;
}

.header-logo-block {
    position: relative;
}

.logo-white,
.logo-dark {
    width: 120px;
    transition: opacity .3s ease;
}

.logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.site-header.scrolled .logo-white {
    opacity: 0;
}

.site-header.scrolled .logo-dark {
    opacity: 1;
}

/* fake hero behind the header so transparent -> glass transition is visible */
.hero-stub {
    height: auto;
    background: linear-gradient(160deg, var(--plum-deep), var(--plum) 60%, #4d1a37);
    /* display: flex; */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}


.hero-stub .content {
    margin-top: 100px;
}

.hero-stub .content h1 {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.hero-stub h1 {
    color: #fff;
    font-size: clamp(28px, 4.5vw, 46px);
    max-width: 640px;
    line-height: 3.2rem;
}

.hero-stub p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.page-stub {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.page-stub p {
    color: var(--ink-soft);
    font-size: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--plum);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px 24px;
    border-radius: 100px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--plum-deep);
    transform: translateY(-2px);
}

.btn-primary .arrow {
    transition: transform .25s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(3px);
}

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 18px 0;
    background: linear-gradient(160deg, var(--plum-deep), var(--plum) 60%, #4d1a37);
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s ease;
}

.site-header .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px -20px rgba(66, 22, 47, 0.25);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 0;
}

.header-logo-block {
    display: flex;
    flex-direction: column;
}

.header-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 21px;
    transition: color .3s ease;
    color: #fff;
}

.site-header.scrolled .header-logo {
    color: var(--plum-deep);
}

.header-logo span {
    color: var(--gold);
}

.header-tagline {
    font-size: 11px;
    letter-spacing: 0.03em;
    transition: color .3s ease, opacity .3s ease;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1px;
}

.site-header.scrolled .header-tagline {
    color: var(--ink-soft);
}

@media (max-width:980px) {
    .header-tagline {
        display: none;
    }
}

.header-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width:980px) {
    .header-center {
        display: none;
    }
}

.nav-item {
    position: relative;
}

.nav-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    padding: 10px 16px;
    border-radius: 100px;
    transition: color .3s ease, background .2s ease;
}

.site-header.scrolled .nav-trigger {
    color: var(--plum-deep);
}

.nav-item:hover .nav-trigger {
    background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .nav-item:hover .nav-trigger {
    background: var(--bg-section);
}

.nav-trigger .chev {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease;
    margin-top: -3px;
}

.nav-item:hover .nav-trigger .chev {
    transform: rotate(225deg) translateY(2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    color: #fff;
}

.site-header.scrolled .search-btn {
    color: var(--plum-deep);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-header.scrolled .search-btn:hover {
    background: var(--bg-section);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.site-header.scrolled .hamburger {
    color: var(--plum-deep);
}

@media (max-width:980px) {
    .hamburger {
        display: flex;
    }
}

/* ============ MEGA MENU PANEL ============ */
.mega-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(920px, 92vw);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 80px -30px rgba(66, 22, 47, 0.35);
    border: 1px solid var(--hairline);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    padding: 36px;
    z-index: 10;
}

.nav-item:hover .mega-panel,
.mega-panel.force-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 36px;
}

.mega-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 420px;
}

.mega-left-head {
    margin-bottom: 20px;
}

.mega-left-head h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.mega-left-head p {
    font-size: 13.5px;
    color: var(--ink-soft);
    max-width: 380px;
}

.mega-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 14px;
    border-radius: 16px;
    transition: background .2s ease, transform .2s ease;
    opacity: 0;
    transform: translateY(8px);
    animation: cardIn .4s ease forwards;
}

.nav-item:hover .mega-card:nth-child(1) {
    animation-delay: .05s;
}

.nav-item:hover .mega-card:nth-child(2) {
    animation-delay: .12s;
}

.nav-item:hover .mega-card:nth-child(3) {
    animation-delay: .19s;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-card:hover {
    background: var(--bg-section);
}

.mega-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 200, 76, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-card-text h4 {
    font-size: 14.5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-card-text h4 .go {
    font-size: 12px;
    color: var(--gold);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateX(-3px);
}

.mega-card:hover .go {
    opacity: 1;
    transform: translateX(0);
}

.mega-card-text p {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.mega-right-cta {
    margin-top: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--plum);
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width:760px) {
    .mega-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(48, 16, 32, 0.55);
    z-index: 600;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    background: #fff;
    border-radius: 22px;
    width: min(620px, 92vw);
    padding: 26px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.search-input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    color: var(--ink);
}

.search-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: var(--bg-section);
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sugg-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 8px;
}

.sugg-item {
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    transition: background .2s ease;
}

.sugg-item:hover {
    background: var(--bg-section);
    color: var(--ink);
}

/* ============ MOBILE DRAWER ============ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(48, 16, 32, 0.4);
    z-index: 700;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 380px;
    background: #fff;
    z-index: 701;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.19, 1, .22, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--hairline);
}

.drawer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--plum-deep);
}

.drawer-logo span {
    color: var(--gold);
}

.drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: var(--bg-section);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px;
}

.drawer-section {
    border-bottom: 1px solid var(--hairline);
}

.drawer-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--plum-deep);
}

.drawer-section-head .chev {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--plum-deep);
    border-bottom: 1.6px solid var(--plum-deep);
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.drawer-section.open .drawer-section-head .chev {
    transform: rotate(225deg);
}

.drawer-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 14px;
}

.drawer-section.open .drawer-section-body {
    max-height: 500px;
    padding-bottom: 12px;
}

.drawer-link {
    display: block;
    padding: 10px 8px;
    border-radius: 10px;
}

.drawer-link:hover {
    background: var(--bg-section);
}

.drawer-link h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: var(--plum-deep);
    margin-bottom: 2px;
}

.drawer-link p {
    font-size: 11.5px;
    color: var(--ink-soft);
}

.drawer-foot {
    padding: 18px;
    border-top: 1px solid var(--hairline);
}

.drawer-foot .btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--plum);
    color: #fff;
}


@media (max-width:980px) {
    .header-logo {
        width: 105px;
        height: 50px;
        display: block;
        margin-right: 10px;
    }

    .book-strategy {
        width: 12rem;
        height: 5rem;
    }
}