/* ═══════════════════════════════════════════════════════
   Kincses Zsák Kalóz – Elementor stílusok  v2.0
   Layout: Elementor oszlopok kezelik
   Ez a fájl csak a komponensek megjelenését adja
   ═══════════════════════════════════════════════════════ */

:root {
  --sand:      #F5EDD8;
  --sand-dark: #E8D9B8;
  --brown:     #5C3A1E;
  --brown-mid: #7A4F2E;
  --brown-lt:  #A0673A;
  --gold:      #C8941A;
  --gold-lt:   #E8B84B;
  --gold-dark: #8B6214;
  --teal:      #2A8C7A;
  --teal-lt:   #3DB89F;
  --red:       #C0392B;
  --cream:     #FBF5E6;
  --text-dark: #2C1A0E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--sand);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 80px; }

/* ════════════════════════════════════════
   NAV (shortcode: [ksz_menu])
   A nav SZEKCIÓ háttere/paddingje Elementorban állítható.
   ════════════════════════════════════════ */
.ksz-nav-section { z-index: 9999 !important; }
.ksz-nav-section.elementor-sticky--active { box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.ksz-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { font-size: 2rem; }
.nav-logo-stack { display: flex; flex-direction: column; }
.nav-logo-text {
  font-family: 'Fredoka One', cursive; font-size: 1.5rem; line-height: 1;
  color: var(--gold-lt); text-shadow: 2px 2px 0 var(--brown);
}
.nav-logo-text span { color: #fff; }
.nav-logo-sub { font-size: .62rem; color: var(--gold-lt); letter-spacing: .15em; text-transform: uppercase; }

.nav-links { display: flex; gap: 1.3rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--sand); text-decoration: none;
  padding: .35rem .8rem; border-radius: .4rem;
  transition: color .2s, background .2s; white-space: nowrap; display: block;
}
.nav-links a:hover { color: var(--gold-lt); background: rgba(255,255,255,.1); }
.nav-links li.nav-cta a,
.nav-links li:last-child a {
  background: var(--gold); color: var(--brown);
  border-radius: 3rem; padding: .45rem 1.2rem;
  box-shadow: 0 2px 10px rgba(200,148,26,.4);
}
.nav-links li.nav-cta a:hover,
.nav-links li:last-child a:hover { background: var(--gold-lt); color: var(--brown); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sand); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: rgba(44,26,14,.98); padding: 1rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--gold-dark);
  }
  .nav-links.open { display: flex; }
}

/* ════════════════════════════════════════
   HERO – dekorációk
   A hero SZEKCIÓ háttér színe Elementorban állítható.
   ════════════════════════════════════════ */
