/* G&A Könyvelőiroda, Szeged - gakonyveloiroda.com
   Paletta a logóból: mély navy kék, világos jégkék felületek, letisztult tipográfia. */

:root {
  --navy-900: #0a1e3d;
  --navy-800: #10305c;
  --navy-700: #1a4785;
  --blue-600: #2a6bb0;
  --blue-400: #5b93cc;
  --blue-100: #dde9f6;
  --ice: #f4f8fc;
  --white: #ffffff;
  --line: #dbe5f0;
  --ink: #15243a;
  --ink-soft: #4f6178;
  --shadow: 0 14px 40px rgba(10, 30, 61, .10);
  --shadow-sm: 0 4px 16px rgba(10, 30, 61, .07);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); }

h1, h2, h3 { font-family: var(--serif); color: var(--navy-900); line-height: 1.22; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 4.5rem 0; }
.section--ice { background: var(--ice); }
.section--tight { padding: 3.25rem 0; }
.section h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); margin: 0 0 1rem; }
.section .lead { max-width: 64ch; color: var(--ink-soft); font-size: 1.06rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
  font-weight: 700;
  margin: 0 0 .6rem;
}

.rule { width: 54px; height: 3px; background: var(--blue-400); border-radius: 2px; margin: 1.1rem 0 1.4rem; }
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-900); }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand .name { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; letter-spacing: .01em; }
.brand .loc { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: .5rem .85rem; border-radius: 8px;
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--ice); color: var(--navy-800); }
.nav-links a.active { color: var(--navy-700); }
.nav-cta { background: var(--navy-700) !important; color: #fff !important; padding: .58rem 1.15rem !important; }
.nav-cta:hover { background: var(--navy-900) !important; }

.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy-900); }
.menu-btn svg { width: 26px; height: 26px; }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu {
    display: none; flex-direction: column; gap: .15rem;
    border-top: 1px solid var(--line); padding: .75rem 1.25rem 1rem; background: var(--white);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: .7rem .5rem; text-decoration: none; color: var(--navy-900); font-weight: 600; border-radius: 8px; }
  .mobile-menu a.active { color: var(--navy-700); }
  .mobile-menu .nav-cta { text-align: center; margin-top: .4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 460px at 82% -10%, rgba(91, 147, 204, .35), transparent 65%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding: 4.5rem 1.25rem 5rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 1.1rem; max-width: 18ch; }
