/* Pietas Temetkezés – stíluslap
   Paletta: ciprus (mélyzöld), mészkő, gránit, mécses (borostyán – csak az ügyeleti számhoz és a lánghoz)
   Betűk: Marcellus (római feliratokat idéző címbetű), Atkinson Hyperlegible Next (jól olvasható szövegbetű) */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/marcellus-latin-ext-400-normal.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: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/marcellus-latin-400-normal.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: "Atkinson";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.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: "Atkinson";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.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: "Atkinson";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-400-italic.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: "Atkinson";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-400-italic.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: "Atkinson";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.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: "Atkinson";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.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 {
  --ciprus: #1d3630;
  --ciprus-2: #27463e;
  --ciprus-3: #34574d;
  --meszko: #e6e9e2;
  --papir: #f5f6f2;
  --granit: #1f2528;
  --pala: #4a5651;
  --zuzmo: #b9c6bc;
  --vonal: #ccd3ca;
  --meces: #d8a94c;
  --meces-feny: #f3deaa;

  --display: "Marcellus", "Georgia", serif;
  --text: "Atkinson", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--papir);
  color: var(--granit);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

@media (min-width: 64rem) {
  body { font-size: 1.1875rem; }
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); }

p, ul, ol, dl, address { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
address { font-style: normal; }

a {
  color: var(--ciprus-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ciprus); text-decoration-thickness: 2px; }

/* Telefonszámok mindig a feliratbetűvel: jól tagolt, nyitott nullák, egységes megjelenés */
a[href^="tel:"]:not(.button) {
  font-family: var(--display);
  font-weight: 400 !important;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

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

.plain { list-style: none; padding: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--meces-feny);
  color: var(--granit);
  padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Mécses jel ---------- */
.flame-outer { fill: var(--meces); }
.flame-inner { fill: var(--meces-feny); }
.bowl { fill: currentColor; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ciprus);
  color: #fff;
  border-bottom: 1px solid var(--ciprus-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: inherit; }
.brand-mark { width: 1.6rem; height: 2rem; color: var(--zuzmo); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.04em; }
.brand-sub { font-size: 0.82rem; color: var(--zuzmo); letter-spacing: 0.01em; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
}
.site-nav ul a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--zuzmo); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--meces); }

.header-call {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ciprus-3);
  border-radius: 0.4rem;
}
.header-call:hover { background: var(--ciprus-2); }
.header-call-label { font-family: var(--text); letter-spacing: 0; font-size: 0.78rem; color: var(--zuzmo); }
.header-call-number { color: var(--meces-feny); font-size: 1.12rem; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: 1px solid var(--ciprus-3);
  border-radius: 0.4rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 63.99rem) {
  .js .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ciprus);
    border-bottom: 1px solid var(--ciprus-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 0.8rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--ciprus-2); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--ciprus-2); color: var(--meces-feny); }
  .header-call { margin-top: 1rem; align-self: flex-start; }
  .no-js .site-nav { position: static; }
}

