/* ==========================================================================
   Franquesa Enginyeria - 2026 rebuild
   Reproduces the original Bootstrap 3 + template look without dependencies.
   ========================================================================== */

/* Fonts
   ------------------------------------------------------------------------ */
@font-face {
	font-family: 'Dosis';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/dosis-regular.woff2) format('woff2'), url(../fonts/dosis-regular.woff) format('woff');
}
@font-face {
	font-family: 'Dosis';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../fonts/dosis-semibold.woff2) format('woff2'), url(../fonts/dosis-semibold.woff) format('woff');
}
@font-face {
	font-family: 'Dosis';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/dosis-bold.woff2) format('woff2'), url(../fonts/dosis-bold.woff) format('woff');
}
/* Font Awesome 4 webfont, only the glyphs used by the page */
@font-face {
	font-family: 'FontAwesome';
	font-style: normal;
	font-weight: normal;
	font-display: block;
	src: url(../fonts/fontawesome-webfont.woff) format('woff');
}

.fa {
	display: inline-block;
	font-family: 'FontAwesome';
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.fa-code-fork::before      { content: "\f126"; }
.fa-graduation-cap::before { content: "\f19d"; }
.fa-chain::before          { content: "\f0c1"; }
.fa-lightbulb-o::before    { content: "\f0eb"; }
.fa-check-circle-o::before { content: "\f05d"; }
.fa-users::before          { content: "\f0c0"; }
.fa-certificate::before    { content: "\f0a3"; }
.fa-calendar::before       { content: "\f073"; }
.fa-gift::before           { content: "\f06b"; }
.fa-hdd-o::before          { content: "\f0a0"; }
.fa-code::before           { content: "\f121"; }
.fa-cubes::before          { content: "\f1b3"; }
.fa-sitemap::before        { content: "\f0e8"; }
.fa-puzzle-piece::before   { content: "\f12e"; }
.fa-comments::before       { content: "\f086"; }
.fa-bars::before           { content: "\f0c9"; }

/* Base
   ------------------------------------------------------------------------ */
:root {
	--blue: #003366;
	--accent: #ff3366;
	--text: #262626;
	--swing: cubic-bezier(.37, 0, .63, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Dosis', sans-serif;
	font-size: 16px;
	line-height: 1.428571429;
	color: var(--text);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.1;
	color: inherit;
}

h2 {
	font-size: 2.75em;
	margin: 20px 0 10px;
}

h3 {
	font-size: 1.5625em;
	margin: 20px 0 10px;
}

p {
	margin: 0 0 10px;
	font-size: 1em;
	line-height: 30px;
}

ul {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

a {
	color: #428bca;
	text-decoration: none;
	transition: color .2s ease;
}

a:hover,
a:focus {
	color: var(--blue);
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.container {
	width: 100%;
	max-width: 1170px;
	margin-inline: auto;
	padding-inline: 15px;
}

.white-bg { background-color: #fff; }
.gray-bg  { background-color: #ecf0f1; }

.pattern {
	background-color: rgba(0, 0, 0, .7);
	background-image: url(../images/pattern.png);
}

/* Prevent heading margins from escaping the coloured section backgrounds */
.section {
	display: flow-root;
}

/* Parallax backgrounds (vertical position driven by main.js)
   ------------------------------------------------------------------------ */
#top-section,
#footer-section {
	background: url(../images/top-section-bg.jpg) 50% 0 no-repeat fixed;
}

#contact-section {
	background: url(../images/contact-section-bg.jpg) 50% 0 / cover no-repeat fixed;
}

.top-section,
.footer-section {
	position: relative;
	z-index: 1;
}

/* Buttons
   ------------------------------------------------------------------------ */
.btn {
	display: inline-block;
	width: 170px;
	height: 50px;
	margin: 5px 10px 40px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 30px;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	line-height: 46px;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	transition: all .2s ease;
}

.btn:hover,
.btn:focus {
	color: #fff;
	background-color: var(--blue);
	border-color: var(--blue);
}

/* Top section
   ------------------------------------------------------------------------ */
.top-section .pattern {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: clamp(30px, 10vh, 100px);
	background-image: none;
	background-color: rgba(110, 125, 140, .9);
}

.logo {
	display: table;
	margin: auto;
	margin-block: 0;
}

.logo img {
	width: auto;
	height: min(178px, 16vh);
}

#top-slider {
	display: flex;
	flex: 1;
	align-items: center;
	margin-top: clamp(20px, 7.5vh, 70px);
	color: #fff;
	overflow: hidden;
}

.slide {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
}

.slide-image,
.slide-content {
	position: relative;
	flex: 0 0 100%;
	min-height: 1px;
}

.slide-content {
	padding-inline: 15px;
}

.top-mobile-image {
	position: absolute;
	top: 0;
	left: 0;
	max-width: 95%;
}

.slide-text-container {
	max-width: 470px;
	margin-left: 50px;
}

.slider-title {
	margin: clamp(10px, 3.5vh, 38px) 0 10px;
	font-size: 4em;
	font-weight: 700;
}

.slider-sub-title {
	margin: clamp(15px, 3.7vh, 40px) 0 25px;
	font-size: 2em;
	font-weight: 500;
	line-height: 1.1;
}

.slider-text {
	font-size: 1.125em;
}

.slider-buttons {
	padding-top: clamp(30px, 8vh, 75px);
	padding-bottom: clamp(20px, 6.5vh, 60px);
}

.slider-buttons .btn {
	margin-bottom: clamp(10px, 3.7vh, 40px);
}

/* Main menu
   ------------------------------------------------------------------------ */
.main-menu-container {
	min-height: 80px;
}

.navbar {
	position: relative;
	min-height: 80px;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.navbar.is-fixed {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1030;
}

.navbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.navbar-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-left: -15px;
}

.navbar-brand {
	display: block;
	height: 80px;
	padding: 0 15px;
	font-size: 2rem;
	line-height: 80px;
}

.navbar-toggle {
	display: none;
	margin: 15px 15px 15px 0;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--blue);
	font: inherit;
	font-size: 2em;
	line-height: 25px;
	cursor: pointer;
	transition: all .25s ease;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
	color: #53c5d5;
}

.navbar-collapse {
	padding-inline: 15px;
}

.navbar.is-fixed .navbar-collapse {
	padding-inline: 0;
}

.navbar-nav {
	display: flex;
	margin: 0;
}

.navbar-nav a {
	position: relative;
	display: block;
	padding: 30px 15px;
	color: #777;
	font-size: 1.125em;
	line-height: 20px;
}

.navbar-nav a:hover,
.navbar-nav a:focus,
.navbar-nav .active a {
	color: var(--accent);
	background-color: transparent;
}

/* Feature grids (Empresa / Serveis)
   ------------------------------------------------------------------------ */
.grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 30px;
}

.feature {
	display: flow-root;
	padding-bottom: 20px;
}

.content-icon {
	float: left;
	width: 60px;
	height: 60px;
	color: var(--blue);
	font-size: 2.15em;
	line-height: 55px;
	text-align: center;
	transition: all .25s ease;
}

.content {
	margin-left: 80px;
}

.content-title {
	margin-top: 0;
	font-weight: 700;
}

.content .content-title {
	font-size: 1.5em;
}

/* Section titles
   ------------------------------------------------------------------------ */
.section-title {
	position: relative;
	margin: 50px 0 0;
	padding-bottom: 40px;
	color: #1a1a1a;
	font-size: 2.75em;
	font-weight: 700;
	text-transform: capitalize;
	-webkit-text-stroke: .3px;
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: 20px;
	left: 2px;
	width: 120px;
	height: 2px;
	background-color: var(--blue);
}

.section-description {
	margin: 0 0 75px;
	color: #404040;
	font-size: 1.375em;
	font-weight: 300;
	-webkit-text-stroke: .2px;
}

/* Empresa
   ------------------------------------------------------------------------ */
.empresa-section {
	padding-bottom: 30px;
}

.empresa-section .content-icon {
	position: relative;
	z-index: 0;
	border: 2px solid var(--blue);
	border-radius: 50%;
}

.empresa-section .content-icon::after {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	z-index: -1;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: transparent;
	opacity: 0;
	transform: scale(1.3333);
	transition: all .25s ease-out;
}

.empresa-section .feature:hover .content-icon {
	color: #fff;
}

.empresa-section .feature:hover .content-icon::after {
	background-color: var(--blue);
	opacity: 1;
	transform: scale(1);
}

/* Serveis
   ------------------------------------------------------------------------ */
.serveis-section .section-header {
	padding-bottom: 20px;
}

.serveis-section .section-description {
	margin-bottom: 25px;
}

.serveis-section .content-icon {
	font-size: 3.125em;
}

/* Contact / Support
   ------------------------------------------------------------------------ */
.contact-section {
	padding-bottom: 50px;
	background-color: rgba(255, 255, 255, .6);
}

.contact-section p {
	line-height: 25px;
}

.contact-section .section-description {
	margin-bottom: 25px;
}

.contact-section .content-title {
	margin-top: 20px;
	padding-bottom: 10px;
}

.contact-details li {
	position: relative;
	padding-left: 35px;
	line-height: 45px;
}

.contact-details li::before {
	position: absolute;
	left: 0;
	color: var(--blue);
	font-family: 'FontAwesome';
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	-webkit-font-smoothing: antialiased;
}

.contact-details .icon-phone::before    { content: "\f095"; }
.contact-details .icon-envelope::before { content: "\f0e0"; }

.support-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 10px;
	width: 50%;
}

