/* VDR Photography – nyilvános oldal. A színek és betűk a /theme.css-ből jönnek (műhely > Beállítások > Megjelenés). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; color: var(--dark); margin: 0 0 .45em; }
h1 { font-size: clamp(2.4rem, 4.2vw + 1rem, 4.4rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 2.9rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.25rem; margin: 0; }
p, ul, ol, dl { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.wrap { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: .6em 1em; z-index: 50; }
.skip:focus { left: 1rem; }
mark.todo { background: #fbe3dc; color: #8d2a14; padding: 0 .3em; border-radius: 2px; }

/* Felső sáv és fejléc */
.topbar { background: var(--band); font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.6rem; padding: .45rem 0; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--dark); }
.masthead { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.logo { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--dark); }
.logo-word { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; }
.logo-sub { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--accent-dark); }
.logo-img { max-height: 3rem; width: auto; }
.masthead nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 2rem; }
.masthead nav a { display: block; padding: .5rem 0; color: var(--text); text-decoration: none; font-size: .98rem; letter-spacing: .02em; }
.masthead nav a[aria-current="page"], .masthead nav a:hover { color: var(--accent-dark); box-shadow: inset 0 -1px 0 var(--accent); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 14rem; background: var(--bg); border: 1px solid var(--band); box-shadow: 0 12px 30px rgb(38 34 31 / .08); padding: .5rem 1rem !important; display: none !important; flex-direction: column; gap: 0 !important; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex !important; }
.nav-toggle { display: none; font: inherit; background: none; border: 1px solid var(--accent); color: var(--dark); padding: .4rem .9rem; border-radius: 999px; }

