/* hu51.hu — single stylesheet, no framework.
   Identity: brass accent (stage light / brass section), plum-graphite dark,
   cool paper light. Display: Bricolage Grotesque · Body: Instrument Sans. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/bricolage-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/bricolage-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;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-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;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #f4f3f5;
  --bg-elev: #fdfdfe;
  --bg-soft: #ebe9ee;
  --text: #26232b;
  --muted: #6d6772;
  --border: #d9d6df;
  --accent: #8a5f18;        /* bronze — links and accents on light ground */
  --accent-fill: #d99a3d;   /* brass — fills, underlines, markers */
  --accent-fill-hover: #c9882a;
  --on-accent: #241c0e;
  --accent-soft: rgba(217, 154, 61, 0.16);
  --mark: rgba(217, 154, 61, 0.38);
  --radius: 10px;
  --nav-bg: rgba(244, 243, 245, 0.88);

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #282530;
    --bg-elev: #322e3c;
    --bg-soft: #2d2a36;
    --text: #ece8e1;
    --muted: #a49cae;
    --border: #454050;
    --accent: #e2b063;
    --accent-fill: #d99a3d;
    --accent-fill-hover: #e6ad55;
    --on-accent: #241c0e;
    --accent-soft: rgba(217, 154, 61, 0.15);
    --mark: rgba(217, 154, 61, 0.32);
    --nav-bg: rgba(40, 37, 48, 0.88);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.25; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.eyebrow span + span::before { content: " · "; color: var(--accent-fill); }

/* brass highlight inside headings (survives i18n via data-i18n-html) */
.mark {
  background: linear-gradient(transparent 68%, var(--mark) 68%);
  padding: 0 0.06em;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; gap: 1.25rem; padding: 0.85rem 0; }

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand .dot { color: var(--accent-fill); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }

.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px;
  background: var(--accent-fill);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent-fill); }

.nav-burger {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; font-size: 1.05rem; width: 100%; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .lang-toggle { margin-top: 0.75rem; }
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); }

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

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

.hero { padding: 5.5rem 0 5rem; }
.hero .lead { margin: 1.1rem 0 2.2rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.68rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-fill-hover); color: var(--on-accent); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-fill); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent-fill); }
a.card:hover h3 { color: var(--accent); }

.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { margin: 0; transition: color 0.15s ease; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-link {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}
a.card:hover .card-link { text-decoration: underline; text-underline-offset: 3px; }

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Service cards */
.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.service-card .icon svg { width: 22px; height: 22px; }

/* ---------- Portfolio groups ---------- */

.work-group { margin-bottom: 3rem; }
.work-group h2 { margin-bottom: 1.2rem; }

/* ---------- Photo gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  overflow: hidden;
}
.gallery-tile svg { width: 42px; height: 42px; }
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

fieldset.q-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.5rem 1.75rem 1.75rem;
  margin: 0 0 1.75rem;
}
fieldset.q-section legend {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.08rem;
  padding: 0 0.6rem;
}

.q-body { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 860px) {
  .q-body.has-aside { grid-template-columns: 3fr 2fr; }
}

.q-aside {
  color: var(--muted);
  font-size: 0.92rem;
  border-left: 2px solid var(--accent-fill);
  padding-left: 1.1rem;
  margin-top: 1rem;
  align-self: start;
}
@media (min-width: 860px) { .q-aside { margin-top: 0; } }
.q-aside p { margin: 0 0 0.6rem; }
.q-aside ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.q-aside strong { color: var(--text); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-fill);
  outline-offset: 0;
  border-color: transparent;
}
textarea { resize: vertical; }
::placeholder { color: var(--muted); opacity: 0.7; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.35rem 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.check input { accent-color: var(--accent-fill); width: 1.05rem; height: 1.05rem; margin: 0; }
.check label { margin: 0; font-weight: 400; }

/* ---------- Info panel ---------- */

.info-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-fill);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.info-panel h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.info-panel ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.info-panel li { margin-bottom: 0.35rem; }

/* ---------- Contact ---------- */

.contact-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  margin: 2rem 0;
}
.contact-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.contact-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-item a, .contact-item span { font-weight: 600; color: var(--text); }
.contact-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-contacts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-contacts a { color: var(--muted); font-weight: 600; }
.footer-contacts a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */

/* Hidden state is applied by JS (.pending), so content stays visible without JS */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pending { opacity: 0; transform: translateY(12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Form status / captcha (Twig forms) ---------- */

.form-status {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.form-status.is-error {
  border-color: #c45c5c;
  background: rgba(196, 92, 92, 0.08);
  color: var(--text);
}
.form-status.is-success {
  border-left: 3px solid var(--accent-fill);
}
.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0;
}
