/* ==========================================================================
   Esti Szerelvény – arculati stíluslap
   A HTML-prototípus alapján. Minden szín és betűméret innen jön.
   ========================================================================== */

/* --- Betűtípusok (helyben tárolva, nem a Google szerveréről) -------------- */

@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/caveat-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Caveat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/caveat-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/poppins-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/poppins-800-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Poppins';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('../fonts/poppins-800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Alapváltozók --------------------------------------------------------- */

:root {
	--es-bg: #EAF3FF;
	--es-surface: #FFFFFF;
	--es-line: #D7E9FC;
	--es-blue: #0A6EBC;
	--es-blue-dark: #075296;
	--es-ink: #122844;
	--es-muted: #57708A;
	--es-footer-muted: #9FB3CB;
	--es-green: #2E9E5B;
	--es-wrap: 1160px;
	--es-pad: 32px;
	--es-radius: 14px;
}

/* --- Alapok --------------------------------------------------------------- */

body {
	margin: 0;
	background: var(--es-bg);
	color: var(--es-ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a, a:visited { color: var(--es-blue); text-decoration: none; }
a:hover, a:focus, a:active { color: var(--es-blue-dark); }
::selection { background: var(--es-line); }

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

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--es-blue);
	outline-offset: 2px;
}

.es-wrap {
	max-width: var(--es-wrap);
	margin: 0 auto;
	padding-left: var(--es-pad);
	padding-right: var(--es-pad);
}

.es-screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --- Tipográfia ----------------------------------------------------------- */

.es-display {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	color: var(--es-ink);
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0;
}

.es-script {
	font-family: 'Caveat', cursive;
	font-weight: 600;
	color: var(--es-blue);
}

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

.es-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--es-bg);
	border-bottom: 1px solid var(--es-line);
}

.es-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.es-logo { display: block; line-height: 0; }
.es-logo img { height: 34px; width: auto; object-fit: contain; display: block; }

.es-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
	align-items: center;
}

.es-nav a {
	display: block;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	color: var(--es-blue-dark);
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}

.es-nav a:hover { background: var(--es-line); }

.es-nav .current-menu-item > a,
.es-nav .current_page_item > a,
.es-nav .current-menu-ancestor > a {
	background: var(--es-blue);
	color: #fff;
}

.es-status {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--es-line);
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--es-blue-dark);
	white-space: nowrap;
}

.es-status__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--es-muted);
	display: inline-block;
	flex: none;
}

.es-status.is-open .es-status__dot { background: var(--es-green); }

/* --- Gombok --------------------------------------------------------------- */

.es-btn {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease, color .15s ease;
}

.es-btn--primary {
	background: var(--es-blue);
	color: #fff;
	border: none;
	padding: 15px 28px;
}
.es-btn--primary:hover { background: var(--es-blue-dark); color: #fff; }

.es-btn--ghost {
	background: #fff;
	color: var(--es-blue);
	border: 2px solid var(--es-blue);
	padding: 13px 26px;
}
.es-btn--ghost:hover { background: var(--es-line); }

.es-btn--light {
	background: #fff;
	color: var(--es-blue);
	border: none;
	padding: 14px 26px;
}
.es-btn--light:hover { background: var(--es-line); }

/* --- Hero ----------------------------------------------------------------- */

.es-hero {
	padding-top: 88px;
	padding-bottom: 96px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}

.es-hero__eyebrow {
	font-size: 26px;
	margin-bottom: 10px;
	transform: rotate(-2deg);
	display: inline-block;
}

.es-hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 22px; }

.es-hero__lead {
	font-size: 17px;
	line-height: 1.65;
	color: var(--es-muted);
	max-width: 480px;
	margin: 0 0 32px;
}

