/* =========================================================
   Hot Pursuit — LANDING (front page) a TT5 child theme-ben.
   Minden a .hp-landing alá van zárva; a teljes-képernyős
   viselkedés a body.hp-front-on. Csak a kezdőoldalon töltődik be.
   ========================================================= */

.hp-landing {
  --bg: #000;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.66);
  --fg-faint: rgba(255, 255, 255, 0.40);
  --accent: #e10600;
  --rule: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(20px, 3.2vw, 36px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Inter", sans-serif;

  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.hp-landing *, .hp-landing *::before, .hp-landing *::after { box-sizing: border-box; }
.hp-landing a { color: inherit; text-decoration: none; }
.hp-landing button { font-family: inherit; }
.hp-landing img, .hp-landing video { display: block; }

/* Teljes-képernyős front page: a WP/TT5 chrome elrejtése, sötét háttér */
body.hp-front {
  margin: 0;
  background: #000;
  overflow: hidden;
}
body.hp-front header.wp-block-template-part,
body.hp-front footer.wp-block-template-part { display: none; }
body.hp-front .wp-site-blocks,
body.hp-front .hp-front-main,
body.hp-front main,
body.hp-front .is-layout-constrained {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  /* A TT5 wrapper 100vh min-height-ja magasabb a 100dvh stage-nél → fekete sáv
     a kép alatt mobilon. Nullázzuk, hogy a wrapper pontosan a stage magas legyen. */
  min-height: 0 !important;
}
/* A body se lehessen magasabb a látható viewportnál (overflow:hidden klippel). */
body.hp-front { height: 100dvh; }
/* bejelentkezve az admin bar ne nyomja el a layoutot */
body.hp-front.admin-bar .hp-landing .stage { height: calc(100dvh - 32px); }

/* ---------- Stage (full viewport) ---------- */

.hp-landing .stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Media layers ---------- */

.hp-landing .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
  z-index: 1;
  background: #000;
}
.hp-landing .hero-media.is-visible { opacity: 1; }

.hp-landing .scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.65) 100%);
}

.hp-landing .fade-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}
.hp-landing .fade-overlay.is-on { opacity: 1; }

/* ---------- Topbar ---------- */

.hp-landing .topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--pad-y) var(--pad-x);
}
.hp-landing .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(18px, 1.6vw, 22px);
  text-transform: uppercase;
}
.hp-landing .brand__mark { color: var(--fg); }
.hp-landing .brand__mark--accent { color: #fff; }

.hp-landing .nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }

/* Jobb oldali csoport: menü + kosár-ikon + hamburger */
.hp-landing .topbar__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
/* A wpautop a </nav> utáni inline kosár+hamburgert egy <p>-be csomagolja → semlegesítjük:
   a <p> "eltűnik", a gyerekei (kosár, hamburger) közvetlen flex-elemmé válnak. */
.hp-landing .topbar__right > p { display: contents; }
.hp-landing .icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(0, 0, 0, 0.28); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.hp-landing .icon-btn:hover { background: rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.4); }
.hp-landing .icon-btn svg { width: 18px; height: 18px; display: block; }
.hp-landing .icon-btn__badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* Hamburger — desktopon rejtve, mobilon látszik: 3 vékony fehér vonal, keret nélkül. */
.hp-landing .nav-toggle {
  display: none;
  border: none; background: none; border-radius: 0;
  color: #fff; cursor: pointer;
  padding: 8px 0 8px 10px; /* tap-terület, jobb oldalon nincs padding → a szélhez tapad */
  align-items: center; justify-content: center;
}
.hp-landing .nav-toggle svg { width: 28px; height: 28px; display: block; stroke-width: 1.4; }
.hp-landing .nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
  transition: opacity 200ms var(--ease);
}
.hp-landing .nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
}
.hp-landing .nav__link:hover { opacity: 1; }
.hp-landing .nav__link:hover::after { transform: scaleX(1); }

/* ---------- Side arrows ---------- */

