/* =========================================================
   Szarvasi Kegyelet Kft. – sötét, minimalista stíluslap
   Betűk: Marcellus (címsor) · Spectral (szöveg) · IBM Plex Mono (apró címkék)
   ========================================================= */

:root {
  --bg: #0e0e0e;
  --bg-soft: #161616;
  --line: #2a2926;
  --text: #ece8e1;
  --muted: #a5a19a;
  --gold: #c4a76c;
  --gold-soft: #d9c49a;

  --display: "Marcellus", "Times New Roman", serif;
  --serif: "Spectral", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --space: clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.03rem + .3vw, 1.25rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.label {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}

/* ---------- Gomb: szögletes, visszafogott ---------- */
.btn {
  display: inline-block; padding: 1rem 1.6rem;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  color: var(--bg); background: var(--gold); border: 1px solid var(--gold);
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--bg); }

/* ---------- Fejléc ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 14, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--display); font-size: 1.35rem; color: var(--gold-soft); text-decoration: none; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a { text-decoration: none; font-size: 1rem; color: var(--muted); transition: color .25s; }
.nav a:hover { color: var(--text); }
.nav .nav__tel { color: var(--gold); font-family: var(--mono); font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; }
.nav-toggle span:not(.sr) { width: 26px; height: 1px; background: var(--text); transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Nyitó rész ---------- */
.hero { padding-top: clamp(4rem, 10vw, 8rem); }
.hero h1 { max-width: 14ch; margin-bottom: .3em; }
.hero__motto { font-style: italic; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); color: var(--gold-soft); margin-bottom: 1.8rem; }
.hero__lead { max-width: 36rem; color: var(--muted); margin-bottom: 2.5rem; }
.hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__note { color: var(--muted); font-size: .95rem; }
.hero { padding-bottom: var(--space); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

/* ---------- Fotók ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); filter: saturate(.85) brightness(.92); }
.photo figcaption { margin-top: .6rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__photo img { aspect-ratio: 4 / 5; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.75rem 1.25rem; }
.gallery__main { grid-row: 1 / 3; display: flex; flex-direction: column; }
.gallery__main img { flex: 1 1 0; min-height: 0; height: auto; }
.gallery .photo:not(.gallery__main) img { aspect-ratio: 4 / 5; }

/* ---------- Szakaszok ---------- */
.section { padding: var(--space) 0; }
.section--line { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }

/* Szolgáltatás lista */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.list li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg) translateY(-3px); flex: none; margin-right: .5rem; }
.list strong { font-weight: 400; color: var(--text); }
.list span { color: var(--muted); font-size: .95em; }

/* Szállítás */
.callout { padding-top: .5rem; }
.phone { display: inline-block; margin-top: .5rem; font-family: var(--mono); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: var(--gold); text-decoration: none; letter-spacing: -.01em; border-bottom: 1px solid var(--line); padding-bottom: .3rem; transition: border-color .3s; white-space: nowrap; }
.phone:hover { border-color: var(--gold); }

/* Árjegyzék */
.prices h3 { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 2.5rem 0 .5rem; }
.prices h3:first-child { margin-top: .5rem; }
.prices dl, .contact { margin: 0; }
.prices dl div, .contact div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.prices dt small { display: block; font-size: .8em; color: var(--muted); font-style: italic; }
.prices dd { margin: 0; white-space: nowrap; color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* Elérhetőség */
.contact { margin-top: 2rem; border-top: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: .95rem; }
.contact dd { margin: 0; text-align: right; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--gold); }

/* Térkép (Google Maps, hozzájárulás után) */
.map { position: relative; height: 440px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9); }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem; text-align: center; color: var(--muted); }
.map__consent p { margin: 0; max-width: 24rem; }
.map__title { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold) !important; }
.map__link { display: inline-block; margin-top: .9rem; font-size: .95rem; color: var(--muted); }
.map__link:hover { color: var(--gold); }

