/* =========================================================
   Hot Pursuit — "Hogyan működik?" oldal ([hp_howitworks]).
   Cél dizájn: meleg sötét tónus, zsályazöld akcent, fotós
   esemény-kártyák, szaggatott lépés-összekötők, fotós CTA.
   ========================================================= */
body.hp-howto-page {
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.64);
  --fg-faint: rgba(255, 255, 255, 0.38);
  --rule: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 250, 242, 0.04);
  --sage: #87a08b;          /* számok, ikonok */
  --sage-bright: #9fc2a4;   /* pipák */
  --btn: #5d7a62;           /* elsődleges gomb */
  --btn-hover: #6e8f73;
  --bg: #14120f;            /* meleg, majdnem-fekete */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(20px, 4vw, 64px);
  --font-display: "Oswald", "Inter", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* TT5 fejléc/lábléc + router-bar rejtése (saját topbar/footer van) */
body.hp-howto-page header.wp-block-template-part,
body.hp-howto-page footer.wp-block-template-part { display: none !important; }
body.hp-howto-page .wp-interactivity-router-loading-bar { display: none !important; }
body.hp-howto-page .wp-site-blocks { padding: 0 !important; margin: 0 !important; }
body.hp-howto-page .wp-site-blocks > * { margin-block-start: 0 !important; margin-top: 0 !important; }
body.hp-howto-page .wp-block-post-title,
body.hp-howto-page .entry-title,
body.hp-howto-page .woocommerce-breadcrumb { display: none; } /* az oldal saját H1-et hoz */
/* Teljes szélesség: a TT5 tartalom-wrapper (has-global-padding + is-layout-constrained)
   keretbe szorítaná a .hp-howto-t → nullázzuk, hogy a hero háttér full-bleed legyen. */
body.hp-howto-page main,
body.hp-howto-page .entry-content,
body.hp-howto-page .wp-block-post-content,
body.hp-howto-page .has-global-padding,
body.hp-howto-page .is-layout-constrained {
  max-width: none !important; padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
  /* A TT5 page-sablon wrapperei INLINE padding-top/margin-top-ot hordoznak
     (main + "alignfull has-global-padding" group) → fekete sáv a hero fölött. */
  padding-top: 0 !important; margin-top: 0 !important; margin-block-start: 0 !important;
  padding-bottom: 0 !important;
}
body.hp-howto-page .is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-block-start: 0 !important; }
.hp-howto { position: relative; width: 100%; color: var(--fg); }
.hp-howto *, .hp-howto *::before, .hp-howto *::after { box-sizing: border-box; }
.hp-howto a { color: inherit; text-decoration: none; }
.hp-howto img { display: block; max-width: 100%; }

/* ---------- Topbar (a hero fölött lebeg) ---------- */
.hp-howto .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 30px);
  padding: clamp(18px, 2.6vw, 30px) var(--pad-x);
}
.hp-howto .topbar .brand { margin-right: auto; }
.hp-howto .brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; font-size: clamp(17px, 1.5vw, 21px); text-transform: uppercase; }
.hp-howto .brand__mark--accent { color: #fff; }
.hp-howto .topnav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.hp-howto .topnav__link { font-size: 13px; font-weight: 500; opacity: 0.85; transition: opacity 200ms var(--ease); }
.hp-howto .topnav__link:hover { opacity: 1; }
.hp-howto .topnav__icons { display: flex; align-items: center; gap: 16px; }
.hp-howto .icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--rule); background: rgba(0, 0, 0, 0.25); color: #fff; }
.hp-howto .icon-btn svg { width: 18px; height: 18px; }
.hp-howto .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; }
.hp-howto .nav-toggle { display: none; border: none; background: none; color: #fff; cursor: pointer; padding: 8px 0 8px 10px; }
.hp-howto .nav-toggle svg { width: 28px; height: 28px; display: block; stroke-width: 1.4; }

/* ---------- Közös section ---------- */
.hp-howto__section { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 5.5vw, 76px) var(--pad-x) 0; }
.hp-howto__h2 { text-align: center; font-weight: 650; letter-spacing: -0.01em; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 clamp(24px, 3.2vw, 40px); }

