/* ==========================================================
   Alapbeállítások
   ========================================================== */
:root {
  /* ----------------------------------------------------------
     A weboldal SZÍNSÉMÁJA — csak ezt a 3 alapszínt kell módosítani
     ahhoz, hogy az egész oldal színvilága megváltozzon:
       - navy (sötétkék):  #0d3b66
       - cream (krém):     #faf0ca
       - gold (arany):     #f4d35e
     A --color-primary-dark, --color-bg-alt, --color-border és a
     --color-text-muted ezekből a fenti 3 színből lettek levezetve
     (világosítva/sötétítve), nem önálló, kézzel válogatott színek.
     ---------------------------------------------------------- */
  --color-primary: #f4d35e;                     /* gold – gombok, kiemelések */
  --color-primary-dark: #dcb93f;                /* gold sötétebb árnyalata – hover állapot */
  --color-dark: #0d3b66;                        /* navy – címsorok, lábléc, elsődleges szöveg */
  --color-text: #0d3b66;                        /* navy – törzsszöveg */
  --color-text-muted: rgba(13, 59, 102, 0.65);  /* navy, halványítva – másodlagos szöveg */
  --color-bg: #faf0ca;                          /* cream – fő háttérszín */
  --color-bg-alt: #f7e6ae;                      /* cream/gold keverék – váltakozó szekció-háttér */
  --color-border: #ecd99e;                      /* cream/gold keverék – szegélyek */

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.section-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================
   Fejléc / navigáció
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 240, 202, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-dark);
}

.logo span {
  color: var(--color-dark);
  font-style: italic;
  border-bottom: 2px solid var(--color-primary);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav a,
.nav-book-btn {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  position: relative;
}

.main-nav a:hover,
.nav-book-btn:hover {
  color: var(--color-dark);
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.nav-book-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  cursor: pointer;
  padding: 4px 2px;
}

.lang-current .chevron {
  width: 9px;
  height: 9px;
  color: var(--color-dark);
  transition: transform 0.2s ease;
}

.lang-current.open .chevron {
  transform: rotate(180deg);
}

.lang-current .flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(13, 59, 102, 0.15);
}

/* ==========================================================
   Nyelvválasztó felugró ablak (modal)
   position:fixed-del a viewporthoz igazodik, semmilyen szülő
   overflow-ja nem tudja levágni – mobilon is megbízhatóan
   középen jelenik meg, nem a fejlécbe ágyazott lenyíló listaként.
   ========================================================== */
.lang-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 102, 0.5);
}

.lang-modal-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--color-bg);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(13, 59, 102, 0.3);
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lang-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lang-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  padding: 2px 6px;
}

.lang-modal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-modal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.lang-modal-option:hover {
  background: var(--color-bg-alt);
}

.lang-modal-option.active {
  background: var(--color-bg-alt);
}

.lang-modal-option .flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(13, 59, 102, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* ==========================================================
   Hero szekció
   ========================================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  /* Semleges (szín nélküli) sötétítés a fotón, csak a szöveg olvashatósága miatt */
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

.hero-content {
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ==========================================================
   Rólunk szekció
   ========================================================== */
.about {
  background: var(--color-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* ==========================================================
   Szolgáltatások szekció
   ========================================================== */
.services {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  min-height: 48px;
}

.service-meta {
  margin-top: 14px;
  font-weight: bold;
  color: var(--color-dark);
}

.service-book-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  background: var(--color-primary);
  border: none;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.service-book-btn:hover {
  background: var(--color-primary-dark);
}

/* ==========================================================
   Galéria szekció
   ========================================================== */
.gallery {
  background: var(--color-bg);
}

/* Valódi masonry-elrendezés: a script.js JS-ből tölti fel a
   .gallery-column oszlopokat, mindig a legalacsonyabb oszlopba téve a
   következő képet (nem a böngésző CSS "columns" oszlop-kiegyenlítése,
   ami üres lyukakat hagyna a különböző magasságú képek miatt). */
.gallery-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* ==========================================================
   Galéria kép nagyítása (lightbox)
   ========================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1001;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================
   Nyitvatartás szekció
   ========================================================== */
.hours {
  /* bg-alt, mert a Galéria szekció beszúrása után enélkül a Galéria
     és a Nyitvatartás egyforma hátterű lenne egymás mellett */
  background: var(--color-bg-alt);
}

.hours-table {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-collapse: collapse;
}

.hours-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr td:first-child {
  font-weight: bold;
  color: var(--color-dark);
}

.hours-table tr td:last-child {
  text-align: right;
}

.hours-table .closed {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================
   Időpontfoglalás / naptár widget
   ========================================================== */
.booking {
  background: var(--color-bg-alt);
}

.calendar-widget {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-header button {
  background: var(--color-bg-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-dark);
}

.calendar-header button:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: default;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.past {
  color: rgba(13, 59, 102, 0.3);
}

.calendar-day.closed {
  color: rgba(13, 59, 102, 0.3);
  text-decoration: line-through;
}

.calendar-day.available {
  background: var(--color-bg-alt);
  color: var(--color-dark);
  cursor: pointer;
}

.calendar-day.available:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

.calendar-day.today {
  border: 2px solid var(--color-primary);
  font-weight: bold;
}

.booking-message {
  text-align: center;
  margin-top: 18px;
  min-height: 24px;
  font-weight: 500;
  color: var(--color-dark);
}

/* ==========================================================
   Időpontfoglalás gomb (Setmore widget)
   ========================================================== */
.booking-cta {
  text-align: center;
}

/* ==========================================================
   Megközelíthetőség / Google Maps szekció
   ========================================================== */
.location {
  /* bg, mert a Nyitvatartás mostantól bg-alt (lásd a Galéria szekció
     beszúrásáról szóló megjegyzést fentebb) */
  background: var(--color-bg);
}

.map-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 350px;
}

.map-cta {
  text-align: center;
  margin-top: 24px;
}

/* ==========================================================
   Lábléc
   ========================================================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-bg);
  padding: 40px 0 30px;
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 4px 0;
}

.footer-contact {
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(250, 240, 202, 0.15);
}

.footer-contact h3 {
  color: var(--color-bg);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-bg);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--color-primary);
}

/* ==========================================================
   Reszponzivitás
   ========================================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a,
  .nav-book-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0;
  }

  .lang-switch {
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}
