/* ==========================================================================
   APONIUS Consulting Kft. — statikus stíluslap
   Az eredeti Divi téma design tokenjei alapján:
   Montserrat / Oswald, arany kiemelés #d8af63, sötét hero, 1080px tartalom.
   ========================================================================== */

:root {
  --gold: #d8af63;
  --gold-dark: #bb9450;
  --ink: #333333;
  --body: #666666;
  --muted: #8f8f8f;
  --dark: #1d140b;
  --line: #e6e6e6;
  --bg: #ffffff;

  --wrap: 1080px;
  --gutter: 24px;

  --sans: "Montserrat", Helvetica, Arial, sans-serif;
  --display: "Oswald", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.2;
}

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

/* --------------------------------------------------------------- Fejléc -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px var(--gutter) 12px;
}

.site-logo img { width: 200px; }

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 24px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 4px;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--gold); }

.nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ----------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  min-height: 666px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--dark) center / cover no-repeat;
  padding: 80px var(--gutter);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}

.hero--plain { background-image: none; }
.hero--plain::after { background: none; }

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6.5vw, 60px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0;
  max-width: 18ch;
}

/* ------------------------------------------------------------- Szekciók -- */

.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }

.section--dark {
  background: var(--dark) center / cover no-repeat fixed;
  position: relative;
  color: rgba(255, 255, 255, .85);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 6, .72);
}

.section--dark .wrap { position: relative; z-index: 1; }

.lede {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.85;
}

.lede p + p { margin-top: 1.4em; }

.section-heading {
  text-align: center;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--ink);
  margin: 0;
}

.section-heading .eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 24px auto 40px;
}

/* ------------------------------------------------------- Szolgáltatások -- */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.service {
  text-align: center;
  font-size: 14px;
  line-height: 1.75;
}

.service__mark {
  width: 14px;
  height: 14px;
  margin: 0 auto 22px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

/* ------------------------------------------------- Tanúsítványok (ISO) -- */

.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px 32px;
  align-items: stretch;
  text-align: center;
}

.cert {
  display: flex;
  flex-direction: column;
}

.cert .btn { margin-top: auto; align-self: center; }

.cert__img {
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.cert__img img { max-height: 150px; width: auto; }

.cert h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cert p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  min-height: 3em;
}

/* ---------------------------------------------------------------- Gomb -- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.btn:hover {
  background: var(--gold);
  color: #fff;
}

/* -------------------------------------------------------------- Kapcsolat */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-details dl { margin: 0; }

.contact-details dt {
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: .06em;
  margin-top: 28px;
}

.contact-details dt:first-child { margin-top: 0; }

.contact-details dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--body);
}

.contact-details dd a { color: var(--body); }
.contact-details dd a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- Űrlap -- */

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: #fff;
  outline: none;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

/* --------------------------------------------------------------- Lábléc -- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
}

.site-footer h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 8px; }

.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------ Reszponzív */

@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .hero { min-height: 420px; padding: 60px var(--gutter); }
  .section { padding: 60px 0; }
  .site-header__inner { position: relative; align-items: flex-start; }
  .site-logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav { width: 100%; }
  .nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 8px;
  }
  .nav ul.is-open { display: flex; }
  .nav li { width: 100%; border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 12px 0; border-bottom: 0; }
}

@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .section--dark { background-attachment: scroll; }
}
