/* Mobile nav drawer (red_cross mechanics, klasicna skin).
   Slide-in full-screen navy drawer, hamburger→X morph, accordion submenus.
   Markup in inc/blocks/header/render.php, behavior in assets/js/menu.js. */

/* ── Hamburger → X ── */
.sf-burger { position: relative; }
.sf-burger__line {
    display: block; position: absolute; left: 50%; top: 50%;
    width: 26px; height: 2px; margin-left: -13px; margin-top: -1px;
    background: var(--sf-color-navy, #15283d);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.sf-burger__line--1 { transform: translateY(-7px); }
.sf-burger__line--3 { transform: translateY(7px); }
.sf-burger.is-open .sf-burger__line--1 { transform: rotate(45deg); }
.sf-burger.is-open .sf-burger__line--2 { opacity: 0; }
.sf-burger.is-open .sf-burger__line--3 { transform: rotate(-45deg); }

/* ── Drawer ── */
.sf-drawer {
    position: fixed; inset: 0; z-index: 100;
    background: var(--sf-color-navy, #15283d);
    color: #fff;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}
.sf-drawer.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1024px) { .sf-drawer { display: none; } }

.sf-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; flex-shrink: 0;
}
.sf-drawer__close {
    background: none; border: 0; cursor: pointer; padding: 8px;
    color: #fff; opacity: 0.6; transition: opacity 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.sf-drawer__close:hover { opacity: 1; }

.sf-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }

/* Top-level rows: serif, white, hairline separators */
.sf-drawer__link {
    display: block; padding: 14px 0;
    font-family: var(--font-serif, Merriweather, serif);
    font-size: 18px; font-weight: 700; line-height: 1.3;
    color: #fff; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.15s;
}
.sf-drawer__link:hover { opacity: 0.7; }

.sf-drawer__row {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sf-drawer__row .sf-drawer__link { border-bottom: none; flex: 1; pointer-events: none; }
.sf-drawer__chevron {
    padding: 14px 4px; color: rgba(255, 255, 255, 0.55);
    display: flex; align-items: center; pointer-events: none;
    transition: transform 0.3s ease, color 0.15s;
}
.sf-drawer__row.is-open .sf-drawer__chevron { transform: rotate(180deg); color: #fff; }

/* Submenu accordion: differentiated by font (Inter, lighter), no indent */
.sf-drawer__sub {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sf-drawer__sub.is-open { max-height: 2000px; }
.sf-drawer__sub .sf-drawer__link {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 15px; font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.07);
    padding: 11px 0;
}
.sf-drawer__sub .sf-drawer__link:hover { color: #fff; opacity: 1; }

/* Button-style link (Kontakt) */
.sf-drawer__cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 20px; height: 44px; padding: 0 28px;
    font-family: var(--font-serif, Merriweather, serif);
    font-size: 16px; font-weight: 700;
    background: #fff; color: var(--sf-color-navy, #15283d);
    text-decoration: none; transition: opacity 0.15s;
}
.sf-drawer__cta:hover { opacity: 0.85; }

/* Footer: contacts */
.sf-drawer__footer {
    flex-shrink: 0; padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex; flex-direction: column; gap: 8px;
}
.sf-drawer__contact {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255, 255, 255, 0.7);
    text-decoration: none; transition: color 0.15s; word-break: break-all;
}
.sf-drawer__contact:hover { color: #fff; }