.es-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.es-hero__media {
	background: var(--es-line);
	border-radius: 20px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.es-hero__media iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Előnyök sáv ---------------------------------------------------------- */

.es-band {
	background: var(--es-surface);
	border-top: 1px solid var(--es-line);
	border-bottom: 1px solid var(--es-line);
}

.es-features {
	padding-top: 56px;
	padding-bottom: 56px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.es-feature__icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--es-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.es-feature__icon i {
	width: 16px; height: 16px;
	background: var(--es-blue);
	display: block;
}
.es-feature__icon--square i { border-radius: 4px; }
.es-feature__icon--circle i { border-radius: 50%; }
.es-feature__icon--sharp i { border-radius: 2px; }

.es-feature h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 17px;
	margin: 0 0 8px;
	color: var(--es-ink);
}
.es-feature p { font-size: 14.5px; line-height: 1.6; color: var(--es-muted); margin: 0; }

/* --- Szekciók ------------------------------------------------------------- */

.es-section { padding-top: 80px; padding-bottom: 80px; }

.es-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 12px;
}
.es-section__head h2 { font-size: 30px; margin: 0; }
.es-section__more { font-weight: 600; font-size: 14px; }

/* --- Kártyák -------------------------------------------------------------- */

.es-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.es-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.es-card {
	background: var(--es-surface);
	border: 1px solid var(--es-line);
	border-radius: var(--es-radius);
	overflow: hidden;
}

.es-card--lg { border-radius: 16px; }

a.es-card,
a.es-card:visited {
	display: block;
	color: var(--es-ink);
	transition: border-color .15s ease, transform .15s ease;
}
a.es-card:hover,
a.es-card:focus {
	color: var(--es-ink);
	border-color: var(--es-blue);
	transform: translateY(-2px);
}

.es-card__thumb {
	position: relative;
	background: var(--es-line);
	overflow: hidden;
	background-image: repeating-linear-gradient(135deg, #c7e0f8, #c7e0f8 10px, #d7e9fc 10px, #d7e9fc 20px);
}
.es-card__thumb--square { aspect-ratio: 1; }
.es-card__thumb--wide {
	aspect-ratio: 16 / 10;
	background-image: repeating-linear-gradient(45deg, #c7e0f8, #c7e0f8 12px, #d7e9fc 12px, #d7e9fc 24px);
}
.es-card__thumb img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

.es-card__tag {
	position: absolute;
	bottom: 10px; left: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	color: var(--es-blue-dark);
	background: #fff;
	padding: 4px 10px;
	border-radius: 6px;
}

.es-card__label { padding: 14px 16px; font-weight: 600; font-size: 14.5px; }

.es-card__body { padding: 18px 20px; }
.es-card__body h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 17px;
	margin: 0 0 6px;
	color: var(--es-ink);
}
.es-card__body p { font-size: 13.5px; color: var(--es-muted); margin: 0; }

/* --- Kék CTA sáv ---------------------------------------------------------- */

.es-cta { background: var(--es-blue); }
.es-cta__inner {
	padding-top: 56px;
	padding-bottom: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
}
.es-cta h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 24px;
	color: #fff;
	margin: 0 0 8px;
}
.es-cta p { color: var(--es-bg); font-size: 15px; margin: 0; }

/* --- Aloldalak ------------------------------------------------------------ */

.es-page { padding-top: 64px; padding-bottom: 96px; }
.es-page h1 { font-size: 38px; margin: 0 0 12px; }
.es-page__intro {
	font-size: 16px;
	color: var(--es-muted);
	max-width: 560px;
	margin: 0 0 40px;
	line-height: 1.6;
}

.es-wrap--narrow { max-width: 820px; }
.es-prose { max-width: 820px; }
.es-prose p { font-size: 16px; line-height: 1.75; color: var(--es-ink); margin: 0 0 18px; }
.es-prose p:last-child { margin-bottom: 0; }
.es-prose h2 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; margin: 32px 0 12px; }
.es-prose--muted p { color: var(--es-muted); font-size: 15px; }
.es-prose__sign { margin-top: 40px; font-size: 26px; }

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

.es-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.es-panel {
	background: var(--es-surface);
	border: 1px solid var(--es-line);
	border-radius: 16px;
	padding: 28px;
	margin-bottom: 20px;
}
.es-panel h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 16px;
	margin: 0 0 10px;
	color: var(--es-ink);
}
.es-panel p { font-size: 15px; color: var(--es-muted); margin: 0 0 18px; }
.es-panel p:last-child { margin-bottom: 0; }

