/* ==========================================================================
   Milliomus Theme — inner pages (Rólunk, Kapcsolat, keresés, 404, page.php)
   Shared editorial components for non-listing pages. Loaded only when one of
   those templates is rendered (functions.php).
   ========================================================================== */

/* --- Page hero ------------------------------------------------------------ */

.page-hero {
	padding: 72px 0 40px;
}

.page-hero--roomy {
	padding-bottom: 56px;
}

.page-hero__title {
	max-width: 24ch;
	font-family: var(--font-display);
	font-size: var(--fs-section);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: var(--tracking-display);
	overflow-wrap: break-word;
}

.page-hero__lede {
	margin-top: 20px;
	max-width: 58ch;
	color: var(--ink-soft);
	font-size: clamp(1.0625rem, 0.35vw + 0.95rem, 1.1875rem);
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.page-section {
	padding: 0 0 88px;
}

.page-section--tight {
	padding-bottom: 56px;
}

.page-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 30px;
}

.page-section__head > *,
.gallery-head > * {
	min-width: 0;
}

.page-section__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.75rem);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: var(--tracking-title);
}

.page-section__note {
	color: var(--muted);
	font-size: var(--fs-subhead);
}

/* --- About (Rólunk) ------------------------------------------------------- */

.about-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.about-fact__value {
	font-family: var(--font-display);
	font-size: clamp(2rem, 2.6vw, 3rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.about-fact__label {
	margin-top: 6px;
	color: var(--muted);
	font-size: var(--fs-subhead);
}

.about-values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.about-value {
	padding-top: 20px;
	border-top: 2px solid var(--accent);
}

.about-value__title {
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.about-value__text {
	margin-top: 10px;
	color: var(--ink-soft);
	font-size: 0.9688rem;
}

/* --- Handover gallery (Rólunk #atadasok) ---------------------------------- */

.gallery-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.gallery-note {
	color: var(--muted);
	font-size: var(--fs-subhead);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-grid .delivery-tile__button {
	aspect-ratio: 1 / 1;
}

.gallery-more {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.gallery-grid.is-collapsed > li.is-hidden {
	display: none;
}

/* --- Contact (Kapcsolat) -------------------------------------------------- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

.contact-card {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.contact-card + .contact-card {
	margin-top: 18px;
}

.contact-card__title {
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-weight: 600;
}

.contact-hours {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.contact-hours li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 0.9688rem;
}

.contact-hours li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.contact-hours strong {
	color: var(--ink);
	font-weight: 600;
}

.contact-map {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-2);
	aspect-ratio: 16 / 11;
	margin-top: 18px;
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.contact-form-card {
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.contact-form-card__intro {
	margin-top: 14px;
	max-width: 48ch;
	color: var(--ink-soft);
	font-size: 1rem;
}

/* --- Search results ------------------------------------------------------- */

.search-head {
	padding: 64px 0 30px;
}

.search-form {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	max-width: 560px;
}

.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font-family: inherit;
	font-size: 1rem;
}

.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--accent-strong);
	box-shadow: var(--ring);
}

.search-block {
	padding: 0 0 64px;
}

.search-block__title {
	margin-bottom: 22px;
	font-family: var(--font-display);
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.search-list {
	display: grid;
	gap: 0;
}

.search-result {
	display: grid;
	gap: 6px;
	padding: 20px 4px;
	border-top: 1px solid var(--line);
}

.search-result:last-child {
	border-bottom: 1px solid var(--line);
}

.search-result__meta {
	color: var(--muted);
	font-size: var(--fs-caption);
	font-weight: 700;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
}

.search-result__title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
}

.search-result__title a:hover {
	color: var(--accent-strong);
}

.search-result__excerpt {
	color: var(--ink-soft);
	max-width: 78ch;
	font-size: 0.9688rem;
}

/* --- Empty state (shared: search, 404, filters) --------------------------- */

.empty-state {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 24px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-md);
	text-align: center;
	color: var(--muted);
}

.empty-state__icon {
	color: var(--accent-strong);
	opacity: 0.9;
}

.empty-state__title {
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 1.6vw + 0.7rem, 1.875rem);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.1;
}

.empty-state__text {
	max-width: 44ch;
	color: var(--ink-soft);
}

.empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 8px;
}

/* --- 404 ------------------------------------------------------------------ */

.error-hero {
	padding: 96px 0 40px;
}

.error-code {
	font-family: var(--font-display);
	font-size: clamp(4rem, 12vw, 9rem);
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--accent);
}

.error-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 40px;
}

