/*!
Theme Name: Cerrajeros Parla
Theme URI: https://cerrajeroparla.com/
Author: Diània Dev
Author URI: https://diania.dev/
Description: Tema a mida «Industrial Gold & Steel» per a Parla Cerrajeros CP. Lleuger, sense constructors de pàgines, orientat al SEO local i a la conversió només per telèfon. Landings «servicio-localidad» amb exactament dos buits de foto.
Version: 2.0.0
Requires PHP: 8.0
Requires CP: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
Text Domain: cerrajeros-parla
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS
----------------------------------------------------------------
1. Design tokens
2. Reset & base
3. Typography
4. Utilities & accessibility
5. Buttons
6. Header, logo & navigation
7. Hero (diagonal cut)
8. Sections, 2-column grid & angled divider
9. Forged steel cards & photo slots
10. Homepage: services, steps, service area
11. Entry content (editor output)
12. Archives & pagination
13. CTA band & footer
14. Sticky mobile call bar
15. Motion & print
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1. Design tokens
--------------------------------------------------------------*/
:root {
	/* Brand palette */
	--color-forge-black: #111827;
	--color-avutarda-gold: #EAB308;
	--color-steel-gray: #F3F4F6;
	--color-status-green: #16A34A;
	--color-bg-white: #FFFFFF;

	/* Derived tones */
	--color-avutarda-amber: #D97706; /* gold hover */
	--color-forge-deep: #0B1120;
	--color-iron: #1F2937;
	--color-iron-light: #374151;
	--color-steel-line: #D1D5DB;
	--color-steel-rivet: #9CA3AF;
	--color-text: #1F2937;
	--color-text-muted: #4B5563;
	--color-on-dark: #E5E7EB;
	--color-on-dark-muted: #9CA3AF;

	/* Type */
	--font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Geometry */
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section-y: clamp(56px, 8vw, 112px);
	--cut: clamp(32px, 6vw, 96px); /* depth of every diagonal cut */
	--chamfer: 10px;
	--radius: 4px;
	--shadow-forged: 6px 6px 0 var(--color-forge-black);
	--shadow-forged-hover: 10px 10px 0 var(--color-forge-black);
	--topbar-h: 38px;
	--sticky-call-h: 60px;
}

/*--------------------------------------------------------------
2. Reset & base
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background-color: var(--color-bg-white);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img,
video {
	height: auto;
}

iframe {
	border: 0;
}

a {
	color: var(--color-forge-black);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 3px;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table,
pre {
	margin: 0 0 1.15em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

hr {
	height: 4px;
	margin: 2.5em 0;
	border: 0;
	background: var(--color-steel-line);
	clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

:focus-visible {
	outline: 3px solid var(--color-forge-black);
	outline-offset: 3px;
}

.site-header :focus-visible,
.hero-industrial :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--color-avutarda-gold);
}

/*--------------------------------------------------------------
3. Typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.25rem, 1.35rem + 4vw, 4.25rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1;
}

h2 {
	font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

h4 {
	font-size: 1.125rem;
}

strong,
b {
	font-weight: 700;
}

small {
	font-size: 0.875em;
}

/*--------------------------------------------------------------
4. Utilities & accessibility
--------------------------------------------------------------*/
.wrap {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.font-outfit {
	font-family: var(--font-display);
}

.text-gold {
	color: var(--color-avutarda-gold);
}

.text-white {
	color: #FFFFFF;
}

.bg-forge-black {
	background-color: var(--color-forge-black);
}

.bg-steel {
	background-color: var(--color-steel-gray);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 14px 20px;
	clip: auto;
	clip-path: none;
	background: var(--color-avutarda-gold);
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
	white-space: normal;
}

/*--------------------------------------------------------------
5. Buttons — chamfered steel plates
--------------------------------------------------------------*/
.btn-gold,
.btn-dark,
.btn-steel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.85em 1.35em;
	border: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.05em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-gold:active,
.btn-dark:active,
.btn-steel:active {
	transform: translateY(1px);
}

/* clip-path hides outer outlines, so the focus ring sits inside the plate. */
.btn-gold:focus-visible,
.btn-dark:focus-visible,
.btn-steel:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -7px;
}

