/*
Theme Name: Soleluna Theme
Author: Ramon Barrio
Description: Custom theme for Soleluna
Version: 1.4
*/

:root {
	--sl-primary: #495f76;
	--sl-accent: #ffc61d;
	--sl-accent-soft: rgba(255, 198, 29, 0.2);
	--sl-secondary: #26738c;
	--sl-text: #212121;
	--sl-bg: #ffffff;
	--sl-dark: #1e2d3a;
	--sl-font-heading: "Ubuntu", "Segoe UI", sans-serif;
	--sl-font-body: "Cabin", "Segoe UI", sans-serif;
	--sl-max-width: 42rem;
}

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

html {
	height: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	font-family: var(--sl-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--sl-text);
	background: var(--sl-bg);
}

a:focus-visible {
	outline: 2px solid var(--sl-accent);
	outline-offset: 3px;
}

.site-header {
	background: var(--sl-bg);
	border-bottom: 2px solid var(--sl-accent-soft);
	padding: 1rem 1.25rem;
}

.site-header .brand-logo__mark {
	width: clamp(5rem, 16vw, 7rem);
	height: auto;
}

.site-header__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

.brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.brand-logo__mark {
	display: block;
	object-fit: contain;
}

.hero {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 3.75rem);
	overflow: hidden;
	color: #fff;
	text-align: center;
	--hero-logo-size: clamp(6.5rem, 24vw, 10rem);
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--sl-accent);
	z-index: 3;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(
			ellipse 85% 65% at 50% 54%,
			rgba(10, 18, 28, 0.62) 0%,
			rgba(10, 18, 28, 0.28) 50%,
			transparent 78%
		),
		linear-gradient(
			to bottom,
			rgba(15, 25, 35, 0.58) 0%,
			rgba(22, 34, 46, 0.5) 45%,
			rgba(15, 25, 35, 0.65) 100%
		);
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1.5rem 1.25rem 3rem;
	gap: 0.5rem;
}

.hero__header {
	margin: 0 0 1.75rem;
	padding: 0;
	transform: translateY(calc(var(--hero-logo-size) * -0.25));
}

.hero .brand-logo__mark {
	width: var(--hero-logo-size);
	height: auto;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.hero__inner {
	position: relative;
	max-width: var(--sl-max-width);
	padding: 0.5rem 0.25rem;
}

.hero__inner::before {
	content: "";
	position: absolute;
	inset: -1.25rem -1.75rem;
	z-index: -1;
	background: radial-gradient(
		ellipse at center,
		rgba(8, 14, 22, 0.5) 0%,
		rgba(8, 14, 22, 0.22) 60%,
		transparent 100%
	);
	pointer-events: none;
}

.hero__badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	background: var(--sl-accent);
	border: none;
	color: var(--sl-dark);
	font-family: var(--sl-font-heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero__title {
	margin: 0 0 1rem;
	font-family: var(--sl-font-heading);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
	color: #fff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 2px 8px rgba(0, 0, 0, 0.75),
		0 6px 28px rgba(0, 0, 0, 0.55);
}

.hero__lead {
	margin: 0 auto 2rem;
	max-width: 34rem;
	font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
	font-weight: 500;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.97);
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 2px 12px rgba(0, 0, 0, 0.65);
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: rgba(8, 14, 22, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
	background: var(--sl-accent-soft);
	border-color: rgba(255, 198, 29, 0.55);
	color: #fff;
	transform: translateY(-1px);
}

.social-link svg {
	width: 1.5rem;
	height: 1.5rem;
}

.site-footer {
	background: var(--sl-primary);
	color: #fff;
	padding: 1.25rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
	font-size: 0.9375rem;
}

@media (min-width: 48rem) {
	.hero {
		--hero-logo-size: 10rem;
	}

	.hero__content {
		padding: 2rem 1.5rem 4rem;
	}

	.hero__header {
		margin-bottom: 2.25rem;
	}
}

.not-found {
	flex: 1;
	display: grid;
	place-items: center;
	padding: 3rem 1.25rem 4rem;
	text-align: center;
}

.not-found__inner {
	max-width: var(--sl-max-width);
}

.not-found__code {
	margin: 0 0 0.5rem;
	font-family: var(--sl-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sl-accent);
}

.not-found__title {
	margin: 0 0 1rem;
	font-family: var(--sl-font-heading);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--sl-primary);
}

.not-found__lead {
	margin: 0 0 1.5rem;
	color: var(--sl-text);
}

.not-found__link {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	background: var(--sl-primary);
	color: #fff;
	font-family: var(--sl-font-heading);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.not-found__link:hover {
	background: var(--sl-secondary);
	border-bottom: 2px solid var(--sl-accent);
}
