:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede7;
  --text: #2a2723;
  --muted: #6f685f;
  --line: #e2dcd3;
  --accent: #8a6a46;
  --accent-dark: #6d5235;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.75 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 78px; width: auto; }
@media (max-width: 640px) { :root { --header-h: 76px; } .brand img { height: 60px; } }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-toggle-sub {
  display: block; padding: 8px 12px; color: var(--text); text-decoration: none;
  font: 400 .82rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .nav-toggle-sub:hover, .main-nav .active > a, .main-nav .active > .nav-toggle-sub, .main-nav [aria-current="page"] { color: var(--accent); }
.main-nav .nav-cta { border: 1px solid var(--text); margin-left: 8px; padding: 8px 16px; }
.main-nav .nav-cta:hover { background: var(--text); color: var(--bg); }
.has-sub { position: relative; }
.has-sub > a::after, .nav-toggle-sub::after { content: ' ▾'; font-size: .7em; }
.sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 7px 18px; text-transform: none; letter-spacing: .03em; font-size: .95rem; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span:not(.sr) { display: block; height: 1.5px; background: var(--text); transition: .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); overflow-y: auto;
    padding: 16px var(--gutter) 40px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .nav-toggle-sub { padding: 14px 4px; font-size: .9rem; width: 100%; text-align: left; }
  .main-nav .nav-cta { margin: 16px 0 0; text-align: center; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 14px; display: none; min-width: 0; background: none; }
  .has-sub.open > .sub { display: block; }
  .sub a { padding: 8px 4px; }
}

/* ---------- Szakaszok ---------- */
main { min-height: 60vh; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); }
.section--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section--full { max-width: none; padding: 0; }
.section + .section--full, .section--full + .section { margin-top: 0; }
.s-text + .s-gallery, .s-text + .s-photos { padding-top: 0; }

.prose > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.s-text .prose h1:only-child { text-align: center; margin: 0; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 56px); }

.divider { border: 0; border-top: 1px solid var(--line); max-width: 120px; margin: 0 auto; }

