/* JátékRadar — shared styles */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f7f6;
  --bg-alt: #e8efed;
  --surface: #ffffff;
  --ink: #122b28;
  --muted: #4a635f;
  --line: #c9d6d3;
  --brand: #0b3d3a;
  --accent: #0d7377;
  --accent-2: #2ec4b6;
  --warm: #c48a3a;
  --focus: #0d7377;
  --radius: 6px;
  --max: 1080px;
  --nav-h: 64px;
  --shadow: 0 1px 0 rgba(11, 61, 58, 0.06);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Libre Franklin", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef4f2 0%, var(--bg) 180px),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
.h-display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo img,
.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #f4f7f6;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero--bleed {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  border-bottom: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 61, 58, 0.35) 0%, rgba(244, 247, 246, 0.92) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(244, 247, 246, 0.88) 0%, rgba(244, 247, 246, 0.45) 55%, rgba(244, 247, 246, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.5rem;
  max-width: var(--max);
}

.hero--bleed .tag {
  color: var(--accent);
}

.hero--bleed .hero-brand {
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero--bleed .hero-lead {
  color: var(--muted);
  max-width: 34rem;
}

.hero--bleed .btn-secondary,
.hero--bleed .btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 0;
}

/* Media strip */
.media-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 800px) {
  .media-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media-strip-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-strip-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-strip-item:hover img {
  transform: scale(1.03);
}

.media-strip-item figcaption {
  padding: 0.45rem 0.65rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  font-family: var(--display);
}

.info-card--media {
  padding: 0;
  overflow: hidden;
}

.info-card--media picture,
.info-card--media > img {
  display: block;
}

.info-card--media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.info-card--media h3,
.info-card--media p,
.info-card--media .btn {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.info-card--media h3 {
  margin-top: 1rem;
}

.info-card--media .btn,
.info-card--media > a.btn {
  margin-bottom: 1.25rem;
}

.info-card--media p {
  margin-bottom: 0.85rem;
}

.page-banner {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.section--flush-top {
  padding-top: 1.25rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .media-strip-item:hover img,
  .reveal {
    animation: none !important;
    transform: none;
  }
}

.topics {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .topics {
    grid-template-columns: 1fr 1fr;
  }
}

.topic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.topic summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  color: var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topic summary::-webkit-details-marker {
  display: none;
}

.topic summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}

.topic[open] summary::after {
  content: "−";
}

.topic-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.topic-body p:last-child {
  margin-bottom: 0;
}

/* Contact / info blocks */
.info-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-card h3 {
  margin-bottom: 0.65rem;
}

.info-card p,
.info-card li {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.info-card a {
  font-weight: 600;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.hours-table th {
  color: var(--brand);
  width: 45%;
}

/* Accordion FAQ */
.accordion {
  display: grid;
  gap: 0.65rem;
}

.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
  font-family: var(--display);
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion details[open] summary {
  margin-bottom: 0.6rem;
}

.accordion details p:last-child {
  margin-bottom: 0;
}

/* Forms */
.form {
  display: grid;
  gap: 0.9rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem;
  background: #e6f5f2;
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Jobs */
.job-list {
  display: grid;
  gap: 0.75rem;
}

.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.job-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.job-toggle strong {
  color: var(--brand);
  font-family: var(--display);
}

.job-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.job-panel {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}

.job.is-open .job-panel {
  display: block;
  padding-top: 1rem;
}

.job-toggle .chevron {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.job.is-open .chevron {
  transform: rotate(180deg);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 61, 58, 0.45);
}

.modal-dialog {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: min(100%, 420px);
  padding: 1.5rem;
  max-height: 90vh;
  overflow: auto;
}

.modal-dialog h2 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  background: var(--brand);
  color: #eef4f2;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: none;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(11, 61, 58, 0.25);
  max-width: 640px;
  margin-inline: auto;
}

.cookie-bar.is-visible {
  display: flex;
  flex-wrap: wrap;
}

.cookie-bar p {
  margin: 0;
  color: #d5e5e2;
  font-size: 0.92rem;
  flex: 1 1 220px;
}

.cookie-bar a {
  color: var(--accent-2);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-bar .btn-primary {
  background: var(--accent-2);
  color: var(--brand);
}

.cookie-bar .btn-ghost {
  color: #eef4f2;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Legal pages */
.legal {
  padding: 2rem 0 3rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.legal h2 {
  margin-top: 1.75rem;
}

.legal ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero p {
  max-width: 40rem;
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: #d5e5e2;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: #f4f7f6;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer a {
  color: #c5d8d4;
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #9bb5b0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-up 0.55s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--line);
  }

  .site-header {
    position: relative;
  }

  .site-header.is-fixed {
    position: sticky;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 300;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
