/*--------------------------------------------------------------
  Massó Pack — estils propis (fases 0 i 1)
  Es carrega després de style.css.
  1. Accessibilitat (focus, salt al contingut, botons del menú)
  2. Hero estàtic de la home
  3. Botons d'acció
  5. Llistat de clients i contacte
  6. Portfoli
  7. Peu i pàgines legals
  8. Bàner de cookies i WhatsApp
  9. Moviment reduït
--------------------------------------------------------------*/

:root {
	--mp-blue: #03a0e0;
	--mp-blue-dark: #0279aa;
	--mp-dark: #111517;
	--mp-dark-2: #1b2a2f;
	--mp-light: #f5f5f5;
	--mp-text: #262626;
	--mp-muted: #5c6166;
	--mp-focus: #ffbf47;
}

/* 1. Accessibilitat ------------------------------------------------*/
a:focus,
button:focus {
	outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--mp-focus);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--mp-dark);
	color: #fff;
	font-family: 'Oswald', sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 14px;
}

.skip-link:focus {
	top: 16px;
	color: #fff;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

button.menu-open,
button.menu-close {
	padding: 0;
	cursor: pointer;
	display: block;
}

/* Cursor personalitzat de la plantilla: desactivat */
.pointer {
	display: none !important;
}

/* 2. Hero estàtic ---------------------------------------------------*/
.hero .hero-bg {
	overflow: hidden;
	background: var(--mp-dark);
}

.hero .hero-bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero .hero-content {
	position: relative;
	z-index: 1;
	/* El fons fosc ja el dona el carrusel; si no, taparia la foto */
	background: transparent;
}

.hero-eyebrow {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--mp-blue);
	margin: 0 0 18px;
}

.hero-title {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: clamp(34px, 4.4vw, 62px);
	line-height: 1.12;
	color: #fff;
	margin: 0 0 24px;
	text-transform: none;
	letter-spacing: 0.5px;
}

.hero-title span {
	color: var(--mp-blue);
}

.hero-lead {
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.65;
	color: #d5d9dc;
	max-width: 560px;
	margin: 0 0 32px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 34px;
}

.hero-tags {
	font-family: 'Oswald', sans-serif;
	letter-spacing: 3px;
	font-size: 13px;
	color: #b6b7b8;
	margin: 0;
}

@media only screen and (max-width: 999px) {
	/* Enquadrem la part alta de la foto (paper clar) perquè el logo es llegeixi bé */
	.hero .hero-bg img {
		object-position: 50% 0;
	}

	.hero .hero-bg:after {
		content: '';
		position: absolute;
		inset: 0;
		/* The top stays light so the (black) logo remains visible */
		background: linear-gradient(to bottom, rgba(17, 21, 23, 0) 0, rgba(17, 21, 23, 0) 95px, rgba(17, 21, 23, .85) 165px);
	}

	.hero .hero-content .container {
		padding-top: 170px;
	}
}

/* 3. Botons -----------------------------------------------------------*/
.btn-mp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 30px;
	font-family: 'Oswald', sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--mp-blue);
	transition: background-color .2s, color .2s, border-color .2s;
	cursor: pointer;
}

.btn-mp--primary {
	background: var(--mp-blue);
	color: #fff;
}

.btn-mp--primary:hover,
.btn-mp--primary:focus-visible {
	background: var(--mp-blue-dark);
	border-color: var(--mp-blue-dark);
	color: #fff;
}

.btn-mp--ghost {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.btn-mp--ghost:hover,
.btn-mp--ghost:focus-visible {
	background: #fff;
	color: var(--mp-dark);
}

/* 5. Clients i contacte ------------------------------------------------*/
.client-list li a:not([href]) {
	cursor: default;
}

.contact-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}

.contact-link:hover,
.contact-link:focus-visible {
	color: inherit;
	border-bottom-color: currentColor;
}

.contact-hours {
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--mp-text);
	margin: 16px 0 0;
}

/* Icones SVG (substitueixen Font Awesome) */
.icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
	vertical-align: -2px;
	margin-right: 16px;
}

/* 6. Portfoli ----------------------------------------------------------*/
.work_item img {
	display: block;
	width: 100%;
	height: auto;
}

/* 7. Peu i pàgines legals ------------------------------------------------*/
.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.footer-legal a,
.footer-legal button {
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #b6b7b8;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover {
	color: #fff;
}

.legal-page {
	margin: 0;
	font-family: 'Open Sans', Arial, sans-serif;
	background: var(--mp-light);
	color: var(--mp-text);
	min-height: 100vh;
}

.legal-header {
	background: var(--mp-dark);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.legal-header img {
	width: 150px;
	height: auto;
	display: block;
}

.legal-header nav a {
	color: #d5d9dc;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-left: 18px;
}

.legal-header nav a:hover {
	color: #fff;
}

.legal-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 60px 24px 90px;
	font-size: 16px;
	line-height: 1.75;
}

.legal-content h1 {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 12px;
}

.legal-content h2 {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 500;
	margin: 40px 0 10px;
}

.legal-content p,
.legal-content li {
	color: #3a3f44;
}

.legal-content a {
	color: var(--mp-blue-dark);
	text-decoration: underline;
}

