/* ===== Tündérek Kertje – stíluslap =====
   Színek a jurta belsejéből: piros tetőkarika, kék és sárga tetőrudak,
   krémszínű ponyva, és a szigetközi zöld. */
:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2b2420;
  --muted: #6b5f57;
  --red: #c8352b;
  --red-dark: #a3281f;
  --blue: #1f4e8c;
  --yellow: #f0b030;
  --green: #3f6e3b;
  --sage: #eaf0df;
  --line: #e6dccb;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(60, 40, 20, .25);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Comic Sans MS", cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.script { font-family: var(--script); }
.eyebrow { color: var(--red); font-size: 1.6rem; margin: 0 0 .1em; transform: rotate(-2deg); display: inline-block; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--red); color: #fff; text-decoration: none;
  font: 800 1rem/1 var(--sans); padding: 1em 1.6em; border-radius: 999px;
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--red-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
.btn-ghost { background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 2px #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); box-shadow: inset 0 0 0 2px #fff; }
.btn-small { padding: .7em 1.2em; font-size: .9rem; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(16px, 4vw, 48px);
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font: 700 1.25rem/1 var(--serif); }
.brand-text small { display: block; font: 600 1.05rem/1 var(--script); color: var(--red); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px;
  background: var(--yellow); border-radius: 3px; transition: right .2s;
}
.nav a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 3px; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px dashed var(--line); }
  .nav .btn { margin-top: .8rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Népi minta szalag (a hímzések és a jurta rácsfala nyomán) ---------- */
.folk-band {
  height: 26px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Crect width='52' height='26' fill='%23fbf6ec'/%3E%3Cpath d='M0 13 13 2l13 11-13 11z' fill='%23c8352b'/%3E%3Cpath d='M13 8l5 5-5 5-5-5z' fill='%23f0b030'/%3E%3Ccircle cx='39' cy='13' r='4' fill='%231f4e8c'/%3E%3Ccircle cx='39' cy='4' r='2' fill='%233f6e3b'/%3E%3Ccircle cx='39' cy='22' r='2' fill='%233f6e3b'/%3E%3C/svg%3E")
    repeat-x center / auto 100%;
}

/* Jurta-rácsfal háttérminta */
.lattice {
  background-color: var(--sage);
  background-image:
    repeating-linear-gradient(45deg, rgba(63,110,59,.07) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(-45deg, rgba(63,110,59,.07) 0 2px, transparent 2px 34px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(25,35,20,.78) 0%, rgba(25,35,20,.45) 50%, rgba(25,35,20,.05) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 4rem clamp(16px, 6vw, 80px) 5rem; max-width: 760px; }
.hero .eyebrow { color: var(--yellow); font-size: 2rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin-bottom: .35em; }
.hero h1 em { font-weight: 500; color: #ffe8b8; }
.hero .lead { font-size: 1.2rem; max-width: 36em; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero .folk-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }

/* ---------- Tények ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: -1px auto 0; padding: 2.5rem 16px;
  gap: 1rem; text-align: center;
}
.fact strong { display: block; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--serif); color: var(--blue); }
.fact:nth-child(2) strong { color: var(--red); }
.fact:nth-child(3) strong { color: var(--green); }
.fact:nth-child(4) strong { color: #b67f0c; }
.fact span { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; } }

/* ---------- Szekciók ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(16px, 5vw, 64px); }
.section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin-bottom: 2.8rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.framed { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
figcaption.script {
  position: absolute; left: 14px; bottom: 12px;
  background: var(--paper); color: var(--ink); font-size: 1.35rem; line-height: 1;
  padding: .35em .7em .45em; border-radius: 12px; transform: rotate(-2deg);
}

.split > * { margin-left: 0; margin-right: 0; min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: calc(1180px + 2 * clamp(16px, 5vw, 64px)); margin: 0 auto; }
.split.reverse .split-text { order: 2; }
.split-media.framed { aspect-ratio: 4/3; transform: rotate(1.2deg); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duo .framed { aspect-ratio: 3/4; }
.duo .framed:first-child { transform: translateY(-1.5rem) rotate(-1.5deg); }
.duo .framed:last-child { transform: translateY(1.5rem) rotate(1.5deg); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .duo .framed:first-child, .duo .framed:last-child { transform: none; }
}

.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: .3em .9em; font-weight: 700; font-size: .92rem;
}
.chips li:nth-child(4n+1) { border-color: var(--red); }
.chips li:nth-child(4n+2) { border-color: var(--blue); }
.chips li:nth-child(4n+3) { border-color: var(--green); }
.chips li:nth-child(4n+4) { border-color: var(--yellow); }

/* Tulipános elválasztó */
.divider { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; color: var(--red); padding: .5rem 0; }
.divider svg { width: 30px; height: 40px; }
.divider svg.big { width: 42px; height: 56px; color: var(--blue); }

/* ---------- Jurták ---------- */
.jurta-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "tall cards" "w1 w2";
}
.jurta-photo.tall { grid-area: tall; aspect-ratio: 3/4; }
.jurta-cards { grid-area: cards; display: grid; gap: 1.2rem; align-content: center; }
.jurta-photo.wide { aspect-ratio: 4/3; }
.jurta-photo.wide:nth-of-type(2) { grid-area: w1; }
.jurta-photo.wide:nth-of-type(3) { grid-area: w2; }
@media (max-width: 860px) {
  .jurta-grid { grid-template-columns: 1fr; grid-template-areas: "tall" "cards" "w1" "w2"; }
}
.card {
  background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.jurta-cards .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; }
.card-icon { width: 46px; height: 46px; grid-row: span 2; color: var(--red); }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Programok ---------- */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }
.program {
  background: var(--paper); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid var(--line); border-top: 6px solid var(--accent);
  box-shadow: var(--shadow); transition: transform .2s;
}
.program:hover { transform: translateY(-4px) rotate(-.5deg); }
.program-emoji {
  display: grid; place-items: center; width: 58px; height: 58px; font-size: 1.8rem;
  border-radius: 50%; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 16%, white);
}
.program p { color: var(--muted); margin: 0; }
.program-banner { margin: 2rem auto 0; aspect-ratio: 21/8; }
.program-banner img { object-position: center 55%; }
@media (max-width: 700px) { .program-banner { aspect-ratio: 4/3; } }

/* ---------- Ellátás sáv ---------- */
.band { background: var(--blue); color: #fff; position: relative; }
.band .eyebrow { color: var(--yellow); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { padding: .55rem 0 .55rem 2.2rem; position: relative; border-bottom: 1px dashed rgba(255,255,255,.25); font-size: 1.08rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 18px;
  background: var(--yellow); transform: rotate(45deg); border-radius: 3px;
  box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 9px var(--red);
}

/* ---------- Galéria ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; grid-auto-flow: dense;
}
.g-item { padding: 0; border: 0; cursor: zoom-in; border-radius: 16px; overflow: hidden; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 16, 12, .9); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox button {
  position: fixed; background: var(--paper); color: var(--ink); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 1.5rem 0; }
.contact-list dt { font-weight: 800; color: var(--green); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.map { aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form { display: grid; gap: 1rem; }
.contact-form h3 { font-size: 1.6rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .92rem; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .7em .9em; border: 2px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form input.invalid { border-color: var(--red); }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.checks legend { font-weight: 700; font-size: .92rem; margin-bottom: .4rem; padding: 0; }
.checks label { display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.checks input { accent-color: var(--red); width: 18px; height: 18px; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--green); font-weight: 700; min-height: 1.4em; }
.form-note.err { color: var(--red); }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--ink); color: #e9e0d2; }
.footer-inner { padding: 2.5rem 16px; text-align: center; display: grid; justify-items: center; gap: .3rem; }
.site-footer .brand { color: #fff; margin-bottom: .6rem; }
.site-footer a { color: var(--yellow); }
.site-footer .small { font-size: .85rem; opacity: .7; }

/* Megjelenési animáció */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