/* Gombok */
.btn { display: inline-block; padding: .85em 1.7em; border-radius: 999px; background: var(--accent); color: var(--dark); text-decoration: none; font-weight: 500; letter-spacing: .02em; transition: background .2s; }
.btn:hover { background: color-mix(in srgb, var(--accent) 80%, var(--dark)); color: #fff; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--dark); }
.btn--ghost:hover { background: var(--dark); color: #fff; }
.btn--light { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Kép helye, amíg nincs feltöltve */
.ph { background: linear-gradient(135deg, var(--band), color-mix(in srgb, var(--band) 70%, var(--accent))); aspect-ratio: 4 / 3; width: 100%; }

/* Nyitókép: teljes szélességű fotó paszpartuval, a kártya a kép aljára ül */
/* Nyitókép: Réka fotói teljes szélességben, lágy áttűnéssel és nagyon lassú közelítéssel váltakoznak */
.m-hero { position: relative; }
.hero-slides { position: relative; height: clamp(24rem, 72vh, 46rem); overflow: hidden; background: var(--band); }
.hero-slides::after { content: ""; position: absolute; inset: clamp(.6rem, 1.4vw, 1.25rem); border: 1px solid rgb(255 255 255 / .6); pointer-events: none; z-index: 2; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transform: scale(1); transition: transform 6s ease-out; }
.hero-slide.is-active img { transform: scale(1.03); }
.hero-text { padding-top: clamp(2.5rem, 5vw, 4rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.kicker { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--accent-dark); margin-bottom: .35rem; }
.ornament { width: 3.5rem; height: 1px; background: var(--accent); margin: 1.1rem 0 1.3rem; }

/* Szakaszok */
main > section { padding-block: clamp(3rem, 7vw, 6rem); }
main > section.m-hero { padding-top: 0; }
.tone-band { background: var(--band); }
.tone-dark { background: var(--dark); color: #efe9e2; }
.tone-dark h2 { color: #fff; }
.tone-accent { background: var(--accent); }
.tone-accent h2, .tone-accent p { color: var(--dark); }
.tone-accent .btn { background: var(--dark); color: #fff; }
.tone-accent .btn:hover { background: #000; }
.sec-head { max-width: 46rem; margin-bottom: 2.4rem; }
.sec-intro { color: var(--muted); font-size: 1.1rem; }

/* Képes csempék */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.tile a, .tile > div { display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.tile img, .tile .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: transform .8s ease; }
.tile a:hover img { transform: scale(1.04); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 1.1rem; font-family: var(--display); font-size: 1.5rem; background: linear-gradient(to top, rgb(38 34 31 / .65), transparent); }

/* Kép és szöveg */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.side-right .split-img { order: 2; }
.split-img img, .split-img .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-text { max-width: 34rem; }

/* Lépések – valódi sorrend */
.steps { list-style: none; counter-reset: lepes; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem 2rem; }
.steps li { counter-increment: lepes; }
.steps li::before { content: counter(lepes); display: block; font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--accent); margin-bottom: .6rem; }
.steps li p { color: var(--muted); }

/* Kártyák */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem 1.5rem; margin-bottom: 2rem; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.card-img, .card .ph { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: 1rem; }
.card-body { display: flex; flex-direction: column; gap: .2rem; }
.card-body strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; color: var(--dark); }
a.card:hover strong { color: var(--accent-dark); }

/* Stúdiók részletesen */
.legend { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .95rem; max-width: 46rem; }
.studio { display: grid; grid-template-columns: minmax(16rem, 21rem) 1fr; gap: 2rem 4rem; padding: 3rem 0; border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.studio h3 { font-size: 2rem; }
.studio-img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.25rem; }
.studio dl div { margin-bottom: .7rem; }
.studio dt { font-size: .82rem; color: var(--muted); letter-spacing: .03em; }
.studio dd { margin: 0; }
.vdr-window { background: var(--band); border-left: 3px solid var(--accent); padding: .7rem 1rem; font-weight: 500; }
.notes { padding-left: 1.1rem; color: var(--muted); font-size: .95rem; }
.rooms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem; }
.room-img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: .8rem; }
.room-body { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; }
.room-body p { margin: 0 0 .3rem; font-size: .97rem; }
.plan { width: 2.4rem; height: 2.4rem; background: #fff; border: 1px solid var(--band); }
.plan line { stroke-linecap: round; }
.plan .wall { stroke: var(--band); stroke-width: 2; }
.plan .lit { stroke: var(--accent); stroke-width: 4; }
.plan--none { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px dashed var(--accent); color: var(--muted); font-size: .9rem; }

/* Galéria */
.gallery { display: grid; gap: 1rem; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: .4rem; }

/* Vélemények */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.quote { margin: 0; background: var(--bg); padding: 2rem; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--display); font-size: 1.25rem; line-height: 1.5; }
.quote figcaption { color: var(--accent-dark); }
.quote-img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }

/* Felhívás, szöveg, GYIK, kapcsolat, impresszum */
.m-cta { text-align: center; }
.m-cta p { margin-inline: auto; max-width: 40rem; }
.page-head { padding-bottom: 1rem !important; }
details { border-bottom: 1px solid var(--band); padding: 1rem 0; }
summary { cursor: pointer; font-family: var(--display); font-size: 1.3rem; }
.big-link { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.facts div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--band); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Lábléc */
.site-foot { background: var(--dark); color: #d9d1c7; padding: 4rem 0 1.5rem; margin-top: 0; }
.site-foot a { color: #f1ede8; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot-brand { font-family: var(--display); font-size: 1.8rem; color: #fff; }
.foot-h { font-size: .85rem; letter-spacing: .06em; color: var(--accent); }
.site-foot ul { list-style: none; padding: 0; }
.site-foot .muted { color: #b9afa4; }
.social a { margin-right: 1rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(255 255 255 / .12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; color: #b9afa4; }
.foot-legal .links a { margin-left: 1.5rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .masthead nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--band); }
  .masthead nav.open { display: block; }
  .masthead nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .sub { position: static; display: flex !important; border: 0; box-shadow: none; padding: 0 0 0 1rem !important; }
  .split, .studio, .foot-grid { grid-template-columns: 1fr; }
  .side-right .split-img { order: 0; }
  .gallery.cols-3, .gallery.cols-4, .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles { gap: .75rem; }
  .tile-label { font-size: 1.15rem; padding: 2rem .8rem .7rem; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
  .foot-legal .links a { margin: 0 1.5rem 0 0; }
}
