/*
  Site footer — full-bleed photo CTA banner + a dark footer proper
  (brand, link column, contact column, bottom bar), matching the shared
  NAVIGATOR Group template seen in references/home/7, contact/ (a
  navigatorinvest.com footer screenshot). Reskinned with real Brunnbauer
  content — see the CLAUDE.md Status entry for this section for sourcing.
*/

/* ---- CTA banner ---- */

.site-footer__cta {
  position: relative;
  min-height: clamp(138px, 13.75vw, 200px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.site-footer__cta-image {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__cta-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  /* --color-overlay-navy (#23304d) at --overlay-hero-opacity (0.85),
     same literal values as .hero__overlay — see tokens.css. */
  background: rgba(35, 48, 77, 0.85);
}

.site-footer__cta-inner {
  position: relative;
  z-index: var(--z-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.site-footer__cta-headline {
  max-width: 640px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
}

.site-footer__cta-headline-muted {
  opacity: 0.55;
}

.site-footer__cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
  flex: none;
  background: var(--color-red-600);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  padding: calc(var(--space-3) - var(--button-border)) calc(var(--space-6) - var(--button-border));
  border: var(--button-border) solid var(--color-red-600);
  border-radius: var(--radius-button);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
}

.site-footer__cta-button svg {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.site-footer__cta-button:hover {
  background: var(--color-white);
  color: var(--color-red-600);
}

.site-footer__cta-button:hover svg {
  transform: translateX(3px);
}

.site-footer__cta-button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.site-footer__cta-button:active {
  transform: scale(0.97);
}

/* ---- Footer main ----
   Arrangement copied from sibling site navipro.eu (2026-11-14, user request):
   brand column (logo, group caption + logo, address) | two link columns |
   group column + "Developed by" badge, then a hairline-topped bottom bar on
   the same navy. Measured values from navipro.eu's style.css; Navipro's
   orange accent is Brunnbauer red here. */

.site-footer__main {
  background: var(--color-navy-900);
  color: var(--color-slate-200);
  /* jglobe.hu footer data: 14px at every width (2026-11-15). */
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  padding-top: clamp(52px, 6vw, 80px); padding-bottom: clamp(52px, 6vw, 80px);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__logo {
  /* One width drives the size and the whitespace-cancelling margins. */
  --footer-logo-w: clamp(168px, 16.8vw, 228px);
  display: block;
  width: var(--footer-logo-w);
  height: auto;
  /* The SVG has ~7.71% of its width empty below the artwork (viewBox
     596.05x256.45, artwork ends at y=210.52), so this makes the visible gap
     to the group caption exactly 20px, the same as the group block's gap to
     the address (2026-11-15, user request; was --space-5 = 24px + ~18px of
     SVG margin, ~42px visible). */
  margin-bottom: calc(15.5px - var(--footer-logo-w) * 0.0771);
  /* The SVG has ~8.8% empty space left of the compass; pull it back so the
     mark lines up with the caption and address below (measured at 228px:
     20px). */
  margin-left: calc(var(--footer-logo-w) * -0.088);
  /* Likewise ~10.15% of the width is empty above the compass (viewBox
     596.05x256.45, artwork starts at y=60.52); pull it up so the mark's top
     lines up with the column titles (2026-11-15, user request). */
  margin-top: calc(var(--footer-logo-w) * -0.1015);
}

.site-footer__group {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.site-footer__group-cap {
  display: block;
  /* 18px + the caption's line-height whitespace = 24px visible to the
     Navitech logo, equal to logo -> caption and Navitech -> address
     (2026-11-17, user request). */
  margin-bottom: 18px;
  /* jglobe.hu footer caption size: 12px (11.2px below 1200), no tracking;
     bold on user request (2026-11-15, was 400). */
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  color: var(--color-slate-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__group-logo {
  display: block;
  width: auto;
  height: 30px; /* Navitech: 30px high = 106px wide (2026-11-15, user: smaller than 40px) */
  transition: opacity var(--duration-fast) var(--ease-out);
}

.site-footer__group:hover .site-footer__group-cap { color: var(--color-slate-200); }
.site-footer__group:hover .site-footer__group-logo { opacity: 0.55; }
.site-footer__group:active .site-footer__group-logo { opacity: 0.4; }

.site-footer__address {
  font-style: normal;
  line-height: var(--lh-body);
}

/* "E-mail: brunnbauer@..." broke after the label in the 1024px column. */
.site-footer__address-line {
  white-space: nowrap;
}

.site-footer__col-title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  /* jglobe.hu footer titles ("1998 óta", "Lépjen velünk kapcsolatba"):
     Orbitron 700, 16.8px / 18px from 1200 = --fs-h4, so the titles are
     larger than the 14px data below them (client feedback 2026-11-15). */
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

.site-footer__col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38px;
  height: 2px;
  background: var(--color-red-600);
}

.site-footer__links {
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 10px;
}

.site-footer__links a,
.site-footer__address a {
  color: var(--color-slate-200);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__links a:hover,
.site-footer__address a:hover,
.site-footer__links a[aria-current="page"] {
  color: var(--color-white);
}

.site-footer__links a:active,
.site-footer__address a:active {
  color: var(--color-slate-400);
}

.site-footer__col--meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.site-footer__col--meta > div {
  align-self: stretch;
}

.site-footer__maker {
  display: inline-block;
  line-height: 0;
  border-radius: var(--radius-sm);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-spring);
}

.site-footer__maker img {
  width: auto;
  height: 27px;
}

.site-footer__maker:hover {
  opacity: 0.55;
  transform: translateY(-2px);
}

.site-footer__maker:active {
  transform: translateY(0);
}

.site-footer__main a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* ---- Bottom bar ---- */

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  color: var(--color-slate-200);
}

.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px; padding-bottom: 20px;
}

.site-footer__bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer__bar a {
  color: var(--color-slate-400);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__bar a:hover,
.site-footer__bar a[aria-current="page"] {
  color: var(--color-white);
}

.site-footer__bar a:active {
  color: var(--color-slate-200);
}

/* ---- Tablet (<= 960px): 2x2, as on navipro.eu ---- */
@media (max-width: 1199px) {
  .site-footer__group-cap { font-size: 0.7rem; } /* 11.2px */
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ---- CTA stacks (<= 768px) ---- */
@media (max-width: 768px) {
  /* The band has no padding of its own (min-height + centring); stacked,
     headline + button are 136px of its 138, so the headline touched the
     top edge (2026-11-17). */
  .site-footer__cta {
    padding-top: var(--space-7); padding-bottom: var(--space-7);
  }

  .site-footer__cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .site-footer__cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Phone (<= 560px): one column ---- */
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Bottom bar centred on tablets and phones (user, 2026-11-21): copyright on
   one line, the link row centred under it. Desktop keeps the single row. */
@media (max-width: 960px) {
  .site-footer__bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .site-footer__bar nav {
    justify-content: center;
    column-gap: 20px;
    row-gap: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Language switcher (.langsw), ported from the Navipro site: fixed
   bottom-right box with the two other languages' flags (82x32px). Links go
   to the same filename under en/ and de/ (those folders don't exist yet, so
   they 404 until the EN/DE pages are built).
   --------------------------------------------------------------------------- */
.langsw {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: calc(var(--z-overlay) - 5);
  display: flex;
  padding: 0 2px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
}

.langsw__opt {
  display: block;
  padding: 6.5px 6px;
  line-height: 0;
  transition: transform var(--duration-base) var(--ease-spring);
}

.langsw__opt svg {
  display: block;
  width: 26px;
  height: 17px;
}

.langsw__opt:hover {
  transform: translateY(-2px);
}

.langsw__opt:active {
  transform: scale(0.94);
}

.langsw__opt:focus-visible {
  outline: 2px solid var(--color-red-600);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Cookie notice (.cookiebar), ported from the Navipro site. Bottom-left
   floating box on every page; main.js shows it until the visitor chooses
   (localStorage "bbs_cookie_consent_v1" = accepted | declined). Sits above
   the header but below the mobile drawer and the lightbox (--z-overlay).
   --------------------------------------------------------------------------- */
.cookiebar {
  position: fixed;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: calc(var(--z-overlay) - 10);
  max-width: 400px;
  padding: var(--space-5);
  background: var(--color-navy-900);
  color: var(--color-slate-200);
  /* White outline (2026-11-27, user; red was tried first): navy on the navy
     hero strip blended in. Same 2px width as the button borders. */
  border: var(--button-border) solid var(--color-white);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.cookiebar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookiebar p {
  margin: 0;
}

.cookiebar p.cookiebar__policy {
  margin-top: var(--space-3);
}

.cookiebar__policy a {
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out);
}

.cookiebar__policy a:hover {
  color: var(--color-red-600);
}

.cookiebar__policy a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.cookiebar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Same pattern as the site's other buttons: 3px radius, 2px border in the
   fill colour, hover = white fill with the text in the fill colour. */
.cookiebar__btn {
  padding: calc(var(--space-3) - var(--button-border)) calc(var(--space-5) - var(--button-border));
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-label);
  white-space: nowrap;
  border: var(--button-border) solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
}

.cookiebar__btn:active {
  transform: scale(0.97);
}

.cookiebar__btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.cookiebar__btn--accept {
  background: var(--color-red-600);
  border-color: var(--color-red-600);
  color: var(--color-white);
}

.cookiebar__btn--accept:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-red-600);
}

.cookiebar__btn--decline {
  background: transparent;
  border-color: var(--color-slate-400);
  color: var(--color-white);
}

.cookiebar__btn--decline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy-900);
}

/* Bigger footer logo on mobile (user, 2026-11-18; was the clamp's 168px
   floor). The margins follow via the custom property. */
@media (max-width: 768px) {
  .site-footer__logo {
    --footer-logo-w: 240px;
  }
}

/* Mobile: the flags live in the drawer instead (main.js / header.css,
   user 2026-11-18), so the floating box and the cookie bar's lift above it
   are gone. */
@media (max-width: 768px) {
  .langsw {
    display: none;
  }
}

@media (max-width: 600px) {
  .cookiebar {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: none;
  }

  .cookiebar__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------
   Cookie settings (2026-11-21, user; modelled on the PRISMA Services site's
   cookie-consent.js). main.js builds the dialog; [data-cookie-settings]
   buttons open it: the cookie bar's "Beállítások", the footer bar's
   "Cookie beállítások" (all 25 pages) and the privacy page.
   --------------------------------------------------------------------------- */
/* One row of three (user, 2026-11-21): Beállítások (ghost) | Elutasítom
   (outline) | Elfogadom (red). The bar is 440px wide for it (was 400). */
.cookiebar {
  max-width: 440px;
}

.cookiebar__actions {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--space-2);
}

.cookiebar__actions .cookiebar__btn {
  padding-left: calc(var(--space-4) - var(--button-border)); padding-right: calc(var(--space-4) - var(--button-border));
  text-align: center;
}

.cookiebar__btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-slate-200);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.cookiebar__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: var(--color-white);
}

/* Phones: the bar spans the screen (288px at 320). The labels need ~222px
   of text, so padding shrinks and the label scales down below ~350px
   (10.9px at 320; WebKit draws the synthetic-bold Orbitron wider, so 3.6vw was 8px over there) to keep the row inside the bar. */
@media (max-width: 600px) {
  .cookiebar {
    padding: var(--space-4);
  }

  .cookiebar__actions {
    gap: 6px;
  }

  .cookiebar__actions .cookiebar__btn {
    padding-left: 4px; padding-right: 4px;
    font-size: min(var(--fs-label), 3.4vw);
  }
}

/* Footer bar: looks like the links beside it. */
.site-footer__cookie {
  padding: 0;
  color: var(--color-slate-400);
  font-size: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__cookie:hover {
  color: var(--color-white);
}

.site-footer__cookie:active {
  color: var(--color-slate-200);
}

.site-footer__cookie:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

html.cookie-dialog-open {
  overflow: hidden;
}

/* Above everything, incl. the drawer and the lightbox (--z-overlay):
   it only opens on request. */
.cookie-dialog {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: calc(var(--z-overlay) + 20);
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.cookie-dialog[hidden] {
  display: none;
}

.cookie-dialog__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(29, 47, 66, 0.6);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.cookie-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100svh - 2 * var(--space-5));
  overflow-y: auto;
  padding: var(--space-6);
  background: var(--color-white);
  color: var(--color-slate-600);
  border-radius: 24px 0 24px 0;
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-slow) var(--ease-spring);
}

.cookie-dialog.is-open .cookie-dialog__scrim,
.cookie-dialog.is-open .cookie-dialog__panel {
  opacity: 1;
}

.cookie-dialog.is-open .cookie-dialog__panel {
  transform: none;
}

.cookie-dialog__panel:focus {
  outline: none;
}

.cookie-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-dialog__title {
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.3;
}

.cookie-dialog__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  color: var(--color-navy-900);
  border-radius: var(--radius-button);
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
}

.cookie-dialog__close:hover {
  color: var(--color-red-600);
}

.cookie-dialog__close:active {
  transform: scale(0.92);
}

.cookie-dialog__close:focus-visible {
  outline: 2px solid var(--color-red-600);
  outline-offset: 2px;
}

.cookie-dialog__intro {
  margin-top: var(--space-3);
}

.cookie-dialog__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-slate-200);
}