/* ---------- Cookie-figyelmeztető ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--bg-soft); border-top: 1px solid var(--gold); box-shadow: 0 -12px 40px rgba(0,0,0,.5); max-height: 85vh; overflow-y: auto; }
.cookie[hidden] { display: none; }
.cookie__inner { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter); display: flex; gap: 1.5rem 3rem; align-items: center; }
.cookie__text { flex: 1; font-size: .98rem; line-height: 1.6; color: var(--muted); }
.cookie__text p { margin: 0 0 .5rem; }
.cookie__title { font-family: var(--display); font-size: 1.2rem; color: var(--text); }
.cookie__details summary { cursor: pointer; color: var(--gold); width: fit-content; }
.cookie__details summary:hover { color: var(--gold-soft); }
.cookie__details dl { margin: .9rem 0; border-top: 1px solid var(--line); }
.cookie__details dl div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cookie__details dt { color: var(--text); }
.cookie__details dd { margin: .2rem 0 0; }
.cookie__details a { color: var(--gold); }
.cookie__actions { display: flex; flex-direction: column; gap: .75rem; flex: none; min-width: 200px; }
.cookie__actions .btn { text-align: center; }
body.has-cookie { padding-bottom: 180px; }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--gold); }

/* Nyitvatartás */
.hours__title { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 2.75rem 0 .5rem; }
.hours { margin: 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-closed dd { color: var(--muted); }
.hours div.is-today dt, .hours div.is-today dd { color: var(--gold-soft); }
.hours__note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.hours__note a { color: var(--gold); text-decoration: none; white-space: nowrap; }

/* ---------- Jogi aloldalak ---------- */
.legal { padding: clamp(3.5rem, 8vw, 6rem) 0 var(--space); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: .4em; }
.legal h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin: 2.75rem 0 .8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--gold-soft); margin: 1.6rem 0 .4rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 400; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--gold); }
.legal .lead { font-size: 1.05em; }
.legal .back { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); text-decoration: none; font-size: .95rem; }
.legal .back:hover { color: var(--gold); }
.facts { margin: 1rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; }
.legal .updated { margin-top: 3rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- Lábléc ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer__motto { font-family: var(--display); color: var(--gold-soft); margin: 0; font-size: 1.1rem; }
.footer__meta { color: var(--muted); font-size: .9rem; margin: 0; text-align: right; }
.footer__meta p { margin: 0 0 .3rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--gold); }

.callbar { display: none; }

/* ---------- Reszponzív ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* Mobilon a fejléc teli hátteret kap: a backdrop-filter miatt a lenyíló menü nem takarná az oldalt */
  .header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: 77px; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--bg); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter) 6rem;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { width: 100%; padding: 1.15rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.45rem; color: var(--text); }
  .nav a:first-child { border-top: 1px solid var(--line); }
  .nav .nav__tel { margin-top: 2rem; border: 1px solid var(--gold); padding: 1rem; text-align: center; font-family: var(--mono); font-size: 1.1rem; color: var(--gold); }
  body.nav-open .callbar { display: none; }

  .grid-2, .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; }
  .map { height: 340px; }
  .cookie { bottom: 54px; }
  .footer__meta { text-align: left; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
  .cookie__inner { flex-direction: column; align-items: stretch; padding: 1.25rem var(--gutter); }
  .cookie__actions { flex-direction: row; min-width: 0; }
  .cookie__actions .btn { flex: 1; padding: .9rem 1rem; }
  body.has-cookie { padding-bottom: 300px; }

  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 1rem var(--gutter); text-align: center; text-decoration: none;
    background: var(--gold); color: var(--bg); font-size: 1rem;
  }
  .callbar strong { font-weight: 400; font-family: var(--mono); }
  body { padding-bottom: 58px; }
}

@media (max-width: 520px) {
  .prices dl div, .contact div { flex-direction: column; gap: .2rem; }
  .contact dd { text-align: left; }
  .btn { width: 100%; text-align: center; }
}
