/* ===== MAPA S.C. – styles v2.0 ===== */

:root {
	--orange: #d2600f;
	--orange-dark: #b34f08;
	--navy: #1d2452;
	--navy-dark: #141a3d;
	--ink: #232733;
	--muted: #5b6270;
	--line: #e3e6ec;
	--bg-soft: #f5f6f8;
	--white: #ffffff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(20, 26, 61, 0.08);
	--shadow-lift: 0 16px 40px rgba(20, 26, 61, 0.14);
	--header-h: 72px;
	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--white);
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); }

h1, h2, h3, h4 {
	font-family: var(--font);
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
	letter-spacing: 0.01em;
}

section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ===== Header / nav ===== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-h);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	z-index: 50;
	transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
	box-shadow: 0 4px 18px rgba(20, 26, 61, 0.1);
}

.nav {
	max-width: 1180px;
	margin: 0 auto;
	height: 100%;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nav-logo img {
	width: auto;
	height: 40px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-link {
	display: inline-block;
	padding: 9px 14px;
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
	background: var(--bg-soft);
	color: var(--orange);
}

.nav-link-cta {
	background: var(--orange);
	color: var(--white);
}

.nav-link-cta:hover,
.nav-link-cta.active {
	background: var(--orange-dark);
	color: var(--white);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	height: 2.5px;
	width: 100%;
	background: var(--navy);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */

.hero {
	min-height: 92vh;
	display: flex;
	align-items: center;
	background:
		linear-gradient(100deg, rgba(20, 26, 61, 0.82) 0%, rgba(20, 26, 61, 0.55) 45%, rgba(20, 26, 61, 0.2) 100%),
		url("image2.jpg") center / cover no-repeat;
	padding: calc(var(--header-h) + 40px) 20px 60px;
}

.hero-inner {
	max-width: 1180px;
	margin: 0 auto;
	width: 100%;
}

.hero-kicker {
	color: #ffd9ae;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: clamp(11px, 1.4vw, 14px);
	margin: 0 0 14px;
}

.hero h1 {
	color: var(--white);
	font-size: clamp(30px, 5vw, 56px);
	font-weight: 800;
	max-width: 17em;
	margin-bottom: 18px;
}

.hero-accent { color: #f6a04d; }

.hero-sub {
	color: #dfe3f0;
	font-size: clamp(16px, 2vw, 20px);
	max-width: 36em;
	margin: 0 0 32px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ===== Buttons ===== */

.btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
	border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--orange);
	color: var(--white);
	box-shadow: 0 8px 22px rgba(210, 96, 15, 0.35);
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
	border-color: rgba(255, 255, 255, 0.75);
	color: var(--white);
	background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

.btn-text {
	background: none;
	border: 0;
	color: var(--orange);
	font-weight: 700;
	font-size: 16px;
	padding: 8px 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.chevron {
	width: 9px;
	height: 9px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.25s ease;
}

.btn-text[aria-expanded="true"] .chevron {
	transform: rotate(225deg) translateY(-2px);
}

/* ===== Sections (shared) ===== */

.section { padding: 84px 20px; }

.section-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.section-kicker {
	color: var(--orange);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 12px;
	text-align: center;
	margin: 0 0 8px;
}

.section h2 {
	text-align: center;
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 800;
	margin-bottom: 14px;
}

.section h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--orange);
	margin: 18px auto 0;
}

.section-lead {
	max-width: 52em;
	margin: 0 auto 40px;
	text-align: center;
	color: var(--muted);
	font-size: 17px;
}

/* ===== About ===== */

.about-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 48px;
	align-items: start;
	margin-top: 36px;
}

.about-text p {
	color: var(--muted);
	font-size: 17px;
	margin: 0 0 1.1em;
}

.about-more p:last-child { margin-bottom: 0; }

.about-photo {
	margin: 0;
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.about-photo img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
}

.about-photo figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
	text-align: center;
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin: 56px 0 0;
	padding: 0;
}

.stat {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 16px;
	text-align: center;
}

.stat dd {
	margin: 0;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
	color: var(--orange);
	line-height: 1.1;
}

.stat dt {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 6px;
}

/* ===== Services ===== */

.services { background: var(--bg-soft); }

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 40px;
}

.service-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 24px;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lift);
}

.service-card img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	margin: 0 auto 18px;
}

.service-card h3 {
	text-align: center;
	font-size: 20px;
	margin-bottom: 14px;
}

.service-card ul {
	margin: 0;
	padding: 0 0 0 2px;
	list-style: none;
	color: var(--muted);
	font-size: 15.5px;
}