.cookie-dialog__category-title {
  color: var(--color-navy-900);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}

.cookie-dialog__category-desc {
  margin-top: var(--space-1);
}

/* On/off switch: red when on, slate when locked on. */
.cookie-switch {
  flex: none;
  padding: 2px;
  border-radius: 999px;
}

.cookie-switch__track {
  display: block;
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--color-slate-400);
  border-radius: 999px;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.cookie-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(29, 47, 66, 0.3);
  transition: transform var(--duration-base) var(--ease-spring);
}

.cookie-switch[aria-checked="true"] .cookie-switch__track {
  background: var(--color-red-600);
}

.cookie-switch[aria-checked="true"] .cookie-switch__thumb {
  transform: translateX(20px);
}

.cookie-switch.is-locked {
  cursor: default;
}

.cookie-switch.is-locked .cookie-switch__track {
  background: var(--color-slate-400);
}

.cookie-switch:not(.is-locked):hover .cookie-switch__track {
  filter: brightness(1.08);
}

.cookie-switch:not(.is-locked):active .cookie-switch__thumb {
  transform: scale(0.9);
}

.cookie-switch[aria-checked="true"]:not(.is-locked):active .cookie-switch__thumb {
  transform: translateX(20px) scale(0.9);
}

.cookie-switch:focus-visible {
  outline: 2px solid var(--color-red-600);
  outline-offset: 2px;
}

.cookie-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Outline button on the white panel (navy), same hover pattern. */
.cookiebar__btn--outline {
  background: transparent;
  border-color: var(--color-navy-900);
  color: var(--color-navy-900);
}

.cookiebar__btn--outline:hover {
  background: var(--color-navy-900);
  border-color: var(--color-navy-900);
  color: var(--color-white);
}

.cookie-dialog .cookiebar__btn--accept:hover {
  background: var(--color-white);
  border-color: var(--color-red-600);
  color: var(--color-red-600);
}

.cookie-dialog .cookiebar__btn:focus-visible {
  outline-color: var(--color-red-600);
}

@media (max-width: 560px) {
  .cookie-dialog {
    padding: var(--space-3);
  }

  .cookie-dialog__panel {
    padding: var(--space-5);
    max-height: calc(100svh - 2 * var(--space-3));
  }

  .cookie-dialog__actions .cookiebar__btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebar {
    transform: none;
    transition: opacity var(--duration-fast) linear;
  }

  .cookie-dialog__panel {
    transform: none;
    transition: opacity var(--duration-fast) linear;
  }

  .cookie-switch__thumb {
    transition: none;
  }
}
