/*
Theme Name: Aican
Text Domain: aican
Description: Landing simple d'AICAN (disseny Figma "Landing Aican").
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* Tokens from Figma "Landing Aican" (variable: Blau) */
:root {
	--blau: #1D76BC;
}

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

body {
	margin: 0;
	background: var(--blau);
	color: #fff;
	font-family: Poppins, sans-serif;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.custom-logo { display: block; max-width: 100%; height: auto; }

/* Landing (front-page.php) — Figma node 1:2 */
.landing {
	/* Fits one viewport when possible; grows and scrolls rather than clipping. */
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/* Figma values are the caps; shrink with viewport height. */
	gap: clamp(12px, 3vh, 56px);
	padding: clamp(16px, 5vh, 96px) 72px clamp(16px, 6vh, 128px);
	font-size: 22px;
	text-align: center;
}
.landing .custom-logo { height: clamp(120px, 22vh, 299px); width: auto; object-fit: contain; }
.landing h1, .landing section, .landing address { max-width: 976px; margin: 0; }
.landing h1 { font-size: 32px; font-weight: 600; line-height: normal; }
.landing h2 { font-size: 24px; font-weight: 600; line-height: normal; margin: 0 0 8px; }
.landing p { margin: 0; }
.landing section { padding-top: clamp(0px, 3vh, 64px); }
.landing address { font-style: normal; display: flex; flex-direction: column; gap: 1.5em; }
.landing a { color: inherit; text-decoration: underline; }

/* Legal pages (index.php) */
.legal {
	max-width: 976px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	font-size: 17px;
	line-height: 1.6;
	overflow-wrap: break-word;
}
.legal .custom-logo-link { display: block; width: fit-content; margin: 0 auto 32px; }
.legal .custom-logo { width: 207px; }
.legal h1 { font-size: 32px; font-weight: 600; line-height: 1.2; margin: 0 0 24px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 16px 0 4px; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal a { color: inherit; text-decoration: underline; }

/* Footer */
.site-footer {
	background: #fff;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 32px;
	padding: 16px;
	font-size: 16px;
}
.site-footer a { color: var(--blau); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { display: contents; list-style: none; }
.site-footer .current-lang a { font-weight: 600; }

@media (max-width: 599px) {
	.landing { padding-left: 16px; padding-right: 16px; font-size: 18px; }
	.landing h1 { font-size: 24px; }
	.landing h2 { font-size: 20px; }
}
