/* =========================================================
   Gyermekekért, Szüleikért és a Családokért Alapítvány
   Egyetlen stíluslap – mobil-első
   Színek egy helyen, a :root blokkban cserélhetők.
   ========================================================= */

:root {
  /* Márkaszínek – ha más árnyalatot szeretnétek, csak itt írjátok át */
  --ink:        #1c2430;   /* fő szövegszín, a logó vonalaihoz igazítva */
  --ink-soft:   #4a5666;
  --ink-faint:  #7a8698;
  --brand:      #1f3a5f;   /* mély kék – fejléc, gombok */
  --brand-dark: #162943;
  --accent:     #d64f4f;   /* meleg piros – szív, kiemelés, CTA */
  --accent-dark:#b93e3e;
  --gold:       #d99a2b;   /* adományozás kiemelés */
  --bg:         #fdfbf8;   /* meleg törtfehér háttér */
  --bg-alt:     #f4efe8;
  --card:       #ffffff;
  --line:       #e5ddd3;
  --ok:         #2e7d55;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(28,36,48,.04), 0 8px 24px rgba(28,36,48,.06);
  --shadow-lg:  0 2px 4px rgba(28,36,48,.05), 0 18px 48px rgba(28,36,48,.10);
  --maxw:       1120px;   /* tartalom max. szélessége gépen */

  /* --- FINOMHANGOLÁS: méretek és térközök --- */
  --section-y:  clamp(48px, 8vw, 96px);  /* szekciók fenti/lenti térköze */
  --font-size:  17px;                    /* alap betűméret */
  --gap:        20px;                    /* kártyák közti rés */
  --hero-logo:  260px;                   /* hero logó max. szélessége */
  --header-h:   72px;                    /* fejléc magassága */

  --font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head:  "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
p  { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; margin-inline: auto; }

section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-brand { background: var(--brand); color: #fff; }
.section-brand h2, .section-brand h3 { color: #fff; }
.section-brand p { color: rgba(255,255,255,.85); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9em;
}
.section-brand .eyebrow { color: #f0b3b3; }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--ink-soft); }
.section-brand .lead { color: rgba(255,255,255,.88); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  min-height: 50px;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(214,79,79,.28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #16294c; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.section-brand .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.section-brand .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,251,248,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { height: 46px; width: auto; flex: none; }
.brand-text { display: none; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.15; }
.brand-text span { font-size: .72rem; color: var(--ink-faint); letter-spacing: .04em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 24px;
  display: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: block; padding: 14px 4px; text-decoration: none;
  color: var(--ink); font-weight: 500;
}
.site-nav .btn { margin-top: 16px; width: 100%; }
.nav-cta-desktop { display: none; }

@media (min-width: 1100px) {
  .brand-text { display: block; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: block; background: none; border: 0; padding: 0;
    max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
  .site-nav a:hover { background: var(--bg-alt); }
  .site-nav > .btn { display: none; }
  .nav-cta-desktop { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 84px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(214,79,79,.10), transparent 60%),
    radial-gradient(900px 420px at 5% 0%, rgba(31,58,95,.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-logo { margin: 0 auto clamp(20px, 4vw, 32px); max-width: var(--hero-logo); }
.hero-logo img, .hero-logo svg { width: 100%; height: auto; }
.hero-inner { text-align: center; max-width: 780px; margin-inline: auto; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions .btn { flex: 1 1 240px; max-width: 320px; }

.trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 24px; margin-top: clamp(36px, 6vw, 56px);
  border-top: 1px solid var(--line); padding-top: 28px;
  text-align: center;
}
.trust-row div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--brand); }
.trust-row div span { font-size: .85rem; color: var(--ink-faint); }

/* ---------- Kártyák ---------- */
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 30px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); flex: 1; }
.card .card-link { font-weight: 600; text-decoration: none; font-size: .95rem; }
.card .card-link::after { content: " →"; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(31,58,95,.08); color: var(--brand);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.accent { background: rgba(214,79,79,.10); color: var(--accent); }
.card-icon.gold   { background: rgba(217,154,43,.14); color: #a9741a; }

/* ---------- Petíció ---------- */
.petition-wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .petition-wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }

.petition-points { list-style: none; padding: 0; margin: 0 0 28px; }
.petition-points li { position: relative; padding-left: 34px; margin-bottom: 14px; color: rgba(255,255,255,.9); }
.petition-points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

.form-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: .3em; }
.form-card .form-note { font-size: .9rem; color: var(--ink-faint); margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,58,95,.12);
}
.field input:user-invalid { border-color: var(--accent); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .88rem; color: var(--ink-soft); line-height: 1.55;
  margin-bottom: 18px;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: .92rem; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: rgba(46,125,85,.10); color: var(--ok); }
.form-status.err { background: rgba(214,79,79,.10); color: var(--accent-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

.counter-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  font-size: .9rem; color: rgba(255,255,255,.9);
}
.counter-badge b { font-size: 1.15rem; color: #fff; font-family: var(--font-head); }

/* ---------- Adományozás ---------- */
.bank-list { display: grid; gap: 14px; margin: 24px 0 0; }
.bank-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.bank-row .cur {
  font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 6px;
}
.bank-row .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem; word-break: break-all; flex: 1 1 200px;
}
.copy-btn {
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-soft);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; min-height: 40px;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn.copied { background: rgba(46,125,85,.10); color: var(--ok); border-color: rgba(46,125,85,.3); }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ---------- Jogi / szöveges oldalak ---------- */
.page-head { background: var(--bg-alt); padding: clamp(36px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--ink-faint); margin: 0; font-size: .95rem; }
.legal { padding: clamp(36px, 6vw, 64px) 0 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: .2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; margin-top: 1.8em; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 700; }
.legal .toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; }
.legal .toc ol { margin: 0; }
.callout {
  background: rgba(217,154,43,.10); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .93rem; margin: 1.4em 0;
}
.table-wrap { overflow-x: auto; }

/* ---------- Köszönő oldal ---------- */
.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks .mark {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(46,125,85,.12);
  display: grid; place-items: center; margin: 0 auto 26px; color: var(--ok);
}
.thanks .mark svg { width: 42px; height: 42px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Javítások / felülírások ---------- */
[hidden] { display: none !important; }

/* A sötét szekcióban lévő fehér űrlapkártya szövegszínei */
.section-brand .form-card h3,
.section-brand .form-card p,
.section-brand .form-card label,
.section-brand .form-card .check span { color: var(--ink); }
.section-brand .form-card .form-note { color: var(--ink-faint); }
.section-brand .form-card .check span { color: var(--ink-soft); }
.section-brand .form-card a { color: var(--brand); }

/* Menügomb ikon és mobil CTA a navigációban */
.site-nav a.btn { display: inline-flex; color: #fff; padding: 14px 26px; }
.site-nav a.btn:hover { color: #fff; background: var(--accent-dark); }
.brand img, .brand svg { height: 52px; }

/* A navigációban lévő CTA gomb csak mobilon látszik */
.site-nav a.nav-cta-mobile { display: inline-flex; }
@media (min-width: 1100px) {
  .site-nav a.nav-cta-mobile { display: none; }
}

/* Bankszámla-sorok: azonos szélességű devizacímke, így egy vonalban a számok */
.bank-row .cur { min-width: 64px; text-align: center; }

/* ---------- Fejléc CTA gomb pontos igazítása gépen ---------- */
@media (min-width: 1100px) {
  /* a <li> legyen flex konténer, így a gomb tényleg középre kerül
     (inline-flex esetén a szövegalapvonalhoz igazodott, ezért csúszott lejjebb) */
  .site-nav ul > li { display: flex; align-items: center; }
  .nav-cta-desktop { display: flex; align-items: center; margin-left: 8px; }
  .site-nav .nav-cta-desktop a.btn {
    margin-top: 0;      /* a mobil szabály 16px-et adott, ez csúsztatta lejjebb */
    width: auto;
    padding: 10px 22px;
    min-height: 44px;
    font-size: .95rem;
    color: #fff;
  }
  .site-nav .nav-cta-desktop a.btn:hover { background: var(--accent-dark); color: #fff; }
}

/* ---------- Lábléc logó (fehérre invertált változat) ---------- */
.footer-logo { height: auto; width: 100%; max-width: 230px; }

/* ---------- A petíciós űrlap kövesse a görgetést gépen ---------- */
@media (min-width: 960px) {
  .petition-wrap .form-card { position: sticky; top: calc(var(--header-h) + 24px); }
}
