/* ============================================================
   FűtésKell.hu — "Meleg editorial" redesign: FŐOLDAL-RENDSZER
   A globális tokeneket + navbar + footer stílusokat a
   redesign-chrome.css tartalmazza (ezt importáljuk elöl).
   Az itteni alap-szabályok a .rd-home törzshöz vannak kötve,
   így csak a redesign-oldalakon hatnak. A tokeneket + navbar/footer
   stílust a redesign-chrome.css adja, amit a heading.php globálisan tölt.
   ============================================================ */

/* base — a redesign főoldalon; .rd-home-ra scope-olva, hogy a régi
   styles.css globális szabályait (a{}, button{}, body{}…) felülírja. */
body.rd-home{
  margin:0;font-family:'Hanken Grotesk',system-ui,Arial,sans-serif;color:var(--ink);
  background:var(--cream);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.rd-home h1,body.rd-home h2,body.rd-home h3,body.rd-home h4{
  font-family:'Ubuntu',sans-serif;line-height:1.08;margin:0;color:var(--navy);letter-spacing:-.01em}
body.rd-home p{margin:0}
body.rd-home a{color:inherit;text-decoration:none;padding:0;background:none}
body.rd-home a:hover{background:none}
body.rd-home img{display:block;max-width:100%}
body.rd-home ul{margin:0;padding:0}
body.rd-home button{font-family:'Ubuntu',sans-serif}
.rd-home .wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}
.rd-home .eyebrow{font-family:'Ubuntu';font-weight:500;font-size:18px;letter-spacing:.22em;text-transform:uppercase;color:#5c5446;display:flex;align-items:center;gap:10px}
.rd-home .eyebrow::before{content:"";width:26px;height:2px;background:var(--red);display:inline-block}

/* image placeholders */
.rd-home .ph{position:relative;background:
   repeating-linear-gradient(135deg,#efe4d2 0 14px,#e9dcc6 14px 28px);
   border-radius:18px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#a8967c}
.rd-home .ph span{font-family:'Ubuntu';font-size:12px;letter-spacing:.12em;text-transform:uppercase;
   background:rgba(255,253,249,.82);padding:7px 13px;border-radius:30px;color:#94815f}
.rd-home .ph.warm{background:repeating-linear-gradient(135deg,#fbe3c4 0 14px,#f7d9b3 14px 28px)}

/* HERO */
.rd-home .hero{position:relative;padding:46px 0 70px}
.rd-home .hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:44px;align-items:center}
.rd-home .hero h1{font-size:clamp(40px,5.4vw,68px);font-weight:700}
.rd-home .hero h1 em{font-style:normal;color:var(--red);position:relative;white-space:nowrap}
.rd-home .hero .lead{font-size:19.5px;color:#5c5446;max-width:30em;margin-top:22px}
.rd-home .hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.rd-home .btn{font-family:'Ubuntu';font-weight:500;font-size:16px;padding:15px 26px;border-radius:42px;cursor:pointer;border:2px solid transparent;transition:.22s;display:inline-flex;align-items:center;gap:10px;text-decoration:none;line-height:1}
.rd-home .btn-primary{background:var(--red);color:#fff}
.rd-home .btn-primary:hover{background:#b71f1f;transform:translateY(-2px);box-shadow:0 14px 28px -14px rgba(214,40,40,.7);color:#fff}
.rd-home .btn-ghost{background:transparent;color:var(--navy);border-color:var(--navy)}
.rd-home .btn-ghost:hover{background:var(--navy);color:#fff}
.rd-home .hero-stats{display:flex;gap:34px;margin-top:42px}
.rd-home .hero-stats .n{font-family:'Ubuntu';font-weight:700;font-size:30px;color:var(--navy)}
.rd-home .hero-stats .l{font-size:13.5px;color:var(--muted);line-height:1.3}
.rd-home .hero-visual{position:relative}
.rd-home .glow{position:absolute;inset:auto -40px -40px auto;width:230px;height:230px;background:var(--ember);filter:blur(46px);opacity:.5;border-radius:50%;z-index:-1}
.rd-home .hero-badge{position:absolute;left:-26px;top:88px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:16px 20px;box-shadow:var(--shadow);display:flex;align-items:center;gap:14px;max-width:260px;z-index:4}
.rd-home .hero-badge .ico{width:46px;height:46px;border-radius:13px;background:var(--ember);flex:none;display:flex;align-items:center;justify-content:center;font-size:24px}
.rd-home .hero-badge b{font-family:'Ubuntu';color:var(--navy);font-size:15px}
.rd-home .hero-badge p{font-size:13px;color:var(--muted);line-height:1.35}
/* thermal readout panel (Mérnöki meleg — meleg/világos hangolás) */
.rd-home .readout{position:relative;border:1px solid var(--border);border-radius:24px;background:var(--surface);padding:26px;box-shadow:var(--shadow)}
.rd-home .readout .rdph{position:relative;height:240px;border-radius:15px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(135deg,#fbe3c4 0 13px,#f7d9b3 13px 26px);border:1px solid #efd3ab}
.rd-home .readout .rdph::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 130% at 70% 20%,rgba(247,127,0,.34),transparent 62%)}
.rd-home .readout .rdph span{position:relative;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#a06a2f;border:1px dashed #d8a866;padding:6px 12px;border-radius:6px;background:rgba(255,253,249,.72)}
.rd-home .readout .rdph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rd-home .readout-bar{height:8px;border-radius:6px;background:linear-gradient(90deg,#5aa9d6,#4f9d5a,#ffdf25,#f77f00,#d62828);margin:18px 0 14px;position:relative}
.rd-home .readout-bar::after{content:"";position:absolute;top:-4px;left:16%;width:3px;height:16px;background:var(--navy);border-radius:2px;box-shadow:0 0 0 2px rgba(255,255,255,.75)}
.rd-home .readout-row{display:flex;justify-content:space-between;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--muted)}
.rd-home .readout-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-top:18px}
.rd-home .readout-stats > div{background:var(--surface2);padding:16px 14px;display:flex;flex-direction:column;gap:9px}
.rd-home .readout-stats .ic{width:21px;height:21px;color:var(--orange);flex:none}
.rd-home .readout-stats .n{font-family:'Ubuntu';font-size:14.5px;font-weight:700;color:var(--navy);line-height:1.22;min-height:2.44em}
.rd-home .readout-stats .l{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.03em;color:var(--muted);text-transform:uppercase;line-height:1.45;margin:0}

/* MARQUEE / brands */
.rd-home .brands{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);overflow:hidden}
.rd-home .brands-in{display:flex;align-items:center;gap:14px;padding:20px 0;max-width:var(--maxw);margin:0 auto}
.rd-home .brands-label{font-family:'Ubuntu';font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);white-space:nowrap;padding:0 8px 0 28px;flex:none}
.rd-home .brand-track{display:flex;gap:46px;align-items:center;animation:rd-scroll 26s linear infinite;flex:none}
.rd-home .brand-track span{font-family:'Ubuntu';font-weight:700;font-size:21px;color:#c3b39a;letter-spacing:.02em;white-space:nowrap}
.rd-home .brands-mask{flex:1;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.rd-home .brands-mask .brand-track{width:max-content}
@keyframes rd-scroll{to{transform:translateX(-50%)}}

/* section base */
.rd-home section{position:relative}
.rd-home .sec{padding:84px 0}
.rd-home .sec-head{max-width:640px;margin-bottom:48px}
.rd-home .sec-head h2{font-size:clamp(30px,3.6vw,46px);font-weight:700;margin-top:14px;max-width:100%}
.rd-home .sec-head p{color:#5c5446;font-size:18px;margin-top:16px}

/* categories */
.rd-home .cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.rd-home .cat{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:26px;overflow:hidden;transition:.28s;cursor:pointer;display:block;color:inherit}
.rd-home .cat:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:#e0cfb2}
.rd-home .cat .ph{height:184px;margin-bottom:22px}
.rd-home .ph .ph-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.rd-home .cat h3{font-size:23px}
.rd-home .cat p{color:var(--muted);font-size:15px;margin-top:8px}
.rd-home .cat .more{margin-top:18px;font-family:'Ubuntu';font-weight:500;color:var(--red);font-size:15px;display:inline-flex;gap:8px;align-items:center}
.rd-home .cat:hover .more{gap:14px}
.rd-home .cat-tag{position:absolute;top:18px;left:18px;z-index:3;background:var(--red);color:#fff;font-family:'Ubuntu';font-weight:700;font-size:11.5px;letter-spacing:.04em;padding:6px 12px;border-radius:30px}
/* "Hamarosan" szolgáltatás-kitöltő kártyák: halvány, nem kattintható, nincs emelés */
.rd-home .cat.soon{opacity:.62;cursor:default;pointer-events:none}
.rd-home .cat.soon:hover{transform:none;box-shadow:none;border-color:var(--border)}
.rd-home .cat.soon .cat-tag{background:var(--muted)}
.rd-home .cat.soon .more{color:var(--muted)}

/* split editorial */
.rd-home .split{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.rd-home .split.rev .split-txt{order:2}
.rd-home .split-photo{aspect-ratio:1/.86;border-radius:24px;box-shadow:var(--shadow)}
/* Teljes (nem vágott) ábra/SVG fehér háttéren — eltérő képaránynál fehér sávok */
.rd-home .split-graphic{background:#fff;overflow:hidden}
.rd-home .split-graphic img{width:100%;height:100%;object-fit:contain;display:block;padding:26px;box-sizing:border-box}
.rd-home .split-txt h2{font-size:clamp(28px,3.4vw,42px);font-weight:700;margin-top:14px}
.rd-home .split-txt p{color:#5c5446;margin-top:18px;font-size:17.5px}
.rd-home .quote{margin-top:26px;padding:22px 26px;background:var(--surface2);border-radius:18px;border-left:4px solid var(--red);font-family:'Ubuntu';font-style:italic;color:var(--navy);font-size:18px}
.rd-home .quote cite{display:block;font-style:normal;font-size:14px;color:var(--muted);margin-top:10px;font-family:'Hanken Grotesk'}
.rd-home .checks{margin-top:24px;display:grid;gap:13px;padding:0}
.rd-home .checks li{list-style:none;display:flex;gap:13px;align-items:flex-start;font-size:16.5px}
.rd-home .checks .ck{flex:none;width:24px;height:24px;border-radius:50%;background:rgba(79,157,90,.16);color:var(--green);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;margin-top:2px}

/* products */
.rd-home .prod-sec{background:var(--surface)}
.rd-home .prod-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:40px}
.rd-home .prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.rd-home .card{background:var(--cream);border:1px solid var(--border);border-radius:22px;overflow:hidden;display:flex;flex-direction:column;transition:.26s;color:inherit}
.rd-home .card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:#e0cfb2}
.rd-home .card .media{position:relative;height:210px}
.rd-home .card .media .ph{height:100%;border-radius:0}
.rd-home .badge{position:absolute;top:14px;left:14px;display:flex;gap:7px}
.rd-home .badge b{font-family:'Ubuntu';font-weight:700;font-size:11px;letter-spacing:.03em;padding:5px 11px;border-radius:30px}
.rd-home .b-akcio{background:var(--red);color:#fff}
.rd-home .b-wifi{background:var(--navy);color:#fff}
.rd-home .b-uj{background:var(--red);color:#fff}
.rd-home .card-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.rd-home .card .brandname{font-family:'Ubuntu';font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.rd-home .card h4{font-size:20px;margin:6px 0 10px;color:var(--navy)}
.rd-home .specs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px;padding:0}
.rd-home .specs span{font-size:12.5px;background:var(--surface2);color:#6a5d49;padding:4px 10px;border-radius:8px;font-weight:600}
.rd-home .card .foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.rd-home .price{font-family:'Ubuntu';font-weight:700;font-size:21px;color:var(--navy);line-height:1.15}
.rd-home .price small{display:block;font-size:11.5px;color:var(--muted);font-weight:400;font-family:'Hanken Grotesk'}
.rd-home .add{background:var(--navy);color:#fff;border:none;width:46px;height:46px;border-radius:14px;cursor:pointer;font-size:22px;display:flex;align-items:center;justify-content:center;transition:.2s;flex:none;text-decoration:none}
.rd-home .add:hover{background:var(--red);transform:scale(1.07);color:#fff}
.rd-home .add:active{transform:scale(.92)}

/* info cards */
.rd-home .info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.rd-home .info{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:32px;transition:.24s;display:block;color:inherit}
.rd-home .info:hover{border-color:#e0cfb2;transform:translateY(-4px);box-shadow:var(--shadow)}
.rd-home .info .ico{width:54px;height:54px;border-radius:15px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:27px;margin-bottom:18px}
.rd-home .info h3{font-size:22px}
.rd-home .info p{color:#5c5446;margin-top:10px;font-size:16px}
.rd-home .info .rdlink{color:var(--red);font-weight:600;display:inline-flex;gap:7px;margin-top:14px}
.rd-home .info:hover .rdlink{gap:12px}

/* blog */
.rd-home .blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.rd-home .post{background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;transition:.24s;cursor:pointer;display:block;color:inherit}
.rd-home .post:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.rd-home .post .ph{height:160px;border-radius:0}
.rd-home .post .pb{padding:22px}
.rd-home .post .tag{font-family:'Ubuntu';font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--orange)}
.rd-home .post h4{font-size:19px;margin:9px 0 8px}
.rd-home .post p{font-size:14.5px;color:var(--muted)}

/* newsletter / cta band */
.rd-home .band{background:var(--navy);color:#fff;border-radius:30px;padding:60px;position:relative;overflow:hidden}
.rd-home .band::before{content:"";position:absolute;right:-80px;top:-80px;width:360px;height:360px;background:var(--ember);filter:blur(40px);opacity:.45;border-radius:50%}
.rd-home .band-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;position:relative}
.rd-home .band h2{color:#fff;font-size:clamp(28px,3.4vw,40px)}
.rd-home .band p{color:#bcd0dc;margin-top:14px;font-size:17px}
.rd-home .band-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.rd-home .band small{display:block;color:#90aab8;font-size:13px;margin-top:14px}

/* reveal — opt-in: csak akkor rejtjük el a kezdőállapotot, ha az rAF bizonyítottan ketyeg (valódi böngésző). */
.rd-home .rv{opacity:1;transform:none;transition:opacity .7s cubic-bezier(.2,.6,.2,1),transform .7s cubic-bezier(.2,.6,.2,1)}
html.js-anim .rd-home .rv{opacity:0;transform:translateY(26px)}
html.js-anim .rd-home .rv.in{opacity:1;transform:none}
.rd-home .rv.d1{transition-delay:.08s}.rd-home .rv.d2{transition-delay:.16s}.rd-home .rv.d3{transition-delay:.24s}

/* "Rólunk" dekoratív szív — halvány rózsaszín, a cím mögött/jobbján, álló (a mockup szerint, kicsit kisebbre) */
.rd-home .split-txt{position:relative}
.rd-home .split-txt .heart-bg{position:absolute;top:-42px;left:128px;width:210px;height:auto;fill:#f3c9cf;opacity:.9;z-index:0;pointer-events:none;transform:translateX(220px) translateY(50px) rotate(15deg);transform-origin:center}
.rd-home .split-txt > *:not(.heart-bg){position:relative;z-index:1}

@media(max-width:900px){
  .rd-home .hero-grid,.rd-home .split,.rd-home .band-grid{grid-template-columns:1fr}
  .rd-home .split.rev .split-txt{order:0}
  /* a dekoratív szív ne lógjon ki, amikor a split egy oszlopra vált: transform-nullázás + kereten belülre */
  .rd-home .split-txt .heart-bg{width:150px;left:auto;right:0;top:-20px;transform:rotate(14deg)}
  .rd-home .cat-grid,.rd-home .prod-grid,.rd-home .blog-grid{grid-template-columns:1fr 1fr}
  .rd-home .info-grid{grid-template-columns:1fr}
  /* a dekoratív fény-folt ne lógjon ki a viewportból mobilon (különben kitágítja a layout-viewportot) */
  .rd-home .glow{inset:auto 0 0 auto}
  /* rács-blowout megelőzése: az elemek zsugorodhassanak a konténer alá, a kép legyen reszponzív */
  .rd-home .hero-txt,.rd-home .hero-visual{min-width:0}
  .rd-home .hero-visual img{max-width:100%;height:auto}
}
@media(max-width:620px){
  body.rd-home{font-size:16px}
  .rd-home .cat-grid,.rd-home .prod-grid,.rd-home .blog-grid{grid-template-columns:1fr}
  .rd-home .hero-stats{flex-wrap:wrap;gap:22px}
  .rd-home .band{padding:36px 26px}
  .rd-home .hero-badge{display:none}
}

/* eyebrow mobilon kicsit kisebb + szűkebb betűköz (desktopon 18px marad) */
@media(max-width:620px){
  .rd-home .eyebrow.eyebrow{font-size:15px;letter-spacing:.14em}
}