/* Avutarda Gold: reserved for calls and primary conversion triggers. */
.btn-gold {
	background-color: var(--color-avutarda-gold);
	color: var(--color-forge-black);
}

.btn-gold:hover {
	background-color: var(--color-avutarda-amber);
	color: var(--color-forge-black);
}

.btn-gold .icon-bolt {
	width: 1.15em;
	height: 1.15em;
}

.btn-dark {
	background-color: var(--color-forge-black);
	color: #FFFFFF;
}

.btn-dark:hover {
	background-color: var(--color-iron-light);
	color: #FFFFFF;
}

.btn-steel {
	background-color: var(--color-iron-light);
	color: #FFFFFF;
}

.btn-steel:hover {
	background-color: #4B5563;
	color: #FFFFFF;
}

.btn-xl {
	--chamfer: 14px;
	min-height: 60px;
	padding: 1em 1.6em;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
	font-weight: 900;
}

/*--------------------------------------------------------------
6. Header, logo & navigation
--------------------------------------------------------------*/
.site-header {
	position: relative;
	z-index: 60;
	background-color: var(--color-forge-black);
	color: var(--color-on-dark);
}

.topbar {
	height: var(--topbar-h);
	background-color: var(--color-forge-deep);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8125rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: min(100% - 2 * var(--gutter), var(--container));
	height: 100%;
	margin-inline: auto;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	padding: 3px 12px 3px 10px;
	border: 1px solid rgba(22, 163, 74, 0.55);
	border-radius: 999px;
	background-color: rgba(22, 163, 74, 0.12);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.status-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: var(--color-status-green);
	box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
	animation: cpc-pulse 2s ease-out infinite;
}

@keyframes cpc-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
	}

	70%,
	100% {
		box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
	}
}

.topbar__meta {
	display: none;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	color: var(--color-on-dark-muted);
}

.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 24px;
	width: min(100% - 2 * var(--gutter), var(--container));
	min-height: 76px;
	margin-inline: auto;
	padding-block: 12px;
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-height: 56px;
}

/* Typographic logo: PARLA / CERRAJEROS + gold "CP" plate. */
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	line-height: 1;
	text-decoration: none;
}

.site-logo__text {
	display: flex;
	flex-direction: column;
	font-family: var(--font-display);
	text-transform: uppercase;
}

.site-logo__top {
	margin-bottom: 4px;
	color: var(--color-on-dark-muted);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.5em;
}

.site-logo__main {
	color: #FFFFFF;
	font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
	font-weight: 900;
	letter-spacing: 0.01em;
}

.site-logo__cp {
	display: inline-grid;
	place-items: center;
	height: 42px;
	padding: 0 9px;
	background-color: var(--color-avutarda-gold);
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-call {
	--chamfer: 8px;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.6em 0.9em;
}

.header-call .icon {
	width: 22px;
	height: 22px;
}

/* Mobile: icon-only button, the number lives in the sticky bar. */
.header-call__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.header-call__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
}

.header-call__number {
	display: block;
	font-size: 1.125rem;
	font-weight: 900;
	letter-spacing: 0.03em;
}

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--color-iron-light);
	border-radius: var(--radius);
	background: transparent;
	color: #FFFFFF;
	cursor: pointer;
}

