/* Török Eszter – Gyászfeldolgozás Módszer® specialista
   Alap: web/teszt design (sötétzöld + arany, Cormorant Garamond + Jost) */
:root {
  --bg: #06150e;
  --bg-2: #0a2016;
  --bg-3: #0f2d20;
  --gold: #ecd09a;
  --gold-dim: #b79a63;
  --text: #f1ead8;
  --muted: #b9c4b6;
  --line: rgba(236, 208, 154, 0.28);
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
p { margin: 0; }
.lead { color: var(--muted); max-width: 58ch; }
.prose { display: grid; gap: 20px; color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--text); font-weight: 400; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--gold-dim); color: var(--gold);
  padding: 17px 32px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400;
  background: transparent; cursor: pointer; font-family: var(--f-body);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.link-arrow { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 12px; align-items: center; }

/* Fejléc */
header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 56px; width: auto; display: block; }
.brand span { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
nav.main { display: flex; gap: clamp(20px, 3.2vw, 48px); }
nav.main a { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; padding-block: 8px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--gold); border-color: var(--gold); }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold); display: none; place-items: center; cursor: pointer; }
.drawer { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(6, 21, 14, 0.98); padding: 90px 28px 40px; flex-direction: column; gap: 6px; overflow-y: auto; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--f-display); font-size: 2.2rem; color: var(--text); padding-block: 8px; border-bottom: 1px solid var(--line); }
.drawer a[aria-current="page"] { color: var(--gold); }
.drawer .close { position: absolute; top: 22px; right: 20px; display: grid; }
.drawer .drawer-contact { margin: auto 0 0; padding-top: 32px; display: grid; gap: 4px; font-size: .85rem; letter-spacing: .04em; }
.drawer .drawer-contact a { font-family: var(--f-body); font-size: inherit; color: var(--muted); padding: 4px 0; border: 0; }
.drawer .drawer-contact a:hover { color: var(--gold); }

/* Hero (főoldal) */
.hero { position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: center; padding-block: 150px 100px;
  background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/hero-2000.webp") center / cover no-repeat; transform-origin: 65% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,21,14,.92) 0%, rgba(6,21,14,.78) 40%, rgba(6,21,14,.35) 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); margin-block: 22px 28px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin-bottom: 40px; color: var(--text); }
.hero-logo { justify-self: center; width: min(100%, 360px); filter: drop-shadow(0 0 40px rgba(236,208,154,.12)); }
.scroll { position: absolute; right: 20px; bottom: 28px; font-size: .62rem; letter-spacing: .24em; color: var(--gold-dim); display: flex; gap: 12px; align-items: center; z-index: 2; }
.scroll::after { content: ""; width: 1px; height: 40px; background: var(--gold-dim); }

/* Aloldal-fej */
.page-head { position: relative; overflow: hidden; padding-block: 170px 90px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 30%, #12402a 0%, transparent 60%),
    var(--bg-2); }
.page-head::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: min(70vw, 900px); background: url("../img/fej-1800.webp") right center / cover; opacity: .75; -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 2; display: grid; gap: 22px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-head h1 em { font-style: italic; color: var(--gold); }
.page-head .lead { color: var(--text); }

/* Szekciók */
section.block { padding-block: 100px; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.two.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.sticky { position: sticky; top: 40px; display: grid; gap: 22px; }
.stack { display: grid; gap: 22px; align-content: start; }
.center-block { display: grid; gap: 22px; justify-items: center; text-align: center; }
.center-block .prose { max-width: 62ch; }

/* Képes oldalsáv */
.leaf { aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 200px 200px 6px 6px; background: url("../img/level-800.webp") center / cover; position: relative; overflow: hidden; }
.leaf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,21,14,.65)); }

/* Idézet */
.quote { font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; color: var(--gold); border-left: 1px solid var(--gold-dim); padding-left: 28px; max-width: 30ch; text-wrap: balance; }
.note { border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; font-size: .95rem; color: var(--muted); max-width: 41rem; background: rgba(15,45,32,.4); }
.note strong { color: var(--gold); font-weight: 400; }
.video { position: relative; display: grid; gap: 8px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 4px; padding: 20px 56px 20px 24px; max-width: 41rem; background: linear-gradient(180deg, rgba(15,45,32,.55), rgba(10,32,22,.35)); transition: border-color .25s, transform .25s; }
.video:hover { border-color: var(--gold-dim); border-left-color: var(--gold); transform: translateY(-3px); }
.video h3 { font-size: 1.5rem; }
.video p { color: var(--muted); font-size: .95rem; }
.video .btn { display: none; justify-self: start; margin-top: 10px; text-align: left; }
.video-go { position: absolute; top: 20px; right: 20px; color: var(--gold); }
@media (max-width: 960px) {
  .video { padding-right: 24px; }
  .video:hover { transform: none; }
  .video .btn { display: inline-flex; }
  .video-go { display: none; }
}
.reg { font-size: .4em; line-height: 0; vertical-align: super; margin-left: .06em; font-style: normal; }

