/* ============================================================
   promo-unified — shared header/nav styles
   All selectors prefixed pu-* to avoid collisions.
   Loaded automatically by shared/layout/header/promo-unified.php
   ============================================================ */

/* ── Header shell ─────────────────────────────────────────── */
.pu-header {
    position: relative;
    z-index: 100;
}
.pu-header--dark {
    background-color: #171717 !important;
}
.pu-header--light {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Inner container ──────────────────────────────────────── */
.pu-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── Header row: logo | nav | actions ─────────────────────── */
.pu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 16px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.pu-logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.pu-header--dark  .pu-logo { color: #fff; }
.pu-header--light .pu-logo { color: #171717; }

/* ── Desktop nav ─────────────────────────────────────────── */
.pu-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.pu-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.pu-menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}
.pu-header--dark  .pu-menu > li > a { color: #fff; }
.pu-header--light .pu-menu > li > a { color: #171717; }
.pu-header--dark  .pu-menu > li > a:hover { background: rgba(255,255,255,.08); }
.pu-header--light .pu-menu > li > a:hover { background: rgba(0,0,0,.06); }

/* Hide desktop nav on mobile */
@media (max-width: 767px) {
    .pu-nav { display: none; }
}

/* ── Desktop submenu ─────────────────────────────────────── */
.pu-has-sub {
    position: relative;
}
.pu-arrow {
    font-size: 8px;
    margin-left: 5px;
    opacity: .7;
    display: inline-block;
    transition: transform .2s;
}
.pu-has-sub--open .pu-arrow {
    transform: rotate(180deg);
}
.pu-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    border-radius: 8px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.pu-has-sub--open > .pu-submenu {
    display: block;
}
.pu-header--dark  .pu-submenu { background: #1e1e2e; }
.pu-header--light .pu-submenu { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.pu-submenu li a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.pu-header--dark  .pu-submenu li a { color: #fff; }
.pu-header--light .pu-submenu li a { color: #171717; }
.pu-header--dark  .pu-submenu li a:hover { background: rgba(255,255,255,.08); }
.pu-header--light .pu-submenu li a:hover { background: rgba(0,0,0,.05); }

/* ── Right group: lang + hamburger ───────────────────────── */
.pu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Hamburger ───────────────────────────────────────────── */
.pu-hamburger {
    display: none; /* shown only on mobile */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.pu-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: background .2s;
}
.pu-header--dark  .pu-hamburger span { background: #fff; }
.pu-header--light .pu-hamburger span { background: #171717; }

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

/* ── Banner ──────────────────────────────────────────────── */
.pu-banner {
    width: 100%;
    color: #fff;
}
.pu-banner-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}
.pu-banner-inner > div {
    flex: 1;
    padding: 0 10px;
    border-left: 1px solid rgba(255,255,255,.25);
}
.pu-banner-inner > div:first-child {
    border-left: none;
}
.pu-b-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}
.pu-b-sub {
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .pu-banner-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 12px 16px;
    }
    .pu-banner-inner > div { border-left: none; padding: 0; }
    .h-col-1 { grid-column: 1 / span 2; }
    .pu-b-title   { font-size: 13px; line-height: 20px; }
    .pu-b-sub     { font-size: 12px; line-height: 17px; }
}

/* ── Mobile drawer overlay ───────────────────────────────── */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
}
.mob-overlay--visible { display: block; }
.mob-nav-open { overflow: hidden; }

/* ── Mobile drawer ───────────────────────────────────────── */
.mob-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100%;
    z-index: 99999;
    transition: right .3s ease;
    overflow-y: auto;
    padding-bottom: 20px;
}
.mob-nav--dark  { background: #1a1a2e; }
.mob-nav--light { background: #fff; }
.mob-nav--open  { right: 0; }

.mob-nav-head {
    display: flex;
    justify-content: flex-end;
    padding: 14px 18px;
}
.mob-nav--dark  .mob-nav-head { border-bottom: 1px solid rgba(255,255,255,.08); }
.mob-nav--light .mob-nav-head { border-bottom: 1px solid rgba(0,0,0,.08); }

.mob-nav-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    width: auto !important;
    border-radius: 0 !important;
    box-sizing: content-box !important;
}
.mob-nav--dark  .mob-nav-close { color: #fff; }
.mob-nav--light .mob-nav-close { color: #171717; }

/* ── Mobile menu items ───────────────────────────────────── */
.mob-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mob-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    text-decoration: none;
    font-size: 15px;
}
.mob-nav--dark  .mob-menu > li > a { color: #fff;     border-bottom: 1px solid rgba(255,255,255,.07); }
.mob-nav--light .mob-menu > li > a { color: #171717;  border-bottom: 1px solid rgba(0,0,0,.07); }
.mob-nav--dark  .mob-menu > li > a:hover { background: rgba(255,255,255,.06); }
.mob-nav--light .mob-menu > li > a:hover { background: rgba(0,0,0,.04); }

.mob-arrow {
    font-size: 9px;
    opacity: .6;
    transition: transform .2s;
}
.mob-has-sub.mob-sub--open > a .mob-arrow { transform: rotate(180deg); }

.mob-menu ul {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mob-nav--dark  .mob-menu ul { background: rgba(255,255,255,.04); }
.mob-nav--light .mob-menu ul { background: rgba(0,0,0,.03); }

.mob-has-sub.mob-sub--open > ul { display: block; }

.mob-menu ul li a {
    display: block;
    padding: 10px 20px 10px 36px;
    text-decoration: none;
    font-size: 14px;
}
.mob-nav--dark  .mob-menu ul li a { color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.04); }
.mob-nav--light .mob-menu ul li a { color: rgba(0,0,0,.6);        border-bottom: 1px solid rgba(0,0,0,.04); }
.mob-nav--dark  .mob-menu ul li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mob-nav--light .mob-menu ul li a:hover { background: rgba(0,0,0,.05);       color: #171717; }

/* ── global.css overrides (loaded after this file) ───────── */
/* lang-btn text: global.css sets color:#fff !important — override per theme */
.pu-header--light .lang-btn { color: #171717 !important; }
.pu-header--dark  .lang-btn { color: #fff !important; }

/* logo link color — beat global a{color} rules */
.pu-header--light .pu-logo { color: #171717 !important; }
.pu-header--dark  .pu-logo { color: #fff !important; }

/* nav link colors — beat global a{color} rules */
.pu-header--light .pu-menu > li > a { color: #171717 !important; }
.pu-header--dark  .pu-menu > li > a { color: #fff !important; }

/* ============================================================
   promo-unified FOOTER — puf-* prefix
   ============================================================ */

/* ── Shell ──────────────────────────────────────────────── */
.puf {
    width: 100%;
}
.puf--dark  { background: #171717; color: #fff; }
.puf--light { background: #f5f5f5; color: #171717; }

/* ── Main row: logo | nav | lang switcher ───────────────── */
.puf-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 48px 20px 36px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    box-sizing: border-box;
}

/* ── Logo (left, fixed width) ───────────────────────────── */
.puf-brand {
    flex: 0 0 160px;
}
.puf-logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.puf--dark  .puf-logo { color: #fff !important; }
.puf--light .puf-logo { color: #171717 !important; }

/* ── Nav columns (center, grows to fill) ────────────────── */
.puf-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
}
.puf-col {
    min-width: 130px;
}
.puf-col-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 14px;
}
.puf--dark  .puf-col-title { color: rgba(255,255,255,.45); }
.puf--light .puf-col-title { color: rgba(0,0,0,.38); }

.puf-col-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.puf-col-links a {
    font-size: 14px;
    text-decoration: none;
    transition: opacity .15s;
}
.puf--dark  .puf-col-links a { color: rgba(255,255,255,.75) !important; }
.puf--light .puf-col-links a { color: rgba(0,0,0,.65) !important; }
.puf-col-links a:hover { opacity: .55; }

/* ── Lang switcher (right, fixed width) ─────────────────── */
.puf-actions {
    flex: 0 0 160px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* ── Bottom: copyright + disclaimer ─────────────────────── */
.puf-bottom {
    border-top: 1px solid;
}
.puf--dark  .puf-bottom { border-color: rgba(255,255,255,.08); }
.puf--light .puf-bottom { border-color: rgba(0,0,0,.08); }

.puf-bottom-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.puf-copyright {
    font-size: 13px;
    margin: 0 0 10px;
}
.puf--dark  .puf-copyright { color: rgba(255,255,255,.4); }
.puf--light .puf-copyright { color: rgba(0,0,0,.38); }

.puf-disclaimer {
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
}
.puf--dark  .puf-disclaimer { color: rgba(255,255,255,.28); }
.puf--light .puf-disclaimer { color: rgba(0,0,0,.3); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .puf-inner {
        flex-direction: column;
        padding: 32px 16px 24px;
        gap: 24px;
    }
    .puf-brand  { flex: none; }
    .puf-actions { flex: none; justify-content: flex-start; }
    .puf-nav {
        justify-content: flex-start;
        gap: 24px 32px;
        width: 100%;
    }
    .puf-bottom-inner { padding: 16px; }
}