.nav-toggle .icon {
	grid-area: 1 / 1;
	width: 24px;
	height: 24px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

.no-js .nav-toggle {
	display: none;
}

/* Mobile navigation panel */
.main-nav {
	order: 3;
	flex-basis: 100%;
}

.js .main-nav:not(.is-open) {
	display: none;
}

.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .menu {
	display: flex;
	flex-direction: column;
	margin-top: 12px;
	padding: 8px 0 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .menu a {
	display: block;
	padding: 12px 2px;
	color: var(--color-on-dark);
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none;
}

.main-nav .menu a:hover,
.main-nav .menu [aria-current="page"],
.main-nav .current-menu-item > a {
	color: #FFFFFF;
}

.main-nav .menu [aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.35em;
}

.main-nav .sub-menu {
	margin: 0 0 8px;
	padding: 0 0 0 16px;
	border-left: 2px solid var(--color-iron-light);
	list-style: none;
}

/*--------------------------------------------------------------
7. Hero — Forge Black with diagonal steel cut
--------------------------------------------------------------*/
.hero-industrial {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(48px, 7vw, 104px) 0 calc(clamp(48px, 7vw, 104px) + var(--cut));
	background-color: var(--color-forge-black);
	background-image:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px),
		linear-gradient(155deg, var(--color-iron) 0%, var(--color-forge-black) 62%);
	color: var(--color-on-dark);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}

/* Angled steel plate behind the copy */
.hero-industrial::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	width: 46%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

/* Stencil "24H": a flat fill, because text-stroke exposes the variable font's overlapping contours. */
.hero-watermark {
	position: absolute;
	z-index: -1;
	right: var(--gutter);
	bottom: calc(var(--cut) * 0.6);
	color: rgba(255, 255, 255, 0.035);
	font-family: var(--font-display);
	font-size: clamp(7rem, 24vw, 21rem);
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.04em;
	pointer-events: none;
	user-select: none;
}

.hero-inner {
	position: relative;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	margin: 0 0 20px;
	color: var(--color-on-dark-muted);
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hero-eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	flex-shrink: 0;
	background-color: currentColor;
}

.hero-industrial h1 {
	max-width: 18ch;
	margin-bottom: 22px;
	color: var(--color-avutarda-gold);
}

.lead-text {
	max-width: 60ch;
	color: var(--color-on-dark);
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.6;
}

.lead-text > :last-child {
	margin-bottom: 0;
}

.lead-text a {
	color: #FFFFFF;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
	margin-top: 34px;
}

.hero-note {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	color: var(--color-on-dark-muted);
	font-size: 0.9375rem;
}

/* Homepage hero: copy + riveted spec plates */
.hero-plates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.hero-plate {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 14px;
	color: var(--color-forge-black);
	box-shadow: 5px 5px 0 var(--color-iron-light);
}

.hero-plate strong {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 1vw, 1.9rem);
	font-weight: 900;
	line-height: 1;
}

