/* DD CARGO: hlavička, mobilní menu, závěrečná výzva s videem a patička.
   Barvy a písmo berou proměnné z Oxygenu (:root v design systému), s náhradou. */

/* Oxygen obaluje shortcode do divu; bez display: contents by hlavička nebyla sticky */
.oxy-shortcode { display: contents; }

.dd-head, .dd-mobile, .dd-cta, .dd-foot { font-family: var(--font, "Poppins", system-ui, sans-serif); }
.dd-wrap { max-width: var(--wrap, 1280px); margin: 0 auto; padding: 0 var(--gutter, clamp(16px, 4vw, 56px)); }

/* ---------- Tlačítka (sdílená se stránkami) ---------- */
.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; font: 600 14px/1 var(--font, "Poppins", sans-serif); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.dd-btn-red, .dd-btn-red:visited { background: var(--red, #dc2425); color: #fff; }
.dd-btn-red:hover, .dd-btn-red:focus-visible { background: var(--red-dark, #b81c1d); color: #fff; }
.dd-btn-white, .dd-btn-white:visited { background: #fff; color: var(--ink, #1c1c1c); }
.dd-btn-white:hover, .dd-btn-white:focus-visible { background: var(--red, #dc2425); color: #fff; }
.dd-arr { transition: translate .2s; }
.dd-btn:hover .dd-arr { translate: 4px 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red, #dc2425); outline-offset: 3px; }

/* ---------- Hlavička: logo uprostřed, menu rozdělené kolem ---------- */
.dd-head { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 0px); z-index: 50; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .3s; }
.dd-head.is-scrolled { box-shadow: 0 1px 0 var(--line, #e7e5e2); }
.dd-head-in { max-width: var(--wrap, 1280px); margin: 0 auto; padding: 0 var(--gutter, clamp(16px, 4vw, 56px)); height: 96px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 24px; transition: height .3s; }
.dd-head.is-scrolled .dd-head-in { height: 72px; }
.dd-logo { display: block; width: 72px; height: 72px; transition: width .3s, height .3s; }
.dd-head.is-scrolled .dd-logo { width: 52px; height: 52px; }
.dd-logo img, .dd-foot-logo img { width: 100%; height: 100%; display: block; }
.dd-nav { display: flex; align-items: center; gap: 6px; }
.dd-nav-r { justify-content: flex-end; }
.dd-nav-a, .dd-nav-a:visited { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2, #4b4b4b); text-decoration: none; transition: color .2s; }
.dd-nav-a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--red, #dc2425); transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
.dd-nav-a:hover, .dd-nav-a[aria-current] { color: var(--ink, #1c1c1c); }
.dd-nav-a:hover::after, .dd-nav-a[aria-current]::after { transform: scaleX(1); }
.dd-head-btn { padding: 12px 18px; font-size: 13px; margin-left: 4px; }

.dd-lang { display: inline-flex; gap: 2px; margin: 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.dd-lang a, .dd-lang a:visited { padding: 6px 8px; text-decoration: none; color: var(--muted, #7a7a7a); border-bottom: 2px solid transparent; }
.dd-lang a:hover { color: var(--ink, #1c1c1c); }
.dd-lang a[aria-current] { color: var(--ink, #1c1c1c); border-bottom-color: var(--red, #dc2425); }

.dd-burger { display: none; justify-self: end; grid-column: 3; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink, #1c1c1c); }
.dd-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .3s; }
.dd-burger span:nth-child(1) { top: 16px; }
.dd-burger span:nth-child(2) { top: 26px; }
.dd-menu-open .dd-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.dd-menu-open .dd-burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.dd-mobile { position: fixed; inset: 0; z-index: 40; background: #fff; padding: calc(var(--wp-admin--admin-bar--height, 0px) + 100px) var(--gutter, 20px) 32px; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.dd-menu-open .dd-mobile { opacity: 1; visibility: visible; }
.dd-menu-open { overflow: hidden; }
.dd-mobile-nav { display: flex; flex-direction: column; }
.dd-mobile-a, .dd-mobile-a:visited { font-size: 28px; font-weight: 700; line-height: 1.2; text-transform: uppercase; text-decoration: none; color: var(--ink, #1c1c1c); padding: 14px 0; border-bottom: 1px solid var(--line, #e7e5e2); }
.dd-mobile-a[aria-current] { color: var(--red, #dc2425); }
.dd-mobile-foot { margin-top: auto; display: grid; gap: 16px; justify-items: start; }
.dd-mobile-foot .dd-btn { justify-self: stretch; }
.dd-mobile-c, .dd-mobile-c:visited { font-weight: 600; text-decoration: none; color: var(--ink, #1c1c1c); }
.dd-mobile .dd-lang { margin: 0; }

/* ---------- Závěrečná výzva s videem ---------- */
.dd-cta { position: relative; overflow: hidden; isolation: isolate; background: #1a1a1a; color: #fff; padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 9vw, 120px); }
.dd-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(15deg, rgba(0,0,0,.72) 34%, rgba(220,36,37,.38) 100%); }
.dd-cta-video { position: absolute; left: 0; top: 0; width: 100%; height: 250%; object-fit: cover; object-position: 50% 0; z-index: -2; }
.dd-cta-title { margin: 0; max-width: 13ch; font-size: clamp(40px, 5.6vw, 84px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.dd-cta-line { width: min(560px, 100%); height: 2px; background: var(--red, #dc2425); margin: 32px 0 44px; }
.dd-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; }
.dd-cta-c, .dd-cta-c:visited { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; color: #fff; text-decoration: none; }
.dd-cta-c:hover { color: #ffc4c4; }
.dd-cta-btn { margin-left: auto; }

/* ---------- Patička ---------- */
.dd-foot { padding: 40px 0; font-size: 14px; color: var(--muted, #7a7a7a); background: #fff; }
.dd-foot-in { display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.dd-foot-logo { display: block; width: 48px; height: 48px; flex: none; }
.dd-foot-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.dd-foot-a, .dd-foot-a:visited { color: var(--ink-2, #4b4b4b); text-decoration: none; }
.dd-foot-a:hover { color: var(--red, #dc2425); }
.dd-foot-info { margin-left: auto; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.dd-lang-foot { margin: 0; }

/* ---------- Počítadla a parallax nadpisu (JS) ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

@media (max-width: 1119px) {
  .dd-head-btn { display: none; }
}
@media (max-width: 1023px) {
  .dd-nav { display: none; }
  .dd-head-in { height: 76px; grid-template-columns: 44px minmax(0,1fr) 44px; }
  .dd-head.is-scrolled .dd-head-in { height: 64px; }
  .dd-logo { grid-column: 2; justify-self: center; width: 56px; height: 56px; }
  .dd-head.is-scrolled .dd-logo { width: 46px; height: 46px; }
  .dd-burger { display: block; }
  .dd-mobile { padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 92px); }
}
@media (max-width: 767px) {
  .dd-cta-btn { margin-left: 0; }
  .dd-foot-info { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-head, .dd-head-in, .dd-logo, .dd-mobile, .dd-burger span, .dd-nav-a::after, .dd-arr { transition: none !important; }
  .dc-hero-words { translate: none !important; }
}
