/* LIWAGCares public homepage — hero landing (shared tokens with login/dashboard) */

:root {
	--brand-start: #1e2a78;
	--brand-end: #2f3fa0;
	--panel-bg: #f5f6fa;
	--text-deep: #1b1f55;
	--text-muted: #6a7085;
	--primary-a: #4d69d6;
	--primary-b: #6f86e5;
	--primary-shadow: rgba(60, 86, 198, 0.35);
	--card-shadow: 0 18px 50px rgba(20, 33, 85, 0.12);
	--soft-radius: 14px;
	--home-nav-h: 72px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	min-height: 100%;
	font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
	color: var(--text-deep);
	background: var(--panel-bg);
}

.public-homepage {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ── Entrance animations ─────────────────────────────────────── */

@keyframes home-nav-enter {
	from {
		opacity: 0;
		transform: translateY(-18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes home-hero-bg-enter {
	from {
		opacity: 0;
		transform: scale(1.12);
	}
	to {
		opacity: 1;
		transform: scale(1.04);
	}
}

@keyframes home-hero-overlay-enter {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes home-fade-up {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes home-bar-rise {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes home-reveal-up {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.home-nav {
	animation: home-nav-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__bg {
	animation: home-hero-bg-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__overlay {
	animation: home-hero-overlay-enter 1.1s ease-out 0.1s both;
}

.home-hero__eyebrow {
	animation: home-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.home-hero__headline {
	animation: home-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.home-hero__lead {
	animation: home-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

.home-hero__actions {
	animation: home-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

.home-quick-bar {
	animation: home-bar-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.home-reveal {
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
}

.home-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.home-footer {
	animation: home-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.script-word {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-weight: 600;
}

/* ── Top navigation (over hero) ─────────────────────────────── */

.home-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--home-nav-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 clamp(20px, 4vw, 56px);
	background: linear-gradient(180deg, rgba(18, 27, 92, 0.72) 0%, rgba(18, 27, 92, 0) 100%);
}

.home-nav__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #fff;
	min-width: 0;
}

.home-nav__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.55);
	flex-shrink: 0;
}

.home-nav__title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.home-nav__links {
	display: flex;
	align-items: center;
	gap: clamp(8px, 1.5vw, 20px);
	flex-shrink: 0;
}

.home-nav__link {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 8px 4px;
	transition: color 0.2s ease;
}

.home-nav__link:hover,
.home-nav__link:focus-visible {
	color: #fff;
	outline: none;
}

.home-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--brand-start);
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-nav__cta:hover,
.home-nav__cta:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	outline: none;
}

/* ── Hero section ───────────────────────────────────────────── */

.home-hero {
	position: relative;
	min-height: 78vh;
	display: flex;
	align-items: center;
	padding: calc(var(--home-nav-h) + 32px) clamp(20px, 4vw, 56px) 100px;
	isolation: isolate;
	overflow: hidden;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	background: var(--home-hero-image, none) center / cover no-repeat;
	transform: scale(1.04);
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(115deg, rgba(18, 27, 92, 0.92) 0%, rgba(30, 42, 120, 0.78) 45%, rgba(47, 63, 160, 0.55) 100%),
		radial-gradient(circle at 80% 20%, rgba(111, 134, 229, 0.25), transparent 50%);
}

.home-hero__content {
	width: min(100%, 720px);
	color: #fff;
}

.home-hero__eyebrow {
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.home-hero__headline {
	margin: 0;
	font-size: clamp(2.2rem, 5.5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: 14ch;
}

.home-hero__lead {
	margin: 20px 0 0;
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
	max-width: 52ch;
}

.home-hero__actions {
	margin-top: clamp(28px, 4vh, 40px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(20px, 3vw, 36px);
}

.home-hero__action-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.home-hero__action-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.62);
}

.home-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	border: 2px solid transparent;
}

.home-btn--solid {
	background: #fff;
	color: var(--brand-start);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.home-btn--solid:hover,
.home-btn--solid:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
	outline: none;
}

.home-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.65);
}

.home-btn--ghost:hover,
.home-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	outline: none;
}

.home-btn--primary {
	background: linear-gradient(145deg, var(--primary-a), var(--primary-b));
	color: #fff;
	border: none;
	box-shadow: 0 10px 24px var(--primary-shadow);
}

.home-btn--primary:hover,
.home-btn--primary:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.04);
	outline: none;
}

/* ── Floating quick-action bar (Robert Half–style) ──────────── */

.home-quick-bar {
	position: relative;
	z-index: 20;
	margin-top: -60px;
	padding: 0 clamp(20px, 4vw, 56px) 0;
}

.home-quick-bar__inner {
	max-width: 1080px;
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--card-shadow);
	border: 1px solid rgba(255, 255, 255, 0.9);
	padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 28px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: center;
}

.home-quick-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--text-deep);
	transition: background 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	min-width: 0;
}

.home-quick-item:hover,
.home-quick-item:focus-visible {
	background: rgba(237, 241, 255, 0.9);
	transform: translateY(-2px);
	outline: none;
}

.home-quick-item__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(77, 105, 214, 0.14), rgba(111, 134, 229, 0.2));
	color: var(--primary-a);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.home-quick-item__icon svg {
	width: 20px;
	height: 20px;
}

.home-quick-item__text strong {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
}

.home-quick-item__text span {
	display: block;
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-top: 2px;
}

.home-quick-bar__cta {
	min-width: 148px;
	white-space: nowrap;
}

/* ── Features strip ─────────────────────────────────────────── */

.home-features {
	padding: clamp(48px, 8vh, 80px) clamp(20px, 4vw, 56px);
	background: var(--panel-bg);
}

.home-features__inner {
	max-width: 1080px;
	margin: 0 auto;
}

.home-features__header {
	text-align: center;
	max-width: 560px;
	margin: 0 auto clamp(32px, 5vh, 48px);
}

.home-features__header h2 {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 800;
	color: var(--text-deep);
}

.home-features__header p {
	margin: 10px 0 0;
	color: var(--text-muted);
	font-size: 1rem;
	line-height: 1.55;
}

.home-features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.home-feature-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px 22px;
	border: 1px solid rgba(216, 220, 235, 0.8);
	box-shadow: 0 8px 24px rgba(20, 33, 85, 0.06);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.home-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(20, 33, 85, 0.1);
}

