/* ---------- Fonts (self-hosted, Latin subset — covers English + Spanish diacritics) ---------- */
@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/oswald-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/oswald-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Oswald';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/oswald-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/work-sans-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/work-sans-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/work-sans-latin-variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Work Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/work-sans-latin-variable.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
	--font-heading: 'Oswald', sans-serif;
	--font-body: 'Work Sans', sans-serif;

	--color-bg: oklch(97% 0.012 80);
	--color-bg-alt: oklch(93% 0.02 75);
	--color-ink: oklch(21% 0.02 250);
	--color-ink-2: oklch(34% 0.02 250);
	--color-text: oklch(18% 0.015 60);
	--color-text-muted: oklch(42% 0.02 60);
	--color-on-dark: oklch(90% 0.01 75);
	--color-on-dark-muted: oklch(75% 0.015 75);
	--color-on-dark-faint: oklch(68% 0.015 75);
	--color-accent: oklch(74% 0.135 75);
	--color-accent-hover: oklch(68% 0.135 75);
	--color-terracotta: oklch(46% 0.13 35);
	--color-terracotta-hover: oklch(38% 0.13 35);
	--color-border: oklch(88% 0.015 75);
	--color-white: oklch(100% 0 0);

	--max-width: 1180px;
	--space-section: clamp(40px, 6vw, 72px);
	--space-inline: clamp(16px, 4vw, 48px);
	--radius: 10px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scroll only kicks in once main.js confirms the initial page
   load (and any browser auto-scroll to a URL's #anchor) has settled —
   otherwise a full-page reload that lands back on #contact (e.g. after
   the contact form's plain POST submit) would animate that automatic
   landing too, causing a visible jump-to-top-then-glide-back-down. */
html.is-loaded { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--color-terracotta); }
a:hover { color: var(--color-terracotta-hover); }
button { font-family: inherit; }

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

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

/* ---------- Utility ---------- */
.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	background: var(--color-accent);
	color: var(--color-ink);
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
	z-index: 200;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

.section {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-section) var(--space-inline);
}
.section--tight { padding-top: clamp(36px, 7vw, 80px); padding-bottom: clamp(36px, 7vw, 80px); }
.section-intro {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
}
.eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-terracotta);
	margin-bottom: 10px;
}
.eyebrow--on-dark { color: var(--color-accent); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-ink); margin: 0 0 12px; text-wrap: pretty; }
.section-title {
	font-weight: 700;
	font-size: clamp(26px, 3.4vw, 36px);
}
.section-sub {
	font-size: 16px;
	color: var(--color-text-muted);
	margin: 0;
	text-wrap: pretty;
}

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	border-radius: 6px;
	padding: 14px 26px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--color-accent); color: var(--color-ink); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-bg); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--color-ink);
	padding: 14px var(--space-inline);
}

/* Offsets so anchor-nav targets clear the sticky header instead of
   tucking straight under it. --header-height is kept in sync with the
   header's real rendered height by main.js, since the nav wraps onto
   extra rows (and grows taller) at narrower widths. */
:root {
	--header-height: 72px;
}
#about, #services, #portfolio, #trust, #reviews, #contact {
	scroll-margin-top: calc(var(--header-height));
}

