/* ==========================================================================
   Rőczey Ferenc emlékoldal – alap stílus
   ========================================================================== */

:root {
	--color-text: #333333;
	--color-heading: #1c1c1c;
	--color-accent: #3a8dce;
	--color-accent-dark: #1f6cab;
	--color-bg: #ffffff;
	--color-bg-alt: #f7f5f2;
	--color-border: #e2ded6;
	--font-heading: 'Roboto', Arial, sans-serif;
	--font-body: 'Roboto', Arial, sans-serif;
	--max-width: 1140px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	font-size: 17px;
}

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

a {
	color: var(--color-accent-dark);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Fejléc ---------- */

.site-header {
	background: #f5f5f5 url("../images/gallery/clouds.jpg") no-repeat center top;
	background-size: cover;
	border-bottom: 3px solid var(--color-accent);
	padding: 24px 0 0;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.site-title {
	margin: 0;
	font-size: 28px;
	letter-spacing: 1px;
	color: var(--color-heading);
	text-align: center;
	width: 100%;
}

.site-subtitle {
	margin: 2px 0 16px;
	font-size: 15px;
	color: #777;
	text-align: center;
	width: 100%;
	font-weight: normal;
}

/* ---------- Menü ---------- */

.main-nav {
	width: 100%;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	border-top: 1px solid var(--color-border);
}

.main-nav li {
	margin: 0;
}

.main-nav a {
	display: block;
	padding: 14px 18px;
	color: var(--color-heading);
	font-size: 15px;
	font-weight: 500;
	border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--color-accent-dark);
	border-bottom-color: var(--color-accent);
	text-decoration: none;
}

/* ---------- Fő tartalom ---------- */

main {
	padding: 40px 0 60px;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	line-height: 1.3;
}

.page-title {
	text-align: center;
	font-size: 42px;
	margin-bottom: 30px;
}

.lead {
	font-size: 20px;
	color: #444;
	text-align: center;
	max-width: 900px;
	margin: 0 auto 30px;
}

.hero {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.hero__portrait {
	flex: 0 0 280px;
	max-width: 280px;
	margin: 0 auto;
}

.hero__portrait img {
	border-radius: 4px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.15);
	cursor: zoom-in;
}

.hero__text {
	flex: 1 1 400px;
	min-width: 260px;
}

.hero__text h2 {
	font-weight: 400;
	font-size: 22px;
}

.bio p {
	margin: 0 0 18px;
	text-align: justify;
}

.note-box {
	background: var(--color-bg-alt);
	border-left: 4px solid var(--color-accent);
	padding: 16px 20px;
	margin-top: 30px;
	font-size: 16px;
}

/* ---------- Lábléc ---------- */

.site-footer {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	padding: 22px 0;
	text-align: center;
	color: #777;
	font-size: 14px;
}

.site-footer .socials {
	display: inline-flex;
	gap: 10px;
	margin-left: 12px;
	vertical-align: middle;
}

.site-footer .socials img {
	width: 20px;
	height: 20px;
}

/* ---------- Videók / Publikációk oldal ---------- */

.link-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.link-list li {
	margin-bottom: 8px;
}

.section-block {
	margin-bottom: 36px;
}

.section-block h2 {
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.video-caption {
	font-weight: 600;
	margin: 0 0 6px;
}

/* ---------- Kollégák emlékei ---------- */

.memory {
	display: flex;
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--color-border);
	flex-wrap: wrap;
}

.memory:last-child {
	border-bottom: none;
}

.memory__photo {
	flex: 0 0 160px;
	max-width: 160px;
}

.memory__photo img {
	border-radius: 4px;
}

.memory__text {
	flex: 1 1 400px;
	min-width: 260px;
}

.memory__text p {
	text-align: justify;
}

.memory__author {
	margin-top: 10px;
	font-weight: 600;
	color: var(--color-accent-dark);
}

/* ---------- Kapcsolat / Form ---------- */

.contact-form {
	max-width: 640px;
	margin: 30px auto 0;
}

.contact-form .field {
	margin-bottom: 18px;
}

.contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 16px;
}

.contact-form textarea {
	resize: vertical;
}

.contact-form button {
	background: var(--color-accent);
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
}

.contact-form button:hover {
	background: var(--color-accent-dark);
}

.form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	display: none;
}

.form-message.success {
	display: block;
	background: #e5f6e8;
	color: #276b34;
	border: 1px solid #b7e0bf;
}

.form-message.error {
	display: block;
	background: #fbe7e7;
	color: #9c2a2a;
	border: 1px solid #f2bcbc;
}

/* ---------- Modell H0 oldal ---------- */

.model-intro {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 30px;
}

.model-intro .price {
	font-size: 22px;
	color: #ae2c2c;
	font-weight: 700;
}

.model-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin-bottom: 40px;
}

.model-video-grid video {
	width: 100%;
	border-radius: 4px;
	background: #000;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin-bottom: 40px;
}

.gallery-grid a {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	background: var(--color-bg-alt);
}

.gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.gallery-grid a:hover img {
	transform: scale(1.06);
}

.catalog-link {
	text-align: right;
	margin: 0 0 30px;
}

.catalog-link a {
	color: #ae2c2c;
	font-weight: 700;
	text-decoration: underline;
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 30px;
}

.lightbox.is-open {
	display: flex;
}

.lightbox img {
	max-width: 100%;
	max-height: 90vh;
	margin: 0 auto;
	box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
	position: absolute;
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	padding: 10px 16px;
	cursor: pointer;
	border-radius: 4px;
}

.lightbox__close {
	top: 20px;
	right: 20px;
}

.lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.site-title {
		font-size: 22px;
	}

	.page-title {
		font-size: 30px;
	}

	.hero {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}
