/* ERIOTT Kft. – régi vágású könyvelői hangulat, friss szemmel.
   Főkönyv-zöld + krémszínű papír + „szövegkiemelő" sárga. */

:root {
  --paper: #f6f0e1;
  --paper-2: #efe6d0;
  --ink: #1d2620;
  --ink-soft: #4a5750;
  --green: #1f4d3a;
  --green-dark: #163a2b;
  --hi: #ffd23f;
  --line: rgba(31, 77, 58, .18);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 68px; /* hely a mobilos gyorssávnak */
}

img, svg { max-width: 100%; }
a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--hi);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--green);
}

.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--hi); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; color: var(--green-dark); }
h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: .5rem; }
h3 { font-size: 1.25rem; }

/* ---------- Fejléc ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  color: #fff;
  border-bottom: 4px solid var(--hi);
}
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--hi); color: var(--green-dark);
  font: 700 1.5rem/1 var(--serif);
}
.logo__text { font: 700 1.25rem/1 var(--serif); letter-spacing: .08em; }
.logo__text small { font-size: .7em; letter-spacing: .04em; opacity: .8; font-weight: 400; }

.nav { display: none; gap: 6px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav .nav__cta { background: var(--hi); color: var(--green-dark); font-weight: 700; }
.nav .nav__cta:hover { background: #ffe07a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 44px 0 56px;
  /* vonalas főkönyvi papír */
  background:
    linear-gradient(90deg, transparent 47px, rgba(214, 71, 55, .35) 47px 49px, transparent 49px),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__in { position: relative; padding-left: 20px; }

.eyebrow {
  margin: 0 0 14px;
  font: 700 .85rem/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.hero h1 { font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -.01em; }
.hero mark {
  background: linear-gradient(transparent 55%, var(--hi) 55% 92%, transparent 92%);
  color: inherit; padding: 0 .1em;
}
.lead { max-width: 34em; font-size: 1.15rem; color: var(--ink-soft); margin: 18px 0 26px; }

.cta { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px;
  border-radius: var(--radius);
  font: 700 1.05rem/1.2 var(--sans);
  text-decoration: none;
  border: 2px solid var(--green);
  transition: transform .12s ease, background .12s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 4px 4px 0 var(--hi); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: rgba(31, 77, 58, .08); }

/* pecsét */
.stamp {
  display: none;
  position: absolute; right: 0; top: 0;
  width: 140px; height: 140px; border-radius: 50%;
  flex-direction: column;
  border: 4px double var(--hi);
  color: #fff;
  align-items: center; justify-content: center; gap: 2px;
  text-align: center;
  transform: rotate(-12deg);
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green), 6px 6px 0 3px var(--hi);
}
.stamp__num { font: 700 3.2rem/1 var(--serif); color: var(--hi); }
.stamp__txt { font: 700 .8rem/1.1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Szekciók ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__sub { margin: 0 0 28px; color: var(--ink-soft); }

.services { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.services li {
  position: relative;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 20px 20px 22px;
}
.services__no { position: absolute; right: 16px; top: 12px; font: 700 1.6rem/1 var(--serif); color: var(--hi); -webkit-text-stroke: 1px var(--green); }
.services h3 { margin-bottom: 6px; }
.services p { margin: 0; color: var(--ink-soft); }

/* ---------- Csapat ---------- */
.team { display: grid; gap: 16px; }
.person {
  display: grid; gap: 4px; justify-items: start;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.person__av {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--hi);
  font: 700 1.3rem/1 var(--serif);
  margin-bottom: 8px;
}
.person h3 { margin-bottom: 4px; }
.person__mail {
  display: inline-block; padding: 6px 0; min-height: 44px;
  font-weight: 600; color: var(--green);
  user-select: all; /* egy koppintással kijelölhető */
}
.person__link {
  display: inline-block; padding: 6px 0; min-height: 44px; /* jó érintési felület */
  font-weight: 600; text-underline-offset: 3px;
}

/* ---------- Kapcsolat ---------- */
.contact { display: grid; gap: 28px; }
address { font-style: normal; font-size: 1.15rem; margin: 12px 0 18px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.contact__list span { display: inline-block; min-width: 5.5em; color: var(--ink-soft); }
.contact__list a, .contact__mail { font-weight: 700; font-size: 1.1rem; user-select: all; }
.contact__list a { user-select: auto; }

[hidden] { display: none !important; }

.chat { margin: 0 0 24px; }
.chat__title { margin: 0 0 10px; font-weight: 700; color: var(--green-dark); }
.chat__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.chat__btns .btn { flex: 1 1 140px; }
.chat__note { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); }

.map {
  position: relative;
  min-height: 320px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 14px, #f9f4e6 14px 28px);
  box-shadow: 6px 6px 0 var(--hi);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 0; cursor: pointer; padding: 20px; text-align: center;
  font-family: var(--sans); color: var(--green-dark);
}
.map__load span {
  background: var(--green); color: #fff; padding: 14px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; box-shadow: 4px 4px 0 var(--hi);
}
.map__load small { color: var(--ink-soft); max-width: 28em; }
.map noscript a { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }

/* ---------- Lábléc ---------- */
.foot { background: var(--green-dark); color: #dfe8e2; padding: 24px 0; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot a { color: var(--hi); }

/* ---------- Mobilos gyorssáv ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--green); border-top: 3px solid var(--hi);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  display: grid; place-items: center; min-height: 56px;
  color: #fff; text-decoration: none; font-weight: 700;
}
.dock a + a { border-left: 1px solid rgba(255, 255, 255, .2); }
.dock a:first-child { background: var(--hi); color: var(--green-dark); }

/* ---------- Nagyobb képernyő ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; font-size: 1.125rem; }
  .dock { display: none; }
  .nav { display: flex; }
  .hero { padding: 88px 0 96px; }
  .hero__in { padding-left: 40px; }
  .hero h1 { padding-right: 170px; }
  .cta { flex-direction: row; max-width: none; }
  .stamp { display: flex; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .map { min-height: 420px; }
}

@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
