/* ==========================================================================
   Hlavička + mobilní menu (vysouvací panel s pozadím)
   ========================================================================== */
/* Tmavá horní lišta: odkaz na web stomatologie + kontakty (odroluje se, hlavička pod ní zůstává přilepená) */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--topbar-h); }
.topbar a { color: #fff; text-decoration: none; transition: color .25s; }
.topbar a:hover { color: var(--copper); }
.topbar__main { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar__main .icon { width: 14px; height: 14px; color: var(--copper); flex: none; }
.topbar__main span { transition: transform .3s var(--ease); }
.topbar__main:hover span { transform: translateX(3px); }
.topbar__contacts { display: none; align-items: center; gap: 22px; }
.topbar__contacts span { color: rgba(255, 255, 255, .6); }

.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand__logo { width: auto; height: 26px; }
.brand__sub {
    font-family: var(--font-head); font-size: .66rem; font-weight: 500; letter-spacing: .2em; line-height: 1.35; text-transform: uppercase;
    color: var(--accent); padding-left: 13px; border-left: 1px solid var(--line);
}

.nav { display: none; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: none; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 12px; margin-right: -12px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu přes celou obrazovku; GSAP ho „vytáhne“ kruhem z hamburgeru (clip-path, viz main.js) */
.mobile-menu {
    position: fixed; inset: 0; z-index: 120;
    padding: calc(var(--header-h) + var(--topbar-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a { display: block; padding: 18px 0; font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2rem); color: var(--ink); text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { width: 100%; }
/* Logo a burger zůstávají nad menu, aby šlo menu zavřít */
body.menu-open .header { z-index: 130; background: transparent; border-color: transparent; box-shadow: none; }

@media (min-width: 640px) {
    .brand__logo { height: 30px; }
}

@media (min-width: 980px) {
    .brand__logo { height: 34px; }
    .brand__sub { font-size: .7rem; }
    .nav, .header__cta { display: block; }
    .topbar__contacts { display: flex; }
    .header__cta { display: inline-flex; }
    .burger, .mobile-menu { display: none !important; }
}