.hp-landing .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: clamp(48px, 4.8vw, 64px);
  height: clamp(48px, 4.8vw, 64px);
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.32);
  color: var(--fg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.hp-landing .arrow:hover { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.35); }
.hp-landing .arrow:active { transform: translateY(-50%) scale(0.96); }
.hp-landing .arrow svg { width: 50%; height: 50%; display: block; }
.hp-landing .arrow--prev { left: clamp(14px, 2.2vw, 28px); }
.hp-landing .arrow--next { right: clamp(14px, 2.2vw, 28px); }

/* ---------- Hero centerpiece ---------- */

.hp-landing .hero-card {
  position: absolute;
  left: 50%;
  bottom: clamp(80px, 12vh, 140px);
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: min(820px, 92vw);
  animation: hp-rise 700ms var(--ease) 200ms both;
}
.hp-landing .hero-card__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.hp-landing .hero-card__title {
  font-family: "Oswald", var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: 2px;
  margin: 0 0 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hp-landing .hero-card__sub {
  margin: 0 0 28px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* CTA — alapból fehér, hoverre az adott autó színe (JS állítja). */
.hp-landing .cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 260ms var(--ease), color 260ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.hp-landing .cta__icon { display: inline-grid; place-items: center; width: 22px; height: 22px; transition: transform 220ms var(--ease); }
.hp-landing .cta__icon svg { width: 100%; height: 100%; }
.hp-landing .cta:hover { background: var(--cta-hover-bg, var(--accent)); color: var(--cta-hover-fg, #fff); }
.hp-landing .cta:hover .cta__icon { transform: translateX(4px); }
.hp-landing .cta:active { transform: translateY(1px); }

/* ---------- Pager ---------- */

.hp-landing .pager {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 5vh, 56px);
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hp-landing .pager__dot {
  width: 22px; height: 2px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background-color 220ms var(--ease), width 220ms var(--ease);
}
.hp-landing .pager__dot.is-active { background: var(--fg); width: 34px; }

/* ---------- Footer ---------- */

.hp-landing .footer {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 5;
  padding: var(--pad-y) var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hp-landing .footer__link { color: inherit; transition: color 220ms var(--ease); }
.hp-landing .footer__link:hover { color: var(--fg); }
.hp-landing .footer__sep { opacity: 0.6; }

/* ---------- Animations ---------- */

@keyframes hp-rise {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  /* Logó balra, hamburger jobbra (a szélhez tapadva); kattintásra lenyíló menü. */
  .hp-landing .topbar { flex-direction: row; align-items: center; justify-content: space-between; padding-right: 8px; }
  .hp-landing .nav-toggle { display: inline-flex; }
  .hp-landing .nav {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    right: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 168px;
    padding: 4px 16px;          /* alacsonyabb dropdown */
    background: rgba(16, 18, 20, 0.72);
    border: 1px solid var(--rule);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 20;
  }
  .hp-landing .nav.is-open { display: flex; }
  .hp-landing .nav__link { font-size: 13px; letter-spacing: 0.12em; padding: 3px 0; width: 100%; }

  .hp-landing .arrow { width: 44px; height: 44px; }

  /* A hero szövegek + CTA lent (de a lapozó-pontok + footer fölött). */
  .hp-landing .hero-card { bottom: clamp(56px, 8vh, 76px); }
  .hp-landing .hero-card__eyebrow { margin-bottom: 10px; }
  .hp-landing .hero-card__sub { margin-bottom: 16px; }
  /* Vékonyabb CTA: egy sorban (nowrap), kevesebb függőleges padding. */
  .hp-landing .cta { padding: 9px 24px; font-size: 12px; gap: 10px; white-space: nowrap; }
  .hp-landing .cta__icon { width: 18px; height: 18px; }

  /* Kompaktabb footer + a lapozó-pontok FÖLÉ → nincs átfedés az Adatvédelem/ÁSZF-fel. */
  .hp-landing .footer { padding: 10px 14px; letter-spacing: 0.14em; }
  .hp-landing .pager { bottom: clamp(40px, 5vh, 46px); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-landing *, .hp-landing *::before, .hp-landing *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