.site-header__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.brand__icon { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 19px;
	color: var(--color-bg);
	letter-spacing: 0.01em;
	line-height: 1.1;
}
.brand__subtitle {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-top: 2px;
}
.main-nav {
	display: flex;
	gap: clamp(14px, 3vw, 28px);
	flex-wrap: wrap;
	justify-content: center;
	flex: 1 1 260px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a {
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--color-on-dark);
	transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.lang-switcher {
	display: inline-flex;
	background: var(--color-ink-2);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.lang-switcher a {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--color-on-dark);
}
.lang-switcher a[aria-current="true"] {
	background: var(--color-accent);
	color: var(--color-ink);
}

/* ---------- Hero ---------- */
.hero {
	display: flex;
	gap: clamp(28px, 5vw, 56px);
	flex-wrap: wrap-reverse;
	align-items: center;
}
.hero__copy { flex: 1 1 380px; min-width: 300px; }
.hero__headline { font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.hero__subhead { font-size: 17px; color: var(--color-text-muted); max-width: 520px; margin: 0 0 28px; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media {
	flex: 1 1 380px;
	min-width: 300px;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: var(--color-bg-alt);
}
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}
.hero__media img.is-active { opacity: 1; }

/* ---------- About ---------- */
.about-section { background: var(--color-bg-alt); }
.about {
	display: flex;
	gap: clamp(28px, 5vw, 56px);
	flex-wrap: wrap;
	align-items: center;
}
.about--reverse { flex-direction: row-reverse; }
.about__photo { flex: 0 1 220px; max-width: 220px; min-width: 180px; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about__body { flex: 1 1 380px; min-width: 300px; }
.about__signature { font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--color-ink); }
.about__role { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Services ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
}
.service-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 26px;
}
.service-card--highlight { background: var(--color-ink); border-color: var(--color-ink); }
.service-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--color-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.service-card--highlight .service-card__icon { background: var(--color-ink-2); }
.service-card__icon svg { width: 22px; height: 22px; color: var(--color-terracotta); stroke-width: 1.75; }
.service-card--highlight .service-card__icon svg { color: var(--color-accent); }
.service-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin-bottom: 8px; color: var(--color-ink); }
.service-card--highlight .service-card__title { color: var(--color-bg); }
.service-card__body { font-size: 15px; color: var(--color-text-muted); text-wrap: pretty; }
.service-card--highlight .service-card__body { color: var(--color-on-dark-muted); }

/* ---------- Portfolio ---------- */
.portfolio-section { background: var(--color-bg-alt); }
.filter-bar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 28px;
	list-style: none;
	padding: 0;
}
.filter-btn {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	border-radius: 999px;
	padding: 9px 16px;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	background: var(--color-white);
	color: var(--color-text-muted);
	transition: filter 0.15s ease;
}
.filter-btn:hover { filter: brightness(0.92); }
.filter-btn[aria-pressed="true"] { background: var(--color-ink); color: var(--color-bg); }

.portfolio-item {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	text-align: left;
	display: block;
	width: 100%;
}
.portfolio-item[hidden] { display: none; }
.portfolio-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.portfolio-item__body { padding: 14px 16px; }
.portfolio-item__tag {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-terracotta);
	margin-bottom: 4px;
}
.portfolio-item__title { font-size: 15px; font-weight: 500; color: var(--color-ink); }

.portfolio-placeholder {
	background: repeating-linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-alt) 10px, var(--color-bg) 10px, var(--color-bg) 20px);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px 20px;
	min-height: 220px;
}
.portfolio-placeholder[hidden] { display: none; }
.portfolio-placeholder svg { width: 26px; height: 26px; color: var(--color-text-muted); margin-bottom: 12px; }
.portfolio-placeholder__title { font-size: 14px; font-weight: 600; color: var(--color-ink); margin-bottom: 4px; }
.portfolio-placeholder__body { font-size: 13px; color: var(--color-text-muted); }

/* ---------- Trust ---------- */
.trust-section { background: var(--color-ink); padding: var(--space-section) var(--space-inline); }
.trust-inner { max-width: var(--max-width); margin: 0 auto; color: var(--color-on-dark); }
.trust-section .section-intro { max-width: 640px; }
.trust-section .section-title { color: var(--color-bg); }
.trust-section .section-sub { color: var(--color-on-dark-muted); font-style: italic; }

.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 44px;
}
.stat-card { background: var(--color-ink-2); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-card__num { font-family: var(--font-heading); font-weight: 700; font-size: 30px; color: var(--color-bg); }
.stat-card__label { font-size: 14px; color: var(--color-on-dark-muted); margin-top: 4px; }

.trust-columns { display: flex; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap-reverse; align-items: center; }
.bullet-list { flex: 3 1 260px; min-width: 240px; display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--color-on-dark); text-wrap: pretty; }
.bullet-list svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.before-after { flex: 6 1 400px; min-width: 300px; }
.before-after__pair { display: flex; gap: 10px; }
.before-after__photo { flex: 1; position: relative; }
.before-after__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.before-after__badge {
	position: absolute;
	top: 8px;
	background: oklch(21% 0.02 250 / 0.75);
	color: var(--color-bg);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	pointer-events: none;
}
.before-after__badge--before { left: 8px; }
.before-after__badge--after { right: 8px; }
.before-after__dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; list-style: none; padding: 0; }
.before-after__dots button {
	width: 24px; height: 24px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
	background: none;
	display: flex; align-items: center; justify-content: center;
}
.before-after__dots button::after {
	content: '';
	width: 8px; height: 8px; border-radius: 999px;
	background: var(--color-on-dark-faint);
}
.before-after__dots button[aria-current="true"]::after { background: var(--color-accent); }
.before-after__set { display: none; }
.before-after__set.is-active { display: flex; gap: 10px; flex: 1; }

