/* =========================
   Top bar above the hero
   ========================= */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 2rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   Logos
   ========================= */
.header-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logos img {
    height: 65px;
    width: auto;
    display: block;
}

/* =========================
   Navigation
   ========================= */
.header-nav {
    margin-top: 2rem;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: #111;
    text-decoration: none;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* Dropdown */
.header-nav .dropdown {
    position: relative;
}

.header-nav .dropdown-menu {
  z-index: 10;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #111;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 16rem;
    margin: 0;
    padding: 0;
}

.header-nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown items with separators */
.header-nav .dropdown-menu li {
    list-style: none;
}

.header-nav .dropdown-menu li + li {
    border-top: 1px solid #000; /* divider between items */
}

.header-nav .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

.header-nav .dropdown-menu a:hover {
    background: #f5f5f5;
}



/* =========================
   Language switch
   ========================= */
.header-lang {
    margin-top: 2rem;
}

.header-lang form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-lang button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 20px; /* controls flag size */
    line-height: 1;
}

.header-lang button.active {
    opacity: 0.5;
}

/* =========================
   Hero section
   ========================= */
.header-hero, .measure-header-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1280 / 305;
  background: center / cover no-repeat url("../img/header/header-1280.jpg");
  color: #fff;
  text-align: center;
}

.header-hero > * {
    position: relative;
  z-index: 0;
  transform: translateY(-80%);
}

.hero-title {
    max-width: 32ch;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: clamp(0.5rem, 1.2vh, 0.75rem) 0 0;
  color: hsl(0 0% 100% / 0.86);
  text-wrap: balance;
  hyphens: auto;
}

.measure-header-hero .hero-title, .measure-header-hero .hero-subtitle {
    text-shadow: 0 10px 20px rgba(0,0,0,1);
}

/* =========================
   Responsive background images
   ========================= */
@media (min-width: 1281px) and (max-width: 1440px) {
    .header-hero { background-image: url("../img/header/header-1440.jpg"); }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .header-hero { background-image: url("../img/header/header-1920.jpg"); }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .header-hero { background-image: url("../img/header/header-2560.jpg"); }
}

@media (min-width: 2561px) and (max-width: 3200px) {
    .header-hero { background-image: url("../img/header/header-3200.jpg"); }
}

@media (min-width: 3201px) and (max-width: 3840px) {
    .header-hero { background-image: url("../img/header/header-3840.jpg"); }
}

@media (min-width: 3841px) {
    .header-hero { background-image: url("../img/header/header-5000.jpg"); }
}