.hero p { font-size: 1.12rem; max-width: 54ch; margin: 0 0 2rem; color: #d6e3f2; }
.hero .badge {
  display: inline-block; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: .35rem 1rem; font-size: .84rem; margin-bottom: 1.3rem; color: #e6eefa;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-logo { justify-self: center; }
.hero-logo img { width: 260px; height: 260px; border-radius: 50%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 3.25rem; padding-bottom: 3.5rem; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 150px; height: 150px; }
  .hero h1 { max-width: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  font-family: var(--sans);
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: #21578f; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }

/* ---------- Card grids ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.15rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 40px; height: 40px; color: var(--blue-600); margin-bottom: .9rem; }
.card h3 { font-size: 1.14rem; margin: 0 0 .45rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card p + p { margin-top: .6rem; }

/* ---------- Why-us list ---------- */
.reasons { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem 2rem; }
.reasons li { position: relative; padding-left: 3.1rem; }
.reasons li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 2.15rem; height: 2.15rem;
  border-radius: 50%; background: var(--blue-100);
}
.reasons li::after {
  content: ""; position: absolute; left: .52rem; top: .62rem; width: 1.1rem; height: 1.1rem;
  background: var(--navy-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.reasons b { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--navy-900); }
.reasons span { display: block; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-700); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.panel {
  background: var(--navy-800); color: #dce7f5; border-radius: var(--radius); padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}
.panel h3 { color: #fff; margin: 0 0 .8rem; font-size: 1.3rem; }
.panel p { margin: 0 0 1rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin: .4rem 0; }
.panel :last-child { margin-bottom: 0; }

/* ---------- Service blocks (aloldal) ---------- */
.service {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem;
  padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: .5rem; }
.service .ico { width: 46px; height: 46px; color: var(--blue-600); }
.service h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.service p { color: var(--ink-soft); margin: 0 0 .9rem; }
.service ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.service li { margin: .3rem 0; }
@media (max-width: 620px) { .service { grid-template-columns: 1fr; gap: .8rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { width: 26px; height: 26px; color: var(--blue-600); flex: none; margin-top: .35rem; }
.contact-list b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.contact-grid > *, .split > *, .form-grid > * { min-width: 0; }
.contact-list a { color: var(--navy-900); text-decoration: none; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list li > span { min-width: 0; }
@media (max-width: 520px) { .contact-list a[href^="mailto"] { font-size: .95rem; } }
.contact-list a:hover { color: var(--blue-600); }
.contact-list span.plain { color: var(--navy-900); font-size: 1.05rem; font-weight: 600; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-card h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.form-card > p { color: var(--ink-soft); margin: 0 0 1.6rem; font-size: .97rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy-800); margin-bottom: .35rem; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ice); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6178' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-400); outline-offset: 1px; background: var(--white); }
.field.consent { margin-top: .25rem; }
.field .checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; margin: 0; text-transform: none; letter-spacing: 0; }
.field .checkbox input[type="checkbox"] { width: auto; flex: 0 0 auto; margin-top: .2rem; accent-color: var(--navy-700); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-hint { color: var(--ink-soft); font-size: .87rem; margin: 0; }

/* ---------- Note ---------- */
.note {
  background: var(--blue-100); border: 1px solid #c3d8ee; border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; color: var(--navy-800); font-size: .95rem;
}
.note b { color: var(--navy-900); }

/* ---------- Prose (jogi oldal) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose a { overflow-wrap: anywhere; }
.prose li { margin: .35rem 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin: 0 0 .9rem; }
.cta-band p { color: #d3e1f2; max-width: 54ch; margin: 0 auto 1.9rem; font-size: 1.06rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy-800); }
.cta-band .btn-primary:hover { background: var(--blue-100); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c8d6e8; padding: 3.25rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.25rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h4 { font-family: var(--serif); color: #fff; margin: 0 0 .85rem; font-size: 1.05rem; }
.site-footer p { margin: .35rem 0; color: #a9bdd6; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .38rem 0; }
.site-footer a { color: #d7e3f2; text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand span { font-family: var(--serif); color: #fff; font-size: 1.1rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 2.25rem; padding-top: 1.25rem; text-align: center; font-size: .85rem; color: #8fa5c2; }
.footer-bottom a { color: #8fa5c2; }

/* ---------- Urlap hibasav (a ?hiba= parameterbol, /assets/site.js rajzolja) ---------- */
/* A sticky fejlec ~74px, ezert a horgony-gordules ne bujjon ala. */
#ajanlatkeres, .form-error { scroll-margin-top: 96px; }
.form-error {
  display: flex; align-items: flex-start; gap: .75rem;
  background: #fdecec; border: 1px solid #e0b4b4; border-left: 5px solid #c0292f;
  border-radius: var(--radius-sm); padding: .95rem 1.15rem; margin: 0 0 1.5rem;
  color: #8a1c21; font-size: .97rem; line-height: 1.55;
}
.form-error[hidden] { display: none; }
.form-error svg { width: 22px; height: 22px; flex: none; margin-top: .12rem; color: #c0292f; }
.form-error b { display: block; color: #7a1116; font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0292f; background: #fdf6f6; }
.field.has-error label { color: #8a1c21; }
.field.consent.has-error .checkbox span { color: #8a1c21; }

/* ---------- Koszonjuk oldal ---------- */
.thanks-card {
  max-width: 640px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 3rem 2rem 2.5rem;
}
.thanks-card h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin: 0 0 1rem; }
.thanks-icon {
  width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-100); color: #1f7a4d;
  box-shadow: 0 0 0 8px rgba(221, 233, 246, .55);
}
.thanks-icon svg { width: 38px; height: 38px; }
.thanks-card .note { margin-top: 1.75rem; }
.thanks-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
@media (max-width: 520px) { .thanks-card { padding: 2.25rem 1.25rem 1.9rem; } .thanks-actions .btn { width: 100%; justify-content: center; } }