.service-card li {
	padding: 5px 0 5px 24px;
	position: relative;
}

.service-card li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--orange);
}

/* ===== Realisations ===== */

.realisations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.realisation-card {
	margin: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.realisation-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lift);
}

.realisation-card img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.realisation-card figcaption {
	padding: 18px 20px 20px;
}

.realisation-card strong {
	display: block;
	color: var(--navy);
	font-size: 19px;
	margin-bottom: 4px;
}

.realisation-card span {
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.5;
	display: block;
}

.realisations-more-lead {
	text-align: center;
	color: var(--muted);
	font-weight: 600;
	margin: 40px 0 16px;
}

.realisation-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.realisation-chips li {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	color: var(--ink);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14.5px;
	font-weight: 600;
}

/* ===== Contact ===== */

.contact { background: var(--bg-soft); }

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 26px;
	margin-top: 40px;
	align-items: stretch;
}

.contact-info {
	background: var(--navy);
	color: #dfe3f0;
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow: var(--shadow-lift);
}

.contact-info h3 {
	color: var(--white);
	font-size: 24px;
	margin-bottom: 4px;
}

.contact-info-sub {
	color: #aab1cf;
	font-size: 14.5px;
	margin: 0 0 26px;
}

.contact-info address {
	font-style: normal;
}

.contact-info address p {
	margin: 0 0 18px;
	font-size: 16.5px;
	line-height: 1.6;
}

.contact-label {
	display: block;
	color: #f6a04d;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-bottom: 3px;
}

.contact-info a {
	color: var(--white);
	text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

/* ===== Form ===== */

.form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 36px 32px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.form-field {
	display: flex;
	flex-direction: column;
}

.form-field-full { grid-column: 1 / -1; }

.form label {
	font-weight: 600;
	color: var(--navy);
	font-size: 15px;
	margin-bottom: 7px;
}

.form input,
.form textarea {
	font-family: var(--font);
	font-size: 16px;
	color: var(--ink);
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: 9px;
	background: var(--bg-soft);
	transition: border-color 0.2s ease, background 0.2s ease;
	width: 100%;
}

.form textarea { resize: vertical; min-height: 140px; }

.form input:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--orange);
	background: var(--white);
}

.form input.invalid,
.form textarea.invalid {
	border-color: #d0342c;
}

.form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form .btn {
	grid-column: 1 / -1;
	justify-self: center;
	min-width: 240px;
	border: 0;
}

.form-status {
	grid-column: 1 / -1;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	margin: 0;
	min-height: 1.5em;
}

.form-status.ok { color: #1a7f37; }
.form-status.error { color: #d0342c; }

/* ===== Footer ===== */

.footer {
	background: var(--navy-dark);
	color: #c3c9e2;
	padding: 60px 20px 24px;
}

.footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 36px;
	align-items: start;
}

.footer-brand img {
	background: var(--white);
	border-radius: 10px;
	padding: 12px 16px;
	width: 210px;
	height: auto;
}

.footer-col h4 {
	color: var(--white);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 14px;
}

.footer-col p { margin: 0 0 8px; font-size: 15.5px; }

.footer a {
	color: #c3c9e2;
	text-decoration: none;
}

.footer a:hover { color: var(--white); text-decoration: underline; }

.footer-copy {
	max-width: 1180px;
	margin: 44px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13.5px;
	color: #8890b5;
	text-align: center;
}

/* ===== Reveal animations ===== */

@media (prefers-reduced-motion: no-preference) {
	.reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}
	.reveal.visible {
		opacity: 1;
		transform: none;
	}
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.about-grid { grid-template-columns: 1fr; }
	.about-photo { position: static; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }

	.nav-menu {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		background: var(--white);
		padding: 12px 16px 18px;
		box-shadow: 0 18px 30px rgba(20, 26, 61, 0.15);
		transform: translateY(-130%);
		transition: transform 0.3s ease;
		visibility: hidden;
	}

	.nav-menu.open {
		transform: translateY(0);
		visibility: visible;
	}

	.nav-link { display: block; text-align: center; padding: 14px; font-size: 16px; }
	.nav-link-cta { margin-top: 8px; }

	.realisations-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 64px 18px; }
	.hero { min-height: 86vh; }
}

@media (max-width: 520px) {
	.services-grid { grid-template-columns: 1fr; }
	.form { grid-template-columns: 1fr; padding: 26px 20px; }
	.footer-inner { grid-template-columns: 1fr; text-align: left; }
	.stats { gap: 12px; }
	.hero-actions .btn { width: 100%; text-align: center; }
	.contact-info { padding: 28px 22px; }
}