/* ---------- Reviews ---------- */
.reviews-section { background: var(--color-bg-alt); }
.review-card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 26px;
}
.review-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.review-card__stars { font-size: 16px; letter-spacing: 0.14em; color: var(--color-terracotta); }
.review-card__pill {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.review-card__quote { font-size: 15px; color: var(--color-text); margin-bottom: 18px; text-wrap: pretty; }
.review-card__name { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.review-card__when { font-size: 12px; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.contact-form-card {
	flex: 1 1 380px;
	min-width: 300px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: clamp(20px, 3vw, 32px);
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 15px;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1.5px solid var(--color-border);
	background: oklch(99% 0.005 80);
}
.form-field textarea { resize: vertical; }
.contact-form-card .btn { width: 100%; text-align: center; }
.uniform__potty { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors {
	background: oklch(95% 0.04 30);
	border: 1px solid oklch(70% 0.15 30);
	color: oklch(35% 0.15 30);
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 14px;
}
.form-thanks { text-align: center; padding: 30px 10px; }
.form-thanks svg { width: 36px; height: 36px; color: var(--color-terracotta); margin-bottom: 14px; }
.form-thanks__title { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-bottom: 8px; color: var(--color-ink); }
.form-thanks__body { font-size: 15px; color: var(--color-text-muted); }

.contact-direct {
	flex: 1 1 280px;
	min-width: 260px;
	background: var(--color-ink);
	border-radius: var(--radius);
	padding: clamp(20px, 3vw, 32px);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.contact-direct__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-bg); margin-bottom: 6px; }
.contact-direct__note { font-size: 13px; color: var(--color-on-dark-muted); }
.contact-direct__link {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--color-ink-2);
	border-radius: 8px;
	padding: 14px 16px;
	text-decoration: none;
}
.contact-direct__link svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; }
.contact-direct__link-label { font-size: 11px; color: var(--color-on-dark-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-direct__link-value { font-size: 14px; font-weight: 600; color: var(--color-bg); }
.contact-direct__call { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.contact-direct__call svg { width: 15px; height: 15px; color: var(--color-on-dark-faint); }
.contact-direct__call a { font-size: 13px; color: var(--color-on-dark-faint); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); padding: 40px var(--space-inline) 24px; }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--color-ink-2);
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { width: 160px; height: 160px; }
.site-footer__brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 27px; color: var(--color-bg); }
.site-footer__tagline { font-size: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-accent); margin-top: 2px; }
.site-footer__nav { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { font-size: 13px; color: var(--color-on-dark-muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer__nav a:hover { color: var(--color-bg); }

@media (max-width: 600px) {
	.site-footer__brand img { width: 120px; height: 120px; }
	.site-footer__brand-name { font-size: 20px; }
	.site-footer__tagline { font-size: 12px; }
}
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; }
.site-footer__area { font-size: 12px; color: var(--color-on-dark-faint); max-width: 480px; }
.site-footer__rights { font-size: 12px; color: var(--color-on-dark-faint); }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed;
	inset: 0;
	background: oklch(10% 0.01 250 / 0.92);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__close, .lightbox__prev, .lightbox__next {
	position: absolute;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--color-bg);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close svg { width: 28px; height: 28px; }
.lightbox__prev svg, .lightbox__next svg { width: 32px; height: 32px; }
.lightbox__figure { max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 6px; }
.lightbox__caption { text-align: center; }
.lightbox__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-accent); }
.lightbox__title { font-size: 16px; color: var(--color-bg); margin-top: 2px; }
