/* Autocool Aircon — shared stylesheet
   Palette locked to existing logo per Nico: sun red, brand blue, sand accent.
   no diagonal stock-photo cutouts — deliberately simpler than
   the UK site's template execution. */

:root {
	--sun-red: #c8141a;
	--brand-blue: #0d52b9;
	--brand-blue-light: #7ab8f0;
	--ink: #0a1f4a;
	--sand: #f4ede1;
	--white: #ffffff;
	--text-muted: #5b6b6f;
	--radius: 6px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	color: var(--ink);
	background: var(--white);
	line-height: 1.55;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body > footer.site-footer {
	margin-top: auto;
}

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

a {
	color: var(--sun-red);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--brand-blue);
	outline-offset: 2px;
}

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

.placeholder-img {
	background: repeating-linear-gradient(
		45deg,
		#e4e4e4,
		#e4e4e4 10px,
		#ececec 10px,
		#ececec 20px
	);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a8a8a;
	font-size: 0.85rem;
	border: 1px dashed #b7b7b7;
	border-radius: var(--radius);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
header.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 16px 0;
	background: var(--white);
	border-bottom: 1px solid #eee;
	transition:
		box-shadow 0.25s ease-out,
		backdrop-filter 0.25s ease-out;
}

header.site-header.scrolled {
	box-shadow: 0 2px 12px rgba(10, 31, 74, 0.08);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.logo-mark {
	display: flex;
	align-items: center;
}

.logo-mark .logo-img {
	width: 200px;
	height: auto;
	aspect-ratio: 1000 / 184;
	display: block;
}

nav.main-nav ul {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

nav.main-nav a {
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
}

nav.main-nav a.active {
	color: var(--sun-red);
}

/* Hamburger toggle button — hidden on desktop */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	margin-left: auto;
}

.nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) 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(-7px) rotate(-45deg);
}

/* Language toggle — replaces the old text-link .lang-switch.
   Pill switch with sliding handle, EN/ES word labels either side.
   Uses existing palette variables, no new colors introduced. */

.lang-toggle {
	border-left: 1px solid #ddd;
	padding-left: 16px;
}

.lang-switcher-mobile {
	display: none;
}

.lang-toggle-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.lang-toggle-link:hover {
	text-decoration: none;
}

.lang-toggle-link:focus-visible {
	outline: 3px solid var(--brand-blue-light);
	outline-offset: 3px;
	border-radius: 11px;
}

.lang-toggle-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.lang-toggle-label.is-active {
	color: var(--brand-blue);
	opacity: 1;
}

.lang-toggle[data-lang="es"] .lang-toggle-label.is-active {
	color: var(--sun-red);
}

.lang-toggle-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 22px;
	border-radius: 11px;
	background: var(--brand-blue);
	flex-shrink: 0;
}

.lang-toggle-switch.is-es {
	background: var(--sun-red);
}

.lang-toggle-handle {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.lang-toggle-switch.is-es .lang-toggle-handle {
	left: 24px;
}

/* CSS-first state: set from html[lang] before any JS runs.
   Correct state is visible on first paint — no transition fires on load. */
html[lang="en"] .lang-toggle-label[data-lang="en"],
html[lang="es"] .lang-toggle-label[data-lang="es"] {
	color: var(--brand-blue);
	opacity: 1;
}
html[lang="es"] .lang-toggle-label[data-lang="es"] {
	color: var(--sun-red);
}
html[lang="es"] .lang-toggle-switch {
	background: var(--sun-red);
}
html[lang="es"] .lang-toggle-switch .lang-toggle-handle {
	left: 24px;
}

/* Transitions enabled only after JS adds .lang-toggle-ready on the first rAF.
   Ensures transitions only fire on user interaction, never on initial paint. */
.lang-toggle-ready .lang-toggle-label {
	transition: color 0.25s, opacity 0.25s;
}
.lang-toggle-ready .lang-toggle-switch {
	transition: background-color 0.25s;
}
.lang-toggle-ready .lang-toggle-handle {
	transition: left 0.25s;
}

.btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #178043;
	color: var(--white);
	font-weight: 700;
	padding: 14px 26px;
	border-radius: var(--radius);
	font-size: 1rem;
}

.btn-whatsapp svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.btn-whatsapp:hover {
	background: #126334;
	text-decoration: none;
}

