/* =========================================================
   Budavári Egyesület — közös stíluslap
   Minimalista, de játékos "scrapbook" hangulat
   ========================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito:wght@400;500;600;700&family=Caveat:wght@500;600;700&display=swap');

/* ---- Színpaletta & alapváltozók ---- */
:root {
  --paper:      #f8f2e7;   /* meleg papír háttér */
  --paper-deep: #f0e7d6;   /* mélyebb papír árnyalat */
  --ink:        #36302a;   /* fő szövegszín */
  --ink-soft:   #6b6157;   /* halványabb szöveg */
  --clay:       #c46a44;   /* terrakotta / kerámia */
  --clay-deep:  #a9532f;
  --sage:       #84976f;   /* zsálya zöld */
  --sage-deep:  #5f7350;
  --sky:        #6f93ac;   /* DiscoverEU kék */
  --sky-deep:   #4f7187;
  --ochre:      #e0a13f;   /* mustár akcent (washi-tape) */
  --cream-card: #fffdf8;   /* kártya háttér */
  --line:       #d9cdb8;

  --shadow-soft: 0 10px 30px rgba(54, 48, 42, 0.10);
  --shadow-card: 0 14px 34px rgba(54, 48, 42, 0.14);
  --radius:      18px;

  --maxw: 1120px;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-head: 'Fraunces', Georgia, serif;
  --font-hand: 'Caveat', cursive;
}

/* ---- Reset / alapok ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--paper);
  /* finom papírtextúra pöttyökkel */
  background-image:
    radial-gradient(rgba(120, 100, 70, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(120, 100, 70, 0.04) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clay-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.5em;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--clay);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 0.2em;
}

/* ---- Navigáció ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 242, 231, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 42px; height: 42px;
  flex: 0 0 auto;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 520px) { .brand-logo { height: 46px; } }
.brand-text { line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.12rem;
  display: block;
  font-weight: 600;
}
.brand-text span {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--clay);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--paper-deep); }
.nav-links a.cta {
  background: var(--clay);
  color: #fff;
}
.nav-links a.cta:hover { background: var(--clay-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---- Gombok ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-deep); color:#fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); color:#fff; }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-deep); color:#fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- Szekciók ---- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.section-head p { font-size: 1.08rem; color: var(--ink-soft); }

.bg-paper-deep { background: var(--paper-deep); }
.bg-sage-tint  { background: #eef0e6; }
.bg-sky-tint   { background: #e7eef2; }
.bg-clay-tint  { background: #f6e7dd; }

/* ---- Hero ---- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.3em;
}
.hero .lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.6em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  min-height: 340px;
}

/* scrapbook fotó-keret (polaroid) */
.photo {
  background: var(--cream-card);
  padding: 12px 12px 44px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.photo .photo-inner {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.photo .photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo .caption {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
}

/* washi-tape elem */
.tape {
  position: absolute;
  width: 116px; height: 30px;
  background: rgba(224, 161, 63, 0.62);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tape::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.18) 0 8px, transparent 8px 16px);
}
.tape-sage { background: rgba(132, 151, 111, 0.6); }
.tape-clay { background: rgba(196, 106, 68, 0.55); }
.tape-sky  { background: rgba(111, 147, 172, 0.55); }

/* ---- Kártyák ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--cream-card);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  position: relative;
}
.card h3 { font-size: 1.45rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .icon { margin-bottom: 14px; }

/* program-kártya nagyobb, kép tetején */
.program-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(54,48,42,0.18); }
.program-card .pc-art {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.program-card .pc-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program-card .pc-body { padding: 26px 28px 30px; flex: 1; display:flex; flex-direction:column; }
.program-card h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.program-card p { color: var(--ink-soft); flex: 1; }
.pc-tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 2px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* ---- Történet / kéthasábos blokk ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.prose p { font-size: 1.06rem; margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* "tűzött" lista (scrapbook pipák) */
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  background: var(--sage);
  border-radius: 8px 8px 8px 2px;
  transform: rotate(-6deg);
}
.list-check li::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* ---- Stat / számok ---- */
.stats { display: flex; flex-wrap: wrap; gap: 34px; }
.stat { }
.stat .num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--clay);
  line-height: 1;
}
.stat .lbl { color: var(--ink-soft); font-weight: 600; }

/* ---- Idézet / küldetés ---- */
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote .mark { color: var(--clay); }

/* ---- Kapcsolat ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.contact-card a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .small { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- Galéria (ömlesztett / masonry, feliratok nélkül) ---- */
.gallery {
  column-count: 4;
  column-gap: 14px;
}
.gallery img {
  width: 100%;
  margin: 0 0 14px;
  display: block;
  border-radius: 8px;
  border: 5px solid var(--cream-card);
  box-shadow: var(--shadow-soft);
  break-inside: avoid;
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-card); }
@media (max-width: 980px) { .gallery { column-count: 3; } }
@media (max-width: 640px) { .gallery { column-count: 2; } }
@media (max-width: 380px) { .gallery { column-count: 1; } }

/* ---- Térkép ---- */
.map-wrap {
  margin-top: 44px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(-0.6deg);
}
.map-wrap .tape { top: -14px; left: 46%; transform: rotate(-4deg); }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(1.02); }
.map-caption {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin: 12px 0 2px;
}
.map-caption a { color: var(--clay-deep); }
@media (max-width: 600px){ .map-frame { aspect-ratio: 4 / 3; } }

/* ---- Lábléc ---- */
.footer {
  background: var(--ink);
  color: #e9e0d4;
  padding: 56px 0 30px;
}
.footer a { color: #f0c79a; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer h4 { color: #fff; font-family: var(--font-head); margin-bottom: 0.6em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer .muted { color: #b6a994; font-size: 0.92rem; }
.footer-support {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 26px;
}
.footer-support .lbl { font-size: 0.9rem; color: #b6a994; }
.footer-support img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 7px 11px;
  border-radius: 9px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 0.88rem;
  color: #b6a994;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Aloldal fejléc (page hero) ---- */
.page-hero { padding: 64px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }
.breadcrumb {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--clay);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--clay); text-decoration: none; }

/* finom megjelenő animáció */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Reszponzív ---- */
@media (max-width: 880px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute;
    top: 100%; right: 16px; left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-block; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; text-align: center; }
}
