/* ============================================================
   BALMAZ-KÖNYV Kft. — könyvelőiroda weboldal stíluslap
   Visszafogott, bizalmat sugárzó, prémium tanácsadói hangulat.
   Mozgás: Emil Kowalski elvei (erős egyedi easing, rövid idők,
   csak transform/opacity, érintőn kapuzott hover).
   ============================================================ */

:root {
  --ink: #143A32;          /* mély örökzöld, fő szín */
  --ink-deep: #0E2A24;     /* sötétebb árnyalat */
  --bg: #FBF8F1;           /* meleg krém háttér */
  --paper: #FFFFFF;        /* kártyák */
  --accent: #B6884E;       /* visszafogott sárgaréz */
  --accent-soft: #E9DCC4;
  --text: #1E2A26;
  --muted: #59685F;
  --line: #E4DECF;
  --shadow: 0 18px 50px -28px rgba(20, 58, 50, 0.35);
  --shadow-lg: 0 40px 90px -45px rgba(20, 58, 50, 0.5);
  --radius: 14px;
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* erős egyedi easing-görbék (Emil) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(20, 58, 50, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink-deep); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
}

/* ---------- fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(20, 58, 50, 0.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}
/* a menüben lévő primary gomb szövege fehér maradjon (a .nav-links a felülírná) */
.nav-links a.btn-primary { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover { color: var(--ink); }
  .nav-links a:not(.btn):hover::after { width: 100%; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(182, 136, 78, 0.16), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -220px; left: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(20, 58, 50, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.hero-trust .stat strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero-trust .stat span { font-size: 0.9rem; color: var(--muted); }

/* hero kép + lebegő jelvény */
.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
}
.hero-visual .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  left: -22px; bottom: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 78%;
}
.hero-badge .check {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.hero-badge span { font-size: 0.84rem; color: rgba(255,255,255,0.78); }

/* ---------- szekció általános ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 40em; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-alt { background: var(--ink); color: #fff; }
.section-alt h2, .section-alt h3 { color: #fff; }
.section-alt .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- szolgáltatások ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-soft);
  }
}
.card .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  margin-bottom: 18px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- miért minket ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 56px;
}
.why-item { display: flex; gap: 18px; padding: 8px 0; }
.why-item .n {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 44px;
}
.why-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-item p { color: rgba(255,255,255,0.74); font-size: 0.98rem; }

/* ---------- rólunk ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.about-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--accent-soft);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-quote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 26px;
  margin: 26px 0;
}
.about-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
}
.about-quote cite { font-style: normal; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.about-quote cite span { display: block; color: var(--muted); font-weight: 400; font-size: 0.88rem; }

/* ---------- kapcsolat ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info .info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-row:last-child { border-bottom: 0; }
.contact-info .ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--ink);
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 3px; }
.contact-info .info-row p { font-size: 1.05rem; color: var(--text); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 136, 78, 0.16);
}
.field textarea { resize: vertical; min-height: 110px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.86rem; color: var(--muted);
  margin-bottom: 20px;
}
.consent input { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--ink); text-decoration: underline; }
.form-card .btn-primary { width: 100%; justify-content: center; }
/* honeypot mező — emberek elől rejtve */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
.alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.alert-success { background: #E7F1EA; color: #1d5b3f; border: 1px solid #b9dcc7; }
.alert-error { background: #FBEAEA; color: #8a2b2b; border: 1px solid #efc3c3; }

/* ---------- lábléc ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-brand span { color: var(--accent); }
.footer-brand p { font-family: var(--sans); font-size: 0.92rem; max-width: 26em; margin-top: 10px; color: rgba(255,255,255,0.66); }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: #fff; }
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
/* halvány "készítette" kredit — a link a szöveggel azonos színű, nem látszik kattinthatónak */
.credit { color: rgba(255,255,255,0.4); }
.credit a { color: inherit; text-decoration: none; cursor: default; }

/* ---------- jogi oldalak ---------- */
.legal {
  padding: 72px 0 90px;
  max-width: 820px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--text); margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.legal th, .legal td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); font-size: 0.95rem; }
.legal th { background: var(--accent-soft); color: var(--ink); font-family: var(--sans); width: 38%; }
.back-home { display: inline-flex; gap: 8px; align-items: center; margin-top: 30px; font-weight: 600; color: var(--ink); transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .back-home:hover { color: var(--accent); }
}

/* ---------- animáció (Emil: csak transform/opacity, erős ease-out) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- reszponzív ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 56px; }
  .section { padding: 68px 0; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .about-visual { max-width: 440px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; max-width: none; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .footer-top { flex-direction: column; }
}