/* Listák vonalas jelekkel */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 16px; color: var(--text); }
.ticks li::before { content: ""; width: 18px; height: 1px; background: var(--gold); margin-top: .95em; flex: none; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.col { padding: 40px 40px 44px 0; display: grid; gap: 22px; align-content: start; border-bottom: 1px solid var(--line); }
.col + .col { padding: 40px 0 44px 40px; border-left: 1px solid var(--line); }
.col h3 { font-size: 1.9rem; }
.col .lead { font-size: .95rem; }

/* Gyász – veszteségtípusok rács */
.grid-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.grid-list li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); color: var(--text); display: flex; gap: 16px; align-items: baseline; }
.grid-list li::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; transform: translateY(-.3em); }
.grid-list li:not(:nth-child(3n+1)) { padding-left: 24px; }
.grid-list li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }

/* Hogyan dolgozom */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mode { border: 1px solid var(--line); border-radius: 4px; padding: 36px 32px 40px; background: linear-gradient(180deg, rgba(15,45,32,.55), rgba(10,32,22,.35)); display: grid; gap: 22px; align-content: start; }
.mode .num { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.mode .num small { font-family: var(--f-body); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dim); margin-left: 10px; }
.mode h3 { font-size: 1.9rem; }

/* Tények (módszer oldal) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 32px 24px; display: grid; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.fact span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Rólam */
.portrait { position: relative; border: 1px solid var(--gold-dim); border-radius: 200px 200px 6px 6px; overflow: hidden; background: var(--bg-3); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; display: block; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.creds li { display: flex; gap: 14px; color: var(--muted); }
.creds li::before { content: ""; width: 18px; height: 1px; background: var(--gold); margin-top: .85em; flex: none; }

/* Felhívás-sáv */
.cta { padding-block: 100px; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, rgba(6,21,14,.8) 50%, rgba(6,21,14,.88) 100%), url("../img/fej-1800.webp") center / cover no-repeat, var(--bg); border-top: 1px solid var(--line); }
.cta .wrap { display: grid; gap: 26px; justify-items: center; }
.cta .lead { max-width: 52ch; }

