/* ==========================================================================
   EUB WordPress Shell CSS
   Az eub.hu WordPress téma (eub2019) statikus pótlása.
   Prefixek: .eub-header, .eub-footer, .eub-content
   NEM ütközik a React modul .kotes, .form-group, .btn-* osztályaival.
   ========================================================================== */

/* ---------- Változók ---------- */
:root {
  --shell-primary: #006aa8;
  --shell-primary-dark: #004d7a;
  --shell-text: #333333;
  --shell-text-light: #ffffff;
  --shell-bg-dark: #2c2c2c;
  --shell-bg-footer: #3a3a3a;
  --shell-bg-legal: #2c2c2c;
  --shell-border: #dddddd;
  --shell-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --shell-font-condensed: 'Open Sans Condensed', Arial, sans-serif;
}

/* ---------- Általános reset a keret számára ---------- */
.eub-header,
.eub-footer,
.eub-content {
  font-family: var(--shell-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--shell-text);
  -webkit-font-smoothing: antialiased;
}

.eub-header *,
.eub-footer * {
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

/* --- Felső sáv --- */
.eub-header__top-bar {
  background-color: var(--shell-bg-dark);
  color: var(--shell-text-light);
  font-size: 12px;
  padding: 4px 0;
}

.eub-header__top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eub-header__top-left a {
  color: var(--shell-text-light);
  text-decoration: none;
  margin-right: 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.eub-header__top-left a:hover {
  opacity: 1;
}

.eub-header__top-right a {
  color: var(--shell-text-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.eub-header__top-right a:hover {
  opacity: 1;
}

/* --- Logó és telefon sáv --- */
.eub-header__brand {
  background-color: var(--shell-primary);
  padding: 10px 0;
}

.eub-header__brand-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eub-header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--shell-text-light);
}

.eub-header__logo:hover,
.eub-header__logo:focus {
  text-decoration: none;
  color: var(--shell-text-light);
}

.eub-header__logo-text {
  font-family: var(--shell-font-condensed);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--shell-text-light);
}

.eub-header__logo-slogan {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.eub-header__contact {
  text-align: right;
}

.eub-header__phone {
  color: var(--shell-text-light);
  font-size: 18px;
  font-weight: 600;
}

.eub-header__phone a {
  color: var(--shell-text-light);
  text-decoration: none;
}

.eub-header__phone a:hover {
  text-decoration: underline;
}

.eub-header__phone .fa {
  margin-right: 6px;
}

/* --- Hamburger menü gomb (mobil) --- */
.eub-header__hamburger {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.eub-header__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--shell-text-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animáció aktív állapotban */
.eub-header__hamburger[aria-expanded="true"] .eub-header__hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.eub-header__hamburger[aria-expanded="true"] .eub-header__hamburger-bar:nth-child(2) {
  opacity: 0;
}

.eub-header__hamburger[aria-expanded="true"] .eub-header__hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Fő navigáció --- */
.eub-header__nav {
  background-color: var(--shell-primary-dark);
}

.eub-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.eub-header__nav-item {
  position: relative;
}

.eub-header__nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--shell-text-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.eub-header__nav-link:hover,
.eub-header__nav-link:focus {
  background-color: var(--shell-primary);
  color: var(--shell-text-light);
  text-decoration: none;
}

.eub-header__nav-link--cta {
  background-color: #f1911f;
  font-weight: 700;
}

.eub-header__nav-link--cta:hover,
.eub-header__nav-link--cta:focus {
  background-color: #d9810f;
}

.eub-header__nav-link--active {
  background-color: var(--shell-primary);
}

/* --- Dropdown menü --- */
.eub-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 240px;
  background-color: var(--shell-text-light);
  border: 1px solid var(--shell-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.eub-header__nav-item--has-dropdown:hover .eub-header__dropdown,
.eub-header__nav-item--has-dropdown.eub-header__nav-item--open .eub-header__dropdown {
  display: block;
}

.eub-header__dropdown li a {
  display: block;
  padding: 8px 16px;
  color: var(--shell-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: background-color 0.15s;
}

.eub-header__dropdown li a:hover {
  background-color: #f0f6fc;
  color: var(--shell-primary);
}

/* ==========================================================================
   CONTENT (tartalom terület)
   ========================================================================== */

.eub-content {
  min-height: 60vh;
  padding: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* --- Footer oszlopok --- */
.eub-footer__columns {
  background-color: var(--shell-bg-footer);
  color: var(--shell-text-light);
  padding: 30px 0 20px;
}

.eub-footer__heading {
  font-family: var(--shell-font-condensed);
  font-size: 16px;
  font-weight: 700;
  color: var(--shell-text-light);
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.eub-footer__links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.eub-footer__links li {
  margin-bottom: 4px;
}

.eub-footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.eub-footer__links a:hover {
  color: var(--shell-text-light);
  text-decoration: underline;
}

/* --- Footer kontakt sáv --- */
.eub-footer__contact {
  background-color: var(--shell-primary);
  color: var(--shell-text-light);
  padding: 14px 0;
  text-align: center;
}

.eub-footer__contact p {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.eub-footer__contact a {
  color: var(--shell-text-light);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.eub-footer__contact a:hover {
  opacity: 1;
}

/* --- Jogi sáv --- */
.eub-footer__legal {
  background-color: var(--shell-bg-legal);
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
}

.eub-footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.eub-footer__legal a:hover {
  color: var(--shell-text-light);
}

.eub-footer__legal-sep {
  margin: 0 8px;
}

/* --- Felelősségi nyilatkozat --- */
.eub-footer__liability {
  background-color: var(--shell-bg-legal);
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 0 14px;
  text-align: center;
  font-size: 11px;
}

.eub-footer__liability p {
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE — Bootstrap 3 breakpoints (xs, sm, md, lg)
   ========================================================================== */

/* SM (≥768px) */
@media (min-width: 768px) {
  .eub-header__hamburger {
    display: none !important;
  }

  .eub-header__nav {
    display: block !important;
  }
}

/* XS (<768px) — Mobil */
@media (max-width: 767px) {
  /* Hamburger látható */
  .eub-header__hamburger {
    display: flex;
  }

  /* Navigáció rejtett alapból */
  .eub-header__nav {
    display: none;
  }

  .eub-header__nav.eub-header__nav--open {
    display: block;
  }

  .eub-header__nav-list {
    flex-direction: column;
  }

  .eub-header__nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Dropdown mobil nézetben */
  .eub-header__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background-color: rgba(0, 0, 0, 0.15);
  }

  .eub-header__dropdown li a {
    color: rgba(255, 255, 255, 0.85);
    padding-left: 32px;
  }

  .eub-header__dropdown li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--shell-text-light);
  }

  /* Logó kisebb */
  .eub-header__logo-text {
    font-size: 28px;
  }

  .eub-header__phone {
    font-size: 14px;
  }

  /* Kontakt elrejtés mobilon */
  .eub-header__contact {
    display: none;
  }

  /* Footer oszlopok stack */
  .eub-footer__columns .col-sm-6 {
    margin-bottom: 10px;
  }
}

/* MD (≥992px) */
@media (min-width: 992px) {
  .eub-header__nav-link {
    padding: 12px 20px;
  }
}

/* LG (≥1200px) */
@media (min-width: 1200px) {
  .eub-header__nav-link {
    padding: 12px 24px;
    font-size: 14px;
  }
}