.home-feature-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--primary-a), var(--primary-b));
	color: #fff;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}

.home-feature-card__icon svg {
	width: 24px;
	height: 24px;
}

.home-feature-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text-deep);
}

.home-feature-card p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--text-muted);
}

/* ── Mission / Vision / Services / Personnel / Testimonials ──── */

.home-services,
.home-personnel,
.home-testimonials {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
}

/* Alternating bands give the long run of below-the-fold sections visual
   rhythm instead of one uniform grey field. */
.home-services,
.home-testimonials {
	background: #fff;
}

.home-personnel {
	background: #eef1fb;
}

/* Mission / Vision / Core Values share the hero's photo + blue overlay
   treatment so the band at the top and this one read as one design. Plain
   centered typography (no card panels) to match the reference layout. */
.home-mvcv {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(56px, 8vw, 100px) clamp(20px, 4vw, 56px);
}

.home-mvcv__bg {
	position: absolute;
	inset: 0;
	z-index: -3;
	background: var(--home-hero-image, none) center / cover no-repeat;
}

.home-mvcv__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(115deg, rgba(18, 27, 92, 0.94) 0%, rgba(30, 42, 120, 0.9) 45%, rgba(47, 63, 160, 0.86) 100%),
		radial-gradient(circle at 80% 15%, rgba(111, 134, 229, 0.25), transparent 50%);
}

.home-mvcv__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
}

.home-mvcv__block {
	margin: 0 0 clamp(40px, 6vw, 64px);
}

.home-mvcv__block:last-child {
	margin-bottom: 0;
}

.home-mvcv__block h2 {
	margin: 0 0 14px;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #fff;
}

.home-mvcv__block p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
}

.home-mvcv__core-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: 4px;
}

.home-mvcv__core-item {
	max-width: 520px;
}

.home-mvcv__core-name {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
}

.home-mvcv__core-desc {
	display: block;
	margin-top: 4px;
	font-size: 0.88rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}

.home-services__inner,
.home-personnel__inner,
.home-testimonials__inner {
	max-width: 1080px;
	margin: 0 auto;
	text-align: center;
}