/* Footer
   ------------------------------------------------------------------------ */
.footer-section .pattern {
	padding-top: 50px;
	text-align: center;
}

.copyrights {
	padding-bottom: 50px;
	color: #fff;
}

.copyrights a {
	color: #fff;
	font-weight: 700;
	-webkit-text-stroke: .1px;
}

.copyrights a:hover,
.copyrights a:focus {
	color: var(--blue);
}

/* Scroll reveal (desktop only, as in the original)
   ------------------------------------------------------------------------ */
@media (min-width: 992px) {
	.js .reveal {
		opacity: 0;
		transform: translateY(50px);
		transition: opacity .6s var(--swing), transform .6s var(--swing);
		transition-delay: var(--reveal-delay, 0ms);
	}

	.js .reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Preloader
   ------------------------------------------------------------------------ */
#preloader {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background-color: #fff;
	opacity: .96;
}

.js #preloader {
	display: block;
}

.loader {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -21px 0 0 -7px;
	background: url(../images/loader-grey.gif);
	transition: opacity .4s var(--swing);
}

.is-loaded .loader {
	opacity: 0;
}

.is-loaded #preloader {
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s var(--swing) .35s, visibility 0s linear .95s;
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (min-width: 992px) {
	.grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.slide-image,
	.slide-content {
		flex-basis: 50%;
	}
}