/* ---------- Nyitó blokk ---------- */
.hero {
  background: var(--ciprus);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.hero h1 { max-width: 15ch; margin-bottom: 0.5em; }
.hero-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: #e3e9e4;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.button--light { background: var(--papir); color: var(--ciprus); }
.button--light:hover { background: #fff; color: var(--ciprus); }
.button--ghost { color: #fff; border-color: var(--zuzmo); }
.button--ghost:hover { color: #fff; background: var(--ciprus-2); }
.button--dark { background: var(--ciprus); color: #fff; }
.button--dark:hover { background: var(--ciprus-2); color: #fff; }

/* Az ügyeleti „mécses-tábla” – az oldal egyetlen hangsúlyos eleme */
.vigil {
  position: relative;
  border: 1px solid var(--ciprus-3);
  border-radius: 0.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(216, 169, 76, 0.16), transparent 60%),
    var(--ciprus-2);
}
.vigil-flame {
  width: 3.4rem;
  height: 4.25rem;
  color: var(--zuzmo);
  margin-bottom: 1.25rem;
}
.vigil-flame .flame-outer,
.vigil-flame .flame-inner {
  transform-origin: 50% 85%;
  animation: lobog 5.5s ease-in-out infinite;
}
.vigil-flame .flame-inner { animation-duration: 3.7s; }
@keyframes lobog {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(0.97, 1.03) skewX(-1.5deg); }
  55% { transform: scale(1.02, 0.98) skewX(1deg); }
  80% { transform: scale(0.99, 1.02) skewX(-0.5deg); }
}
.vigil-label { color: var(--zuzmo); margin: 0 0 0.2rem; font-size: 1rem; }
.vigil-number {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  color: var(--meces-feny);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.vigil-number:hover { color: #fff; }
.vigil dl { margin: 0; border-top: 1px solid var(--ciprus-3); padding-top: 1.25rem; display: grid; gap: 0.9rem; }
.vigil dt { font-size: 0.95rem; color: var(--zuzmo); }
.vigil dd { margin: 0; }
.vigil dd a { color: #fff; font-weight: 700; text-decoration: none; }
.vigil dd a:hover { text-decoration: underline; }

/* ---------- Szekciók ---------- */
.section { padding-block: var(--space); }
.section--stone { background: var(--meszko); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--pala); }

/* Lépések – valódi sorrend, ezért számozott */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: lepes;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: lepes; border-top: 1px solid var(--vonal); padding-top: 1.25rem; }
.steps li::before {
  content: counter(lepes);
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ciprus-3);
  margin-bottom: 0.75rem;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--pala); }
.after-steps { margin-top: 2.5rem; }

/* Temetési módok */
.ways {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .ways > * { padding-inline: 2rem; border-left: 1px solid var(--vonal); }
  .ways > *:first-child { padding-left: 0; border-left: 0; }
  .ways > *:last-child { padding-right: 0; }
}
.ways p { color: var(--pala); }
.ways a { font-weight: 700; }

/* Szolgáltatáslista */
.services {
  display: grid;
  gap: 0;
  margin: 0;
}
@media (min-width: 48rem) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
.services > div { border-top: 1px solid var(--vonal); padding-block: 1.25rem 1.5rem; }
.services dt { font-family: var(--display); font-size: 1.35rem; margin-bottom: 0.3rem; }
.services dd { margin: 0; color: var(--pala); }

/* Idézetes blokk */
.pledge {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 60rem) { .pledge { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }
.pledge blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--ciprus);
}
.pledge blockquote p { margin: 0; }
.pledge-text p { color: var(--pala); }

/* Kapcsolati sáv */
.contact-band { background: var(--ciprus); color: #fff; padding-block: var(--space); }
.contact-band h2 { color: #fff; }
.contact-band .lead { color: #dfe6e1; max-width: var(--measure); }
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid h3 { font-size: 1.25rem; color: var(--zuzmo); margin-bottom: 0.5rem; }
.contact-grid a { color: #fff; }
.contact-grid .night a { color: var(--meces-feny); font-family: var(--display); font-size: 1.75rem; text-decoration: none; }

/* ---------- Aloldalak ---------- */
.page-head {
  background: var(--meszko);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--vonal);
}
.page-head h1 { max-width: 20ch; margin-bottom: 0.4em; }
.page-head .lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--pala); max-width: var(--measure); margin: 0; }

.page-body {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.75rem, 6vw, 4.5rem) var(--space);
}
@media (min-width: 64rem) {
  .page-body { grid-template-columns: minmax(0, 1fr) 19rem; gap: 5rem; }
}
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--ciprus-3); }
.prose dd { margin: 0 0 0.8em; }
.prose .note {
  border-left: 3px solid var(--meces);
  background: var(--meszko);
  padding: 1rem 1.25rem;
  border-radius: 0 0.4rem 0.4rem 0;
}
.prose .note p:last-child { margin-bottom: 0; }

.prose section { scroll-margin-top: 6rem; }
.prose section + section { border-top: 1px solid var(--vonal); margin-top: 3rem; padding-top: 3rem; }
.prose section h2 { margin-top: 0; }

/* Oldalsó hívódoboz */
.aside-call {
  align-self: start;
  position: sticky;
  top: 6.5rem;
  background: var(--ciprus);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.aside-call .brand-mark { width: 1.9rem; height: 2.4rem; color: var(--zuzmo); margin-bottom: 1rem; }
.aside-call h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.4em; }
.aside-call p { color: #dfe6e1; font-size: 1rem; }
.aside-call dl { margin: 0; display: grid; gap: 0.8rem; }
.aside-call dt { font-size: 0.92rem; color: var(--zuzmo); }
.aside-call dd { margin: 0; }
.aside-call dd a { color: #fff; font-weight: 700; text-decoration: none; }
.aside-call dd a:hover { text-decoration: underline; }
.aside-call .night a { color: var(--meces-feny); font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
@media (max-width: 63.99rem) { .aside-call { position: static; } }

/* Telefonlista a kapcsolat oldalon */
.prose .phone-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.phone-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--vonal);
  padding-block: 0.75rem;
}
.phone-list li span { color: var(--pala); }
.phone-list a { font-weight: 700; text-decoration: none; color: var(--ciprus); }
.phone-list a:hover { text-decoration: underline; }

.doc-list { columns: 1; }

/* ---------- Lábléc ---------- */
.site-footer {
  background: var(--granit);
  color: #d5dbd7;
  padding-top: 3.5rem;
  font-size: 1rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; } }
.footer-title { font-family: var(--text); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.site-footer .plain li { margin-bottom: 0.35rem; }
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand-mark { color: #8f9b95; }
.brand--footer .brand-sub { color: #aab4af; }
.footer-bottom {
  border-top: 1px solid #353d41;
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  font-size: 0.92rem;
  color: #aab4af;
}
.footer-bottom p { margin: 0; }

/* ---------- Mobil hívósáv ---------- */
.call-bar { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: 4.25rem; }
  .call-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--ciprus);
    border-top: 1px solid var(--ciprus-3);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .call-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.02rem;
    line-height: 1.2;
  }
  .call-bar a span { font-family: var(--text); letter-spacing: 0; font-weight: 400; font-size: 0.82rem; color: var(--zuzmo); }
  .call-bar a + a { border-left: 1px solid var(--ciprus-3); }
  .call-bar-night { color: var(--meces-feny) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vigil-flame .flame-outer,
  .vigil-flame .flame-inner { animation: none; }
}

@media print {
  .site-header, .call-bar, .site-footer, .aside-call { display: none; }
  body { background: #fff; font-size: 11pt; }
}