.hero-plate span {
	color: var(--color-text-muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

/*--------------------------------------------------------------
8. Sections, 2-column grid & angled divider
--------------------------------------------------------------*/
.site-main {
	display: block;
}

.section-block {
	padding-block: var(--section-y);
}

/* Leave room for the angled top of the CTA band that overlaps the last section. */
.site-main > :last-child {
	padding-bottom: calc(var(--section-y) + var(--cut) * 0.5);
}

/* Full-bleed section, centred content, no extra wrapper needed. */
.grid-layout-2col {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: clamp(36px, 5vw, 72px);
	padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
}

.divider-angled + .section-block {
	padding-top: calc(var(--section-y) * 0.55);
}

/* Geometric steel divider: white → steel with an iron blade on the diagonal. */
.divider-angled {
	position: relative;
	height: var(--cut);
	margin-top: calc(var(--section-y) * -0.35);
}

.divider-angled::before,
.divider-angled::after {
	content: "";
	position: absolute;
	inset: 0;
}

.divider-angled::before {
	background-color: var(--color-forge-black);
	clip-path: polygon(0 calc(100% - 10px), 100% 0, 100% 100%, 0 100%);
}

.divider-angled::after {
	bottom: -1px;
	background-color: var(--color-steel-gray);
	clip-path: polygon(0 100%, 100% 10px, 100% 100%);
}

/* Steel → white: same rising blade, steel on top. */
.divider-angled--down {
	margin-top: -1px;
	margin-bottom: calc(var(--section-y) * -0.35);
}

.divider-angled--down::before {
	clip-path: polygon(0 0, 100% 0, 100% 10px, 0 100%);
}

.divider-angled--down::after {
	top: -1px;
	bottom: 0;
	clip-path: polygon(0 0, 100% 0, 0 calc(100% - 10px));
}

/* A full-width text section followed by a 2-column one on the same background */
.text-slots + .grid-layout-2col,
.slot-middle + .grid-layout-2col {
	padding-top: 0;
}

/* Text slots stacked below the two photo sections */
.text-slot + .text-slot,
.text-slot + .cta-slot {
	margin-top: clamp(40px, 5vw, 64px);
}

.cta-slot {
	position: relative;
	padding: clamp(28px, 4vw, 48px);
	background-color: var(--color-forge-black);
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px);
	color: var(--color-on-dark);
	box-shadow: 6px 6px 0 var(--color-steel-line);
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.cta-slot h2,
.cta-slot h3,
.cta-slot strong,
.cta-slot a:not(.btn-gold) {
	color: #FFFFFF;
}

.cta-slot .entry-content h2::before,
.cta-slot h2::before {
	background-color: var(--color-avutarda-gold);
}

.cta-slot .entry-content ul li::before {
	background-color: var(--color-on-dark);
}

.cta-slot .btn-gold {
	margin-top: 28px;
}

.cta-slot :focus-visible {
	outline-color: var(--color-avutarda-gold);
}

.slot-hint {
	padding: 14px 16px;
	border: 2px dashed var(--color-steel-rivet);
	background-color: rgba(255, 255, 255, 0.7);
	color: var(--color-text);
	font-size: 0.9375rem;
}

/*--------------------------------------------------------------
9. Forged steel cards & photo slots
--------------------------------------------------------------*/
.card-steel {
	position: relative;
	border: 1px solid var(--color-steel-line);
	border-radius: var(--radius);
	background-color: var(--color-steel-gray);
	/* Four rivets, one per corner */
	background-image:
		radial-gradient(circle, var(--color-steel-rivet) 0 2px, transparent 2.6px),
		radial-gradient(circle, var(--color-steel-rivet) 0 2px, transparent 2.6px),
		radial-gradient(circle, var(--color-steel-rivet) 0 2px, transparent 2.6px),
		radial-gradient(circle, var(--color-steel-rivet) 0 2px, transparent 2.6px);
	background-position: left 6px top 6px, right 6px top 6px, left 6px bottom 6px, right 6px bottom 6px;
	background-repeat: no-repeat;
	background-size: 10px 10px;
	box-shadow: var(--shadow-forged);
}

.photo-slot {
	margin: 0;
	padding: 22px;
}

.photo-slot-2 {
	box-shadow: -6px 6px 0 var(--color-forge-black);
}

/* Iron corner bracket */
.photo-slot::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: -1px;
	width: 46px;
	height: 46px;
	background-color: var(--color-forge-black);
}

.photo-slot-1::after {
	left: -1px;
	border-top-left-radius: var(--radius);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.photo-slot-2::after {
	right: -1px;
	border-top-right-radius: var(--radius);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.photo-slot__img,
.photo-slot__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 2px;
}

.photo-slot__img {
	height: auto;
	object-fit: cover;
	background-color: var(--color-steel-line);
}

/* Reserved slot while the photo is pending: tread-plate texture */
.photo-slot__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	background-color: #E5E7EB;
	background-image:
		repeating-linear-gradient(45deg, rgba(17, 24, 39, 0.05) 0 6px, transparent 6px 22px),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.55) 0 6px, transparent 6px 22px);
	color: var(--color-iron-light);
	text-align: center;
}

