/* Nia Fejlesztő Játékbolt, koncepció-minta.
   Koncepció: "Építőelemek". Minden szekció egy kocka-csempe a fa-bézs asztalon. */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo2-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo2-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunitosans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunitosans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --beige: #EFE6D8;
  --beige-light: #F7F1E7;
  --tile: #E4DACA;
  --t1: #E4DACA;
  --t2: #EBDFC6;
  --t3: #DCE4E1;
  --t4: #EDDCD2;
  --ink: #2E2A26;
  --ink-soft: #4A423A;
  --ink-mute: #5A5048;
  --petrol: #3E6F73;
  --petrol-deep: #345C60;
  --mustard: #D9A441;
  --terracotta: #A8512F;
  --terracotta-light: #B65C3F;
  --cream: #FDF8F0;
  --line: #D8CCB8;
  --radius: 10px;
  --pad: clamp(16px, 4vw, 40px);
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- demó-sáv és fejléc ---------- */

.demobar {
  margin: 0;
  background: var(--ink);
  color: var(--beige);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px var(--pad);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px var(--pad);
  border-bottom: 2px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark svg { display: block; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: 0.01em; }
.brand-text i { font-style: normal; font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-mute); }

.topbar-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.topbar-hours { margin: 0; font-size: 13.5px; color: var(--ink-mute); }
.topbar-tel {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  color: var(--petrol-deep);
}
.topbar-tel:hover, .topbar-tel:focus-visible { text-decoration: underline; }

/* ---------- kocka-hero ---------- */

.hero {
  padding: clamp(30px, 6vw, 62px) var(--pad) clamp(26px, 5vw, 54px);
  max-width: 1180px;
  margin: 0 auto;
}