.es-map {
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
}
.es-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.es-note {
	background: var(--es-line);
	border-radius: 16px;
	padding: 28px;
}
.es-note p { font-size: 24px; color: var(--es-blue-dark); margin: 0; }

/* --- Űrlap (Contact Form 7 is ezt kapja) ---------------------------------- */

.es-form {
	background: var(--es-surface);
	border: 1px solid var(--es-line);
	border-radius: 16px;
	padding: 32px;
}

.es-form label,
.es-form .wpcf7-form-control-wrap { display: block; }

.es-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--es-ink);
	margin-bottom: 16px;
}

.es-form input[type="text"],
.es-form input[type="email"],
.es-form input[type="tel"],
.es-form textarea {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1px solid var(--es-line);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--es-ink);
	background: #fff;
}
.es-form textarea { resize: vertical; min-height: 110px; }

.es-form input::placeholder,
.es-form textarea::placeholder { color: #9FB3CB; }

.es-form input[type="submit"],
.es-form button[type="submit"] {
	width: 100%;
	background: var(--es-blue);
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.es-form input[type="submit"]:hover,
.es-form button[type="submit"]:hover { background: var(--es-blue-dark); }

.es-form .wpcf7-not-valid-tip { color: #C0392B; font-size: 12.5px; font-weight: 500; }
.es-form .wpcf7-response-output {
	margin: 16px 0 0;
	border-radius: 8px;
	font-size: 13.5px;
	padding: 12px 14px;
}
.es-form .wpcf7-spinner { display: block; margin: 10px auto 0; }

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

.es-footer { background: var(--es-ink); }
.es-footer__inner {
	padding-top: 40px;
	padding-bottom: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.es-footer__brand {
	font-family: 'Caveat', cursive;
	font-weight: 600;
	font-size: 26px;
	color: #fff;
	margin-bottom: 8px;
}
.es-footer__meta { font-size: 13px; color: var(--es-footer-muted); line-height: 1.7; }
.es-footer__meta a { color: var(--es-footer-muted); }
.es-footer__meta a:hover { color: #fff; }
.es-footer__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	text-align: right;
}
.es-footer__right a { font-size: 13px; color: var(--es-bg); font-weight: 600; }
.es-footer__right a:hover { color: #fff; }

/* --- Reszponzív ----------------------------------------------------------- */

@media (max-width: 1024px) {
	.es-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.es-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.es-hero h1 { font-size: 42px; }
}

@media (max-width: 900px) {
	.es-header__inner { flex-wrap: wrap; gap: 12px; }
	.es-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.es-nav ul { flex-wrap: nowrap; padding-bottom: 4px; }
	.es-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
	.es-hero__media { aspect-ratio: 16 / 10; }
	.es-features { grid-template-columns: 1fr; gap: 28px; }
	.es-contact { grid-template-columns: 1fr; gap: 32px; }
	.es-section { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 640px) {
	:root { --es-pad: 20px; }
	.es-hero h1 { font-size: 34px; }
	.es-page h1 { font-size: 30px; }
	.es-section__head h2 { font-size: 24px; }
	.es-grid-4, .es-grid-3 { grid-template-columns: 1fr; }
	.es-status { font-size: 12px; padding: 6px 12px; }
	.es-footer__inner { flex-direction: column; align-items: flex-start; }
	.es-footer__right { align-items: flex-start; text-align: left; }
	.es-form { padding: 22px; }
	.es-panel, .es-note { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* --- Blog / keresés / 404 (nem használt sablonok alap-igazítása) ---------- */

body:not(.page) .site-main,
body:not(.page) .widget-area {
	max-width: var(--es-wrap);
	margin: 0 auto;
	padding: 64px var(--es-pad);
}

body:not(.page) .entry-title,
body:not(.page) .page-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	color: var(--es-ink);
}

/* --- A blokkszerkesztő ne szűkítse a teljes szélességű szekciókat --------- */

.site-main > .es-band,
.site-main > .es-cta { width: 100%; }
