/* ==========================================================================
   Fenyőudvar Vendégház — vanilla CSS
   BEM naming, no framework dependencies
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg:      #303A38;   /* header / footer / nav overlay bg */
  --color-primary: #DCD3C6;   /* beige text on dark surfaces */
  --color-accent:  #B89A85;   /* warm brown accent */
  --bg-light:      #f2f4fb;   /* light section background */
  --color-text:    #5a5a5a;   /* body copy */
  --color-heading: #1f2937;   /* headings on light bg */
  --white:         #ffffff;
  --black:         #1a1a1a;
  --font-sans:     'Roboto', Arial, sans-serif;
  --header-h:      80px;      /* header height when scrolled */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}

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

h1, h2, h3, h4, h5 {
  color: var(--color-heading);
  font-family: var(--font-sans);
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Scroll-offset target anchors so header doesn't cover them ---------- */
#fooldal, #rolunk, #szobak, #kapcsolat {
  scroll-margin-top: var(--header-h);
}
/* Hero is full-height so no scroll-margin needed */
#fooldal { scroll-margin-top: 0; }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--color-bg);
  padding: 14px 0;
  box-shadow: 0 5px 20px -5px rgba(0,0,0,.25);
  transition: padding .3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 40px;
}

.site-header__logo-link { display: inline-flex; align-items: center; }
.site-header__logo img { width: 100px; height: auto; }

/* Hamburger toggle */
.site-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 22px;
  padding: 0;
  position: relative;
  z-index: 400;
  transition: transform .5s ease;
}

.site-header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 9px;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
  transform-origin: center;
}

/* Open state */
body.menu-open .site-header__toggle span:nth-child(1) {
  transform: translateY(10px) rotate(135deg);
  background: var(--color-accent);
}
body.menu-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(-30px);
}
body.menu-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-10px) rotate(-135deg);
  background: var(--color-accent);
}

/* ==========================================================================
   SITE NAVIGATION — mobile overlay (default)
   ========================================================================== */
.site-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  border: 20px solid rgba(255,255,255,.04);
  overflow-y: auto;
}
.site-nav.is-open { display: flex; align-items: center; justify-content: center; }

.site-nav__inner { text-align: left; }

.site-nav__list { list-style: none; }

.site-nav__item { margin-bottom: 4px; }

.site-nav__link {
  display: inline-block;
  color: var(--color-primary);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  padding: 6px 10px;
  transition: color .2s ease;
}
.site-nav__link:hover,
.site-nav__item--active .site-nav__link { color: var(--color-accent); }

/* ==========================================================================
   SITE NAVIGATION — desktop inline
   ========================================================================== */
@media (min-width: 768px) {
  .site-header__toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    overflow: visible;
    z-index: auto;
  }

  .site-nav__inner {
    text-align: left;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .site-nav__item {
    margin-bottom: 0;
  }

  .site-nav__link {
    font-size: 15px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 20px;
}

.hero__caption {
  display: block;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.hero__cta {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 16px 40px;
  border-radius: 3px;
  margin-top: 8px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: transparent;
  color: var(--color-primary);
  outline: none;
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */
.section {
  padding: 80px 0;
}
.section--light { background: var(--bg-light); }

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-heading);
  margin-bottom: 48px;
  font-weight: 700;
}

/* ==========================================================================
   RÓLUNK (ABOUT)
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
}

.about__image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.about__para { margin-bottom: 16px; }

.about__signature {
  text-align: right;
  font-style: italic;
  margin-top: 8px;
}

/* ==========================================================================
   SZOBÁK (ROOMS)
   ========================================================================== */
.room { margin-bottom: 64px; }
.room--single { text-align: center; max-width: 800px; margin-inline: auto; }

.room__title {
  text-align: center;
  margin-bottom: 32px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.room__title--centered { text-align: center; }

.room__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.room__layout--reversed { direction: rtl; }
.room__layout--reversed > * { direction: ltr; }

@media (max-width: 768px) {
  .room__layout,
  .room__layout--reversed { grid-template-columns: 1fr; direction: ltr; }
  .room__layout--reversed > * { direction: ltr; }
}

.room__para { margin-bottom: 14px; }
.room__para--centered { text-align: center; font-size: 1.05rem; }

.room__divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 64px 0;
}

/* ==========================================================================
   GALLERY (vanilla carousel)
   ========================================================================== */
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--black);
  user-select: none;
}

.gallery__track { position: relative; }

.gallery__item {
  display: none;
  width: 100%;
}
.gallery__item--active { display: block; }

/* Fade transition */
.gallery__item--fade-out {
  display: block;
  animation: galleryFadeOut .4s ease forwards;
}
.gallery__item--fade-in {
  display: block;
  animation: galleryFadeIn .4s ease forwards;
}

@keyframes galleryFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes galleryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gallery__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* Prev / Next buttons */
.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s ease, background .2s ease;
  z-index: 10;
}
.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }
.gallery:hover .gallery__btn { opacity: 1; }
.gallery__btn:hover { background: rgba(0,0,0,.7); }

/* Dot indicators */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 8px;
  background: rgba(0,0,0,.3);
}
.gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .2s ease;
  padding: 0;
}
.gallery__dot--active { background: var(--white); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  cursor: pointer;
}

.lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--white);
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transition: background .2s ease;
  z-index: 1001;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(0,0,0,.7); }

.lightbox__close { top: 20px; right: 20px; font-size: 32px; }
.lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; }
}

/* ContactProperty — two-column key/value row */
.contact-prop {
  display: flex;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  gap: 12px;
}
.contact-prop__label {
  width: 50%;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-heading);
}
.contact-prop__value {
  width: 50%;
  text-align: right;
  overflow-wrap: break-word;
}
.contact-prop__value a {
  color: var(--color-text);
  transition: color .2s ease;
}
.contact-prop__value a:hover { color: var(--black); }

.contact__map-title {
  margin-bottom: 12px;
  color: var(--color-heading);
}
.contact__map-frame {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.contact__map-frame iframe { display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.6);
  padding: 32px 0 24px;
  text-align: center;
}

.footer__social {
  margin-bottom: 16px;
  display: flex;
  gap: 0;
  justify-content: center;
}
.footer__social-link {
  display: inline-block;
  color: rgba(255,255,255,.7);
  padding: 8px 20px;
  transition: color .2s ease;
  font-size: .95rem;
}
.footer__social-link:hover { color: var(--white); }

.footer__copy {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ==========================================================================
   SCROLL-REVEAL ANIMATION
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .gallery__img { height: 240px; }
  .site-header__inner { padding-inline: 20px; }
  .contact-prop { flex-direction: column; }
  .contact-prop__value { text-align: left; width: 100%; }
}