.home-services__inner h2,
.home-personnel__inner h2,
.home-testimonials__inner h2 {
	margin: 0 0 28px;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 800;
	color: var(--text-deep);
}

/* ── Services ───────────────────────────────────────────────── */

.home-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	text-align: left;
}

.home-service-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f8f9ff;
	border: 1px solid rgba(216, 220, 235, 0.8);
	border-radius: 14px;
	padding: 16px 18px;
	font-weight: 600;
	color: var(--text-deep);
}

.home-service-item__icon {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--primary-a), var(--primary-b));
	color: #fff;
	display: grid;
	place-items: center;
}

.home-service-item__icon svg {
	width: 17px;
	height: 17px;
}

/* ── Personnel ──────────────────────────────────────────────── */

.home-personnel__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.home-person-card {
	background: #fff;
	border-radius: 16px;
	padding: 26px 20px;
	border: 1px solid rgba(216, 220, 235, 0.8);
	box-shadow: 0 8px 24px rgba(20, 33, 85, 0.06);
	text-align: center;
}

.home-person-card__avatar {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--primary-a), var(--primary-b));
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}

.home-person-card h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 800;
	color: var(--text-deep);
}

.home-person-card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* ── Testimonials ───────────────────────────────────────────── */

.home-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	text-align: left;
}

.home-testimonial-card {
	position: relative;
	background: #f8f9ff;
	border: 1px solid rgba(216, 220, 235, 0.8);
	border-radius: 16px;
	padding: 26px 24px 22px;
}

.home-testimonial-card__mark {
	display: block;
	font-family: Georgia, serif;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--primary-a);
	opacity: 0.35;
	margin-bottom: 6px;
}

.home-testimonial-card p {
	margin: 0 0 14px;
	color: var(--text-deep);
	line-height: 1.6;
}

.home-testimonial-card__author {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text-muted);
}

.home-testimonials__empty {
	max-width: 420px;
	margin: 0 auto;
	padding: 30px 24px;
	background: #f8f9ff;
	border: 1px dashed rgba(180, 190, 220, 0.9);
	border-radius: 16px;
}

.home-testimonials__empty-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(77, 105, 214, 0.14), rgba(111, 134, 229, 0.2));
	color: var(--primary-a);
}

.home-testimonials__empty-icon svg {
	width: 22px;
	height: 22px;
}

.home-testimonials__empty p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.6;
}

@media (max-width: 640px) {
	.home-services__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Footer ─────────────────────────────────────────────────── */

.home-footer {
	margin-top: auto;
	padding: 24px clamp(20px, 4vw, 56px) 28px;
	text-align: center;
	background: #fff;
	border-top: 1px solid rgba(216, 220, 235, 0.9);
}

.home-footer p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--text-muted);
}

.home-footer__links {
	margin-top: 6px !important;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
	.home-quick-bar__inner {
		grid-template-columns: 1fr 1fr;
	}

	.home-quick-bar__cta {
		grid-column: 1 / -1;
		width: 100%;
	}

	.home-features__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	:root {
		--home-nav-h: auto;
	}

	.home-nav {
		position: absolute;
		flex-wrap: wrap;
		padding-top: 14px;
		padding-bottom: 10px;
		height: auto;
	}

	.home-hero {
		padding-top: 120px;
		padding-bottom: 120px;
		min-height: 92vh;
	}

	.home-hero__headline {
		max-width: none;
	}

	.home-quick-bar {
		margin-top: -64px;
	}

	.home-quick-bar__inner {
		grid-template-columns: 1fr;
	}

	.home-nav__links {
		width: 100%;
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-nav,
	.home-hero__bg,
	.home-hero__overlay,
	.home-hero__eyebrow,
	.home-hero__headline,
	.home-hero__lead,
	.home-hero__actions,
	.home-quick-bar,
	.home-footer {
		animation: none;
	}

	.home-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.home-btn,
	.home-nav__cta,
	.home-quick-item,
	.home-feature-card {
		transition: none;
	}

	.home-quick-item:hover,
	.home-quick-item:focus-visible,
	.home-feature-card:hover {
		transform: none;
	}
}