@media (max-width: 992px) {
	.slide-text-container {
		min-width: 100%;
		margin-left: 0;
	}

	.top-mobile-image {
		display: none;
	}

	.slider-buttons {
		text-align: center;
	}

	.section-description {
		max-width: 100%;
	}

	/* Collapsible menu */
	.navbar-inner {
		display: block;
	}

	.navbar-header {
		margin-inline: -15px;
	}

	.navbar-toggle {
		display: block;
	}

	.navbar-collapse {
		display: grid;
		grid-template-rows: 0fr;
		margin-inline: -15px;
		transition: grid-template-rows .35s ease;
	}

	.navbar.is-fixed .navbar-collapse {
		padding-inline: 15px;
	}

	.navbar-collapse.in {
		grid-template-rows: 1fr;
	}

	.navbar-collapse > .navbar-nav {
		display: block;
		min-height: 0;
		margin: 0;
		overflow: hidden;
		visibility: hidden;
		transition: visibility 0s linear .35s;
	}

	/* Margins live inside the clipped list so the collapsed menu is 0px tall */
	.navbar-nav li:first-child {
		margin-top: 2px;
	}

	.navbar-nav li:last-child {
		margin-bottom: 2px;
	}

	.navbar-collapse.in > .navbar-nav {
		visibility: visible;
		transition-delay: 0s;
	}

	.navbar-nav li {
		border-bottom: 1px solid #e1e1e1;
	}

	.navbar-nav li:last-child {
		border-bottom: 0;
	}

	.navbar-nav a {
		padding-block: 10px;
	}
}

@media (max-width: 767px) {
	.navbar-collapse > .navbar-nav {
		margin-inline: -15px;
	}
}

@media (max-width: 480px) {
	.slider-title {
		font-size: 3em;
	}

	.section-title {
		font-size: 2em;
	}

	.slide-text-container {
		padding-inline: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
