/* pala-bontas.hu - base styles, mobile first */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eceae3;
  --text: #1c2629;
  --muted: #55615f;
  --line: #d9d6cc;
  --brand: #2c6a4f;
  --brand-ink: #ffffff;
  --brand-soft: #dcebe2;
  --accent: #c98a12;
  --accent-soft: #f6ead0;
  --focus: #1f5fbf;
  --shadow: 0 1px 2px rgba(20, 30, 30, .06), 0 6px 24px rgba(20, 30, 30, .06);
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1618;
    --surface: #162124;
    --surface-2: #1c2a2e;
    --text: #e6ecea;
    --muted: #a3b1ad;
    --line: #2a3a3e;
    --brand: #5fb38c;
    --brand-ink: #0d1a14;
    --brand-soft: #1b3329;
    --accent: #e6aa3a;
    --accent-soft: #33290f;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1618;
  --surface: #162124;
  --surface-2: #1c2a2e;
  --text: #e6ecea;
  --muted: #a3b1ad;
  --line: #2a3a3e;
  --brand: #5fb38c;
  --brand-ink: #0d1a14;
  --brand-soft: #1b3329;
  --accent: #e6aa3a;
  --accent-soft: #33290f;
  --focus: #8ab4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 16px; top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--brand); font-weight: 750; }
.nav { margin-left: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: none; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; display: block; font-weight: 550; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.icon-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { margin-left: auto; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.nav.open ul { display: block; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.no-js .nav ul { display: flex; flex-wrap: wrap; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { margin-left: auto; }
  .nav ul, .nav.open ul { display: flex; position: static; gap: 2px; padding: 0; box-shadow: none; border: 0; background: none; }
  .nav a { padding: 8px 10px; font-size: .97rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 40px 0 32px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .9rem; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* sections */
.section { padding: 48px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .section { padding: 72px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 72px; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps.two { grid-template-columns: 1fr 1fr; } }

/* notes */
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.note p:last-child { margin: 0; }
.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 680; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* cta band */
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 22px; padding: 32px 22px; display: grid; gap: 18px; align-items: center; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* page header */
.page-head { padding: 40px 0 8px; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
dl.facts { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0 0 1.4em; }
dl.facts dt { font-weight: 700; margin-top: 10px; }
dl.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 640px) { dl.facts { grid-template-columns: 220px 1fr; } dl.facts dt { margin-top: 0; } }
.sources { font-size: .95rem; color: var(--muted); }
.sources li { margin-bottom: .35em; }
.mail-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.mail-addr { font-size: 1.3rem; font-weight: 750; overflow-wrap: anywhere; }

/* footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; gap: 22px; }
.site-footer h2 { font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.legal-line { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* hero illustration colors */
.ill-sky { fill: var(--brand-soft); }
.ill-wall { fill: var(--surface-2); stroke: var(--line); }
.ill-roof { fill: #8f9a98; }
.ill-roof-line { stroke: #6f7a78; }
.ill-batten { fill: #a7743c; }
.ill-door { fill: var(--brand); }
.ill-win { fill: var(--bg); stroke: var(--line); }
.ill-wrap { fill: #e9e2c8; stroke: #b9ad83; }
.ill-tape { fill: var(--accent); }
.ill-ground { fill: var(--line); }
.ill-person { fill: var(--brand); }
.ill-suit { fill: #f2f2ee; stroke: #b8bdb9; }
.ill-text { fill: var(--text); font: 700 11px system-ui, sans-serif; }
:root[data-theme="dark"] .ill-roof { fill: #6b7674; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ill-roof { fill: #6b7674; } }
