/* Pintores Querétaro — site template */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
	--pq-ink: #152018;
	--pq-muted: #4d5a52;
	--pq-paper: #f4f6f3;
	--pq-white: #ffffff;
	--pq-accent: #1f6b5a;
	--pq-accent-2: #c9a227;
	--pq-line: rgba(21, 32, 24, 0.12);
	--pq-max: 72rem;
	--pq-header-h: 4.25rem;
	--pq-font: "DM Sans", system-ui, sans-serif;
	--pq-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.pq-body {
	margin: 0;
	font-family: var(--pq-font);
	color: var(--pq-ink);
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(31, 107, 90, 0.10), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(201, 162, 39, 0.10), transparent 55%),
		var(--pq-paper);
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.pq-skip {
	position: absolute;
	left: -999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: 0.5rem 1rem;
	z-index: 1000;
}

.pq-skip:focus {
	left: 0.5rem;
	top: 0.5rem;
}

.pq-wrap {
	width: min(100% - 2rem, var(--pq-max));
	margin-inline: auto;
}

/* ---- Header ---- */

.pq-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(244, 246, 243, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pq-line);
}

.pq-header__inner {
	width: min(100% - 2rem, var(--pq-max));
	margin-inline: auto;
	min-height: var(--pq-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	position: relative;
	flex-wrap: wrap;
}

.pq-brand {
	min-width: 0;
	flex: 1 1 auto;
}

.pq-brand__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.pq-brand__logo {
	display: block;
	height: 2.4rem;
	width: auto;
}

.pq-brand__name {
	font-family: var(--pq-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--pq-ink);
}

.pq-header__end {
	display: flex;
	align-items: center;
	gap: 0.5rem 0.75rem;
	flex: 0 0 auto;
	margin-left: auto;
}

/* ---- Global masthead (image + text from component Options) ---- */

.pq-masthead {
	position: relative;
	overflow: hidden;
	background: #152018;
	color: #f4f6f3;
}

.pq-masthead__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 16rem;
	aspect-ratio: 16 / 6;
	object-fit: cover;
	object-position: center;
}

.pq-masthead__copy {
	padding: 1.1rem 0 1.35rem;
}

.pq-masthead__media + .pq-masthead__copy {
	position: absolute;
	inset: auto 0 0;
	padding: 2.5rem 0 1.25rem;
	background: linear-gradient(to top, rgba(16, 22, 18, 0.82), transparent);
}

.pq-masthead__title {
	margin: 0;
	font-family: var(--pq-display);
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.pq-masthead__text {
	margin: 0.4rem 0 0;
	max-width: 40rem;
	color: rgba(244, 246, 243, 0.9);
}

@media (max-width: 767.98px) {
	.pq-masthead__media img {
		max-height: 11rem;
		aspect-ratio: 16 / 9;
	}
}

/* ---- Global contact (header / footer) ---- */

.pq-contact {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	font-size: 0.92rem;
	font-weight: 700;
}

.pq-contact__phone,
.pq-contact__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.35rem 0.55rem;
	text-decoration: none;
	border-radius: 0.25rem;
	white-space: nowrap;
}

a.pq-contact__phone,
a.pq-contact__whatsapp {
	color: var(--pq-ink);
}

a.pq-contact__phone:hover,
a.pq-contact__phone:focus,
a.pq-contact__whatsapp:hover,
a.pq-contact__whatsapp:focus {
	color: var(--pq-accent);
}

.pq-contact__whatsapp {
	color: var(--pq-accent);
}

.pq-contact--footer {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.pq-contact--footer .pq-contact__phone,
.pq-contact--footer .pq-contact__whatsapp {
	min-height: 0;
	padding: 0.15rem 0;
}

.pq-nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--pq-line);
	background: var(--pq-white);
	padding: 0.55rem 0.75rem;
	min-height: 2.75rem;
	font: inherit;
	cursor: pointer;
}

.pq-nav-toggle__bars,
.pq-nav-toggle__bars::before,
.pq-nav-toggle__bars::after {
	display: block;
	width: 1.15rem;
	height: 2px;
	background: var(--pq-ink);
	position: relative;
}

.pq-nav-toggle__bars::before,
.pq-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.pq-nav-toggle__bars::before { top: -6px; }
.pq-nav-toggle__bars::after { top: 6px; }

.pq-nav {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--pq-white);
	border-bottom: 1px solid var(--pq-line);
	padding: 0.75rem 1rem 1rem;
}

.pq-nav.is-open {
	display: block;
}

.pq-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.pq-nav a {
	display: block;
	padding: 0.65rem 0.4rem;
	text-decoration: none;
	font-weight: 600;
}

.pq-nav a:hover,
.pq-nav a:focus {
	color: var(--pq-accent);
}

/* ---- Buttons (modules / shared) ---- */

.pq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.25rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pq-btn:hover,
.pq-btn:focus {
	transform: translateY(-1px);
}

.pq-btn--primary {
	background: var(--pq-accent-2);
	color: #1a1608;
}

.pq-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

/* ---- Content / sections ---- */

.pq-main {
	padding: 2.5rem 0 3rem;
}

.pq-main__grid {
	display: grid;
	gap: 1.5rem;
}

.pq-section {
	padding: 0.5rem 0 2.5rem;
}

.pq-slot + .pq-slot {
	margin-top: 2.5rem;
}

.pq-mod {
	padding: 1.5rem 0;
}

.pq-mod__title {
	margin: 0 0 0.75rem;
	font-family: var(--pq-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.pq-content {
	min-width: 0;
}

.pq-footer {
	border-top: 1px solid var(--pq-line);
	background: #101612;
	color: #e7ebe8;
	padding: 2rem 0;
}

.pq-footer__inner {
	display: grid;
	gap: 1rem;
}

.pq-footer a {
	color: #e7ebe8;
}

.pq-footer__brand p {
	margin: 0.35rem 0 0;
	color: rgba(231, 235, 232, 0.75);
}

.pq-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

@media (min-width: 900px) {
	.pq-header__inner {
		flex-wrap: nowrap;
	}

	.pq-brand {
		flex: 0 1 auto;
	}

	.pq-nav-toggle {
		display: none;
	}

	.pq-nav {
		display: block;
		position: static;
		order: 2;
		flex: 1 1 auto;
		background: transparent;
		border: 0;
		padding: 0;
	}

	.pq-header__end {
		order: 3;
		margin-left: 0;
	}

	.pq-nav ul {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0.25rem 1.25rem;
	}

	.pq-nav a {
		padding: 0.35rem 0;
	}

	.pq-contact__phone,
	.pq-contact__whatsapp {
		min-height: 2.5rem;
	}

	.pq-main__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pq-main__grid:has(.pq-sidebar--left) {
		grid-template-columns: 16rem minmax(0, 1fr);
	}

	.pq-main__grid:has(.pq-sidebar--right) {
		grid-template-columns: minmax(0, 1fr) 16rem;
	}

	.pq-main__grid:has(.pq-sidebar--left):has(.pq-sidebar--right) {
		grid-template-columns: 15rem minmax(0, 1fr) 15rem;
	}

	.pq-footer__inner {
		grid-template-columns: 1.4fr 1fr;
		align-items: start;
	}
}