.ksz-hero-section { position: relative; overflow: hidden; }
.ksz-hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.compass { position: absolute; top: 2rem; right: 3rem; font-size: 8rem; opacity: .12; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashed-path { position: absolute; top: 3rem; left: 28%; right: 18%; height: 60px; opacity: .35; }

/* Fa táblák (Elementor Button widgetek, css class: wood-sign-btn) */
.wood-sign-btn { display: block; margin-bottom: 1.1rem; }
.wood-sign-btn .elementor-button {
  display: inline-flex !important; align-items: center; gap: .7rem;
  background: linear-gradient(135deg, #A0673A 0%, #7A4F2E 40%, #8B5E3C 60%, #6B4226 100%) !important;
  color: var(--sand) !important;
  font-family: 'Fredoka One', cursive !important;
  font-size: 1rem !important; letter-spacing: .06em;
  padding: .85rem 1.8rem !important;
  border-radius: .3rem !important;
  border: none !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 -2px 0 rgba(0,0,0,.2), 3px 4px 12px rgba(0,0,0,.35), 6px 6px 0 rgba(0,0,0,.12);
  position: relative;
  transform: perspective(600px) rotateY(-2deg);
  transition: transform .25s, box-shadow .25s;
}
.wood-sign-btn .elementor-button::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 60%; background: linear-gradient(90deg, #5C3317, #7A4F2E);
  border-radius: 2px 0 0 2px; box-shadow: -2px 0 6px rgba(0,0,0,.3);
}
.wood-sign-btn .elementor-button:hover {
  transform: perspective(600px) rotateY(0deg) translateX(6px);
}

/* Hero fő cím + accent */
.hero-title-heading .elementor-heading-title {
  font-weight: 900; line-height: 1.15;
}
.hero-accent-heading .elementor-heading-title {
  font-family: 'Pacifico', cursive;
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }

/* 3 ikonos sor (HTML widget) */
.how-icons { display: flex; gap: 1rem; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.how-icon-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; flex: 1; min-width: 90px; max-width: 140px; }
.how-icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
}
.how-icon-circle::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); }
.ic-skull  { background: radial-gradient(circle at 35% 35%, #4a4a4a, #1a1a1a); }
.ic-parrot { background: radial-gradient(circle at 35% 35%, #e05c2a, #c0392b); }
.ic-gift   { background: radial-gradient(circle at 35% 35%, #3DB89F, #2A8C7A); }
.how-icon-title { font-family: 'Fredoka One', cursive; font-size: .8rem; color: var(--gold); letter-spacing: .06em; text-align: center; line-height: 1.2; }
.how-icon-desc  { font-size: .72rem; font-weight: 700; color: var(--brown-mid); text-align: center; line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; }
.how-divider    { width: 1px; background: rgba(92,58,30,.2); align-self: stretch; }

/* CTA banner (Elementor Button, css class: cta-banner-btn) */
.cta-banner-btn .elementor-button {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark)) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  font-family: 'Fredoka One', cursive !important;
  font-size: 1.1rem !important; letter-spacing: .05em;
  padding: .9rem 2rem !important; border-radius: .5rem !important; border: none !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,.3);
  box-shadow: 0 4px 20px rgba(200,148,26,.4), inset 0 1px 0 rgba(255,255,255,.25);
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ════════════════════════════════════════
   STATISZTIKÁK
   A szekció háttere (barna) Elementorban állítható.
   A számok Heading widgetek (css class: stat-num) – szerkeszthetők.
   ════════════════════════════════════════ */
.stat-num .elementor-heading-title {
  font-family: 'Pacifico', cursive; color: var(--gold-lt);
  text-shadow: 2px 2px 0 var(--gold-dark); line-height: 1;
}
.stat-label .elementor-heading-title {
  font-family: 'Fredoka One', cursive; color: var(--sand);
  letter-spacing: .06em; text-transform: uppercase;
}

/* ════════════════════════════════════════
   SZEKCIÓ FEJLÉCEK
   Heading + Text widgetek – minden szerkeszthető Elementorban.
   A css class-ok csak dekorációt adnak (vonalak), nem színt/betűt.
   ════════════════════════════════════════ */
.ksz-eyebrow .elementor-heading-title {
  display: inline-flex; align-items: center; gap: .75rem; justify-content: center;
}
.ksz-eyebrow .elementor-heading-title::before,
.ksz-eyebrow .elementor-heading-title::after {
  content: ''; width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ksz-eyebrow .elementor-heading-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ksz-eyebrow-left .elementor-heading-title { justify-content: flex-start; }
.ksz-eyebrow-left .elementor-heading-title::before { display: none; }

/* ════════════════════════════════════════
   LÉPÉS KÁRTYÁK (Hogyan)
   Az oszlopok kártya-stílusa Elementorban állítható (háttér/keret/padding).
   A címek/szövegek Heading+Text widgetek – szerkeszthetők.
   ════════════════════════════════════════ */
.step-col { position: relative; }
.step-col::before {
  font-family: 'Pacifico', cursive; font-size: 3.5rem;
  color: rgba(200,148,26,.13); line-height: 1;
  position: absolute; top: .6rem; right: 1.2rem; z-index: 1;
}
.step-col.step-1::before { content: '1'; }
.step-col.step-2::before { content: '2'; }
.step-col.step-3::before { content: '3'; }
.step-emoji-html { font-size: 3rem; text-align: center; }

/* ════════════════════════════════════════
   ÁTVEVŐHELYEK (HTML widget)
   ════════════════════════════════════════ */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.loc-card {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(251,245,230,.9); border: 1.5px solid rgba(200,148,26,.2);
  border-radius: 1rem; padding: 1rem 1.2rem;
  box-shadow: 0 3px 12px rgba(92,58,30,.08);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.loc-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,148,26,.15); }
.loc-icon { width: 40px; height: 40px; border-radius: .7rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.li-library { background: #FEF6D8; } .li-public { background: #D8F4F2; }
.li-edu { background: #E8F4FF; } .li-health { background: #F0E8FF; } .li-store { background: #FDE8E0; }
.loc-name { font-weight: 800; font-size: .85rem; color: var(--brown); line-height: 1.3; }
.loc-type { font-size: .7rem; color: var(--brown-lt); margin-top: .1rem; font-weight: 600; }

/* ════════════════════════════════════════
   GALÉRIA (shortcode)
   ════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: .75rem; }
.gallery-item { border-radius: 1rem; overflow: hidden; border: 3px solid rgba(200,148,26,.25); box-shadow: 0 4px 16px rgba(92,58,30,.15); transition: transform .3s, box-shadow .3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(92,58,30,.25); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .4; }
.g1 { background: linear-gradient(135deg,#f9d4c4,#f0c080); } .g2 { background: linear-gradient(135deg,#d8f2e0,#b8e8d0); }
.g3 { background: linear-gradient(135deg,#d8eaf2,#b8d4e8); } .g4 { background: linear-gradient(135deg,#f2e0d8,#e8c8b8); }
.g5 { background: linear-gradient(135deg,#e8d8f2,#d0b8e8); }

/* ════════════════════════════════════════
   PARTNEREK (HTML widget)
   ════════════════════════════════════════ */
.partner-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.partner-badge {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(200,148,26,.4);
  border-radius: 3rem; padding: .65rem 1.8rem;
  font-family: 'Fredoka One', cursive; font-size: 1rem; color: var(--sand);
  transition: background .2s, border-color .2s;
}
.partner-badge:hover { background: rgba(200,148,26,.15); border-color: var(--gold-lt); }

/* ════════════════════════════════════════
   KAPCSOLAT (HTML widgetek)
   ════════════════════════════════════════ */
.contact-rows { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px; border-radius: .85rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(200,148,26,.3);
}
.contact-label { font-family: 'Fredoka One', cursive; font-size: .95rem; color: var(--brown); display: block; }
.contact-value { font-size: .875rem; color: var(--brown-mid); font-weight: 600; }

.contact-form-card {
  background: linear-gradient(160deg, var(--brown) 0%, var(--brown-mid) 100%);
  border-radius: 1.5rem; padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(92,58,30,.25); border: 2px solid rgba(200,148,26,.3);
  position: relative; overflow: hidden;
}
.contact-form-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(200,148,26,.08); }
.contact-form-card h3 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: var(--gold-lt); margin-bottom: 1.5rem; }
.form-group { margin-bottom: .9rem; }
.form-label { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: rgba(245,237,216,.5); margin-bottom: .4rem; }
.form-input, .form-textarea {
  width: 100%; padding: .8rem 1.1rem; background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(200,148,26,.25); border-radius: .75rem; color: var(--sand);
  font-family: 'Nunito', sans-serif; font-size: .9rem; outline: none; resize: none;
  transition: border-color .2s, background .2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(245,237,216,.3); }
.form-input:focus, .form-textarea:focus { border-color: var(--gold-lt); background: rgba(255,255,255,.11); }
.form-textarea { height: 100px; }
.form-btn {
  width: 100%; padding: .95rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark)); background-size: 200% 100%;
  color: #fff; border: none; border-radius: 3rem;
  font-family: 'Fredoka One', cursive; font-size: 1.05rem; letter-spacing: .04em; cursor: pointer; margin-top: .5rem;
  box-shadow: 0 4px 18px rgba(200,148,26,.35); transition: background-position .4s, transform .15s;
  text-shadow: 1px 1px 2px rgba(0,0,0,.2);
}
.form-btn:hover { background-position: right; transform: translateY(-2px); }
.form-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
#fb { display: none; padding: .7rem 1rem; border-radius: .6rem; font-weight: 700; font-size: .85rem; margin-bottom: .75rem; }
#fb.ok  { background: rgba(61,184,159,.2); color: #3DB89F; border: 1px solid rgba(61,184,159,.35); }
#fb.err { background: rgba(192,57,43,.2);  color: #e07060; border: 1px solid rgba(192,57,43,.35); }

/* ════════════════════════════════════════
   LÁBLÉC (HTML widget)
   ════════════════════════════════════════ */
.ksz-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; width: 100%; }
.footer-logo { font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: var(--gold-lt); }
.footer-email { font-size: .85rem; color: rgba(245,237,216,.6); }
.footer-copy { font-size: .8rem; color: rgba(245,237,216,.4); }
.social-links { display: flex; gap: .75rem; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(200,148,26,.15); border: 1px solid rgba(200,148,26,.3); display: flex; align-items: center; justify-content: center; color: var(--gold-lt); text-decoration: none; font-size: .85rem; transition: background .2s; }
.social-btn:hover { background: var(--gold); color: var(--brown); }

/* ════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════ */
.ksz-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.ksz-reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   RESZPONZÍV
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery-item:first-child { grid-row: auto; }
  .compass { font-size: 5rem; top: 1rem; right: 1rem; }
}
@media (max-width: 600px) {
  .loc-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .how-divider { display: none; }
}
