/* Hajnal Szépségszalon – stíluslap (ASIG Webstúdió, egyedi megjelenés)
   Koncepció: nőies, nyugodt „boutique” – púder, krém, szilva és egy kis arany; vékony címsorok dőlt
   talpas kiemeléssel, középre zárt elrendezés, árlista-szerű szolgáltatáslista, szögletes keretes gombok. */

:root {
  color-scheme: light dark;
  --hatter: #fbf6f3;
  --felulet: #fffdfb;
  --puder: #f3e3df;
  --puder-eros: #e8c9c6;
  --szilva: #3b2a2f;
  --halk: #6e5a60;
  --rozsa: #9a4f5c;        /* szövegben AA a krém háttéren */
  --rozsa-vilagos: #c98c95;
  --arany: #b38b4d;
  --vonal: #ead8d3;
  --betu: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --dolt: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, ui-serif, serif;
  --szelesseg: 1120px;
  --fejlec: 92px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hatter: #1c1416;
    --felulet: #251b1e;
    --puder: #2c2023;
    --puder-eros: #3a2a2f;
    --szilva: #f3e6e4;
    --halk: #c9b4b8;
    --rozsa: #e3a9b0;
    --rozsa-vilagos: #e3a9b0;
    --arany: #d4b07a;
    --vonal: #3d2d32;
  }
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; font-family: var(--betu); font-weight: 400;
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.7;
  color: var(--szilva); background: var(--hatter);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rozsa); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--szilva); }
:focus-visible { outline: 2px solid var(--rozsa); outline-offset: 4px; }
h1, h2, h3 { font-weight: 300; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 400; }
h1 em, h2 em { font-family: var(--dolt); font-style: italic; font-weight: 400; color: var(--rozsa); }
p { margin: 0 0 1em; text-wrap: pretty; }
.szelesseg { width: min(100% - 32px, var(--szelesseg)); margin-inline: auto; }
.szelesseg-keskeny { max-width: 760px; }
.kozep { text-align: center; }
.apro { font-size: .875rem; color: var(--halk); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ikon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.cimke { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--arany); margin-bottom: 1.2em; }

.ugrolink { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--szilva); color: var(--hatter); }
.ugrolink:focus { top: 12px; }
.bemutato-sav { margin: 0; padding: 6px 16px; text-align: center; font-size: .85rem; background: var(--szilva); color: var(--hatter); }

/* ---------- Gombok, linkek ---------- */
.gombok { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.gomb {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid var(--szilva); border-radius: 2px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--szilva); text-decoration: none; background: transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.gomb:hover { background: var(--szilva); color: var(--hatter); }
.gomb-teli { background: var(--rozsa); border-color: var(--rozsa); color: #fff; }
.gomb-teli:hover { background: var(--szilva); border-color: var(--szilva); color: var(--hatter); }
@media (prefers-color-scheme: dark) {
  .gomb-teli { color: #1c1416; }
}
.szoveg-link {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--szilva); text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--arany), var(--arany)) left bottom / 100% 1px no-repeat;
  transition: background-size .35s ease;
}
.szoveg-link:hover { background-size: 40% 1px; color: var(--rozsa); }

/* ---------- Felső sáv és fejléc ---------- */
.felso-sav { border-bottom: 1px solid var(--vonal); font-size: .82rem; color: var(--halk); }
.felso-sav-sor { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.felso-sav span, .felso-sav a { display: inline-flex; gap: 8px; align-items: center; }
.felso-sav a { color: var(--szilva); text-decoration: none; }
.felso-sav .ikon { color: var(--arany); }
.fejlec { background: var(--hatter); border-bottom: 1px solid var(--vonal); }
.fejlec-racs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--fejlec); }
.menu { display: contents; }
.menu ul { display: flex; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.menu-bal { grid-column: 1; justify-content: flex-end; padding-right: clamp(20px, 4vw, 56px) !important; }
.menu-jobb { grid-column: 3; padding-left: clamp(20px, 4vw, 56px) !important; }
.menu a {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--szilva);
  text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--rozsa), var(--rozsa)) center bottom / 0 1px no-repeat; transition: background-size .3s ease;
}
.menu a:hover, .menu a[aria-current="page"] { background-size: 100% 1px; }
.cimer { grid-column: 2; grid-row: 1; display: grid; justify-items: center; text-decoration: none; color: var(--szilva); padding: 12px 0; }
.cimer img { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 6px; }
.cimer-nev { font-family: var(--dolt); font-style: italic; font-size: 1.6rem; line-height: 1; }
.cimer-alcim { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--halk); margin-top: 4px; }
.menu-kapcsolo { display: none; }