/* ---------- Hero ---------- */
.hp-howto__hero { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 150px) var(--pad-x) clamp(56px, 7vw, 88px); min-height: clamp(420px, 54vh, 600px); display: flex; align-items: center; }
.hp-howto__bg { position: absolute; inset: 0; z-index: 0; background: url('../img/howto/howto-hero.webp') center 38% / cover no-repeat; }
.hp-howto__scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0.10) 34%, rgba(20, 18, 15, 0.92) 88%, var(--bg) 100%),
  linear-gradient(90deg, rgba(20, 18, 15, 0.82) 0%, rgba(20, 18, 15, 0.42) 55%, rgba(20, 18, 15, 0.28) 100%); }
.hp-howto__hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.hp-howto__hero-text { max-width: 560px; }
.hp-howto__crumb { font-size: 12.5px; color: var(--fg-muted); margin: 0 0 clamp(16px, 2.4vw, 28px); display: flex; align-items: center; gap: 8px; }
.hp-howto__crumb a { text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.hp-howto__crumb a:hover { opacity: 1; }
.hp-howto__hero-text h1 { font-weight: 650; letter-spacing: -0.015em; line-height: 1.04; font-size: clamp(36px, 4.8vw, 58px); margin: 0 0 18px; }
.hp-howto__hero-text .lead { font-size: clamp(15px, 1.5vw, 18px); margin: 0 0 12px; }
.hp-howto__hero-text .muted { color: var(--fg-muted); font-size: 13.5px; max-width: 340px; line-height: 1.6; margin: 0; }
.hp-howto__checklist { list-style: none; margin: 0; padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px); flex: 0 0 auto; min-width: 280px;
  background: rgba(26, 23, 19, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.hp-howto__checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; }
.hp-howto__checklist li::before { content: ""; flex: 0 0 auto; width: 19px; height: 19px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--sage) 70%, transparent); background:
  no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fc2a4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E"); }

/* ---------- 4 lépés ---------- */
.hp-howto__steps { --steps-gap: clamp(14px, 1.8vw, 26px); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--steps-gap); }
.hp-howto .step { position: relative; background: linear-gradient(160deg, rgba(255, 250, 242, 0.055), rgba(255, 250, 242, 0.02)); border: 1px solid var(--rule); border-radius: 20px; padding: 22px 20px 26px; text-align: center; }
.hp-howto .step__num { font-weight: 700; font-size: 26px; letter-spacing: 0.04em; color: var(--sage); display: block; text-align: left; line-height: 1; }
.hp-howto .step__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.035); margin: 12px 0 16px; color: rgba(255, 255, 255, 0.85); }
.hp-howto .step__icon svg { width: 24px; height: 24px; }
.hp-howto .step h3 { font-size: 16.5px; font-weight: 650; margin: 0 0 8px; }
.hp-howto .step p { color: var(--fg-muted); font-size: 13px; line-height: 1.6; margin: 0; }
/* Szaggatott összekötő a kártyák között, az ikon-kör magasságában (csak 4 oszlopnál) */
@media (min-width: 1001px) {
  .hp-howto .step:not(:last-child)::after { content: ""; position: absolute; top: 91px; left: 100%; width: var(--steps-gap); border-top: 2px dashed rgba(255, 255, 255, 0.20); }
}

/* ---------- Események (fotós kártyák) ---------- */
.hp-howto__events { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.hp-howto .event { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; transition: border-color 220ms var(--ease), transform 220ms var(--ease); }
.hp-howto .event:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-3px); }
.hp-howto .event__media { position: relative; aspect-ratio: 16 / 10; }
.hp-howto .event__media img { width: 100%; height: 100%; object-fit: cover; }
.hp-howto .event__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 14, 12, 0.55) 100%); }
.hp-howto .event__icon { position: absolute; left: 16px; bottom: -16px; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgba(28, 32, 27, 0.85); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--sage-bright); }
.hp-howto .event__icon svg { width: 22px; height: 22px; }
.hp-howto .event__body { padding: 30px 18px 20px; }
.hp-howto .event h3 { font-size: 16.5px; font-weight: 650; margin: 0 0 7px; }
.hp-howto .event p { color: var(--fg-muted); font-size: 13px; line-height: 1.6; margin: 0; }