.photo-slot__placeholder .icon {
	width: 64px;
	height: 64px;
	padding: 14px;
	background-color: var(--color-forge-black);
	color: #FFFFFF;
	stroke-width: 1.6;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.photo-slot__brand {
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.photo-slot__hint {
	max-width: 32ch;
	padding: 8px 10px;
	border: 2px dashed var(--color-steel-rivet);
	background-color: rgba(255, 255, 255, 0.85);
	color: var(--color-text);
	font-size: 0.8125rem;
	line-height: 1.4;
}

/*--------------------------------------------------------------
10. Homepage: services, steps, service area
--------------------------------------------------------------*/
.section-head {
	max-width: 760px;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2 {
	margin-bottom: 0;
}

.section-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: var(--color-iron-light);
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.section-kicker::before {
	content: "";
	width: 32px;
	height: 4px;
	flex-shrink: 0;
	background-color: var(--color-forge-black);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card {
	display: flex;
	flex-direction: column;
	padding: 34px 28px 28px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.service-card:focus-within {
	transform: translate(-3px, -3px);
	box-shadow: var(--shadow-forged-hover);
}

.service-card__num {
	position: absolute;
	top: 20px;
	right: 24px;
	color: var(--color-steel-line);
	font-family: var(--font-display);
	font-size: 2.75rem;
	font-weight: 900;
	line-height: 1;
}

.service-card__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 24px;
	background-color: var(--color-forge-black);
	color: #FFFFFF;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.service-card__icon .icon {
	width: 30px;
	height: 30px;
}

.service-card__title {
	margin-bottom: 10px;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.service-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable */
.service-card__title a::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
}

.service-card p {
	margin-bottom: 24px;
	color: var(--color-text-muted);
}

.service-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.service-card__more .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.18s ease;
}

.service-card:hover .service-card__more .icon,
.post-card:hover .service-card__more .icon {
	transform: translateX(4px);
}

.steps-layout {
	display: grid;
	gap: 48px;
	align-items: start;
}

.steps {
	display: grid;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.step__num {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	background-color: var(--color-forge-black);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 900;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.step h3 {
	margin: 4px 0 6px;
	font-size: 1.25rem;
}

.step p {
	margin: 0;
	color: var(--color-text-muted);
}

.area-card {
	padding: 34px 28px 30px;
	background-color: var(--color-bg-white);
}

.area-card__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	background-color: var(--color-forge-black);
	color: #FFFFFF;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.area-card__title {
	font-size: 1.5rem;
}

.area-card p {
	color: var(--color-text-muted);
}

/*--------------------------------------------------------------
11. Entry content (editor output)
--------------------------------------------------------------*/
.entry-content {
	min-width: 0;
}

.entry-content.narrow {
	max-width: 74ch;
}

.wrap.narrow {
	width: min(100% - 2 * var(--gutter), 74ch);
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	margin-top: 1.5em;
}

.entry-content h2::before {
	content: "";
	display: block;
	width: 56px;
	height: 6px;
	margin-bottom: 16px;
	background-color: var(--color-forge-black);
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.entry-content h3,
.entry-content h4 {
	margin-top: 1.4em;
}

.entry-content a {
	font-weight: 500;
}

.entry-content strong {
	color: var(--color-forge-black);
}

.entry-content ul {
	padding-left: 0;
	list-style: none;
}

.entry-content ul li {
	position: relative;
	margin-bottom: 0.5em;
	padding-left: 1.7em;
}

/* Chamfered steel bullet */
.entry-content ul li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0.2em;
	width: 0.6em;
	height: 0.6em;
	background-color: var(--color-forge-black);
	clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}

.entry-content ol {
	padding-left: 1.5em;
}

.entry-content ol li {
	margin-bottom: 0.5em;
	padding-left: 0.3em;
}

.entry-content ol li::marker {
	font-family: var(--font-display);
	font-weight: 700;
}

.entry-content blockquote {
	margin: 1.75em 0;
	padding: 22px 26px;
	border-left: 6px solid var(--color-forge-black);
	background-color: var(--color-steel-gray);
	font-size: 1.1em;
}

.bg-steel .entry-content blockquote {
	background-color: var(--color-bg-white);
}

.entry-content blockquote > :last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--color-steel-line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background-color: var(--color-forge-black);
	color: #FFFFFF;
	font-family: var(--font-display);
	font-weight: 700;
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .btn-gold {
	color: var(--color-forge-black);
}

.entry-content pre {
	overflow-x: auto;
	padding: 16px;
	background-color: var(--color-steel-gray);
	font-size: 0.9em;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.entry-content figcaption {
	margin-top: 0.5em;
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.gallery-item {
	margin: 0;
}

.post-thumbnail {
	margin: 0 0 2em;
	padding: 18px;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.page-links {
	margin-top: 2em;
	font-family: var(--font-display);
	font-weight: 700;
}

.edit-link {
	margin-top: 2em;
	font-size: 0.875rem;
}

/*--------------------------------------------------------------
12. Archives & pagination
--------------------------------------------------------------*/
.post-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card {
	display: flex;
	flex-direction: column;
	padding: 30px 26px 26px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover,
.post-card:focus-within {
	transform: translate(-3px, -3px);
	box-shadow: var(--shadow-forged-hover);
}

.post-card__meta {
	margin-bottom: 8px;
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.post-card__title {
	font-size: 1.375rem;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
}

.post-card__excerpt {
	color: var(--color-text-muted);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 2px solid var(--color-forge-black);
	color: var(--color-forge-black);
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background-color: var(--color-forge-black);
	color: #FFFFFF;
}

/*--------------------------------------------------------------
13. CTA band & footer
--------------------------------------------------------------*/
.cta-band {
	position: relative;
	padding: clamp(44px, 6vw, 80px) 0;
	background-color: var(--color-forge-black);
	color: var(--color-on-dark);
}

/* Angled top edge that cuts into whatever section comes before it. */
.cta-band::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: calc(100% - 1px);
	left: 0;
	height: var(--cut);
	background-color: var(--color-forge-black);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.cta-band__inner {
	display: grid;
	gap: 28px;
	align-items: center;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.cta-band__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 12px;
	color: var(--color-status-green);
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cta-band__eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: currentColor;
	animation: cpc-pulse 2s ease-out infinite;
}

.cta-band h2 {
	max-width: 24ch;
	margin-bottom: 10px;
	color: #FFFFFF;
}

.cta-band p {
	margin: 0;
	color: var(--color-on-dark-muted);
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background-color: var(--color-forge-black);
	color: var(--color-on-dark-muted);
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--color-on-dark);
	text-decoration: none;
}

.site-footer a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 40px;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
	padding-block: 56px 44px;
}

.footer-col--brand p {
	max-width: 36ch;
	margin: 18px 0 0;
}

.footer-title {
	margin-bottom: 18px;
	color: #FFFFFF;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.footer-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.footer-contact .icon {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--color-on-dark-muted);
}

.site-footer .footer-phone {
	color: var(--color-avutarda-gold);
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0.02em;
}

.site-footer .footer-phone:hover {
	color: var(--color-avutarda-gold);
}

.site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.8125rem;
}

.site-footer__legal-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
	padding-block: 18px;
}

.site-footer__legal p {
	margin: 0;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*--------------------------------------------------------------
14. Sticky mobile call bar
--------------------------------------------------------------*/
.sticky-call {
	display: none;
}

/*--------------------------------------------------------------
Responsive
--------------------------------------------------------------*/
@media (max-width: 899.98px) {
	body {
		padding-bottom: calc(var(--sticky-call-h) + env(safe-area-inset-bottom, 0px));
	}

	.sticky-call {
		position: fixed;
		z-index: 100;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.55em;
		min-height: calc(var(--sticky-call-h) + env(safe-area-inset-bottom, 0px));
		padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
		border-top: 3px solid var(--color-forge-black);
		background-color: var(--color-avutarda-gold);
		color: var(--color-forge-black);
		font-family: var(--font-display);
		font-size: 1.2rem;
		font-weight: 900;
		letter-spacing: 0.05em;
		line-height: 1;
		text-decoration: none;
	}

	.sticky-call:active {
		background-color: var(--color-avutarda-amber);
	}

	.sticky-call:focus-visible {
		outline: 3px solid var(--color-forge-black);
		outline-offset: -8px;
	}

	.sticky-call__bolt {
		width: 1.35em;
		height: 1.35em;
		animation: cpc-bolt 3s ease-in-out infinite;
	}

	@keyframes cpc-bolt {
		0%,
		80%,
		100% {
			transform: scale(1);
		}

		88% {
			transform: scale(1.25) rotate(-8deg);
		}
	}

	.reverse-mobile > :first-child {
		order: 2;
	}
}

@media (min-width: 520px) {
	.header-call__text {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
		text-align: left;
	}
}

@media (min-width: 640px) {
	.topbar__meta {
		display: inline-flex;
	}

	.hero-plates {
		gap: 18px;
	}

	.hero-plate {
		padding: 22px 20px;
	}

	.hero-plate span {
		font-size: 0.9375rem;
	}
}

@media (min-width: 900px) {
	.site-header {
		position: sticky;
		top: calc(-1 * var(--topbar-h));
	}

	.admin-bar .site-header {
		top: calc(32px - var(--topbar-h));
	}

	.grid-layout-2col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.photo-slot {
		position: sticky;
		top: 112px;
	}

	.admin-bar .photo-slot {
		top: 144px;
	}

	.hero-home .hero-inner {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		gap: 56px;
		align-items: center;
	}

	.hero-plates {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 0;
	}

	.hero-plate {
		display: grid;
		grid-template-columns: 7.5rem minmax(0, 1fr);
		align-items: center;
		gap: 18px;
	}

	.hero-plate:nth-child(2) {
		margin-left: 28px;
	}

	.hero-plate:nth-child(3) {
		margin-left: 56px;
	}

	.steps-layout {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 72px;
	}

	.area-card {
		margin-top: 12px;
	}

	.cta-band__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 48px;
	}
}

@media (min-width: 1200px) {
	.nav-toggle {
		display: none;
	}

	.site-branding {
		flex: 0 0 auto;
	}

	.main-nav,
	.js .main-nav:not(.is-open) {
		display: block;
		order: 0;
		flex: 1 1 auto;
	}

	.main-nav .menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 28px;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.main-nav .menu > li {
		position: relative;
	}

	.main-nav .menu a {
		position: relative;
		padding: 10px 0;
		font-size: 1rem;
	}

	.main-nav .menu [aria-current="page"] {
		text-decoration: none;
	}

	.main-nav .menu > li > a::after {
		content: "";
		position: absolute;
		right: 100%;
		bottom: 2px;
		left: 0;
		height: 3px;
		background-color: currentColor;
		transition: right 0.2s ease;
	}

	.main-nav .menu > li > a:hover::after,
	.main-nav .menu > li > a[aria-current="page"]::after,
	.main-nav .menu > .current-menu-item > a::after,
	.main-nav .menu > .current-menu-ancestor > a::after {
		right: 0;
	}

	.main-nav .sub-menu {
		position: absolute;
		z-index: 70;
		top: 100%;
		left: -18px;
		display: none;
		min-width: 250px;
		margin: 0;
		padding: 8px 18px;
		border: 0;
		border-top: 3px solid var(--color-iron-light);
		background-color: var(--color-iron);
		box-shadow: 6px 6px 0 #000000;
	}

	.main-nav .menu li:hover > .sub-menu,
	.main-nav .menu li:focus-within > .sub-menu {
		display: block;
	}
}

/*--------------------------------------------------------------
15. Motion & print
--------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.topbar,
	.main-nav,
	.site-header__actions,
	.hero-watermark,
	.cta-band,
	.sticky-call,
	.divider-angled {
		display: none !important;
	}

	.hero-industrial {
		padding: 0 0 24px;
		background: none;
		color: #000000;
		clip-path: none;
	}

	.hero-industrial h1,
	.lead-text {
		color: #000000;
	}

	body {
		padding-bottom: 0;
	}
}

/* "Quiénes somos": short texts, so centre text 1 on the photo and tighten text 2. */
.page-about .grid-layout-2col {
	align-items: center;
}

.page-about .grid-layout-2col + .text-slots {
	padding-top: 0;
}
