/*
Theme Name:   AI Cégvezetőknek
Theme URI:    https://aicegvezetoknek.hu
Description:  Twenty Twenty-Five gyerektéma az AI Cégvezetőknek.hu kampányoldalhoz. Hero háttér: procedurális pontháló vízhullám-effekttel (hero-ripple).
Author:       Zsigmond László
Template:     twentytwentyfive
Version:      1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  aicv
*/

:root {
	--aicv-navy: #060F2D;
	--aicv-blue: #3F59FF;
	--aicv-coral: #DA4D4F;
	--aicv-grad: linear-gradient(68deg, #D44E54 0%, #296BD2 100%);
}

/* ---- Hero szekció kerete ----
   A minta szerint a hero fehér lapon ül, 10 px margóval, 20 px-es lekerekítéssel. */
.aicv-hero {
	margin: 10px;
	min-height: 600px;
	height: min(92vh, 900px);
	border-radius: 20px;
	color: #ffffff;
}

.aicv-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1440px;
	height: 100%;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 64px);
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: center;
	box-sizing: border-box;
}

.aicv-hero__text {
	min-width: 0;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

/* Címke: pill, 1 px átmenetes kerettel */
.aicv-eyebrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #FFD3D4;
	background: rgba(6, 15, 45, 0.35);
}
.aicv-eyebrow::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	padding: 1px;
	background: var(--aicv-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.aicv-hero__title {
	margin: 0;
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-wrap: balance;
	max-width: 20ch;
	text-shadow: 0 2px 4px rgba(4, 8, 30, .55), 0 10px 40px rgba(4, 8, 30, .55);
}

.aicv-hero__lead {
	margin: 0;
	max-width: 52ch;
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	text-shadow: 0 1px 2px rgba(4, 8, 30, .5), 0 6px 24px rgba(4, 8, 30, .45);
}

.aicv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

/* Pill gombok, külön nyílkoronggal */
.aicv-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: #ffffff;
	border: 1px solid transparent;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.aicv-btn i {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: inline-grid;
	place-items: center;
	font-style: normal;
	font-size: 15px;
}
.aicv-btn--primary {
	background: var(--aicv-blue);
	box-shadow: 0 10px 26px rgba(63, 89, 255, 0.35);
}
.aicv-btn--primary i {
	background: #ffffff;
	color: var(--aicv-blue);
}
.aicv-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.24);
}
.aicv-btn--ghost i {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}
.aicv-btn:hover {
	transform: translateY(-2px);
	color: #ffffff;
}
.aicv-btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* Jobb oldali kiemelt kép: a szöveggel egy magasságban, középre igazítva */
.aicv-hero__media {
	min-width: 0;
	align-self: center;
	display: flex;
	justify-content: center;
}
.aicv-hero__img {
	display: block;
	width: 100%;
	max-width: 660px;
	max-height: calc(min(92vh, 900px) - 2 * clamp(24px, 4vw, 64px));
	object-fit: contain;
	height: auto;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}

/* Amíg nincs szöveg: a kép a végleges helyén, a jobb oldali oszlopban marad */
.aicv-hero--no-text .aicv-hero__media {
	grid-column: 2;
}

@media (max-width: 900px) {
	.aicv-hero {
		height: auto;
		min-height: 0;
	}
	.aicv-hero__inner {
		grid-template-columns: 1fr;
		padding-top: 48px;
		padding-bottom: 0;
	}
	.aicv-hero__text {
		padding-bottom: 8px;
	}
	.aicv-hero__title {
		max-width: none;
	}
	.aicv-hero__media {
		justify-content: center;
		margin-bottom: 0;
	}
	.aicv-hero__img {
		max-width: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aicv-btn { transition: none; }
	.aicv-btn:hover { transform: none; }
}

/* ---- Fejléc a hero tetején (a mintán a navigáció a hero dobozban ül) ---- */
.aicv-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 18px clamp(20px, 3vw, 40px);
	box-sizing: border-box;
}
.aicv-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
}
.aicv-logo__mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--aicv-grad);
	display: inline-grid;
	place-items: center;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -0.03em;
	position: relative;
}
.aicv-logo__mark i {
	position: absolute;
	right: 4px;
	top: 2px;
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
}
.aicv-logo__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.2; white-space: nowrap; }
.aicv-logo__text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.aicv-logo__text small { display: block; font-size: 10px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.aicv-nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.aicv-nav__links a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	opacity: .9;
}
.aicv-nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.aicv-btn--sm { padding: 6px 6px 6px 18px; font-size: 14px; }
.aicv-btn--sm i { width: 28px; height: 28px; font-size: 13px; }

/* hely a fejlécnek a hero belsejében */
.aicv-hero__inner { padding-top: calc(clamp(24px, 4vw, 64px) + 24px); padding-bottom: calc(clamp(24px, 4vw, 64px) + 104px); }
.aicv-hero__note { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
	.aicv-nav { flex-wrap: wrap; row-gap: 12px; }
	.aicv-nav__links { order: 3; width: 100%; flex-wrap: wrap; gap: 10px 18px; }
	.aicv-nav__cta { margin-left: auto; }
	.aicv-logo__text small { display: none; }
	.aicv-hero__inner { padding-top: 150px; padding-bottom: 40px; }
}

/* ---- Vissza az elejére gomb (jobb alsó sarok) ---- */
html { scroll-behavior: smooth; }
.aicv-totop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 50;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--aicv-blue);
	box-shadow: 0 10px 26px rgba(63, 89, 255, .35);
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.aicv-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.aicv-totop:hover { background: var(--aicv-royal); color: #fff; }
.aicv-totop:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .aicv-totop { transition: none; } }

/* Sötétítő fátyol a szöveg mögött, hogy a főcím elváljon a mozgó háttértől */
.aicv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(4, 8, 30, .62) 0%, rgba(4, 8, 30, .38) 38%, rgba(4, 8, 30, 0) 62%),
		linear-gradient(180deg, rgba(4, 8, 30, .35) 0%, rgba(4, 8, 30, 0) 30%);
}
