/* public/assets/css/style.css */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;

  /* Sticky footer alap: a body teljes viewport magasságú és flex konténer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #111;
}

/* Alap tipográfia (minden oldalon kulturáltabb) */
h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 10px 0;
}

p {
  margin: 0 0 12px 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER: két rész (top + menüsáv) ===== */

.site-header {
  border-bottom: 0;
  padding: 0;
}

.header-top {
  border-bottom: 1px solid #e6e6e6;
  padding: 14px 0;
}

.header-nav {
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

/* Asztali: csak a menüsáv sticky */
@media (min-width: 861px) {
  .header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* lábléc középre asztalin */
  .site-footer .container {
    text-align: center;
  }
}

/* Fejléc elrendezés */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;   /* logó középen */
  gap: 12px;
  position: relative;        /* bal/jobb elemek abszolút pozícionálásához */
}

.brand {
  width: 100%;
  display: flex;
  justify-content: center;   /* logó középen */
}

.brand-link {
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-link--stack {
  flex-direction: column;
  align-items: center; /* logó középen */
  gap: 6px;
}

/* LOGÓ: 300x150 (mobilon max-width miatt zsugorodhat, de tartja az arányt) */
.brand-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 2 / 1; /* 300x150 arány */
}

.brand-logo--lg {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 2 / 1;
}

/* Menü (desktop) */
.nav {
  margin: 0;
  padding: 10px 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  /* Asztali nézetben középre igazítás */
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-link:hover {
  background: #f4f4f4;
}

/* Aktív menüpont */
.nav-link.is-active {
  background: #f4f4f4;
  color: #111;
  font-weight: 700;
}

/* Jobb oldali elérhetőségi blokk (desktop + mobil) */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-action {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
}

.header-action:hover {
  background: #f7f7f7;
}

.header-action-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.header-action-label {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}

/* Hamburger gomb: alapból rejtve (desktop) */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  height: 44px;
  padding: 0 10px;
  cursor: pointer;
  gap: 8px;

  /* logó középen marad, hamburger BAL oldalt */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle--with-text {
  width: auto;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hamburger ikon (CSS) */
.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
}

/* Áttűnés az X-hez */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

/* Kisebb ikon (alap) */
.nav-toggle-icon--sm {
  width: 14px;
}

.nav-toggle-icon--sm::before,
.nav-toggle-icon--sm::after {
  width: 14px;
}

.nav-toggle-icon--sm::before { top: -5px; }
.nav-toggle-icon--sm::after { top: 5px; }

.nav-toggle-text {
  font-weight: 700;
  font-size: 14px;
  color: #111;
}

/* Nyitott állapot: X ikon */
.nav-toggle.is-open .nav-toggle-icon {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-main {
  padding: 22px 0;

  /* Sticky footer: a main kitölti a maradék helyet */
  flex: 1;
}

.site-footer {
  border-top: 1px solid #e6e6e6;
  padding: 16px 0;
  margin-top: 24px;

  /* Biztosítja, hogy a footer ne zsugorodjon */
  flex-shrink: 0;
}

/* ====== Árak oldal: két tábla egymás mellett asztalin ====== */
.prices-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 980px) {
  .prices-two {
    grid-template-columns: 1fr 1fr;
  }
}

/* ====== Kezdőoldal elemek (SEO-barát, igényes layout) ====== */

.home-hero {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 22px;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  letter-spacing: -0.2px;
}

.hero-lead {
  color: #333;
  font-size: 16px;
  margin-bottom: 16px;
}

.hero-cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 12px 0;
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.meta-link {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.meta-link:hover {
  background: #f7f7f7;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111;
  display: inline-block;
}

.section {
  padding: 22px 0;
}

.section--muted {
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 22px;
}

.section--borderless {
  padding-top: 0;
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 14px auto;
}

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-lead {
  color: #444;
}

.section-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  color: #111;
  cursor: pointer;
}

.btn:hover {
  background: #f7f7f7;
}

.btn--primary {
  border-color: #111;
  background: #111;
  color: #fff;
}

.btn--primary:hover {
  background: #000;
}

.btn--ghost {
  background: #fff;
}

.cards {
  display: grid;
  gap: 12px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-text {
  color: #444;
}

.card-text a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}

.callout {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.callout-text {
  color: #444;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.callout-links {
  display: grid;
  gap: 6px;
}

.callout-links a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
}

.callout-links a:hover {
  text-decoration: underline;
}

/* ====== GALÉRIA ELŐNÉZET (főoldal): nagyobb képek, kevesebb oszlop ====== */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* volt: 6 -> ettől volt “apró/pixeles” */
  gap: 12px;
}

.thumb {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #f7f7f7;
  overflow: hidden;
  aspect-ratio: 16 / 10; /* kicsit nagyobb vizuális felület */
  display: block;
  text-decoration: none;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.15s ease;
}

.thumb:hover img {
  transform: scale(1.03);
}

.contact-bar {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-bar-left {
  min-width: 260px;
  flex: 1 1 520px;
}

.contact-bar-right {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-address {
  font-style: normal;
  color: #444;
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.contact-address a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.contact-address a:hover {
  text-decoration: underline;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-body {
  margin-top: 8px;
  color: #444;
}

.faq-body a {
  color: #111;
  font-weight: 700;
}

/* ====== Reszponzív ====== */
@media (max-width: 1020px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }

  /* galéria előnézet: marad 3 oszlop tabletig */
  .gallery-teaser { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .hero-title { font-size: 26px; }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }

  /* galéria előnézet: mobilon 2 oszlop */
  .gallery-teaser { grid-template-columns: repeat(2, 1fr); }
}

/* Mobil: hamburger menü (JS-es fallback-kel)
   - JS nélkül a menü marad látható (nem rejtjük el)
   - JS-sel (html.js) mobilon a menü alapból rejtett, gombbal nyitható */
@media (max-width: 860px) {
  .nav-toggle--with-text {
    display: inline-flex;
  }

  /* Mobilon még kisebb logó */
  .brand-logo--lg {
    width: 180px;
  }

  /* Mobilon: csak ikonok, szöveg elrejtve */
  .header-actions {
    gap: 8px;
  }

  .header-action {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
  }

  .header-action-label {
    display: none;
  }

  /* Mobilon kisebb hamburger gomb */
  .nav-toggle {
    height: 36px;
    padding: 0 8px;
    border-radius: 7px;
    gap: 6px;
  }

  .nav-toggle-text {
    font-size: 13px;
  }

  /* Mobilon még kisebb ikon */
  .nav-toggle-icon--sm {
    width: 12px;
  }

  .nav-toggle-icon--sm::before,
  .nav-toggle-icon--sm::after {
    width: 12px;
  }

  .nav-toggle-icon--sm::before { top: -4px; }
  .nav-toggle-icon--sm::after { top: 4px; }

  .nav {
    flex-direction: column;
    width: 100%;
    gap: 6px;
    padding: 0;
  }

  .nav-link {
    padding: 10px 12px;
  }

  html.js .nav {
    display: none;
    margin-top: 12px;
  }

  html.js .nav.is-open {
    display: flex;

    /* Enyhe panel háttér */
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px;
  }

  /* Mobilon az aktív elem kicsit hangsúlyosabb, de marad letisztult */
  .nav-link.is-active {
    background: #f0f0f0;
  }
}