/* Kapcsolat */
.contact-info { display: grid; gap: 28px; align-content: start; }
.contact-info dl { margin: 12px 0 0; display: grid; gap: 22px; }
.contact-info dt { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-info dd { margin: 0; color: var(--text); }
.contact-info dd a { border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.contact-info dd a:hover { color: var(--gold); border-color: var(--gold); }
form { display: grid; gap: 22px; align-content: start; }
label { display: grid; gap: 8px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
input, textarea { font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; width: 100%; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; }
textarea { min-height: 160px; resize: vertical; }
form .btn { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* Lábléc */
footer { border-top: 1px solid var(--line); padding-block: 48px 56px; background: var(--bg); }
footer .wrap { display: grid; gap: 28px; }
/* Logó és szövegdoboz egymás mellett: a logó fix magas, a doboz ehhez nyúlik, a szöveg középen */
.foot-main { display: flex; align-items: stretch; gap: 28px; }
.foot-logo { flex: none; display: block; }
.foot-logo img { height: 150px; width: auto; display: block; }
.foot-main .help { flex: 1; max-width: none; display: flex; align-items: center; }
.foot-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.foot-top nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-top nav a { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.foot-top nav a:hover, .foot-top nav a[aria-current="page"] { color: var(--gold); }
.help { border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; font-size: .9rem; color: var(--muted); max-width: 80ch; }
.help strong { color: var(--gold); font-weight: 400; }
.help a { color: var(--gold); border-bottom: 1px solid var(--line); white-space: nowrap; }
.help a:hover { border-color: var(--gold); }
.legal { font-size: .78rem; color: var(--gold-dim); }

/* Reszponzív */
@media (max-width: 960px) {
  nav.main { display: none; }
  .menu-btn { display: grid; }
  .brand span { font-size: 1.05rem; }
  .hero .wrap, .two, .two.rev { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-logo { width: min(70%, 260px); justify-self: center; }
  .hero .btn { display: flex; width: fit-content; margin-inline: auto; }
  .scroll { display: none; }
  .sticky { position: static; }
  .foot-main { flex-direction: column; align-items: center; gap: 20px; }
  .foot-main .help { align-self: stretch; }
  .foot-logo img { height: 96px; }
  .foot-top { flex-direction: column; justify-content: center; text-align: center; }
  .foot-top nav { justify-content: center; }
  .page-head { padding-block: 140px 64px; }
  .page-head::after { opacity: .22; }
  section.block, .cta { padding-block: 72px; }
  .leaf { max-width: 340px; border-radius: 170px 170px 6px 6px; }
  .portrait { max-width: 340px; border-radius: 170px 170px 6px 6px; }
  .cols, .modes { grid-template-columns: minmax(0, 1fr); }
  .col, .col + .col { padding: 32px 0; border-left: none; }
  .grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-list li, .grid-list li:not(:nth-child(3n)), .grid-list li:not(:nth-child(3n+1)) { padding: 20px 16px 20px 0; border-right: none; }
  .grid-list li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero { padding-block: 130px 70px; }
  .hero::before { background-image: url("../img/hero-1200.webp"); }
  .hero::after { background: linear-gradient(180deg, rgba(6,21,14,.88) 0%, rgba(6,21,14,.7) 100%); }
  .brand span { display: none; }
  .grid-list { grid-template-columns: minmax(0, 1fr); }
  .grid-list li, .grid-list li:nth-child(2n) { padding: 18px 0; border-left: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: none; border-top: 1px solid var(--line); }
  .mode { padding: 28px 22px 32px; }
}

/* ===== Animációk (finom, gyengéd) ===== */
:root { --ease: cubic-bezier(.2, .6, .2, 1); --intro-delay: 0s; }
html.preload { --intro-delay: 2.1s; } /* az oldal tartalma a töltőpanel nyílásakor kezd beúszni */

/* Töltőképernyő: sötétzöld felület, a logó középen, a panel felesben fel és le húzódik, a logó elhalványul */
.loader { display: none; }
html.preload .loader { display: block; position: fixed; inset: 0; z-index: 100; animation: loaderGone .01s linear 3.1s forwards; }
.loader-half { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); will-change: transform; }
.loader-top { top: 0; animation: partUp 1.2s cubic-bezier(.77, 0, .18, 1) 1.75s forwards; }
.loader-bottom { bottom: 0; animation: partDown 1.2s cubic-bezier(.77, 0, .18, 1) 1.75s forwards; }
.loader-mark { position: absolute; inset: 0; display: grid; place-items: center; animation: markShow 2.9s ease both; }
.loader-mark::before { content: ""; position: absolute; width: min(110vw, 620px); aspect-ratio: 1; background: radial-gradient(circle, rgba(236,208,154,.10) 0%, transparent 62%); }
.loader-mark img { position: relative; width: min(56vw, 240px); height: auto; }
@keyframes partUp { to { transform: translateY(-101%); } }
@keyframes partDown { to { transform: translateY(101%); } }
@keyframes markShow {
  0% { opacity: 0; transform: scale(.94); }
  24%, 56% { opacity: 1; transform: scale(1); }
  86%, 100% { opacity: 0; transform: scale(1.04); }
}
@keyframes loaderGone { to { visibility: hidden; } }

/* Belépő animációk: fejléc, hero, aloldal-fej */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(.95); } }
@keyframes heroZoom { from { transform: scale(1.08); } }
header { animation: fadeIn 1.2s var(--ease) both; animation-delay: var(--intro-delay); }
.hero::before { animation: heroZoom 12s var(--ease) both; animation-delay: var(--intro-delay); }
.page-head::after { animation: fadeIn 2s ease both; animation-delay: var(--intro-delay); }
.hero .wrap > div > *, .page-head .wrap > * { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--intro-delay) + .15s + var(--i, 0) * .14s); }
.hero .wrap > div > :nth-child(2), .page-head .wrap > :nth-child(2) { --i: 1; }
.hero .wrap > div > :nth-child(3), .page-head .wrap > :nth-child(3) { --i: 2; }
.hero .wrap > div > :nth-child(4), .page-head .wrap > :nth-child(4) { --i: 3; }
.hero-logo { animation: fadeScale 1.6s var(--ease) both; animation-delay: calc(var(--intro-delay) + .35s); }
.scroll { animation: fadeIn 1.4s ease both; animation-delay: calc(var(--intro-delay) + 1.2s); }

/* Görgetéskor finoman megjelenő elemek (a js/main.js adja a .reveal / .in osztályt) */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Mobilmenü nyitása */
.drawer.open { animation: fadeIn .35s ease both; }
.drawer.open > a { animation: rise .55s var(--ease) both; animation-delay: calc(.06s + var(--k, 0) * .05s); }
.drawer.open > a:nth-of-type(2) { --k: 1; }
.drawer.open > a:nth-of-type(3) { --k: 2; }
.drawer.open > a:nth-of-type(4) { --k: 3; }
.drawer.open > a:nth-of-type(5) { --k: 4; }

@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } .loader { display: none !important; } }
@media print { html.js .reveal { opacity: 1 !important; transform: none !important; } .loader { display: none !important; } }