.error-link {
	display: grid;
	gap: 6px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.error-link:hover {
	border-color: var(--line-strong);
}

.error-link__title {
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	font-weight: 600;
}

.error-link__text {
	color: var(--muted);
	font-size: var(--fs-subhead);
}

/* --- Generic page content (page.php) -------------------------------------- */

.prose {
	max-width: var(--measure);
	color: var(--ink-soft);
	font-size: clamp(1rem, 0.3vw + 0.92rem, 1.125rem);
}

.prose > * + * {
	margin-top: 20px;
}

.prose h2,
.prose h3 {
	margin-top: 36px;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: var(--tracking-title);
}

.prose h2 {
	font-size: clamp(1.5rem, 1.8vw + 0.6rem, 2rem);
}

.prose h3 {
	font-size: clamp(1.25rem, 1vw + 0.7rem, 1.5rem);
}

.prose a {
	color: var(--accent-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

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

.prose blockquote {
	margin: 0;
	padding-left: 20px;
	border-left: 3px solid var(--accent);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--ink);
}

.prose img {
	border-radius: var(--radius-md);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1100px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.about-values,
	.error-links {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	.page-hero,
	.search-head,
	.error-hero {
		padding-top: 48px;
	}

	.page-section__head,
	.gallery-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.page-section {
		padding-bottom: 64px;
	}

	.about-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

/* Saira Stencil lock — minden display-elem caps + 700 (lásd theme.css). */
.page-hero__title,
.page-section__title,
.about-value__title,
.about-fact__value,
.contact-card__title,
.search-block__title,
.search-result__title,
.empty-state__title,
.error-code,
.error-link__title,
.prose h2,
.prose h3,
.prose blockquote {
	text-transform: uppercase;
	font-weight: var(--fw-display);
}

/* ==========================================================================
   Kapcsolat — jármű-kontextus (D06/K03) és űrlap kiegyensúlyozás (K01)
   ========================================================================== */

/* A jármű-kontextus kártya a form tetején. */
.contact-context {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-md);
	background: var(--accent-soft);
}

.contact-context__label {
	color: var(--muted);
	font-size: var(--fs-legal);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.contact-context__car {
	color: var(--ink);
	font-weight: var(--fw-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* G09: adatkezelési tájékoztató a beküldés előtt. */
.contact-form__legal {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: var(--fs-legal);
}

.contact-form__legal a {
	color: var(--accent-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* K01: desktopon a rövid kapcsolatpanel a hosszabb űrlap mellett marad. */
@media (min-width: 1101px) {
	.contact-grid > :first-child {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

/* R02: a sötét (section-ink) fejezet után a világos szekció saját felső teret kap. */
.section-ink + .page-section {
	padding-top: var(--section-gap);
}

/* ==========================================================================
   Rólunk redesign 2026-10 — három eltérő kompozíció (nyitás / névváltás / fotónapló)
   ========================================================================== */

/* 1. Nyitás — nagy cím, majd teljes szélességű közös fotó. */
.about-open {
	padding: 72px 0 clamp(40px, 5vw, 72px);
}

/* Fejléc: a nagy cím balra, a bevezető jobbra — a fotósor rácsával egyvonalban. */
.about-open__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
	max-width: 1200px;
}

.about-open__head {
	min-width: 0;
}

.about-open__title {
	max-width: 20ch;
}

.about-open__lede {
	margin: 24px 0 0;
	max-width: 46ch;
	color: var(--ink-soft);
	font-size: clamp(1.0625rem, 0.35vw + 0.95rem, 1.1875rem);
}

/* Nyitó képcsoport: négy fotó egy alacsony sorban, rögzített keretmagasság. */
.about-open__gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.6vw, 24px);
	max-width: 1200px;
	margin-top: clamp(30px, 4vw, 52px);
}

.about-open__frame {
	margin: 0;
}

.about-open__frame img {
	display: block;
	width: 100%;
	height: clamp(280px, 26vw, 380px);
	object-fit: cover;
	object-position: center center;
	border-radius: var(--radius-md);
	background: var(--surface-2);
}

.about-open__caption {
	margin-top: 12px;
	color: var(--muted);
	font-size: var(--fs-meta);
}

/* 2. Névváltás — önálló fekete tipográfiai szakasz, oldalsó fotó nélkül. */
.about-name {
	padding: clamp(48px, 7vw, 96px) 0;
}

.about-name__transition {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: clamp(12px, 2vw, 28px);
	margin: 20px 0 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4.2vw, 4rem);
	font-weight: var(--fw-display);
	line-height: var(--lh-caps);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.about-name__old {
	color: rgba(242, 243, 239, 0.4);
}

.about-name__arrow {
	font-family: var(--font);
	font-weight: 400;
	color: var(--accent);
}

.about-name__new {
	color: #f2f3ef;
}

.about-name__title {
	margin-top: 28px;
	max-width: 26ch;
}

.about-name__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 56px);
	margin-top: 28px;
	max-width: 1120px;
}

.about-name__cols p {
	color: rgba(242, 243, 239, 0.82);
	font-size: clamp(1rem, 0.3vw + 0.92rem, 1.125rem);
}

.about-name__claims {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 44px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	list-style: none;
}

.about-name__claims li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.about-name__claims strong {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: var(--fw-display);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: #fff;
}

.about-name__claims span {
	color: rgba(242, 243, 239, 0.7);
	font-size: var(--fs-meta);
}

/* 3. Kiemelés + történet — a csapatfotó az idézet mellett. */
.about-quote-block {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}

.about-quote-block__body {
	min-width: 0;
}

/* A CSAPAT — a blokk címe a kiemelt mondat fölött. */
.about-quote__heading {
	margin: 0 0 clamp(14px, 1.6vw, 22px);
	color: var(--accent-strong);
	font-family: var(--font-display);
	font-size: var(--fs-h3);
	font-weight: var(--fw-display);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

/* Kiemelt mondat. */
.about-quote {
	margin: 0;
}

.about-quote p {
	max-width: 34ch;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.6vw, 2.4rem);
	font-weight: var(--fw-display);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.about-story {
	margin-top: 26px;
	max-width: 60ch;
	color: var(--ink-soft);
	font-size: clamp(1rem, 0.3vw + 0.92rem, 1.125rem);
}

.about-story p + p {
	margin-top: 18px;
}

.about-quote__media {
	margin: 0;
}

.about-quote__media img {
	display: block;
	width: 100%;
	height: clamp(380px, 42vw, 560px);
	object-fit: cover;
	object-position: center 60%;
	border-radius: var(--radius-md);
	background: var(--surface-2);
}

/* A CSAPAT — az oldal alján a két CTA középre. */
.about-cta .page-hero__actions {
	justify-content: center;
}

@media (max-width: 1024px) {
	.about-open__frame img {
		height: clamp(220px, 25vw, 300px);
	}
}

@media (max-width: 900px) {
	.about-name__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.about-name__claims {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-open__intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.about-open__lede {
		margin-top: 0;
	}

	.about-open__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.about-open__frame img {
		height: clamp(200px, 30vw, 280px);
	}

	.about-quote-block {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.about-quote__media {
		order: -1;
	}
}

@media (max-width: 380px) {
	.about-open__gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-open__frame img {
		height: clamp(240px, 70vw, 320px);
	}
}

/* ==========================================================================
   UI redesign 2026-10-01 — Kapcsolat / 404 / keresés
   ========================================================================== */

/* Kapcsolat — érkezési blokk: valódi telephely-fotó + elérhetőség-kártya. */
.contact-arrival {
	padding: 8px 0 var(--section-gap);
}

.contact-arrival__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	aspect-ratio: 3 / 2;
	background: var(--surface-2);
}

.contact-arrival__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contact-arrival__card {
	padding: clamp(22px, 3vw, 38px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.contact-arrival__title {
	margin: 0 0 18px;
	font-size: clamp(1.4rem, 1.2vw + 0.9rem, 2rem);
}

.contact-phone {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 18px;
	padding: 16px 18px;
	border-radius: var(--radius-md);
	background: var(--accent);
	color: var(--accent-ink);
	text-decoration: none;
}

.contact-phone:hover {
	background: var(--accent-deep);
}

.contact-phone__label {
	font-size: var(--fs-legal);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.contact-phone__number {
	font-family: var(--font-num);
	font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem);
	font-weight: 700;
	line-height: 1.1;
}

.contact-arrival__hours {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
}

.contact-arrival__hours li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-meta);
}

.contact-arrival__hours strong {
	color: var(--ink);
	font-weight: 700;
}

.contact-arrival__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Széles, önálló térkép-szakasz. */
.contact-map-section {
	padding: 0 0 var(--section-gap);
}

.contact-map--wide {
	aspect-ratio: 21 / 9;
	max-height: 520px;
	margin-top: 22px;
}

/* Autómentés — külön, jól felismerhető sáv. */
.contact-rescue__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(28px, 4vw, 48px) 0;
}

.contact-rescue__title {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 1.4vw + 0.9rem, 2.2rem);
}

/* 404 — fotós hero finomítása. */
.error-hero--photo {
	padding: clamp(56px, 9vw, 120px) 0;
}

.error-hero__actions {
	margin-top: 22px;
}

/* Keresés fejléc. */
.search-head__title {
	font-size: clamp(1.5rem, 1.4vw + 0.9rem, 2.4rem);
}
