/*
Theme Name: Fundamenta Perito Arquitecto
Theme URI: https://peritoarquitecto.es/
Author: Fundamenta Arquitectura, S.L.U.
Description: Tema ligero y accesible para el micrositio PeritoArquitecto.es.
Version: 1.0.0
Text Domain: fundamenta-perito
*/

:root {
	--fpt-ink: #15363b;
	--fpt-muted: #52686c;
	--fpt-accent: #10b8c7;
	--fpt-accent-dark: #0d7f89;
	--fpt-white: #ffffff;
	--fpt-line: #d6e5e6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--fpt-white);
	color: var(--fpt-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--fpt-accent-dark); }

.fpt-header {
	position: relative;
	z-index: 1000;
	min-height: 82px;
	background: var(--fpt-white);
	border-bottom: 1px solid rgba(21, 54, 59, 0.10);
}

.fpt-header__inner {
	width: min(1180px, calc(100% - 48px));
	min-height: 82px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.fpt-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.fpt-brand img {
	display: block;
	width: 250px;
	height: 80px;
	object-fit: contain;
}

.fpt-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 30px);
}

.fpt-nav a {
	color: var(--fpt-ink);
	font-size: 0.93rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

.fpt-nav a:hover,
.fpt-nav a:focus-visible,
.fpt-nav .current-menu-item > a {
	color: var(--fpt-accent-dark);
}

.fpt-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--fpt-line);
	border-radius: 5px;
	background: var(--fpt-white);
	color: var(--fpt-ink);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.fpt-main { min-height: 55vh; }

.fpt-not-found {
	width: min(760px, calc(100% - 48px));
	margin: 0 auto;
	padding: 100px 0 120px;
	text-align: center;
}

.fpt-not-found h1 {
	font-size: clamp(2.2rem, 6vw, 4rem);
	line-height: 1.1;
	margin: 0 0 24px;
}

.fpt-not-found p { color: var(--fpt-muted); font-size: 1.1rem; }

@media (max-width: 980px) {
	.fpt-header__inner { flex-wrap: wrap; gap: 0; }
	.fpt-brand img { width: 210px; height: 72px; }
	.fpt-menu-toggle { display: inline-flex; }
	.fpt-nav {
		display: none;
		flex: 0 0 100%;
		padding: 8px 0 18px;
	}
	.fpt-nav.is-open { display: block; }
	.fpt-nav ul { display: block; }
	.fpt-nav li { border-top: 1px solid var(--fpt-line); }
	.fpt-nav a { display: block; padding: 14px 4px; }
}

@media (max-width: 620px) {
	.fpt-header__inner { width: min(100% - 32px, 1180px); }
	.fpt-brand img { width: 185px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