.legal-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 16px 0;
}

.legal-content th,
.legal-content td {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #d5d9dc;
	vertical-align: top;
}

.legal-updated {
	color: var(--mp-muted);
	font-size: 14px;
}

.legal-footer {
	background: var(--mp-dark);
	color: #b6b7b8;
	text-align: center;
	padding: 30px 24px;
	font-size: 14px;
}

.legal-footer a {
	color: #d5d9dc;
}

/* 8. Bàner de cookies i WhatsApp --------------------------------------------*/
.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	max-width: 620px;
	margin: 0 auto;
	padding: 22px 24px;
	background: var(--mp-dark);
	color: #e4e7e9;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	font-size: 14px;
	line-height: 1.6;
}

.cookie-banner p {
	margin: 0 0 16px;
	color: #e4e7e9;
}

.cookie-banner a {
	color: #7fd3f7;
	text-decoration: underline;
}

.cookie-banner .cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cookie-banner button {
	min-height: 44px;
	padding: 10px 22px;
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
}

.cookie-banner button.is-primary {
	background: var(--mp-blue);
	border-color: var(--mp-blue);
}

.whatsapp-btn {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.whatsapp-btn svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.has-whatsapp .to-top-btn {
	bottom: 96px;
}

/* 9. Moviment reduït -------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}

/* 10. Contingut principal per sobre del peu fix (abans ho feia animsition) */
#main {
	position: relative;
	z-index: 2;
	overflow: hidden;
	background: #f5f5f5;
}

/* 11. Selector d'idioma del menú: discret, en una sola fila */
.nav-box.nav-langs {
	display: flex;
	gap: 6px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .15);
}

.nav-box.nav-langs a.nav-lang {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 3px;
	color: #9aa0a5;
	padding: 6px 10px;
	text-decoration: none;
	transition: color .2s, transform .7s cubic-bezier(.767, .01, .18, 1.01);
}

.nav-box.nav-langs a.nav-lang:hover,
.nav-box.nav-langs a.nav-lang:focus-visible {
	color: #fff;
}

.nav-box.nav-langs a.nav-lang.is-current {
	color: var(--mp-blue);
}

/* 12. Logo de la capçalera: sempre visible (sense animació d'entrada que el deixava tallat) */
.logo img,
body.active .logo img {
	-webkit-transform: none;
	    -ms-transform: none;
	        transform: none;
	-webkit-transition: none;
	     -o-transition: none;
	        transition: none;
}

.logo-img-box .logo-color {
	display: block;
	width: 100%;
	height: auto;
}

/* 13. Carrusel de la home: botó d'aturar / reprendre */
.home-slider .slider-toggle {
	position: absolute;
	left: 40px;
	bottom: 40px;
	z-index: 10;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .6) !important;
	border-radius: 50%;
	background: rgba(17, 21, 23, .45) !important;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s;
}

.home-slider .slider-toggle:hover {
	background: rgba(17, 21, 23, .8) !important;
}

.home-slider .slider-toggle svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.home-slider .slider-toggle .icon-play,
.home-slider .slider-toggle.is-paused .icon-pause {
	display: none;
}

.home-slider .slider-toggle.is-paused .icon-play {
	display: block;
}

@media only screen and (max-width: 767px) {
	.home-slider .slider-toggle {
		left: 16px;
		bottom: 76px;
	}
}

.logo-img-box .logo-color-inv {
	display: none;
	width: 100%;
	height: auto;
}

body.on-blue-slide .logo-img-box .logo-color {
	display: none;
}

body.on-blue-slide .logo-img-box .logo-color-inv {
	display: block;
}

/* Títols de les diapositives: mida fluida perquè les línies llargues no quedin tallades */
.home-slider .large-title-bold {
	font-size: clamp(32px, 3.5vw, 60px);
}

/* 14. Preguntes freqüents (home) */
.faq-list {
	max-width: 860px;
	margin: 0 auto;
}

.faq-item {
	border-bottom: 1px solid #d5d9dc;
}

.faq-item:first-child {
	border-top: 1px solid #d5d9dc;
}

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 4px;
	cursor: pointer;
	list-style: none;
}

.faq-q::-webkit-details-marker {
	display: none;
}

.faq-q h3 {
	margin: 0;
	font-family: 'Oswald', sans-serif;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 500;
	line-height: 1.35;
	color: var(--mp-text);
	text-transform: none;
	letter-spacing: .3px;
}

.faq-q::after {
	content: '+';
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mp-blue);
	border-radius: 50%;
	color: var(--mp-blue);
	font-size: 20px;
	line-height: 1;
	transition: transform .25s;
}

.faq-item[open] .faq-q::after {
	transform: rotate(45deg);
}

.faq-q:hover h3 {
	color: var(--mp-blue-dark);
}

.faq-a {
	padding: 0 4px 24px;
}

.faq-a p {
	margin: 0;
	max-width: 760px;
	font-size: 16px;
	line-height: 1.75;
	color: #3a3f44;
}

/* Titular del portfoli: mida fluida (les línies no es poden partir per l'efecte d'emplenat) */
.page-head .large-title-bold {
	font-size: clamp(30px, 3.6vw, 60px);
}
