/* One shared header on every public page (owner 2026-11-13: "Lényeg, hogy egységes legyen az egész oldalon").
   Left: the booking button. Centre: the logo, the town under it (ŠAMORÍN / SOMORJA in Hungarian).
   Right: the languages (SK/HU) and the phone (icon only on a phone).
   Self-contained: it works on top of home.css/page.css and styles.css (booking) alike.
   Language: the page scripts set <html lang>; .oh-sk / .oh-hu follow it. */
@font-face { font-family: "OH Display"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/unbounded-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F; }
@font-face { font-family: "OH Display"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC; }

html:not([lang="hu"]) .oh .oh-hu, html[lang="hu"] .oh .oh-sk { display: none; }

.oh {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
  margin: 0;
  padding: 0.55rem max(1rem, calc((100% - 1240px) / 2));
  background: #fff;
  border-bottom: 1px solid #e1e7ea;
  box-shadow: 0 4px 18px rgba(7, 26, 38, 0.06);
  color: #0b1a22;
  font-family: inherit;
}
.oh.oh-sticky { position: sticky; top: 0; }
/* Booking page (owner 2026-11-13): a lower header there, so the examinations show without scrolling. */
.oh.oh-compact { min-height: 64px; padding-block: 0.35rem; }
.oh.oh-compact .oh-book { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.88rem; }
.oh.oh-compact .oh-brand img { height: 38px; }
.oh.oh-compact .oh-town { font-size: 9px; }

/* Left: booking */
.oh .oh-book {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: #29b6e8;
  color: #071a26;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(41, 182, 232, 0.35);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.oh .oh-book:hover { background: #4cc4ee; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(41, 182, 232, 0.42); }
.oh .oh-short { display: none; }

/* Centre: logo + town */
.oh .oh-brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #0477a7;
  text-decoration: none;
}
.oh .oh-brand img { display: block; width: auto; height: 58px; max-width: none; }
.oh .oh-town {
  margin-right: -0.42em; /* letter-spacing after the last letter, so the word sits centred */
  font-family: "OH Display", "Unbounded", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.42em;
  color: #0477a7;
}

/* Right: languages + phone */
.oh .oh-right { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.oh .language-switch { display: flex; gap: 0; padding: 3px; border: 0; border-radius: 999px; background: #eef3f5; }
.oh .language-switch button {
  min-width: 2.6rem;
  min-height: 2.3rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #565c5f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
}
.oh .language-switch button[aria-pressed="true"] { background: #fff; color: #0b1a22; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); text-decoration: none; }
.oh .oh-tel { display: flex; align-items: center; gap: 0.5rem; color: #0b1a22; font-size: 0.95rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.oh .oh-tel:hover .oh-ico { background: #dcecf3; }
.oh .oh-ico { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #eef3f5; }
.oh .oh-ico svg { width: 18px; height: 18px; fill: #0b1a22; }

/* Narrower screens: the phone number text goes first, then the button text shortens. */
@media (max-width: 960px) {
  .oh .oh-num { display: none; }
}
@media (max-width: 720px) {
  .oh { min-height: 74px; gap: 0.5rem; padding: 0.45rem 0.75rem; }
  .oh .oh-long { display: none; }
  .oh .oh-short { display: inline; }
  .oh .oh-book { min-height: 2.4rem; padding: 0 0.8rem; font-size: 0.8rem; box-shadow: 0 4px 10px rgba(41, 182, 232, 0.3); }
  .oh .oh-arrow { display: none; }
  .oh .oh-brand img { height: 40px; }
  .oh.oh-compact { min-height: 60px; }
  .oh.oh-compact .oh-book { min-height: 2.4rem; padding: 0 0.8rem; font-size: 0.8rem; }
  .oh.oh-compact .oh-brand img { height: 36px; }
  .oh .oh-town { font-size: 9px; }
  .oh .oh-right { gap: 0.4rem; }
  .oh .language-switch button { min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.4rem; font-size: 0.72rem; }
  .oh .oh-ico { width: 2.75rem; height: 2.75rem; }
  .oh .oh-ico svg { width: 16px; height: 16px; }
}
@media (max-width: 440px) {
  .oh { padding-inline: 0.5rem; gap: 0.35rem; }
  .oh .oh-book { padding: 0 0.65rem; }
  .oh .oh-brand img { height: 36px; }
  .oh .oh-town { font-size: 8px; }
  .oh .language-switch button { min-width: 2.1rem; min-height: 2.4rem; padding: 0 0.3rem; }
  .oh .oh-ico { width: 2.4rem; height: 2.4rem; }
}
@media print { .oh { display: none; } }
