/* ============================================================
   Ujhazi Studio — meleg, természetes apartman weblap
   Paletta: zsálya-zöld + meleg fa + bézs/taupe (a brand logóból)
   ============================================================ */

:root {
  /* Felületek */
  --cream: #f6f1e7;
  --cream-2: #fbf8f1;
  --sand: #efe6d5;
  --white: #ffffff;

  /* Szöveg */
  --ink: #2b2620;
  --ink-soft: #5f574b;
  --line: #e2d8c6;

  /* Márkaszínek */
  --sage: #7a9163;
  --sage-deep: #4f6a3c;
  --wood: #8a6a47;
  --terracotta: #b26b4a;

  /* Rendszer */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 38, 32, .06), 0 3px 10px rgba(43, 38, 32, .05);
  --shadow-md: 0 8px 30px rgba(43, 38, 32, .12);
  --shadow-lg: 0 20px 60px rgba(43, 38, 32, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
  --maxw: 1180px;
}

/* ---------- Alap ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 .8rem;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--cream-2); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Gombok ---------- */
.btn {
  --pad-y: .9rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--sage-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #43592f; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: var(--white); border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.btn-sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .9rem; }
.btn-lg { --pad-y: 1.05rem; --pad-x: 2.2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(251, 248, 241, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-text { font-family: 'Fraunces', serif; font-size: 1.28rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand-text em { font-style: italic; font-weight: 400; color: var(--sage-deep); }
/* A hero fölött (nem görgetve) világos márkaszöveg + finom árnyék a logón a kontrasztért */
.site-header:not(.scrolled) .brand-text { color: var(--white); }
.site-header:not(.scrolled) .brand-text em { color: #cfe0be; }
.site-header:not(.scrolled) .brand-logo { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 2px 0; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--sage-deep); transition: width .25s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.site-header:not(.scrolled) .site-nav a { color: rgba(255, 255, 255, .88); }
.site-header:not(.scrolled) .site-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  font-family: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  padding: .38rem .7rem; background: transparent; color: var(--ink-soft); border: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-switch button.is-active { background: var(--sage-deep); color: var(--white); }
.site-header:not(.scrolled) .lang-switch { border-color: rgba(255, 255, 255, .5); }
.site-header:not(.scrolled) .lang-switch button { color: rgba(255, 255, 255, .9); }
.site-header:not(.scrolled) .lang-switch button.is-active { background: rgba(255, 255, 255, .9); color: var(--sage-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 26, 20, .5) 0%, rgba(30, 26, 20, .25) 40%, rgba(30, 26, 20, .55) 100%); }
.hero-content { position: relative; padding-top: var(--header-h); max-width: 760px; }
.hero .eyebrow { color: #d9e6cb; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 500; color: #fff; margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.25rem); max-width: 540px; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-text h2 { max-width: 12ch; }
.about-text p { color: var(--ink-soft); max-width: 46ch; }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--sage-deep); line-height: 1; }
.stat-lbl { display: block; margin-top: .35rem; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- Galéria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 28px; }
.filters button {
  font-family: inherit; font-size: .88rem; font-weight: 500;
  padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink-soft); border: 1.5px solid var(--line);
  transition: all .2s var(--ease);
}
.filters button:hover { border-color: var(--sage); color: var(--ink); }
.filters button.is-active { background: var(--sage-deep); color: var(--white); border-color: var(--sage-deep); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.gallery-item {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; box-shadow: var(--shadow-sm); background: var(--sand);
  display: block; width: 100%; border: 0; padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(30, 26, 20, .5));
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-item .gi-cap {
  position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; font-size: .85rem; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .gi-cap,
.gallery-item:focus-visible .gi-cap { opacity: 1; transform: translateY(0); }

/* ---------- Videó (fő videó, hero után) ---------- */
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.video-feature { margin: 0 auto; max-width: 360px; }
.video-embed {
  position: relative; aspect-ratio: 9 / 16; background: #000;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Felszereltség ---------- */
.amenity-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.amenity-grid li {
  display: flex; align-items: center; gap: .85rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.15rem; box-shadow: var(--shadow-sm);
}
.amenity-grid .am-ico { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(122, 145, 99, .14); color: var(--sage-deep); }
.amenity-grid .am-ico svg { width: 22px; height: 22px; }
.amenity-grid span:last-child { font-size: .96rem; font-weight: 500; }

/* ---------- Elhelyezkedés ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.loc-text p { color: var(--ink-soft); max-width: 44ch; }
.loc-points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.loc-points li { position: relative; padding-left: 1.8rem; color: var(--ink); font-size: .98rem; }
.loc-points li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--sage); transform: rotate(45deg);
}
.loc-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- 3D bejárás ---------- */
.tour3d-box {
  position: relative; text-align: center; max-width: 720px; margin: 0 auto;
  background: var(--white); border: 1.5px dashed var(--wood); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 48px); box-shadow: var(--shadow-sm);
}
.tour3d-badge {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta); background: rgba(178, 107, 74, .12); padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.tour3d-box p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.6rem; }
.tour3d-frame { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(122, 145, 99, .12); color: var(--sage-deep); }

/* ---------- Foglalás CTA ---------- */
.book-cta { background: linear-gradient(135deg, var(--sage-deep), #3c5330); color: var(--white); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.book-inner { max-width: 640px; margin: 0 auto; }
.book-cta h2 { color: #fff; }
.book-cta p { color: rgba(255, 255, 255, .88); }
.book-cta .book-note { font-size: .84rem; color: rgba(255, 255, 255, .68); margin-top: 1.1rem; }
.book-cta .btn-primary { background: var(--white); color: var(--sage-deep); margin-top: .6rem; }
.book-cta .btn-primary:hover { background: #f2ecdd; }

/* ---------- Footer ---------- */
.site-footer { background: #221f1a; color: rgba(255, 255, 255, .8); padding: clamp(40px, 6vw, 64px) 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text em { color: #cfe0be; }
.footer-brand p { margin: .4rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a { font-size: .92rem; color: rgba(255, 255, 255, .78); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-base { padding-top: 20px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(24, 20, 16, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-stage img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lb-stage figcaption { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.lb-close, .lb-nav { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 20px; right: 20px; width: 48px; height: 48px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .loc-media { order: -1; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .stat-list { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------- Fókusz (accessibility) ---------- */
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }
