/* ============================================================
   Site Header / Nav — matches HOME PAGE (1).html
   ============================================================ */

:root {
    /* ── Kadence global palette ── */
    --tb-primary:      var(--global-palette1, #B85C6C);
    --tb-primary-deep: var(--global-palette2, #94414F);
    --tb-plum:         var(--global-palette4, #2D1B35);
    --tb-ivory:        var(--global-palette8, #F5F1ED);
    --tb-blush:        var(--global-palette9, #F2E4E8);
    --tb-font-display: var(--global-heading-font-family, 'Playfair Display', Georgia, serif);
    --tb-font-body:    var(--global-body-font-family, 'Inter', system-ui, sans-serif);
    /* ── fixed ── */
    --tb-muted:        #6B5B65;
    --tb-white:        #FFFFFF;
    --tb-border:       #E2D5D8;
    --tb-r12:          14px;
}

/* ── Nav wrapper ── */
.tb-nav {
    background: var(--tb-white);
    border-bottom: .5px solid var(--tb-border);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 210;
}
.tb-nav-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ── Logo ── */
.tb-logo {
    font-family: var(--tb-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--tb-plum);
    text-decoration: none;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.tb-logo span { color: var(--tb-primary); }

/* ── Menu list ── */
.tb-nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tb-nav-item { position: relative; }

/* ── Nav link (both <a> and <span> for parent items) ── */
.tb-nav-link,
.tb-nav-item > a.tb-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    font-size: 16px;
    font-weight: 500;
    color: var(--tb-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: color .18s, background .18s;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--tb-font-body);
    background: none;
    border: none;
}
.tb-nav-link:hover,
.tb-nav-item:hover > .tb-nav-link {
    color: var(--tb-primary);
    background: var(--tb-blush);
}
/* Desktop — active/current page */
.tb-nav-item.current > .tb-nav-link,
.tb-nav-item.current-menu-item > .tb-nav-link,
.tb-nav-item.current-menu-parent > .tb-nav-link,
.tb-nav-item.current-menu-ancestor > .tb-nav-link {
    color: var(--tb-primary);
    font-weight: 600;
    position: relative;
}
.tb-nav-item.current > .tb-nav-link::after,
.tb-nav-item.current-menu-item > .tb-nav-link::after,
.tb-nav-item.current-menu-parent > .tb-nav-link::after,
.tb-nav-item.current-menu-ancestor > .tb-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--tb-primary);
    border-radius: 2px;
}

/* Chevron SVG */
.tb-nav-link svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: transform .18s;
    flex-shrink: 0;
}
.tb-nav-item:hover > .tb-nav-link svg { transform: rotate(180deg); }

/* ── Dropdown ── */
.tb-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--tb-white);
    border: .5px solid var(--tb-border);
    border-radius: var(--tb-r12);
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(45,27,53,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s;
    z-index: 300;
}
.tb-nav-item:hover .tb-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tb-dropdown a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tb-muted);
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
    font-family: var(--tb-font-body);
}
.tb-dropdown a:hover {
    background: var(--tb-blush);
    color: var(--tb-primary);
}
.tb-dd-div {
    height: .5px;
    background: var(--tb-border);
    margin: 6px 0;
}
.tb-dropdown a:last-child,
.tb-dropdown a.tb-view-all {
    color: var(--tb-primary);
    font-weight: 600;
    font-size: 12px;
    border-top: .5px solid var(--tb-border);
    margin-top: 6px;
    padding-top: 14px;
}

/* ── CTA Button ── */
.tb-nav-cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    background: var(--tb-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--tb-font-body);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, transform .18s, box-shadow .18s;
}
.tb-nav-cta:hover {
    background: var(--tb-primary-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184,92,108,.35);
    color: #fff;
}

/* ── Responsive helpers ── */
.tb-hide-mobile { display: inline-flex !important; }
.tb-show-mobile { display: none !important; }

/* ── Hamburger button ── */
.tb-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background .18s;
}
.tb-hamburger:hover { background: var(--tb-blush); }
.tb-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tb-plum);
    border-radius: 2px;
    transition: all .25s;
}
.tb-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tb-hamburger.open span:nth-child(2) { opacity: 0; }
.tb-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.tb-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tb-white);
    border-bottom: .5px solid var(--tb-border);
    box-shadow: 0 8px 32px rgba(45,27,53,.1);
    z-index: 190;
    max-height: 80vh;
    overflow-y: auto;
}
.tb-mobile-menu.open { display: block; }
.tb-mobile-inner {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Mobile nav list ── */
.tb-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tb-mobile-item { border-bottom: .5px solid var(--tb-border); }
.tb-mobile-item:last-child { border-bottom: none; }

.tb-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--tb-plum);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--tb-font-body);
    text-decoration: none;
    text-align: left;
    transition: color .18s;
}
.tb-mobile-link:hover { color: var(--tb-primary); }
/* open/active/current state — no background */
.tb-mobile-item.open > .tb-mobile-link,
.tb-mobile-item.current-menu-item > .tb-mobile-link,
.tb-mobile-item.current-menu-parent > .tb-mobile-link,
.tb-mobile-item.current-menu-ancestor > .tb-mobile-link {
    color: var(--tb-primary);
    font-weight: 600;
    background: transparent !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* parent item row: link + toggle button side by side */
.tb-mobile-item.has-sub { display: flex; align-items: center; flex-wrap: wrap; }
.tb-mobile-item.has-sub > .tb-mobile-link { flex: 1; justify-content: flex-start; }
.tb-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    color: var(--tb-dark);
    display: flex;
    align-items: center;
    transition: color .18s;
}

.tb-mobile-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform .25s;
}
.tb-mobile-item.open > .tb-mobile-toggle svg { transform: rotate(180deg); }
.tb-mobile-item.has-sub > .tb-mobile-sub { width: 100%; }

.tb-mobile-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
    transition: transform .25s;
}
.tb-mobile-item.open > .tb-mobile-link svg { transform: rotate(180deg); }

/* ── Mobile sub-menu ── */
.tb-mobile-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 12px;
    display: none;
}
.tb-mobile-item.open .tb-mobile-sub { display: block; }
.tb-mobile-sub li a {
    display: block;
    padding: 8px 8px;
    font-size: 14px;
    color: var(--tb-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all .15s;
}
.tb-mobile-sub li a:hover { background: var(--tb-blush); color: var(--tb-primary); }
.tb-mobile-divider { height: .5px; background: var(--tb-border); margin: 4px 0; }

/* ── Breakpoints ── */
@media (max-width: 900px) {
    .tb-nav-menu { display: none; }
    .tb-nav-in { padding: 0 24px; }
    .tb-hide-mobile { display: none !important; }
    .tb-show-mobile { display: flex !important; }
    .tb-nav { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; z-index: 200; }
    .tb-mobile-menu { position: fixed; top: 80px; left: 0; right: 0; z-index: 300; }
    /* offset body for fixed nav */
    #inner-wrap { padding-top: 80px !important; margin-top: 0 !important; }
}
@media (max-width: 600px) {
    .tb-nav { height: 60px !important; }
    .tb-logo { font-size: 19px; }
    .tb-nav-in { padding: 0 16px; }
    .tb-mobile-menu { top: 60px; }
    #inner-wrap { padding-top: 60px !important; margin-top: 0 !important; }
}
