/* Kontyoló – a sablon stílusait felülíró saját beállítások. */

html {
  scroll-behavior: smooth;
}

/* A fix fejléc ne takarja ki a szakaszok címét ugráskor. */
#portfolio,
#rolam,
#arak,
#kapcsolat {
  scroll-margin-top: 90px;
}

/* A Kapcsolat horgony az űrlap oszlopán van (nem a szakaszon), asztali gépen a magasabb fejléc miatt több hely kell fölötte. */
@media (min-width: 992px) {
  #kapcsolat {
    scroll-margin-top: 150px;
  }
}

/* ---------- Nyitókép ---------- */
.section-main-bunner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.section-main-bunner .main-bunner-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  background-position: center;
}

/* Sötétítés, hogy a menü és a cím minden kép fölött olvasható legyen. */
.section-main-bunner .main-bunner-img::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, .35) 30%, rgba(0, 0, 0, .45) 100%);
}

.section-main-bunner .main-bunner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bunner-content-modern h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.bunner-content-modern .hero-lead {
  max-width: 640px;
  margin: 16px auto 32px;
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ---------- Nyitóanimáció ---------- */
.intro-logo {
  display: none;
}

html.intro .intro-logo,
.intro-logo.is-hiding {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: 90px 16px 0;
  pointer-events: none;
  transition: opacity .9s ease;
}

.intro-logo.is-hiding {
  opacity: 0;
}

.intro-logo svg {
  width: min(80vw, 560px);
  height: auto;
  overflow: visible;
}

/* A logó útvonalai (a maszkok vonalai nem, azok a <mask>-on belül vannak). */
.intro-logo g path {
  fill: #fff;
}

/* 1. változat: vastagabb rajzoló vonal, ami a végén elvékonyodik. */
.intro-logo[data-variant="1"] g path {
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 130;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Az animáció alatt a fejléc logója, a felirat és a gomb még nem látszik. */
.rd-navbar-brand img,
.bunner-content-modern .hero-lead,
.bunner-content-modern .button {
  transition: opacity .9s ease;
}

html.intro .rd-navbar-brand img,
html.intro .bunner-content-modern .hero-lead,
html.intro .bunner-content-modern .button {
  opacity: 0;
}

/* ---------- Mobil menü ---------- */
.mobile-nav {
  display: none;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rd-navbar .mobile-nav a {
  display: block;
  padding: 10px 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .mobile-nav {
    display: block;
  }

  .rd-navbar-fixed .rd-navbar-collapse {
    min-width: 170px;
  }
}

/* ---------- Galéria ---------- */
.gallery-item-classic img {
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Nagyítás gomb: a hosszú felirat helyett nagyító ikon (a felirat a képernyőolvasóknak megmarad). */
.gallery-item-classic-caption a {
  position: relative;
  font-size: 0;
  line-height: 0;
  padding: 0;
}

.gallery-item-classic-caption a::before {
  content: "\f00e";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'FontAwesome';
  font-size: 28px;
  line-height: 1;
}

.gallery-item-classic {
  overflow: hidden;
  border-radius: 6px;
}

/* Telefonon: két oszlopos, sűrűbb rács, az egész kép érintésre nagyít. */
@media (max-width: 767.98px) {
  .portfolio-grid {
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: -10px;
  }

  .portfolio-grid > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
  }

  .portfolio-grid .gallery-item-classic {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  }

  .portfolio-grid .gallery-item-classic-caption,
  .portfolio-grid .gallery-item-classic:hover .gallery-item-classic-caption {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    opacity: 1;
  }

  /* A link kitölti az egész képet, csak egy kis ikon jelzi a sarokban, hogy nagyítható. */
  .portfolio-grid .gallery-item-classic-caption a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .portfolio-grid .gallery-item-classic-caption a::before {
    top: auto;
    left: auto;
    right: 8px;
    bottom: 8px;
    transform: none;
    width: 30px;
    height: 30px;
    padding-top: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #151515;
    font-size: 15px;
    text-align: center;
  }
}

.small-text {
  padding: 0 8px;
  margin-bottom: 30px;
}

/* ---------- Rólam: sötét szöveg a bézs háttéren ---------- */
#rolam h2,
#rolam .rolam-text {
  color: #2b2118;
}

#rolam .rolam-text {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

#rolam .decorative-square img {
  height: auto;
}

/* ---------- Árak: jól olvasható ár és leírás ---------- */
.event-item-modern .event-time {
  color: #7a4d21;
  font-size: 18px;
  font-weight: 600;
}

.event-item-modern .event-item-modern-text p {
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 400;
}

/* ---------- Kapcsolat ---------- */
.contact-phone {
  margin: 24px auto 32px;
}
.contact-phone a {
  color: inherit;
}

/* Asztali nézetben a telefonos doboz a címhez igazodik (balra), a díszítő háromszög az ikonnal együtt mozog. */
@media (min-width: 992px) {
  .contact-phone {
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  .contact-phone .box-icon-inner {
    display: inline-block;
  }

  .contact-phone .box-icon-inner:before {
    left: calc(50% + 19px);
  }
}

.contact-phone p,
.tabs-classic .tab-content > .tab-content p {
  color: #4a4a4a;
}

.form-note {
  margin: 20px 0;
  color: #4a4a4a;
  font-size: 14px;
  text-align: center;
}

.form-note a {
  color: #7a4d21;
  text-decoration: underline;
}

/* Rejtett spamvédelmi mező: csak a képernyőn kívül van. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  margin: 0 auto;
  background: #eee;
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .contact-video {
    max-width: 340px;
  }
}

/* ---------- Adatkezelési oldal ---------- */
body.legal {
  background: #fff;
}

.legal-header {
  background: #2d2d2d;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.legal-header img {
  width: 150px;
  height: auto;
}

.legal-header .legal-back {
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-header .legal-back:hover {
  color: #e9caa5;
}

.legal-hero {
  padding: 56px 0 48px;
  background: #e9caa5;
  text-align: center;
}

.legal-hero h1 {
  color: #2b2118;
  font-size: 34px;
}

.legal-hero p {
  margin-top: 12px;
  color: #4a3a2c;
  font-size: 17px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 16px 64px;
  color: #4a4a4a;
}

.legal-page p,
.legal-page li {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.7;
}

.legal-page .legal-intro {
  font-size: 18px;
}

.legal-page h2 {
  position: relative;
  margin-top: 40px;
  padding-bottom: 10px;
  font-size: 20px;
}

.legal-page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #c89667;
}

.legal-page h2 + p,
.legal-page h2 + ul {
  margin-top: 16px;
}

.legal-page a {
  color: #7a4d21;
  text-decoration: underline;
}

.legal-card {
  margin-top: 32px;
  padding: 24px 28px 28px;
  background: #faf4ee;
  border-left: 4px solid #c89667;
}

.legal-card h2 {
  margin-top: 0;
}

.legal-list {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.legal-list li + li {
  margin-top: 6px;
}

.legal-page .legal-date {
  margin-top: 40px;
  font-size: 14px;
}

.legal-footer {
  padding: 32px 0;
  text-align: center;
}
