/* Magyar Aranykereskedők Szövetsége (HBMA) – hbma.hu
   Egyetlen stíluslap az egész oldalhoz. Színek és méretek a :root alatt. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #011640;
  --navy-2: #263659;
  --cream: #fff7f1;
  --sand: #f6f1ee;
  --pink: #ffd6d6;
  --gold: #e8a200;
  --gold-light: #f7c948;
  --text: #4d5260;
  --line: #e4e1e2;
  --white: #ffffff;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 300; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 300; }
h3 { font-size: 1.15rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .3em; }
strong, b { font-weight: 600; color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Fejléc ---------- */
.site-header { background: var(--cream); position: relative; z-index: 20; min-height: 76px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { width: 132px; height: auto; }
.nav-toggle {
  display: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.site-nav li { margin: 0; }
.site-nav a { text-decoration: none; font-size: .93rem; color: var(--navy); padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a.btn { padding: 10px 18px; border-bottom: 0; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(1, 22, 64, .12); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 12px; text-align: center; border: 0; }
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-block; background: var(--pink); color: var(--navy); text-decoration: none;
  padding: 13px 26px; font-size: .95rem; font-weight: 500; border: 0; border-radius: 2px; cursor: pointer;
  font-family: inherit; line-height: 1.3; transition: background .15s;
}
.btn:hover { background: #ffc2c2; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " \2192"; text-decoration: none; display: inline-block; margin-left: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.center .btn-row { justify-content: center; }

/* ---------- Nyitó (hero) ---------- */
.hero { background: var(--cream); padding: 44px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero .wrap { position: relative; max-width: 860px; }
.hero .kicker { font-size: .95rem; margin-bottom: .8em; color: var(--text); }
.hero p { font-weight: 300; font-size: 1.02rem; }
.hero h1 { margin-bottom: .5em; }
.hero-home { padding-bottom: 96px; }
.hero-home::before {
  /* arany korong – a logó motívuma, tisztán CSS-ből */
  content: ""; position: absolute; left: -210px; top: -40px; width: 380px; height: 380px; border-radius: 50%;
  background: linear-gradient(135deg, #f9d55c 0%, #eeb01a 45%, #e19a00 70%, #f6c53a 100%);
  -webkit-mask: radial-gradient(circle, transparent 17%, #000 17.6%);
  mask: radial-gradient(circle, transparent 17%, #000 17.6%);
  opacity: .95;
}
@media (max-width: 700px) { .hero-home::before { left: -300px; } }

/* ---------- Szakaszok ---------- */
.sec { padding: 64px 0; }
.sec-sand { background: var(--sand); }
.sec-cream { background: var(--cream); }
.sec-navy { background: var(--navy); color: #e6e9f0; }
.sec-navy h2, .sec-navy h3, .sec-navy h4, .sec-navy strong, .sec-navy b { color: var(--white); }
.sec-navy a { color: var(--white); }
.sec-head { margin-bottom: 32px; }
.sec-head .kicker { margin: 0 0 .2em; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 56px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .sec { padding: 48px 0; } }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); color: var(--text); padding: 28px; box-shadow: 0 2px 14px rgba(1, 22, 64, .07); }
.card h3 { color: var(--navy); }
.card > :last-child { margin-bottom: 0; }
.sec-navy .card strong, .sec-navy .card b { color: var(--navy); }
.sec-navy .card a { color: var(--navy); }
.plain h3 { margin-bottom: .5em; }

.lift { margin-top: -48px; position: relative; }
.panel { background: var(--white); padding: 48px 28px; box-shadow: 0 6px 30px rgba(1, 22, 64, .09); }
.panel-navy { background: var(--navy); color: #e6e9f0; padding: 40px 28px; }
.panel-navy h2, .panel-navy strong { color: var(--white); }

/* média-megjelenések */
.media-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 24px 40px; padding: 36px 0; }
.media-row img { height: 56px; width: auto; }
@media (max-width: 600px) { .media-row img { height: 40px; } }

/* számok */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; margin: 0; padding: 0; list-style: none; }
.stats li { margin: 0; }
.stats .num { display: block; font-size: 2.6rem; font-weight: 300; color: var(--navy); line-height: 1.1; }
.sec-navy .stats .num { color: var(--gold-light); }
.facts { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li span:last-child { color: var(--navy); font-weight: 500; text-align: right; }

/* személyek */
.people { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 900px; margin: 0 auto; }
.people.single { max-width: 280px; }
.person { background: var(--white); color: var(--text); text-align: center; box-shadow: 0 2px 14px rgba(1, 22, 64, .08); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.person .body { padding: 18px 16px 22px; }
.person h3 { margin-bottom: .15em; font-size: 1.05rem; color: var(--navy); }
.person .role { font-size: .88rem; color: var(--navy-2); font-weight: 500; margin-bottom: .6em; }
.person p:last-child { margin-bottom: 0; font-size: .95rem; }

/* taglista */
.members { columns: 2 280px; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.members li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.members a { text-decoration: none; font-weight: 500; }
.members a::after { content: " \2197"; color: var(--gold); font-size: .85em; }
.members a:hover { text-decoration: underline; }

/* tagsági kategóriák */
.tier .price { font-size: 1.6rem; font-weight: 300; color: var(--navy); margin-bottom: .4em; }
.tier .price small { font-size: .9rem; }
.tier ul { font-size: .95rem; }

/* lépések, GYIK */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps > li { background: var(--white); padding: 24px 24px 24px 76px; position: relative; box-shadow: 0 2px 14px rgba(1, 22, 64, .07); margin: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.steps > li > :last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; color: var(--navy); font-weight: 500; }
details p { margin: .7em 0 0; }

/* ---------- Közlemények ---------- */
.news { display: grid; gap: 36px 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-item { display: flex; flex-direction: column; }
.news-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 16px; }
.news-item h3 { font-size: 1.1rem; margin-bottom: .5em; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { font-weight: 300; margin-bottom: .6em; }
.news-item .more { text-transform: uppercase; font-size: .9rem; font-weight: 500; text-decoration: none; }
.news-item time { margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--navy-2); }
.news-empty { font-style: italic; }

.post { max-width: 780px; margin: 0 auto; }
.post-head { background: var(--cream); padding: 40px 0 44px; }
.post-head h1 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); text-transform: none; margin-bottom: .4em; }
.post-head time { color: var(--navy-2); font-size: .95rem; }
.post-body { padding: 44px 0 24px; }
.post-body h2 { font-size: 1.5rem; font-weight: 400; margin-top: 1.6em; }
.post-body img { margin: 0 0 28px; width: 100%; }
.back { display: inline-block; margin: 8px 0 48px; }

/* ---------- Hosszú szöveges oldalak (alapszabály, etikai kódex, fogalomtár) ---------- */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 1.45rem; font-weight: 500; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 1.6em; }
.note { background: var(--cream); border-left: 3px solid var(--gold); padding: 14px 18px; margin: 0 0 1.4em; }
.toc { background: var(--sand); padding: 22px 26px; margin-bottom: 40px; }
.toc h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .6em; padding: 0; border: 0; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 40px; list-style: none; padding: 0; }
.toc li { break-inside: avoid; }
.glossary h3 { margin-bottom: .2em; }
.glossary h3 + p { font-size: .92rem; margin-bottom: .5em; }

/* ---------- Kapcsolat ---------- */
.form { display: grid; gap: 14px; max-width: 620px; }
.form label { font-size: .9rem; font-weight: 500; color: var(--navy); display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--navy); padding: 12px 14px; border: 1px solid #cbc8cc; border-radius: 2px; background: var(--white);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .88rem; margin: 0; }
.mail { font-weight: 500; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--navy); color: #cfd5e2; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #ffd6d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8em; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .f-logo { width: 132px; margin-bottom: 16px; }
.site-footer .f-name { color: var(--white); font-size: 1.05rem; font-weight: 400; text-transform: uppercase; margin-bottom: .5em; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .nav-toggle, .btn-row { display: none; }
  .sec-navy { background: none; color: inherit; }
}