/* Kiemelt képsor (slider) */
.slider { position: relative; }
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  gap: 6px; scroll-behavior: smooth;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { margin: 0; flex: 0 0 auto; scroll-snap-align: center; }
.slider__slide img { height: clamp(320px, 72vh, 760px); width: auto; max-width: 92vw; object-fit: cover; }
.slider--hero .slider__slide { flex-basis: 100%; }
.slider--hero .slider__slide img { width: 100%; max-width: none; height: calc(100vh - var(--header-h)); max-height: 900px; min-height: 360px; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(250, 248, 245, .85); color: var(--text); font-size: 30px; line-height: 1; cursor: pointer;
}
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider__btn:hover { background: #fff; }

/* Képrács */
.masonry { columns: 3 280px; column-gap: 10px; }
.masonry a { display: block; margin-bottom: 10px; break-inside: avoid; }
.photos { display: grid; gap: 10px; }
.photos--2 { grid-template-columns: repeat(2, 1fr); }
.photos--3 { grid-template-columns: repeat(3, 1fr); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos--1 img { max-height: 85vh; width: auto; margin: 0 auto; }
@media (max-width: 640px) { .photos--2, .photos--3 { grid-template-columns: 1fr; } }
.lb { display: block; cursor: zoom-in; }

/* Kép + szöveg */
.photo-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.photo-text--right .photo-text__img { order: 2; }
.photo-text__img img { width: 100%; }
.photo-text--vertical { grid-template-columns: 1fr; max-width: var(--narrow); margin: 0 auto; text-align: center; }
@media (max-width: 760px) {
  .photo-text { grid-template-columns: 1fr; }
  .photo-text--right .photo-text__img { order: 0; }
}

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.figures figure { margin: 0; text-align: center; }
.figures img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.figures figcaption { margin-top: 14px; }
.figures figcaption h2 { font-size: 1.4rem; }

/* Csempék (portfólió, főoldal) */
.tiles { display: grid; gap: 16px; }
.tiles--tiles { grid-template-columns: repeat(3, 1fr); }
.tiles--list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tile { position: relative; display: block; color: var(--text); text-decoration: none; overflow: hidden; }
.tile__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tiles--tiles .tile__text, .tiles--wide .tile__text {
  position: absolute; inset: auto 0 0 0; padding: 28px 24px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.tiles--tiles .tile__text h2, .tiles--wide .tile__text h2 { color: #fff; margin: 0; }
.tiles--tiles .tile__text p, .tiles--wide .tile__text p { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.tiles--list .tile__text { padding: 14px 2px 0; text-align: center; }
.tiles--list .tile__text h2 { font-size: 1.6rem; margin-bottom: .1em; }
.tiles--list .tile__text p { color: var(--muted); font-size: .95rem; }
.tiles--wide .tile__img img { aspect-ratio: 21 / 9; }
.tiles--wide .tile__text h2 { font-size: clamp(1.3rem, 3vw, 2rem); }
.tiles--wide .tile__text p { text-transform: none; letter-spacing: 0; font-size: .95rem; max-width: 60ch; }
.tiles--text .tile { border: 1px solid var(--line); padding: 28px; text-align: center; }
.tiles--text .tile:hover { border-color: var(--accent); }
.tiles--text .tile__text p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .tiles--tiles { grid-template-columns: 1fr; }
  .tiles--tiles .tile__img img { aspect-ratio: 3 / 2; }
  .tiles--wide .tile__img img { aspect-ratio: 4 / 3; }
}

/* Idézet */
.quote { margin: 0; text-align: center; padding: clamp(20px, 4vw, 48px) 0; }
.quote p { font: italic 400 clamp(1.5rem, 3.6vw, 2.3rem)/1.35 var(--serif); }
.quote cite { font-style: normal; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }

/* Beágyazás (naptár, térkép) */
.embed iframe { display: block; width: 100%; height: min(var(--h), 80vh); border: 0; }
.s-embed + .s-embed { padding-top: 0; }

/* Gomb */
.btn {
  display: inline-block; padding: 14px 34px; border: 1px solid var(--text); background: var(--text); color: var(--bg);
  font: 400 .82rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--text); }

/* Csomagok */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.package { display: grid; grid-template-columns: 2fr 3fr; background: var(--bg-alt); }
.package__img img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.package__body { padding: 28px; }
.package__body h3 { font-size: 1.8rem; }
.package__body .prose { font-size: .97rem; }
.package__price { margin: 1em 0 0; font: 500 1.4rem var(--serif); color: var(--accent-dark); }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .package { grid-template-columns: 1fr; } .package__img img { aspect-ratio: 3 / 2; min-height: 0; } }

/* Fejléckép szöveggel */
.banner { position: relative; }
.banner__img { width: 100%; height: clamp(280px, 50vh, 520px); object-fit: cover; }
.banner__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: rgba(0,0,0,.3); padding: var(--gutter); }
.banner__text h1 { color: #fff; }
.banner__text p { letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }

/* Kapcsolat */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.contact .prose h2 { font-size: 1.5rem; margin-top: 1.2em; }
.contact .prose h2:first-child { margin-top: 0; font-size: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form label, .contact-form legend { font-size: .9rem; font-weight: 400; margin-top: 10px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.contact-form fieldset { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.contact-form legend { padding: 0; margin-bottom: 6px; width: 100%; }
.contact-form .choice { margin: 0; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.contact-form .btn { margin-top: 18px; align-self: flex-start; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 28px; }
.post-card { display: block; color: var(--text); text-decoration: none; }
.post-card__img { overflow: hidden; }
.post-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.post-card:hover img { transform: scale(1.04); }
.post-card__text { padding-top: 14px; }
.post-card__text h2 { font-size: 1.6rem; margin-bottom: .15em; }
.meta { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.post-header { position: relative; }
.post-header__img img { width: 100%; height: clamp(300px, 70vh, 720px); object-fit: cover; }
@media (max-width: 640px) { .post-header__img img { height: 56vh; } }
.post-header__text { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 5vw, 48px) var(--gutter) 0; text-align: center; }
.post-header__text h1 { margin: .3em 0 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; font-size: .95rem; }

/* Lábléc */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 72px); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter); text-align: center; font-size: .95rem; }
.footer-brand { font: 500 1.8rem var(--serif); margin-bottom: .4em; }
.site-footer a { color: var(--text); }
.copy { color: var(--muted); font-size: .85rem; margin: 1.6em 0 0; }

/* Nagyító */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16, 14, 12, .95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Képvédelem: jobbklikk és húzás tiltása a fotókon */
main img, .lightbox img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