@media (max-width: 860px) {
  .fejlec-racs { grid-template-columns: 1fr auto; min-height: 72px; }
  .cimer { grid-column: 1; justify-items: start; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
  .cimer img { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .cimer-nev { font-size: 1.35rem; }
  .menu-kapcsolo {
    grid-column: 2; display: grid; place-items: center; width: 48px; height: 48px;
    border: 1px solid var(--vonal); border-radius: 50%; background: var(--felulet); color: var(--szilva); cursor: pointer;
  }
  .menu-vonalak, .menu-vonalak::before, .menu-vonalak::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s ease, background-color .3s ease; }
  .menu-vonalak::before, .menu-vonalak::after { content: ""; position: absolute; left: 0; }
  .menu-vonalak::before { top: -6px; }
  .menu-vonalak::after { top: 6px; }
  .menu-kapcsolo[aria-expanded="true"] .menu-vonalak { background: transparent; }
  .menu-kapcsolo[aria-expanded="true"] .menu-vonalak::before { transform: translateY(6px) rotate(45deg); }
  .menu-kapcsolo[aria-expanded="true"] .menu-vonalak::after { transform: translateY(-6px) rotate(-45deg); }
  .menu { display: block; grid-column: 1 / -1; grid-row: 2; padding: 8px 0 20px; }
  .menu ul { flex-direction: column; gap: 0; padding: 0 !important; }
  .menu a { display: block; padding: 14px 0; font-size: .9rem; border-bottom: 1px solid var(--vonal); background: none; }
  .menu a[aria-current="page"] { color: var(--rozsa); }
}
@media (max-width: 860px) and (scripting: enabled) {
  .menu:not(.nyitva) { display: none; }
}

/* ---------- Nyitó blokk ---------- */
.nyito { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); overflow: clip; text-align: center; }
.nyito::before, .nyito::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
}
.nyito::before { width: min(70vw, 760px); aspect-ratio: 1; left: 50%; top: -38%; translate: -50% 0;
  background: radial-gradient(closest-side, var(--puder), transparent); }
.nyito::after { width: 180px; aspect-ratio: 1; right: 3%; top: 44%; border: 1px solid var(--arany); opacity: .5; }
.nyito h1 { margin-bottom: 24px; }
.nyito-szoveg { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--halk); max-width: 34em; margin: 0 auto 34px; }
.kor-kep { margin: clamp(48px, 7vw, 80px) auto 0; width: min(380px, 78vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 10px var(--hatter), 0 0 0 11px var(--arany); }
.kor-kep img { width: 100%; height: 100%; object-fit: cover; }
.kor-kep-kicsi { width: min(320px, 70vw); margin: 0 auto; }

/* ---------- Blokkok ---------- */
.blokk { padding: clamp(64px, 9vw, 120px) 0; }
.blokk-szoros { padding: clamp(32px, 5vw, 64px) 0; }
.blokk-puder { background: var(--puder); }
.blokk-fej { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.blokk-fej h2 { margin: 0; }

/* Árlista-szerű kínálat */
.kinalat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); margin-bottom: 40px; }
.kinalat-csoport h3 { text-align: center; }
.kinalat ul { list-style: none; margin: 0; padding: 0; }
.kinalat li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--vonal); }
.kinalat li:first-child { border-top: 1px solid var(--vonal); }
.kinalat-nev { font-size: 1.15rem; display: flex; align-items: baseline; gap: 12px; }
.kinalat-nev::after { content: ""; flex: 1; border-bottom: 1px dotted var(--arany); transform: translateY(-4px); }
.kinalat-leiras { font-size: .95rem; color: var(--halk); }

/* Idézet és tények */
.idezet { margin: 8px auto 40px; max-width: 30em; }
.idezet p { font-family: var(--dolt); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.4; color: var(--szilva); margin: 0; }
.idezet p::before { content: "„"; color: var(--rozsa); }
.idezet p::after { content: "”"; color: var(--rozsa); }
.idezet-balra { margin: 24px 0; padding-left: 22px; border-left: 1px solid var(--arany); }
.tenyek { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(24px, 6vw, 80px); margin: 0 0 40px; }
.tenyek > div { display: flex; flex-direction: column-reverse; align-items: center; }
.tenyek dd { margin: 0; font-family: var(--dolt); font-style: italic; font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--rozsa); }
.tenyek dt { margin-top: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--halk); }

/* Nyitvatartás + időpontkérés */
.idopont { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--vonal); background: var(--felulet); }
.idopont > div { padding: clamp(28px, 5vw, 56px); }
.idopont-ido { border-right: 1px solid var(--vonal); }
.idopont-ido h2 { font-size: .75rem; }
.idopont dl { margin: 0; }
.idopont dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--vonal); }
.idopont dd { margin: 0; font-variant-numeric: tabular-nums; }
.idopont .zarva { color: var(--halk); }
.nyitva-most { font-family: var(--dolt); font-style: italic; font-size: 1.3rem; color: var(--rozsa); min-height: 1.6em; }
.idopont-hivas { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--puder); }
.idopont-hivas h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.idopont-hivas .gomb { margin: 8px 0 16px; }

/* Hírek */
.hir { padding: 28px 0; border-bottom: 1px solid var(--vonal); position: relative; }
.hir:first-of-type { border-top: 1px solid var(--vonal); }
.hir h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: .3em; }
.hir h3 a { color: var(--szilva); text-decoration: none; }
.hir h3 a::after { content: ""; position: absolute; inset: 0; }
.hir:hover h3 a { color: var(--rozsa); }
.hir p:last-child { margin: 0; color: var(--halk); }
.hir-adat { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--halk); margin-bottom: 8px; }
.hir-adat span { color: var(--arany); font-weight: 600; }
.lapozo { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.lapozo a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--vonal); text-decoration: none; color: var(--szilva); }
.lapozo a[aria-current] { background: var(--szilva); color: var(--hatter); }

/* Aloldalak */
.lapfej { padding: clamp(56px, 8vw, 104px) 0 clamp(16px, 3vw, 32px); }
.lapfej-szoveg { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--halk); }
.lapfej-404 { padding-bottom: clamp(64px, 9vw, 120px); }
.gombok-kozep { margin-top: 28px; }
.disz { display: block; width: 64px; height: 1px; margin: 28px auto 0; background: var(--arany); }
.ketfele { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.folyoszoveg .nagy { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); }
.folyoszoveg h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1.6em; }
.folyoszoveg h2:first-child { margin-top: 0; }
.adatok { margin: 0 0 32px; border-top: 1px solid var(--vonal); }
.adatok > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--vonal); }
.adatok dt { color: var(--halk); }
.adatok dd { margin: 0; }
.adatok .hianyzik dd { color: var(--halk); font-style: italic; }
.elerhetoseg-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--vonal); }
.elerhetoseg-lista li { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 36px 20px; }
.elerhetoseg-lista li + li { border-left: 1px solid var(--vonal); }
.elerhetoseg-lista .ikon { width: 28px; height: 28px; color: var(--arany); }
.elerhetoseg-lista .cimke { margin: 6px 0 0; }
.elerhetoseg-lista a { color: var(--szilva); font-size: 1.1rem; overflow-wrap: anywhere; }
.attachments ul { list-style: none; padding: 0; }
.attachments a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--vonal); }

/* Lábléc */
.lablec { border-top: 1px solid var(--vonal); padding: clamp(48px, 7vw, 80px) 0 24px; text-align: center; }
.lablec-belso { display: grid; justify-items: center; gap: 20px; }
.cimer-lablec { padding: 0; }
.lablec-cim { font-style: normal; color: var(--halk); line-height: 1.8; }
.lablec-cim a { color: var(--szilva); }
.kozossegi { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--vonal); border-radius: 50%; color: var(--szilva); }
.lablec-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.lablec-menu a { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--szilva); text-decoration: none; }
.lablec-also { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid var(--vonal);
  width: 100%; font-size: .82rem; color: var(--halk); }
.lablec-also a { color: var(--halk); }
.hivo-gomb { display: none; }

/* ---------- Mozgás: csak lágy áttűnés ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  @supports (animation-timeline: view()) {
    .atunes { animation: atunes linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .nyito-belso > * { animation: atunes 1.1s ease both; }
  .nyito-belso > :nth-child(2) { animation-delay: .1s; }
  .nyito-belso > :nth-child(3) { animation-delay: .2s; }
  .nyito-belso > :nth-child(4) { animation-delay: .3s; }
  .nyito-belso > :nth-child(5) { animation-delay: .45s; }
}
@keyframes atunes { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Kisebb képernyők ---------- */
@media (max-width: 860px) {
  .idopont { grid-template-columns: 1fr; }
  .idopont-ido { border-right: 0; border-bottom: 1px solid var(--vonal); }
  .ketfele { grid-template-columns: 1fr; }
  .elerhetoseg-lista { grid-template-columns: 1fr; }
  .elerhetoseg-lista li + li { border-left: 0; border-top: 1px solid var(--vonal); }
  .nyito::after { display: none; }
}
@media (max-width: 600px) {
  .felso-sav span { display: none; }
  .felso-sav-sor { justify-content: center; }
  .gombok .gomb { flex: 1 1 100%; }
  .adatok > div { grid-template-columns: 1fr; gap: 2px; }
  .hivo-gomb {
    display: grid; place-items: center; position: fixed; right: 18px; bottom: 18px; z-index: 40;
    width: 60px; height: 60px; border-radius: 50%; background: var(--rozsa); color: #fff;
    box-shadow: 0 10px 28px -8px rgb(59 42 47 / .55);
  }
  .hivo-gomb .ikon { width: 26px; height: 26px; }
  .lablec { padding-bottom: 96px; }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  .hivo-gomb { color: #1c1416; }
}
@media print {
  .felso-sav, .hivo-gomb, .bemutato-sav, .menu-kapcsolo { display: none; }
}

/* Időszakos közlemény (a mag kozlemeny_sav() függvénye írja ki) */
.kozlemeny { background: #3b2a2f; color: #fff; }
.kozlemeny p { max-width: 70rem; margin: 0 auto; padding: .7rem 1.25rem; text-align: center; font-weight: 600; }
