/* ==========================================================================
   Főoldal — kompakt kezdő blokk (2026-10-19)
   The compact hero, the quick-link strip, the „Kategóriarács” section and the
   phones' sticky call / quote bar. Front page only, after main.css
   (inc/home-content.php, blf_home_start_assets()). Mobile first.
   Markup: template-parts/home/{hero,catgrid}.php.
   ========================================================================== */

/* ---- Hero ------------------------------------------------------------- */
/* Half the old height: 325 px on desktop (was 650), 260 on tablet (was 520).
   The photo's chair stands right, the copy sits on a light wash on the left. */
.blf-hero--home.blf-hero--start{position:relative;display:flex;align-items:center;min-height:0;aspect-ratio:auto;background-color:#eef1f5;background-size:cover;background-position:84% 50%;background-repeat:no-repeat}
.blf-hero--home.blf-hero--start::before{background:linear-gradient(90deg,rgba(242,245,248,.97) 0%,rgba(242,245,248,.9) 46%,rgba(242,245,248,.35) 64%,rgba(242,245,248,0) 78%)}
.blf-hero--home.blf-hero--start .blf-hero__inner{display:block;width:100%;position:relative;z-index:1;padding-block:22px 24px}
.blf-hero--home.blf-hero--start .blf-hero__copy{max-width:60%}
.blf-hero--start .blf-hero__eyebrow{color:var(--bl-navy);font-size:.66rem;letter-spacing:.06em;margin:0 0 10px}
.blf-hero--home.blf-hero--start .blf-hero__title{font-size:1.7rem;line-height:1.1;letter-spacing:-.02em;margin:0}
.blf-hero--home.blf-hero--start .blf-hero__accent{color:inherit;display:block;margin-top:0}
.blf-hero--start .blf-hero__sub{margin:12px 0 0;font-size:.85rem;font-weight:400;line-height:1.45;color:var(--bl-ink);max-width:34ch}
.blf-hero--start .blf-hero__actions{display:none}

/* ---- Quick links under the hero --------------------------------------- */
.blf-home-quick{background:#fff;border-bottom:1px solid var(--bl-line)}
.blf-home-quick__list{display:flex;justify-content:center;align-items:stretch}
.blf-home-quick__list > li{flex:1 1 0;display:flex;justify-content:center}
.blf-home-quick__list > li + li{border-left:1px solid var(--bl-line)}
.blf-home-quick__link{display:inline-flex;align-items:center;gap:10px;padding:14px 10px;color:var(--bl-navy);font-weight:600;font-size:.9rem}
.blf-home-quick__link:hover{text-decoration:none;color:var(--bl-blue)}
.blf-home-quick__link .blf-home-icon{width:20px;height:20px;flex:0 0 auto}

/* ---- Kategóriarács ---------------------------------------------------- */
/* Every value the Főoldal szerkesztő can set reads a `--hc-*` custom property
   from the section's style attribute (blf_home_catgrid_look()); the fallback
   here IS the design's own value, so an empty field changes nothing. Colours
   and the outer margin have no fallback to return to, so a class switches
   their rule on only when they are set. */
.blf-section.blf-home-cats{padding-block:var(--hc-pt-m,22px) var(--hc-pb-m,28px)}
.blf-home-cats--mt{margin-top:var(--hc-mt)}
.blf-home-cats--mb{margin-bottom:var(--hc-mb)}
.blf-home-cats--bg{background:var(--hc-bg)}
.blf-home-cats__title{font-size:var(--hc-ts-m,1.45rem);font-weight:var(--hc-tw,800);text-align:var(--hc-ta,left);margin:0 0 var(--hc-tg,14px)}
.blf-home-cats--tc .blf-home-cats__title{color:var(--hc-tc)}
.blf-home-cats__grid{display:grid;grid-template-columns:repeat(var(--hc-cols-m,2),minmax(0,1fr));gap:var(--hc-gap-m,10px)}
.blf-home-cat{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--bl-line);border-radius:var(--hc-radius,8px);overflow:hidden;color:var(--bl-navy);transition:border-color .15s,box-shadow .15s,transform .15s}
a.blf-home-cat:hover{text-decoration:none;border-color:#c9d3e0;box-shadow:var(--bl-shadow-lg)}
.blf-home-cat__media{position:relative;display:block;aspect-ratio:var(--hc-ratio,3/2);overflow:hidden;background:#f6f7f9}
/* Absolute, or the picture's own height would stretch the box. */
.blf-home-cat__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;mix-blend-mode:multiply}
/* A lifestyle photo fills the box, cropped at the tile's focus (inline
   object-position); only a product cutout keeps the inset and the blend. */
.blf-home-cat--photo .blf-home-cat__media img{object-fit:cover;padding:0;mix-blend-mode:normal;transition:transform .3s}
a.blf-home-cat--photo:hover .blf-home-cat__media img{transform:scale(1.04)}
.blf-home-cat__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:var(--hc-fp,10px) calc(var(--hc-fp,10px) + 2px)}
.blf-home-cat__label{flex:1 1 auto;font-weight:var(--hc-lw,700);font-size:var(--hc-ls-m,.88rem);line-height:1.25;text-align:var(--hc-la,left)}
.blf-home-cats--lc .blf-home-cat__label{color:var(--hc-lc)}
.blf-home-cat__arrow{flex:0 0 auto;transition:transform .15s}
a.blf-home-cat:hover .blf-home-cat__arrow{transform:translateX(3px)}
.blf-home-cats--cbg .blf-home-cat,
.blf-home-cats--cbg .blf-home-cat__media{background:var(--hc-cbg)}

/* Keret: árnyék / nincs. */
.blf-home-cats--frame-shadow .blf-home-cat{border-color:transparent;box-shadow:0 2px 12px rgba(11,44,90,.09)}
.blf-home-cats--frame-none .blf-home-cat{border-color:transparent}
/* Rámutatás: emelés / semmi. */
.blf-home-cats--hover-lift a.blf-home-cat:hover{transform:translateY(-3px)}
.blf-home-cats--hover-lift a.blf-home-cat--photo:hover .blf-home-cat__media img,
.blf-home-cats--hover-none a.blf-home-cat--photo:hover .blf-home-cat__media img{transform:none}
.blf-home-cats--hover-none a.blf-home-cat:hover{box-shadow:none}
.blf-home-cats--frame-none.blf-home-cats--hover-none a.blf-home-cat:hover{border-color:transparent}

/* Stílus: felirat a fotón. The caption sits on a dark fade at the foot. */
.blf-home-cats--overlay .blf-home-cat{position:relative;border:0}
.blf-home-cats--overlay .blf-home-cat__media{aspect-ratio:var(--hc-ratio,4/3)}
.blf-home-cats--overlay .blf-home-cat__foot{position:absolute;inset:auto 0 0 0;padding-top:calc(var(--hc-fp,10px) + 26px);background:linear-gradient(to top,rgba(6,26,52,.86) 0%,rgba(6,26,52,.55) 55%,rgba(6,26,52,0) 100%);color:#fff}
/* Stílus: letisztult — no box, the picture carries the tile. */
.blf-home-cats--minimal .blf-home-cat{border:0;background:transparent;border-radius:0;overflow:visible}
.blf-home-cats--minimal a.blf-home-cat:hover{box-shadow:none}
.blf-home-cats--minimal .blf-home-cat__media{border-radius:var(--hc-radius,8px)}
.blf-home-cats--minimal .blf-home-cat__foot{padding:var(--hc-fp,10px) 2px 0}
/* Stílus: sor — small square picture left, label right. */
.blf-home-cats--row .blf-home-cat{flex-direction:row;align-items:center}
.blf-home-cats--row .blf-home-cat__media{flex:0 0 64px;width:64px;aspect-ratio:1/1}
.blf-home-cats--row .blf-home-cat__media img{padding:4px}
.blf-home-cats--row .blf-home-cat--photo .blf-home-cat__media img{padding:0}
.blf-home-cats--row .blf-home-cat__foot{flex:1 1 auto}
/* Stílus: címke — text only. */
.blf-home-cats--chip .blf-home-cat__media{display:none}
.blf-home-cats--chip .blf-home-cat{justify-content:center;border-radius:var(--hc-radius,999px)}
.blf-home-cats--chip .blf-home-cat__foot{padding:var(--hc-fp,10px) calc(var(--hc-fp,10px) + 8px)}

.blf-home-cats--noarrow .blf-home-cat__arrow{display:none}
.blf-home-cats__all{margin:16px 0 0}

/* „Összes kategória”: a phone shows the first `mobile_max` tiles; the rest
   open on a checkbox, which stays focusable while out of sight. */
.blf-home-cats__toggle{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.blf-home-cats__more{display:none}
@media(max-width:640px){
	.blf-home-cats__grid > li.is-extra{display:none}
	.blf-home-cats__toggle:checked ~ .blf-home-cats__grid > li.is-extra{display:block}
	.blf-home-cats__more{display:flex;justify-content:center;margin-top:12px;padding:11px 14px;border:1px solid var(--bl-line);border-radius:8px;background:#fff;color:var(--bl-navy);font-weight:700;font-size:.92rem;cursor:pointer}
	.blf-home-cats__toggle:focus-visible ~ .blf-home-cats__more{outline:2px solid var(--bl-blue);outline-offset:2px}
	.blf-home-cats__more-close,
	.blf-home-cats__toggle:checked ~ .blf-home-cats__more .blf-home-cats__more-open{display:none}
	.blf-home-cats__toggle:checked ~ .blf-home-cats__more .blf-home-cats__more-close{display:inline}
}
.blf-home-cats__alllink{color:var(--bl-navy);font-weight:600;font-size:.92rem}
.blf-home-cats__alllink span{color:var(--bl-orange);margin-left:4px}

/* Navy help card. */
.blf-home-help{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:start;margin-top:20px;padding:20px;border-radius:8px;background:var(--bl-navy);color:#fff}
.blf-home-help__icon{grid-row:span 2;color:var(--bl-orange)}
.blf-home-help__icon .blf-home-icon{width:46px;height:46px;stroke-width:1.5}
.blf-home-help__title{margin:0;font-size:1.1rem;font-weight:800;line-height:1.25;color:#fff}
.blf-home-help__text{margin:2px 0 0;font-size:.85rem;color:rgba(255,255,255,.85)}
.blf-home-help__btn{grid-column:2;justify-self:start;margin-top:10px;display:inline-flex;align-items:center;padding:.6em 1.1em;border:1px solid rgba(255,255,255,.75);border-radius:6px;color:#fff;font-weight:600;font-size:.88rem}
.blf-home-help__btn:hover{text-decoration:none;background:#fff;color:var(--bl-navy)}

/* ---- Phones' sticky call / quote bar ---------------------------------- */
.blf-home-bar{position:fixed;left:0;right:0;bottom:0;z-index:80;display:grid;grid-template-columns:1fr;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--bl-line);box-shadow:0 -6px 20px rgba(11,44,90,.08)}
.blf-home-bar--two{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr)}
.blf-home-bar__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 14px;border-radius:8px;font-weight:700;font-size:.95rem;white-space:nowrap}
.blf-home-bar__btn:hover{text-decoration:none}
.blf-home-bar__btn--call{background:#fff;color:var(--bl-navy);border:1px solid #cfd6df}
.blf-home-bar__btn--call .blf-home-icon{width:20px;height:20px}
.blf-home-bar__btn--main{background:var(--bl-orange);color:#fff}
.blf-home-bar__btn--main:hover{background:var(--bl-orange-d)}
/* Room for the bar at the foot of the page. */
body:has(.blf-home-bar){padding-bottom:calc(70px + env(safe-area-inset-bottom))}

@media(max-width:640px){
	/* The trust strip above the hero gives way to the compact top. */
	.blf-home > .blf-benefits--trust{display:none}
}
@media(max-width:380px){
	.blf-hero--home.blf-hero--start .blf-hero__title{font-size:1.5rem}
	.blf-hero--home.blf-hero--start .blf-hero__copy{max-width:64%}
	.blf-home-quick__link{font-size:.82rem;gap:7px}
	.blf-home-bar__btn{font-size:.88rem;gap:7px}
}

/* ---- Tablet ----------------------------------------------------------- */
@media(min-width:641px){
	.blf-home-bar{display:none}
	body:has(.blf-home-bar){padding-bottom:0}

	.blf-hero--home.blf-hero--start{min-height:260px;background-position:88% 50%}
	.blf-hero--home.blf-hero--start .blf-hero__inner{padding-block:28px}
	.blf-hero--home.blf-hero--start .blf-hero__copy{max-width:56%}
	.blf-hero--start .blf-hero__eyebrow{font-size:.74rem;margin-bottom:12px}
	.blf-hero--home.blf-hero--start .blf-hero__title{font-size:2.1rem}
	.blf-hero--start .blf-hero__sub{font-size:1rem;margin-top:12px;max-width:44ch}
	.blf-hero--start .blf-hero__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

	.blf-home-quick__list{justify-content:center}
	.blf-home-quick__list > li{flex:0 1 auto}
	.blf-home-quick__link{padding:14px 32px;font-size:.95rem}

	.blf-section.blf-home-cats{padding-block:var(--hc-pt,32px) var(--hc-pb,40px)}
	.blf-home-cats__title{font-size:var(--hc-ts,1.7rem);margin-bottom:var(--hc-tg,18px)}
	.blf-home-cats__grid{grid-template-columns:repeat(var(--hc-cols-t,3),minmax(0,1fr));gap:var(--hc-gap,14px)}
	.blf-home-cat__label{font-size:var(--hc-ls,.95rem)}

	/* Help card: icon, copy, button in one row. */
	.blf-home-help{grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:22px 28px}
	.blf-home-help__icon{grid-row:auto}
	.blf-home-help__btn{grid-column:auto;margin-top:0;white-space:nowrap}
}

/* ---- Desktop ---------------------------------------------------------- */
@media(min-width:1081px){
	.blf-hero--home.blf-hero--start{min-height:325px;background-position:80% 50%}
	.blf-hero--home.blf-hero--start::before{background:linear-gradient(90deg,rgba(242,245,248,.97) 0%,rgba(242,245,248,.88) 38%,rgba(242,245,248,.3) 58%,rgba(242,245,248,0) 72%)}
	.blf-hero--home.blf-hero--start .blf-hero__inner{padding-block:32px}
	.blf-hero--home.blf-hero--start .blf-hero__copy{max-width:640px}
	.blf-hero--home.blf-hero--start .blf-hero__title{font-size:2.6rem}
	.blf-hero--start .blf-hero__sub{font-size:1.05rem}
	.blf-hero--start .blf-hero__actions{margin-top:20px}

	.blf-section.blf-home-cats{padding-block:var(--hc-pt,40px) var(--hc-pb,48px)}
	.blf-home-cats__title{font-size:var(--hc-ts,1.9rem);margin-bottom:var(--hc-tg,22px)}
	.blf-home-cats__grid{grid-template-columns:repeat(var(--hc-cols-d,6),minmax(0,1fr));gap:var(--hc-gap,16px)}
	.blf-home-cat__media{aspect-ratio:var(--hc-ratio,4/3)}
	.blf-home-cat__media img{padding:14px}
	.blf-home-cats--row .blf-home-cat__media{flex-basis:76px;width:76px}
	.blf-home-cats--row .blf-home-cat__media img{padding:6px}
	.blf-home-cat__foot{padding:var(--hc-fp,12px) calc(var(--hc-fp,12px) + 2px)}
	.blf-home-cats--minimal .blf-home-cat__foot{padding:var(--hc-fp,12px) 2px 0}
	.blf-home-cats--overlay .blf-home-cat__foot{padding-top:calc(var(--hc-fp,12px) + 30px)}
	.blf-home-cats--chip .blf-home-cat__foot{padding:var(--hc-fp,12px) calc(var(--hc-fp,12px) + 8px)}
	.blf-home-help{padding:24px 32px}
	.blf-home-help__title{font-size:1.25rem}
	.blf-home-help__text{font-size:.95rem}
}
