/*
Theme Name: Hans Broos
Version: 8.8.8
Author: Ing. Ján Bielik
Description: Minimalistická téma vyrobená na mieru pre spoločnosť MEDIA FILM, s.r.o.
Author URI: https://webiano.sk
License: GPLv2
Theme URI: https://webiano.sk
Text Domain: https://webiano.sk
*/



:root{ --ink:#ffffff; --bg:#000000; --accent:#96d5a899; --link:#5a8065; --pill:#5a8065; }

html,body{ background:var(--bg); color:var(--ink); font-size:17px; line-height:1.5;
  font-family:'Titillium Web', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }

h1,h2,h3{ font-family:'Titillium Web', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  word-spacing:4px; color:var(--accent); }

.site{ max-width:1140px; margin:0 auto; padding:0 20px; }

/* Header */
.hb-header{ position:fixed; top:0; left:0; right:0; z-index:1000; background:#000; border-bottom:1px solid #222; }
.hb-header-inner{ max-width:1140px; margin:0 auto; padding:18px 20px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.hb-logo{ font-family:'Nimbus Sans L', Arial, sans-serif; line-height:1; text-transform:uppercase; }
.hb-logo .line1{ font-weight:300; font-size:26px; opacity:.9; display:block; }
.hb-logo .line2{ font-weight:700; font-size:22px; opacity:.9; display:block; }
.hb-push{ height:74px; }

/* Nav */
.hb-nav{ display:flex; justify-content:center; position:relative; }
.hb-menu, .hb-menu ul{ list-style:none; margin:0; padding:0; }
.hb-menu{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.hb-menu>li{ position:relative; }
.hb-menu>li>a{ display:block; padding:10px 12px; border-radius:2px; text-transform:uppercase; font-weight:600;
  font-family:'Nimbus Sans L', Arial, sans-serif; color:var(--accent); }
.hb-menu>li:hover{ background:var(--accent); } .hb-menu>li:hover>a{ color:#fff; }
.hb-menu .sub-menu{ position:absolute; top:100%; left:0; background:#000; min-width:200px; border:1px solid #222; list-style:none; padding:6px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:.2s ease; z-index:9999; }
.hb-menu>li:hover>.sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.hb-menu .sub-menu li a{ display:block; color:#fff; padding:7px 10px; }
.hb-menu .sub-menu li:hover>a{ background:var(--accent); }

/* Right column: Polylang language switcher (flags + SK/EN) */
.hb-right{ display:flex; justify-content:flex-end; }
.language-switcher{ display:flex; }
.language-switcher ul{ list-style:none; margin:0; padding:0; display:flex; gap:10px; align-items:center; }
.language-switcher li{ list-style:none; margin:0; padding:0; position:relative; }
.language-switcher li::marker,
.language-switcher li:before{ content:none!important; display:none!important; } /* kill bullets */
.language-switcher a{
  display:inline-flex; align-items:center; gap:8px; padding:6px 12px; color:#fff; border:1px solid #333; border-radius:999px;
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; line-height:1; background:transparent;
}
.language-switcher a:hover{ background:#222; border-color:#555; }
.language-switcher .current-lang>a,
.language-switcher li.current-lang>a{ background:var(--pill); border-color:var(--pill); color:#fff; }
.language-switcher img{ width:18px; height:12px; border-radius:2px; object-fit:cover; box-shadow:0 0 0 1px rgba(0,0,0,.25) inset; }

/* Hamburger */
.hb-burger{ display:none; background:transparent; border:1px solid #333; border-radius:6px; padding:8px 10px; color:#fff; cursor:pointer; }
.hb-burger .bar{ display:block; width:22px; height:2px; background:#fff; border-radius:2px; }
.hb-burger .bar+.bar{ margin-top:4px; }
@media(max-width:782px){
  .hb-header-inner{ grid-template-columns:auto auto auto; }
  .hb-burger{ display:inline-block; }
  .hb-menu{ display:none; position:absolute; top:100%; left:0; right:0; background:#000; border-top:1px solid #222; padding:10px 15px; flex-direction:column; gap:4px; }
  .hb-menu.is-open{ display:flex; }
  .hb-menu .sub-menu{ position:static; border:none; opacity:1; visibility:visible; transform:none; padding:0; margin-left:10px; }
  .hb-menu>li:hover{ background:transparent; }
  .hb-menu>li>a:hover{ background:var(--accent); color:#fff; }
}

/* Footer */
.site-footer{ padding:40px 0; border-top:1px solid #222; }
.site-footer .copy{ color:#888c8a; font-size:12px; font-weight:600; text-align:center; }

/* Gutenberg FE */
.wp-block-columns{ gap:28px; }
@media (max-width:1024px){ .wp-block-columns{ gap:22px; } }
@media (max-width:782px){ .wp-block-columns{ gap:16px; } }
.wp-block-image{ margin:0 0 28px; }
.wp-block-image img{ width:100%; height:auto; display:block; }
/* Gallery 2→1 */
.wp-block-gallery{ gap:28px; }
.wp-block-gallery.has-nested-images{ display:grid; grid-template-columns:repeat(2,1fr); }
.wp-block-gallery.has-nested-images figure{ margin:0; }
@media (max-width:782px){ .wp-block-gallery.has-nested-images{ grid-template-columns:1fr; gap:16px; } }
/* First heading in column */
.wp-block-column>h2:first-child,
.wp-block-column>h3:first-child,
.wp-block-column>.wp-block-heading:first-child{
  text-transform:uppercase; letter-spacing:.02em; color:var(--accent); margin:0 0 10px; display:inline-block;
}
.wp-block-column>h2:first-child::after,
.wp-block-column>h3:first-child::after,
.wp-block-column>.wp-block-heading:first-child::after{
  content:""; display:block; height:1px; width:100%; background:var(--accent); opacity:.35; margin:8px 0 18px;
}
.wp-block-separator{ border-top:1px solid var(--accent); }
/* Tables */
.wp-block-table{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.wp-block-table table{ width:100%; border-collapse:collapse; min-width:520px; }
.wp-block-table td, .wp-block-table th{ white-space:nowrap; border:1px solid rgba(255,255,255,.25); padding:8px 10px; }
@media (min-width:781px){ .wp-block-table td, .wp-block-table th{ white-space:normal; } }
/* Responsive embeds */
.vimeo-content, .wp-block-embed__wrapper{ position:relative; max-width:700px; margin:0 auto 24px; }
.vimeo-content iframe, .wp-block-embed__wrapper iframe{ display:block; width:100%; height:auto; aspect-ratio:16/9; }
/* Anchor offset */
:target{ scroll-margin-top:84px; }


/* === Mobile Menu Fullscreen Overlay + Burger → X (CSS-only) === */
@media(max-width:782px){
  /* Fullscreen overlay when mobile menu is open */
  .hb-menu{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,.96);
    padding: 90px 24px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: none;
    border: none;
  }
  .hb-menu>li{ margin: 0; }
  .hb-menu>li>a{ font-size: 18px; line-height: 1.3; padding: 14px 16px; border-radius: 10px; }
  .hb-menu.is-open{ display:flex; }

  /* Keep submenus visible inside overlay (stacked) */
  .hb-menu .sub-menu{
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: none; padding: 0; margin-left: 0;
  }
  .hb-menu .sub-menu a{ padding-left: 28px; }

  /* Burger becomes a fixed 'X' button when overlay is open */
  .hb-header:has(.hb-menu.is-open) .hb-burger{
    position: fixed;
    top: 16px; right: 16px;
    z-index: 10001;
    background: transparent;
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
  }
  .hb-burger .bar{
    transition: transform .2s ease, opacity .2s ease;
  }
  .hb-header:has(.hb-menu.is-open) .hb-burger .bar:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }
  .hb-header:has(.hb-menu.is-open) .hb-burger .bar:nth-child(2){
    opacity: 0;
  }
  .hb-header:has(.hb-menu.is-open) .hb-burger .bar:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Prevent accidental background interaction while menu is open */
  .hb-header:has(.hb-menu.is-open) ~ *{
    pointer-events: none;
  }
  .hb-header:has(.hb-menu.is-open) .hb-burger{
    pointer-events: auto;
  }
}
/* === End Mobile Menu Fullscreen Overlay === */



/* === Desktop submenu appearance (screenshot-matched) === */
@media (min-width:783px){
  /* Parent item highlight (pill-like) */
  .hb-menu>li:hover>a,
  .hb-menu>li.current-menu-item>a,
  .hb-menu>li.current-menu-ancestor>a{
    background: var(--pill);
    border-color: var(--pill);
    color:#fff;
  }

  /* Submenu: stacked list under the parent, no box background */
  .hb-menu .sub-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .hb-menu>li:hover>.sub-menu{
    opacity:1; visibility:visible;
  }
  .hb-menu .sub-menu li{ margin: 8px 0; }
  .hb-menu .sub-menu a{
    display: block;
    padding: 6px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--accent);
    background: transparent;
    border-radius: 0;
  }
  .hb-menu .sub-menu a:hover{
    color:#fff;
    background: transparent;
  }
}
/* === End Desktop submenu appearance === */




/* === OVERRIDES: Desktop submenu exact behavior + Mobile left align (CSS only) === */

/* Desktop: submenu look & hover-only highlights (no default active background) */
@media (min-width:783px){
  /* Remove any default background on current items */
  .hb-menu>li>a,
  .hb-menu .sub-menu a{
    background: transparent !important;
  }
  .hb-menu>li.current-menu-item>a,
  .hb-menu>li.current-menu-ancestor>a{
    background: transparent !important;
    color: var(--accent) !important;
  }

  /* Parent "pill" only on hover */
  .hb-menu>li:hover>a{
    background: var(--pill) !important;
    border-color: var(--pill) !important;
    color:#fff !important;
  }

  /* Submenu: vertical list under parent on black bg; item fills green on hover */
  .hb-menu .sub-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  .hb-menu>li:hover>.sub-menu{ opacity:1; visibility:visible; }
  .hb-menu .sub-menu li{ margin: 10px 0; }
  .hb-menu .sub-menu a{
    display:block;
    padding: 6px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--accent);
    border-radius: 0;
  }
  .hb-menu .sub-menu a:hover{
    background: var(--pill);
    color:#fff;
  }
}

/* Mobile: keep fullscreen overlay but align menu content to left */
@media (max-width:782px){
  .hb-menu{
    align-items: flex-start;
    text-align: left;
  }
  .hb-menu>li,
  .hb-menu .sub-menu{ width: 100%; }
  .hb-menu .sub-menu a{ padding-left: 28px; text-align: left; }
}
/* === End overrides === */



/* Build: v3 */

/* === v3 OVERRIDES: Desktop submenu (black bg) + Mobile submenu indent (CSS-only) === */

/* Desktop: black background dropdown, hover-only green, no default actives */
@media (min-width:783px){
  /* Ensure neutral default state */
  .hb-menu>li>a,
  .hb-menu .sub-menu a{
    background: transparent !important;
    color: var(--accent);
  }
  .hb-menu>li.current-menu-item>a,
  .hb-menu>li.current-menu-ancestor>a{
    background: transparent !important;
    color: var(--accent) !important;
  }

  /* Parent pill ONLY on hover */
  .hb-menu>li:hover>a{
    background: var(--pill) !important;
    border-color: var(--pill) !important;
    color: #fff !important;
  }

  /* Submenu dropdown: stacked items on solid black panel */
  .hb-menu .sub-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #000;            /* black panel */
    border: 1px solid #222;
    box-shadow: none;
    padding: 10px 14px;
    margin: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: none;
    z-index: 10000;
  }
  .hb-menu>li:hover>.sub-menu{ opacity:1; visibility:visible; }

  .hb-menu .sub-menu li{ margin: 6px 0; }
  .hb-menu .sub-menu a{
    display:block;
    padding: 8px 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 6px;
    color: var(--accent);
    background: transparent;
  }
  .hb-menu .sub-menu a:hover{
    background: var(--pill);
    color: #fff;
  }
}

/* Mobile: keep fullscreen, indent submenu slightly to the right */
@media (max-width:782px){
  .hb-menu{ align-items: flex-start; text-align: left; }
  .hb-menu>li, .hb-menu .sub-menu{ width:100%; }
  .hb-menu .sub-menu{ margin-left: 20px; }   /* slight right indent */
  .hb-menu .sub-menu a{ padding-left: 8px; text-align: left; }
}
/* === End v3 OVERRIDES === */



/* === v3.1 OVERRIDES: Unify desktop menu color to theme green (CSS-only) === */
/* Remove default link blue across nav, force theme palette */
@media (min-width:783px){
  .hb-menu a,
  .hb-menu a:link,
  .hb-menu a:visited{
    color: var(--accent) !important;
    text-decoration: none;
  }
  /* Parent pill only on hover, using the same green as mobile */
  .hb-menu>li:hover>a{
    background: var(--pill) !important;
    border-color: var(--pill) !important;
    color:#fff !important;
  }
  /* Remove any residual default active styles */
  .hb-menu>li.current-menu-item>a,
  .hb-menu>li.current-menu-ancestor>a{
    background: transparent !important;
    color: var(--accent) !important;
  }
  /* Submenu items default + hover */
  .hb-menu .sub-menu a{
    background: transparent !important;
    color: var(--accent) !important;
  }
  .hb-menu .sub-menu a:hover,
  .hb-menu .sub-menu a:focus{
    background: var(--pill) !important;
    color:#fff !important;
  }
  /* Remove default blue focus ring and outline on links inside nav for consistent look */
  .hb-menu a:focus{
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.2);
  }
}
/* === End v3.1 OVERRIDES === */




/* === v3.2 FINAL: Remove all blue states, unify desktop menu color to theme green (CSS-only) === */
@media (min-width:783px){
  /* Reset all default link colors and outlines */
  .hb-menu a,
  .hb-menu a:link,
  .hb-menu a:visited,
  .hb-menu a:active,
  .hb-menu a:focus{
    color: var(--accent) !important;
    background: transparent !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Parent hover/active/focus unified green pill */
  .hb-menu>li:hover>a,
  .hb-menu>li:focus-within>a,
  .hb-menu>li>a:active,
  .hb-menu>li>a:focus{
    background: var(--pill) !important;
    border-color: var(--pill) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Submenu link colors unified */
  .hb-menu .sub-menu a,
  .hb-menu .sub-menu a:link,
  .hb-menu .sub-menu a:visited{
    background: transparent !important;
    color: var(--accent) !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Submenu hover/focus/active same as mobile */
  .hb-menu .sub-menu a:hover,
  .hb-menu .sub-menu a:focus,
  .hb-menu .sub-menu a:active{
    background: var(--pill) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
  }
}
/* === End v3.2 FINAL === */




/* === v3.3 FINAL CLEAN: Absolutely remove all blue from desktop nav (CSS-only) === */
@media (min-width:783px){
  /* Reset all link and button colors inside header/menu */
  .hb-menu a,
  .hb-menu a:link,
  .hb-menu a:visited,
  .hb-menu a:active,
  .hb-menu a:focus,
  .hb-menu>li>a,
  .hb-menu>li>a:link,
  .hb-menu>li>a:visited,
  .hb-menu>li>a:focus,
  .hb-menu>li>a:active{
    color: var(--accent) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Parent hover/focus/active unified green pill */
  .hb-menu>li:hover>a,
  .hb-menu>li:focus-within>a,
  .hb-menu>li>a:active,
  .hb-menu>li>a:focus{
    background: var(--pill) !important;
    border-color: var(--pill) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Submenu base and hover */
  .hb-menu .sub-menu{
    background: #000 !important;
    border: 1px solid #222 !important;
    box-shadow: none !important;
  }
  .hb-menu .sub-menu a,
  .hb-menu .sub-menu a:link,
  .hb-menu .sub-menu a:visited,
  .hb-menu .sub-menu a:focus,
  .hb-menu .sub-menu a:active{
    color: var(--accent) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }
  .hb-menu .sub-menu a:hover{
    background: var(--pill) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Remove focus blue ring from all header/menu descendants */
  .hb-header *:focus{
    outline: none !important;
    box-shadow: none !important;
  }
  a:focus-visible{
    outline: none !important;
    box-shadow: none !important;
  }
}
/* === End v3.3 FINAL CLEAN === */


/* === HB CUSTOM GALLERY CSS START === */

/*
 * === Hans Broos Theme – Gallery CSS Refinement (Desktop 5 cols, Mobile 2 cols) ===
 * NOTE: Pure CSS only. No change in functionality or markup required.
 * Targets both Gutenberg (.wp-block-gallery / .blocks-gallery-grid) and Classic (.gallery) galleries.
 */

:root {
  --hb-gallery-gap: 12px;
  --hb-gallery-cols-desktop: 5;
  --hb-gallery-cols-mobile: 2;
}

/* Reset legacy gallery margins so grid gap controls spacing */
.wp-block-gallery,
.blocks-gallery-grid,
.gallery {
  margin: 0 !important;
}

/* Grid layout for Gutenberg gallery */
.wp-block-gallery,
.blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--hb-gallery-cols-desktop), 1fr);
  gap: var(--hb-gallery-gap);
  list-style: none;
  padding: 0;
}

/* Grid layout for Classic [gallery] shortcode */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(var(--hb-gallery-cols-desktop), 1fr);
  gap: var(--hb-gallery-gap);
}

/* Ensure each gallery item fills its grid cell and images are cropped nicely */
.wp-block-gallery .blocks-gallery-item,
.blocks-gallery-grid .blocks-gallery-item,
.gallery .gallery-item {
  margin: 0 !important;
  width: auto !important;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

/* Anchor and figure should fill the whole tile */
.wp-block-gallery .blocks-gallery-item > figure,
.blocks-gallery-grid .blocks-gallery-item > figure,
.gallery .gallery-item > div,
.gallery .gallery-item > figure,
.gallery .gallery-item > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Images: cover-fit with subtle hover zoom for desktop */
.wp-block-gallery img,
.blocks-gallery-grid img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
  display: block;
}

/* Optional overlay for hover emphasis (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .wp-block-gallery .blocks-gallery-item:hover img,
  .blocks-gallery-grid .blocks-gallery-item:hover img,
  .gallery .gallery-item:hover img {
    transform: scale(1.03);
  }
}

/* Captions: keep compact and out of the way; only show if explicitly added */
.wp-caption-text,
.gallery .wp-caption-text,
.wp-block-gallery .blocks-gallery-caption {
  font-size: 12px;
  line-height: 1.35;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 6px 8px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .blocks-gallery-item:hover .wp-caption-text,
  .gallery .gallery-item:hover .wp-caption-text,
  .wp-block-gallery .blocks-gallery-item:hover .blocks-gallery-caption {
    opacity: 1;
  }
}

/* Remove default columns classes influence – we control columns via CSS grid */
[class*="gallery-columns-"] .gallery-item {
  max-width: none !important;
}

/* Tighten inner figcaption margins if Gutenberg adds them */
.blocks-gallery-item figcaption {
  margin: 0 !important;
}

/* Responsiveness: exactly two columns on mobile */
@media (max-width: 768px) {
  .wp-block-gallery,
  .blocks-gallery-grid,
  .gallery {
    grid-template-columns: repeat(var(--hb-gallery-cols-mobile), 1fr);
    gap: 10px;
  }
  .wp-caption-text,
  .gallery .wp-caption-text,
  .wp-block-gallery .blocks-gallery-caption {
    font-size: 11px;
    padding: 5px 6px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .wp-block-gallery,
  .blocks-gallery-grid,
  .gallery {
    gap: 8px;
  }
}

/* === HB CUSTOM GALLERY CSS END === */


/* === HB TYPOGRAPHY TUNING – matches visual style from reference screenshot === */
body {
  font-family: "Titillium Web", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #f0f0f0;
  background-color: #000;
  font-weight: 300;
}
p {
  margin-bottom: 0.9em;
  letter-spacing: 0.01em;
}
strong, b {
  color: #ffffff;
  font-weight: 500;
}
em, i {
  color: #cfcfcf;
}
a {
  color: #4da3ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Titillium Web", sans-serif;
  font-weight: 500;
  color: #ffffff;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}
@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }
}