/* Hero (home page) */
.hero {
	background: #ffffff;
	color: var(--white);
	padding: 64px 0 56px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--ink);
	clip-path: polygon(0 0, 57% 0, 49% 100%, 0 100%);
	z-index: 0;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='56.9,0 57.4,0 49.4,100 48.9,100' fill='%23c8141a'/%3E%3C/svg%3E");
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
	min-height: 360px;
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 2.6rem;
	line-height: 1.1;
	margin: 0 0 6px;
	color: var(--white);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.hero p.hero-location {
	font-size: 1.25rem;
	color: var(--brand-blue-light);
	font-weight: 700;
	margin: 0 0 18px;
}

.hero p.lede {
	font-size: 1.05rem;
	color: #d8e3e5;
	margin: 0 0 24px;
	max-width: 480px;
}

.hero-offer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 28px;
	border-left: 3px solid var(--sun-red);
	padding-left: 16px;
}

.hero-offer-line {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--white);
}

.hero-offer-line .amount {
	color: var(--white);
	font-weight: 800;
}

.hero-icon-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px 12px;
	position: relative;
}

.hero-icon-panel::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 48%;
	transform: translateX(-50%);
	width: 65%;
	height: 3px;
	background: linear-gradient(to right, transparent, #c8141a 25%, #c8141a 75%, transparent);
	border-radius: 0;
	z-index: 0;
	pointer-events: none;
}

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

.hero-icon-panel img {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 360px;
	height: auto;
	aspect-ratio: 846 / 639;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--sun-red);
	color: var(--white);
	font-weight: 700;
	padding: 14px 26px;
	border-radius: var(--radius);
	font-size: 1rem;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.btn-primary:hover {
	background: #a01015;
	text-decoration: none;
}

/* Sections */
section.block {
	padding: 56px 0;
}

section.block.alt {
	background: var(--sand);
}

section.block h2 {
	font-size: 1.7rem;
	margin: 0 0 18px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 32px;
}

.card {
	background: var(--white);
	border: 1px solid #eee;
	border-radius: var(--radius);
	padding: 24px;
}

.card h3 {
	color: var(--sun-red);
	font-size: 1.05rem;
	margin: 0 0 10px;
}

.card p {
	color: var(--text-muted);
	margin: 0;
	font-size: 0.95rem;
}

/* Contact page image placeholder — standalone, not paired with text in a split */
.contact-img-placeholder {
	aspect-ratio: 16 / 7;
	max-width: 760px;
	margin: 0 auto;
}

.contact-img {
	max-width: 760px;
	margin: 0 auto;
}

/* Testimonials */
.testimonial-feature {
	background: var(--ink);
	color: var(--white);
	padding: 56px 0;
}

.testimonial-feature-inner {
	display: flex;
	align-items: center;
	gap: 36px;
}

.testimonial-avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--brand-blue);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.1rem;
}

.testimonial-quote-mark {
	display: block;
	color: var(--sun-red);
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 0.6;
	font-family: Georgia, serif;
}

.testimonial-quote-mark-sm {
	font-size: 2.2rem;
}

.testimonial-feature-text {
	font-size: 1.6rem;
	font-weight: 700;
	font-style: italic;
	line-height: 1.3;
	margin: 4px 0 14px;
	color: var(--white);
	max-width: 640px;
}

.testimonial-attribution {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--brand-blue-light);
	margin: 0;
}

.testimonial-secondary-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.testimonial-secondary {
	background: var(--sand);
	border-radius: var(--radius);
	padding: 28px 24px;
}

.testimonial-secondary p:not(.testimonial-attribution) {
	font-style: italic;
	color: var(--ink);
	margin: 4px 0 14px;
}

.testimonial-secondary .testimonial-attribution {
	color: var(--text-muted);
}

.testimonial-note {
	color: var(--text-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
	margin-top: 24px;
}

.vehicle-scope-lede {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ink);
	margin: 28px 0 0;
}

.vehicle-scope-grid {
	grid-template-columns: repeat(5, 1fr);
	margin-top: 20px;
}

.vehicle-card {
	text-align: center;
	padding: 20px 16px;
}

.vehicle-card h3 {
	font-size: 0.95rem;
	margin: 0 0 6px;
}

.vehicle-card p {
	font-size: 0.85rem;
}

.vehicle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.vehicle-icon svg {
	width: 32px;
	height: 32px;
	color: var(--sun-red);
}

.trade-trust {
	margin-top: 28px;
}

.trade-trust-intro {
	color: var(--text-muted);
	font-weight: 600;
	margin: 0 0 10px;
}

.trade-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.trade-trust-list li {
	background: var(--sand);
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--radius);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.split:has(.why-img-placeholder) {
	align-items: start;
}

.about-img-placeholder {
	aspect-ratio: 1 / 1;
}

.why-img-placeholder {
	aspect-ratio: 4 / 3;
}

