/* Pàgines de municipi i índex "On treballem" (CPT hj_municipi).
   Només es carrega en aquestes pàgines (veure hj-municipis.php). */

.hj-municipi {
	--hj-red: #e52e37;
	--hj-light: #f0f2f4;
	width: 100%;
}
/* Evita scroll horitzontal per les seccions a amplada completa. */
.single-hj_municipi .site-content-wrap,
.post-type-archive-hj_municipi .site-content-wrap {
	overflow-x: clip;
}
.hj-municipi h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; margin-bottom: 20px; }
.hj-municipi h3 { line-height: 1.3; }

.hj-sec { padding-top: 80px; padding-bottom: 80px; }
/* Fons a amplada completa, però amb el contingut alineat amb el
   contenidor del tema: el % del padding es calcula sobre l'amplada del
   contenidor pare, així que compensa exactament el marge negatiu. */
.hj-full {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}
.hj-wrap { width: 100%; }
.hj-grey { background: var(--hj-light); }

.hj-tag {
	display: block;
	color: var(--hj-red);
	font-family: Poppins, sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.hj-lead { font-size: 19px; line-height: 1.6; color: #000; max-width: 820px; }

/* Botons */
.hj-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 50px; }
.hj-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 40px;
	font-family: Poppins, sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: opacity .2s;
}
.hj-btn:hover { opacity: .85; }
.hj-btn-red, .hj-btn-red:hover { background: var(--hj-red); color: #fff; }
.hj-btn-dark, .hj-btn-dark:hover { background: #000; color: #fff; }
.hj-btn-white, .hj-btn-white:hover { background: #fff; color: #000; }
.hj-ico { flex: none; }

/* Introducció */
.hj-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.hj-intro-side img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; }
.hj-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hj-facts li { background: var(--hj-light); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.4; }
.hj-facts b { display: block; font-family: Poppins, sans-serif; color: #000; font-size: 17px; margin-bottom: 2px; }

/* Graella de serveis */
.hj-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.hj-card { background: #fff; border-radius: 20px; overflow: hidden; color: inherit; transition: transform .2s; }
.hj-card:hover { transform: translateY(-4px); color: inherit; }
.hj-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hj-card > div { padding: 20px 22px 24px; }
.hj-card h3 { font-size: 20px; margin-bottom: 6px; }
.hj-card p { font-size: 15px; margin: 0; }
.hj-more { display: block; margin-top: 10px; color: var(--hj-red); font-family: Poppins, sans-serif; font-weight: 600; font-size: 14px; }
.hj-all { margin-top: 26px; font-family: Poppins, sans-serif; font-weight: 600; }

/* Per què Hidrojet */
.hj-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.hj-why > div { border-top: 4px solid var(--hj-red); padding-top: 18px; }
.hj-why h3 { font-size: 19px; margin-bottom: 8px; }
.hj-why p { font-size: 15px; margin: 0; }

/* FAQ */
.hj-faq details { background: #fff; border-radius: 14px; margin-bottom: 12px; padding: 18px 22px; }
.hj-faq summary { font-family: Poppins, sans-serif; font-weight: 600; color: #000; cursor: pointer; font-size: 17px; }
.hj-faq details p { margin: 12px 0 0; }

/* Propers + formulari */
.hj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.hj-near { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hj-near a { border: 1px solid #ddd; border-radius: 30px; padding: 8px 18px; color: #000; font-size: 14px; font-weight: 500; }
.hj-near a:hover { border-color: var(--hj-red); color: var(--hj-red); }
.hj-contact { margin-top: 30px; }
.hj-formbox { background: var(--hj-red); border-radius: 20px; padding: 30px; }
.hj-formbox h3 { color: #fff; margin-bottom: 10px; }
.hj-formbox .hj-clientify-sidebar { padding: 0; }

/* Franja de trucada */
.hj-ctaband { background: #000; padding: 50px 0; }
.hj-ctaband .hj-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hj-ctaband h2 { color: #fff; margin: 0; }

/* Índex */
.hj-zone { margin-top: 50px; }
.hj-zone h2 { font-size: 24px; border-left: 5px solid var(--hj-red); padding-left: 14px; }
.hj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.hj-m { display: block; background: var(--hj-light); border-radius: 16px; padding: 22px 24px; color: inherit; transition: background .2s, box-shadow .2s; }
.hj-m:hover { background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); color: inherit; }
.hj-m h3 { font-size: 19px; margin-bottom: 4px; }
.hj-m p { font-size: 14px; margin: 0 0 10px; line-height: 1.5; }
.hj-m span { color: var(--hj-red); font-family: Poppins, sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.hj-cta { background: var(--hj-red); color: #fff; border-radius: 20px; padding: 40px; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hj-cta h2 { color: #fff; margin: 0; }
.hj-cta p { margin: 6px 0 0; color: #fff; }

@media (max-width: 1024px) {
	.hj-intro, .hj-two { grid-template-columns: 1fr; }
	.hj-cards, .hj-grid { grid-template-columns: 1fr 1fr; }
	.hj-why { grid-template-columns: 1fr 1fr; }
	.hj-sec { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 600px) {
	.hj-cards, .hj-grid, .hj-why { grid-template-columns: 1fr; }
	.hj-cta { padding: 28px; }
}