/* ---------- GYIK (details/summary — alapból nyitva, mint a dizájnon) ---------- */
.hp-howto__faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.hp-howto .faq { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 18px; }
.hp-howto .faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0 0; font-weight: 600; font-size: 14.5px; }
.hp-howto .faq:not([open]) summary { padding-bottom: 14px; }
.hp-howto .faq summary::-webkit-details-marker { display: none; }
.hp-howto .faq__plus { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); }
.hp-howto .faq__plus::before, .hp-howto .faq__plus::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.75); transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.hp-howto .faq__plus::before { top: 16px; left: 10px; width: 12px; height: 1.6px; }
.hp-howto .faq__plus::after { left: 16px; top: 10px; width: 1.6px; height: 12px; }
.hp-howto .faq[open] .faq__plus::after { transform: scaleY(0); opacity: 0; }
.hp-howto .faq__a { color: var(--fg-muted); font-size: 13px; line-height: 1.6; padding: 5px 48px 14px 0; }

/* ---------- Prémium szolgáltatások ---------- */
.hp-howto__premium { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.hp-howto .premium { display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, #46604b 16%, rgba(255, 255, 255, 0.02)); border: 1px solid color-mix(in srgb, #6f8f74 30%, var(--rule)); border-radius: 18px; padding: clamp(18px, 2vw, 26px); }
.hp-howto .premium__icon { flex: 0 0 auto; color: var(--sage); }
.hp-howto .premium__icon svg { width: 42px; height: 42px; stroke-width: 1.2; }
.hp-howto .premium h3 { font-size: 16px; font-weight: 650; margin: 0 0 6px; }
.hp-howto .premium p { color: var(--fg-muted); font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------- CTA banner (fotó háttérrel) ---------- */
.hp-howto__cta { position: relative; overflow: hidden; margin-top: clamp(48px, 6.5vw, 84px); padding: clamp(56px, 8vw, 104px) var(--pad-x); text-align: center; }
.hp-howto__bg--cta { background: url('../img/howto/howto-cta.webp') center 62% / cover no-repeat; }
.hp-howto__cta .hp-howto__scrim { background:
  linear-gradient(180deg, var(--bg) 0%, rgba(20, 18, 15, 0.55) 22%, rgba(20, 18, 15, 0.55) 78%, rgba(20, 18, 15, 0.9) 100%); }
.hp-howto__cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hp-howto__cta-inner h2 { font-weight: 650; letter-spacing: -0.01em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 12px; }
.hp-howto__cta-inner p { color: rgba(255, 255, 255, 0.78); margin: 0 0 28px; font-size: 14.5px; }
.hp-howto__cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hp-howto .btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.hp-howto .btn--primary { background: var(--btn); color: #fff; }
.hp-howto .btn--primary:hover { background: var(--btn-hover); }
.hp-howto .btn--ghost { background: rgba(18, 17, 15, 0.65); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hp-howto .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Footer ---------- */
.hp-howto .hp-shop__footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: clamp(20px, 3vw, 32px) var(--pad-x); border-top: 1px solid var(--rule); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.hp-howto .hp-shop__footer a { color: #fff; opacity: 0.85; }
.hp-howto .hp-shop__footer a:hover { opacity: 1; }
.hp-howto .hp-shop__footer .sep { opacity: 0.5; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1000px) {
  .hp-howto__steps { grid-template-columns: repeat(2, 1fr); }
  .hp-howto__events { grid-template-columns: repeat(2, 1fr); }
  .hp-howto__premium { grid-template-columns: 1fr; }
  .hp-howto .premium { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .hp-howto .nav-toggle { display: inline-flex; order: 3; }
  .hp-howto .topbar { padding-right: 8px; }
  .hp-howto .topnav {
    display: none; position: absolute; top: calc(100% - 6px); right: 8px;
    flex-direction: column; align-items: flex-start; gap: 0; min-width: 180px; padding: 6px 16px;
    background: rgba(16, 18, 20, 0.9); border: 1px solid var(--rule); border-radius: 14px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 30;
  }
  .hp-howto .topnav.is-open { display: flex; }
  .hp-howto .topnav__link { padding: 8px 0; width: 100%; font-size: 14px; }
  .hp-howto__hero { padding-top: 110px; }
  .hp-howto__hero-inner { flex-direction: column; }
  .hp-howto__checklist { width: 100%; min-width: 0; }
  .hp-howto__steps { grid-template-columns: 1fr; }
  .hp-howto__events { grid-template-columns: 1fr; }
  .hp-howto__faq { grid-template-columns: 1fr; }
  .hp-howto__cta-btns { flex-direction: column; align-items: stretch; }
  .hp-howto .btn { justify-content: center; }
  .hp-howto .hp-shop__footer { justify-content: center; }
}
