/* =========================================================
   COMPACT HEADER — Lohabada
   Keeps the sticky header slim on desktop, tablet and mobile.
========================================================= */

header {
  border-bottom-width: 2px;
  box-shadow: 0 2px 10px #00000024;
}

header .nav-row {
  min-height: 58px;
  padding: 8px 28px;
  gap: 18px;
}

header .wordmark {
  gap: 2px;
  font-size: 22px;
  line-height: 1;
}

header .wordmark .wordmark-name {
  line-height: .95;
}

header .wordmark .wordmark-subtitle {
  font-size: 8.5px;
  line-height: 1.15;
  letter-spacing: .02em;
  opacity: .9;
}

header nav {
  gap: 22px;
  font-size: 13px;
}

header nav a {
  padding: 4px 0;
}

header .header-contact {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

header .header-tools {
  width: auto;
  gap: 5px;
  margin: 0;
  flex: 0 0 auto;
}

header .language-switch {
  min-height: 26px;
  font-size: 10px;
  gap: 2px;
}

header .language-btn {
  padding: 4px 3px;
}

header .pwa-install-btn {
  min-height: 27px;
  padding: 4px 7px;
  gap: 5px;
  font-size: 10px;
}

header .pwa-install-btn svg {
  width: 13px;
  height: 13px;
}

header .header-email {
  gap: 5px;
  font-size: 10.5px;
}

header .email-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

header .header-contact .nav-call {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 3px;
}

/* Medium desktop/tablet: preserve space without adding height. */
@media (min-width: 761px) and (max-width: 1100px) {
  header .nav-row {
    padding-inline: 20px;
    gap: 12px;
  }

  header nav {
    gap: 14px;
    font-size: 12px;
  }

  header .wordmark {
    font-size: 20px;
  }

  header .header-email span {
    display: none;
  }

  header .header-email {
    width: 28px;
    height: 28px;
    justify-content: center;
    border: 1px solid #454c51;
    border-radius: 3px;
  }
}

/* Mobile: one compact header row only. */
@media (max-width: 760px) {
  header .nav-row {
    min-height: 52px;
    padding: 7px 14px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  header .wordmark {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 19px;
  }

  header .wordmark .wordmark-subtitle {
    font-size: 7.5px;
    white-space: nowrap;
  }

  header .header-contact {
    order: initial;
    flex: 0 0 auto;
    width: auto;
    border-top: 0;
    padding-top: 0;
    gap: 4px;
  }

  header .header-email,
  header .nav-call {
    display: none !important;
  }

  header .header-tools {
    order: initial;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 3px;
    margin: 0;
  }

  header .language-switch {
    min-height: 28px;
    font-size: 9.5px;
  }

  header .language-btn {
    padding: 4px 2px;
  }

  header .pwa-install-btn {
    width: 29px;
    height: 29px;
    min-height: 29px;
    padding: 0;
    justify-content: center;
    border-radius: 3px;
  }

  header .pwa-install-btn > span {
    display: none;
  }

  header .pwa-install-btn svg {
    width: 14px;
    height: 14px;
  }

  header .nav-toggle {
    flex: 0 0 auto;
    min-width: 48px;
    height: 30px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1;
    border-radius: 3px;
  }

  header nav a {
    padding: 11px 16px;
    font-size: 13px;
  }

  [id] {
    scroll-margin-top: 68px;
  }
}

@media (max-width: 420px) {
  header .nav-row {
    padding-inline: 11px;
  }

  header .wordmark {
    font-size: 18px;
  }

  header .wordmark .wordmark-subtitle {
    display: none;
  }
}