.cubeword { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.cw-row { display: flex; flex-wrap: wrap; gap: 8px; }

.cube {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  background: var(--t1);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 rgba(46, 42, 38, 0.09);
  animation: drop 130ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
  animation-delay: calc(var(--i) * 8ms);
}
.cube.t1 { background: var(--t1); }
.cube.t2 { background: var(--t2); }
.cube.t3 { background: var(--t3); }
.cube.t4 { background: var(--t4); }
.cube-petrol { background: var(--petrol); color: var(--cream); }
.cube-mustard { background: var(--mustard); color: var(--ink); }
.cube-terra { background: var(--terracotta); color: #FFFFFF; }

.cw-row-big .cube {
  width: clamp(74px, 21vw, 152px);
  height: clamp(74px, 21vw, 152px);
  font-size: clamp(44px, 12.5vw, 92px);
  border-radius: 16px;
}
.cw-row-small .cube {
  width: clamp(30px, 8.3vw, 66px);
  height: clamp(30px, 8.3vw, 66px);
  font-size: clamp(17px, 4.6vw, 37px);
}
.cw-row-small { gap: 6px; }

@keyframes drop {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.factrow {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.factrow li {
  background: var(--beige-light);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 13px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.factrow b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  margin-right: 5px;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

@media (min-width: 1080px) {
  .hero {
    display: grid;
    grid-template-columns: auto minmax(230px, 1fr);
    grid-template-areas: "word facts" "lead lead" "act act";
    column-gap: 48px;
    align-items: end;
  }
  .cubeword { grid-area: word; margin-bottom: 0; }
  .factrow { grid-area: facts; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
  .factrow li { width: 100%; max-width: 300px; padding: 11px 16px; }
  .hero-lead { grid-area: lead; margin-top: 30px; }
  .hero-actions { grid-area: act; }
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--petrol-deep);
  transition: background-color 140ms ease, color 140ms ease;
}
.btn-solid { background: var(--petrol-deep); color: var(--cream); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--petrol-deep); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--tile); }

/* ---------- részleg-mozaik ---------- */

.section-title {
  font-size: clamp(26px, 4.4vw, 40px);
  max-width: 16em;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.mosaic {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad);
  border-top: 2px solid var(--line);
}

.mgrid { display: grid; gap: 12px; }

.tile {
  background: var(--beige-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile-body { padding: clamp(18px, 2.6vw, 28px); }
.tile-kicker {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  margin: 0 0 6px;
  opacity: 0.72;
}
.tile h3 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 10px; }
.tile p:last-child { margin-bottom: 0; }
.tile-photo { overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-note {
  margin-top: 14px;
  font-size: 14px;
  border-top: 2px solid rgba(253, 248, 240, 0.32);
  padding-top: 10px;
}
.tile-actions { margin-top: 14px; }
.linkline {
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  padding-bottom: 1px;
}
.linkline:hover, .linkline:focus-visible { opacity: 0.75; }

.tile-a { background: var(--petrol); color: var(--cream); }
.tile-a .tile-photo { flex: 1 1 auto; min-height: 190px; }
.tile-a a { color: var(--cream); }

.tile-b { background: var(--mustard); color: var(--ink); position: relative; }
.tile-b .tile-body { position: relative; z-index: 1; }
.tile-blocks {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 6px;
  padding: 0 clamp(18px, 2.6vw, 28px) clamp(18px, 2.6vw, 28px);
  margin-top: auto;
}
.tile-blocks span {
  height: 34px;
  border-radius: 7px;
  background: rgba(46, 42, 38, 0.13);
}
.tile-blocks span:nth-child(2) { background: rgba(46, 42, 38, 0.28); }
.tile-blocks span:nth-child(4) { background: rgba(46, 42, 38, 0.06); }
.tile-blocks span:nth-child(6) { background: rgba(46, 42, 38, 0.22); }

.tile-c { background: var(--tile); color: var(--ink); }
.tile-c .tile-photo { flex: 0 0 auto; max-height: 230px; }

.tile-d { background: var(--terracotta); color: #FFFFFF; }
.tile-d a { color: #FFFFFF; }
.tile-d .tile-photo { min-height: 200px; }

@media (min-width: 720px) {
  .mgrid { grid-template-columns: repeat(6, 1fr); }
  .tile-a { grid-column: 1 / 4; grid-row: 1 / 3; }
  .tile-b { grid-column: 4 / 7; grid-row: 1; }
  .tile-c { grid-column: 4 / 7; grid-row: 2; flex-direction: row-reverse; }
  .tile-c .tile-photo { flex: 0 0 40%; max-height: none; }
  .tile-c .tile-body { flex: 1 1 auto; }
  .tile-d { grid-column: 1 / 7; grid-row: 3; flex-direction: row; }
  .tile-d .tile-body { flex: 1 1 58%; }
  .tile-d .tile-photo { flex: 1 1 42%; }
}

@media (min-width: 1000px) {
  .tile-a .tile-photo { min-height: 300px; }
}

/* ---------- 2009 óta ---------- */

.story {
  background: var(--ink);
  color: var(--beige);
  padding: clamp(34px, 6vw, 72px) var(--pad);
}
.story > *, .story-cols { max-width: 1100px; margin-left: auto; margin-right: auto; }
.story-year {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(58px, 15vw, 132px);
  line-height: 0.86;
  color: var(--mustard);
  margin: 0 auto 6px;
  letter-spacing: -0.02em;
}
.story h2 {
  font-size: clamp(28px, 5.6vw, 54px);
  max-width: 14em;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.story-cols { display: grid; gap: 18px; }
.story-cols p { margin: 0; color: #E7DDCC; }
.story-social {
  border-left: 4px solid var(--petrol);
  padding-left: 14px;
  font-size: 15px;
}
@media (min-width: 820px) {
  .story-cols { grid-template-columns: 1fr 1fr; gap: 26px 40px; }
  .story-social { grid-column: 1 / -1; }
}

/* ---------- miért fejlesztő ---------- */

.why {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 68px) var(--pad);
}
.why h2 { font-size: clamp(26px, 4.4vw, 40px); margin-bottom: 20px; }
.why-body { display: grid; gap: 16px; }
.why-body p { margin: 0; color: var(--ink-soft); font-size: clamp(16.5px, 1.9vw, 19px); }
@media (min-width: 900px) {
  .why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: start; }
  .why h2 { margin-bottom: 0; }
  .why-body p:first-child {
    font-family: var(--display);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.35;
    color: var(--ink);
  }
}

/* ---------- látogatás ---------- */

.visit {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--pad) clamp(36px, 6vw, 70px);
  border-top: 2px solid var(--line);
}

.visit-grid { display: grid; gap: 12px; }

.vcard {
  background: var(--beige-light);
  border-radius: 14px;
  padding: clamp(18px, 2.6vw, 26px);
}
.vcard-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.vcard-label-second { margin-top: 18px; }
.vcard-address {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.16;
  margin-bottom: 16px;
}
.maplink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--tile);
  border-radius: var(--radius);
  padding: 10px 16px 10px 10px;
}
.maplink:hover, .maplink:focus-visible { background: var(--line); }
.maplink-mark svg { display: block; }

.hours { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; font-family: var(--display); font-weight: 600; font-size: 17px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed th, .hours .closed td { color: var(--ink-mute); }

.hours-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.vcard-tel { background: var(--tile); }
.vcard-tels { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.vcard-tels a, .vcard-mail a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 23px);
  text-decoration: none;
  color: var(--petrol-deep);
  word-break: break-word;
}
.vcard-mail a { font-size: clamp(15px, 2vw, 18px); }
.vcard-tels a:hover, .vcard-mail a:hover,
.vcard-tels a:focus-visible, .vcard-mail a:focus-visible { text-decoration: underline; }
.vcard-mail { margin-bottom: 16px; }
.vcard-fine { font-size: 14px; color: var(--ink-soft); margin-bottom: 5px; }
.vcard-fine:last-child { margin-bottom: 0; }

.vcard-photo { padding: 0; overflow: hidden; background: var(--tile); }
.vcard-photo img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; }
.vcard-caption {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  padding: 12px clamp(18px, 2.6vw, 26px) 16px;
}

@media (min-width: 760px) {
  .visit-grid { grid-template-columns: repeat(6, 1fr); }
  .vcard-map { grid-column: 1 / 4; }
  .vcard-hours { grid-column: 4 / 7; grid-row: 1 / 3; }
  .vcard-tel { grid-column: 1 / 4; }
  .vcard-photo { grid-column: 1 / 7; }
}

/* ---------- lábléc ---------- */

.foot {
  background: var(--ink);
  color: var(--beige);
  padding: clamp(30px, 5vw, 52px) var(--pad);
}
.foot > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0 0 2px; }
.foot-addr { margin: 0 0 14px; color: #D9CDB9; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; }
.foot-links a, .foot-social a { color: var(--mustard); text-decoration: none; }
.foot-links a:hover, .foot-social a:hover,
.foot-links a:focus-visible, .foot-social a:focus-visible { text-decoration: underline; }
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 22px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social-mark svg { display: block; }
.foot-ig { color: #D9CDB9; font-size: 14.5px; }
.foot-credit {
  font-size: 13.5px;
  color: #CFC3B0;
  border-top: 2px solid #4A423A;
  padding-top: 16px;
  margin: 0 auto 6px;
  max-width: 1100px;
}
.foot-demo { font-size: 13.5px; color: #CFC3B0; margin: 0 auto; }

/* ---------- görgetéses felúszás (kényelmi réteg, JS nélkül is látszik) ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 420ms ease, transform 420ms ease; }

@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