.section-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius);
	border-bottom: 4px solid var(--sun-red);
}

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

.price-list li {
	display: flex;
	justify-content: space-between;
	background: var(--white);
	border: 1px solid #eee;
	border-radius: var(--radius);
	padding: 14px 18px;
	font-weight: 600;
}

.price-list span.amount {
	color: var(--sun-red);
}

.pending-note {
	font-size: 0.85rem;
	color: var(--text-muted);
	font-style: italic;
	border-left: 3px solid var(--brand-blue);
	padding-left: 12px;
	margin-top: 18px;
}

/* AREAS */
.coverage-map {
	width: 100%;
	height: 420px;
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
}

/* CTA band */
.cta-band {
	background: var(--brand-blue);
	color: var(--white);
	padding: 40px 0;
	text-align: center;
}

.cta-band h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
}

.cta-band p {
	margin: 0 0 20px;
}

.cta-band .btn-primary {
	background: var(--ink);
}

.cta-band .btn-primary:hover {
	background: #061330;
}

/* Email modal */
.email-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
}

.email-modal.open {
	display: block;
}

.email-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 31, 74, 0.55);
}

.email-modal-panel {
	position: relative;
	margin: 12vh auto 0;
	max-width: 320px;
	background: var(--white);
	border-radius: var(--radius);
	padding: 20px 12px;
	box-shadow: 0 12px 32px rgba(10, 31, 74, 0.25);
	display: flex;
	flex-direction: column;
}

.email-modal-label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sun-red);
	margin: 4px 12px 8px;
}

.email-modal-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px;
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
}

.email-modal-option:hover {
	background: var(--sand);
	text-decoration: none;
}

.email-modal-option svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--brand-blue);
}

.email-modal-copy {
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 14px;
}

/* Footer */
footer.site-footer {
	background: var(--ink);
	color: #b9c4c6;
	padding: 32px 0;
	font-size: 0.9rem;
}

footer.site-footer .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

footer.site-footer a {
	color: var(--white);
}

.footer-links {
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Scroll fade-in */
.fade-in {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.fade-in-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
	.logo-mark .logo-img {
		width: 175px;
	}
}

@media (max-width: 760px) {
	/* Mobile hamburger — collapsed by default in CSS, no JS required */
	.nav-toggle {
		display: flex;
	}

	nav.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		border-bottom: 1px solid #eee;
		max-height: 0;
		overflow: hidden;
		/* transition added by JS after first frame — prevents animation on page load */
	}

	nav.main-nav.nav-animate {
		transition: max-height 0.25s ease;
	}

	nav.main-nav.is-open {
		max-height: 360px;
	}

	nav.main-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 12px;
	}

	nav.main-nav li a {
		display: block;
		padding: 11px 0;
		border-bottom: 1px solid #f0f0f0;
	}

	nav.main-nav li:last-child a {
		border-bottom: none;
	}

	.hero::before {
		clip-path: none;
	}

	.hero::after {
		display: none;
	}

	.hero-icon-panel {
		display: none;
	}

	.hero .container {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero {
		padding: 40px 0;
	}

	.hero h1 {
		font-size: 1.9rem;
	}

	.logo-mark .logo-img {
		width: 155px;
	}

	nav.main-nav ul {
		gap: 16px;
	}

	.grid-3 {
		grid-template-columns: 1fr;
	}

	.split {
		grid-template-columns: 1fr;
	}

	footer.site-footer .container {
		flex-direction: column;
	}

	.testimonial-feature-inner {
		flex-direction: column;
		text-align: center;
		gap: 18px;
	}

	.testimonial-secondary-row {
		grid-template-columns: 1fr;
	}

	.email-modal-panel {
		margin: 0;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: none;
		border-radius: var(--radius) var(--radius) 0 0;
	}

	.lang-toggle {
		border-left: none;
		padding-left: 0;
	}

	.lang-toggle-link {
		display: none;
	}

	.lang-switcher-mobile {
		display: flex;
		align-items: center;
		gap: 5px;
	}

	.lang-switcher-label {
		font-size: 0.7rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		color: var(--text-muted);
		text-decoration: none;
	}

	html[lang="en"] .lang-switcher-label[data-lang="en"] {
		color: var(--brand-blue);
	}

	html[lang="es"] .lang-switcher-label[data-lang="es"] {
		color: var(--sun-red);
	}

	.lang-sep {
		color: var(--text-muted);
		opacity: 0.4;
		user-select: none;
	}
}

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

	* {
		animation: none !important;
		transition: none !important;
	}

	.fade-in {
		opacity: 1;
		transform: none;
	}
}
