/*
 * CREATE & ASSETS - homepage
 * Visual design recreated from the original WordPress theme "Isabella" + site custom CSS.
 */

:root {
	--navy: #182b4c;
	--teal: #12aba8;
	--grey-bg: #f7f7f7;
	--input-bg: #f9f9f9;
	--border: #eee;
	--text: #777;
	--heading: #333;
	--white: #fff;
	--font-body: sans-serif; /* original site custom CSS overrides theme Lato */
	--font-nav: 'Lato', sans-serif;
	--font-heading: 'Montserrat', sans-serif;
	--container: 1170px;
	--shadow-lift: 0 40px 40px rgba(0, 0, 0, .1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	color: var(--text);
	background: var(--white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--heading);
	font-weight: 700;
}

a {
	color: var(--teal);
	text-decoration: none;
	transition: all .2s;
}

a:hover,
a:focus { text-decoration: none; }

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

/* inline SVG icons (Font Awesome 4.7 glyphs, see app/Presentation/@icons.latte) - sized like the icon font */
.ico {
	display: inline-block;
	height: 1em;
	vertical-align: -.143em;
	fill: currentColor;
	overflow: visible;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 15px;
}

.section--padding { padding: 60px 0; }

/* ---------- section title ---------- */

.section-title {
	text-align: center;
	margin-bottom: 60px;
}

.section-title h2 {
	margin: 0;
	padding-bottom: 10px;
	font-size: 30px;
	line-height: 1.1;
	color: var(--navy);
	text-transform: uppercase;
}

.section-title > span {
	display: block;
	width: 70px;
	height: 2px;
	margin: 15px auto;
	background: var(--teal);
}

.container--fluid { max-width: none; }

.section-title__text {
	width: 60%;
	margin: 0 auto;
	text-align: justify;
}

.section-title__text p + p { margin-top: 24px; }

.section-title__center { text-align: center; }

.section-title--slider { margin: 0 0 30px; }

.references { padding-top: 60px; }

.section-title--white h2 { color: var(--white); }

@media (max-width: 768px) {
	.section-title__text { width: 100%; padding: 0 5px; }
}

@media (max-width: 480px) {
	.section-title h2 { font-size: 26px; }
}

/* ---------- navbar ---------- */

.navbar {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	padding: 20px 0;
	background: transparent;
	transition: all .4s ease-in-out;
}

.navbar.is-shrink {
	padding: 10px 0;
	background: var(--navy);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.navbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.navbar__brand img { width: 150px; margin-left: 10px; }

.navbar__nav ul { display: flex; flex-wrap: wrap; }

.navbar__nav a {
	display: block;
	padding: 15px;
	color: var(--white);
	font-family: var(--font-nav);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 20px;
	text-transform: uppercase;
}

.navbar__nav a:hover,
.navbar__nav a:focus-visible { color: var(--teal); }

.navbar__toggle {
	display: none;
	padding: 9px 10px;
	border: 1px solid var(--navy);
	border-radius: 4px;
	background: var(--navy);
	cursor: pointer;
}

.navbar__toggle .icon-bar {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: var(--white);
}

.navbar__toggle .icon-bar + .icon-bar { margin-top: 4px; }

@media (max-width: 991px) {
	.navbar__nav a { padding: 15px 9px; letter-spacing: 1px; }
}

@media (max-width: 767px) {
	.navbar { padding: 10px 0; }
	.navbar__toggle { display: block; margin-right: 0; }
	.navbar__nav {
		display: none;
		width: 100%;
		margin-top: 10px;
		background: var(--navy);
	}
	.navbar.is-open { background: var(--navy); }
	.navbar.is-open .navbar__nav { display: block; }
	.navbar__nav ul { flex-direction: column; }
	.navbar__nav a { padding: 10px 15px; }
}

/* ---------- sliders ----------
 * Mirrors the original Revolution Slider setup: 1240x650 layer grid centred in the slide,
 * everything (height, offsets, fonts) scales down proportionally below 1240px.
 */

.slider {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	container-type: inline-size;
}

.slider__track { position: relative; }

.slide {
	--s: min(1px, 100cqw / 1240); /* 1 grid px */
	position: absolute;
	inset: 0;
	width: 100%;
	aspect-ratio: 1240 / 650;
	max-height: 650px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}

.slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
}

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

.slide::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.slider--content .slide:has(.slide__caption--left)::after { background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%); }
.slider--content .slide:has(.slide__caption--right)::after { background: linear-gradient(270deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 60%); }

.slide__caption {
	--offset: 10;
	--grid-edge: max(0px, (100% - 1240px) / 2);
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: calc(var(--w, 500) * var(--s));
	color: #f7f7f7;
	transform: translateY(-50%);
}

.slide__caption--left { left: calc(var(--grid-edge) + var(--offset) * var(--s)); text-align: left; }
.slide__caption--right { right: calc(var(--grid-edge) + var(--offset) * var(--s)); text-align: right; }
.slide__caption--center { left: 50%; text-align: left; transform: translate(-50%, -50%); }

.slide__caption--right { align-items: flex-end; } /* wide nowrap titles overflow to the left like in the original */

.slider--hero .slide__caption {
	--offset: 100;
	top: calc(50% - 36 * var(--s));
	width: auto;
}

.slide__title {
	width: max-content;
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: calc(35 * var(--s));
	font-weight: 600;
	line-height: calc(55 * var(--s));
	color: var(--white);
	text-transform: uppercase;
	white-space: nowrap;
}

.slider--hero .slide__title { font-size: calc(30 * var(--s)); }

.slide__place {
	width: max-content;
	margin-bottom: calc(20 * var(--s));
	font-family: Arial, Helvetica, sans-serif;
	font-size: calc(28 * var(--s));
	font-weight: 300;
	line-height: calc(40 * var(--s));
	color: var(--white);
	text-transform: uppercase;
	white-space: nowrap;
}

.slide__subtitle {
	width: max-content;
	margin-top: calc(5 * var(--s));
	font-family: 'Roboto', sans-serif;
	font-size: calc(22 * var(--s));
	font-weight: 300;
	line-height: calc(25 * var(--s));
	text-transform: uppercase;
	white-space: nowrap;
}

.slide__text,
.slide__note {
	font-family: 'Roboto', sans-serif;
	font-size: calc(18 * var(--s));
	font-weight: 300;
	line-height: calc(24 * var(--s));
}

.slide__text + .slide__text,
.slide__note { margin-top: calc(18 * var(--s)); }

.slide__note { font-style: italic; font-weight: 500; }

/* caption entrance animation */
.slide__caption > * {
	opacity: 0;
	transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.slide__caption--left > * { transform: translateX(-60px); }
.slide__caption--right > * { transform: translateX(60px); }

.slide.is-active .slide__caption > * {
	opacity: 1;
	transform: none;
	transition-delay: .4s;
}

.slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, .25);
	color: var(--white);
	font-size: 26px;
	line-height: 40px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .3s, background .2s;
}

.slider:hover .slider__arrow,
.slider__arrow:focus-visible { opacity: 1; }

.slider__arrow:hover { background: rgba(0, 0, 0, .5); }

.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }

.slider__dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.slider__dot.is-active,
.slider__dot:hover { background: var(--white); }

/* small screens: Revolution Slider switched to a stacked layout here, so do we */
@media (max-width: 777px) {
	.slide { --s: 1px; aspect-ratio: auto; max-height: none; }
	.slider--hero .slide { height: 480px; }
	.slider--content .slide { min-height: 560px; }
	.slide::after { background: rgba(0, 0, 0, .45) !important; }
	.slide__caption,
	.slider--hero .slide__caption,
	.slide__caption--left,
	.slide__caption--right,
	.slide__caption--center {
		top: 50%;
		left: 20px;
		right: 20px;
		width: auto;
		text-align: left;
		transform: translateY(-50%);
	}
	.slide__caption--right { align-items: flex-start; }
	.slide__title,
	.slide__place,
	.slide__subtitle { width: auto; white-space: normal; }
	.slide__title,
	.slider--hero .slide__title { font-size: 22px; line-height: 28px; margin-bottom: 8px; }
	.slide__place { font-size: 17px; line-height: 22px; margin-bottom: 14px; }
	.slide__subtitle { font-size: 16px; line-height: 22px; }
	.slide__text,
	.slide__note { font-size: 15px; line-height: 21px; }
	.slide__text + .slide__text,
	.slide__note { margin-top: 12px; }
	.slider__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.slide,
	.slide__caption > * { transition: none; }
}

/* ---------- services ---------- */

.services {
	padding: 60px 0 30px;
	background: var(--grey-bg);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding-bottom: 30px;
}

.service {
	position: relative;
	z-index: 2;
	padding: 60px 30px;
	border: 1px solid var(--border);
	border-bottom: 3px solid var(--teal);
	background: var(--white);
	text-align: center;
	transition: all .3s ease;
}

.service:hover {
	z-index: 10;
	box-shadow: var(--shadow-lift);
	transform: translateY(-10px);
}

.service i {
	display: inline-block;
	width: 80px;
	height: 80px;
	margin-bottom: 15px;
	border: 1px solid var(--border);
	border-radius: 100px;
	color: var(--teal);
	font-size: 30px;
	line-height: 80px;
	text-align: center;
	transition: all .3s ease;
}

.service:hover i {
	border-color: var(--teal);
	background: var(--teal);
	color: var(--white);
}

.service h4 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

@media (max-width: 991px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.services__grid { grid-template-columns: 1fr; }
}

/* ---------- promo ---------- */

.promo {
	padding: 50px 0;
	background: var(--teal);
	text-align: center;
}

.promo__title {
	margin: 0;
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 300;
	line-height: 1.6;
	text-transform: uppercase;
}

.btn {
	display: inline-block;
	font-family: var(--font-body);
	cursor: pointer;
	transition: all .2s ease;
}

.btn--promo {
	margin-left: 100px;
	padding: 10px 30px;
	border: 1px solid var(--navy);
	border-radius: 2px;
	background: var(--navy);
	box-shadow: 0 11px 11px 0 rgba(0, 0, 0, .06);
	color: var(--white);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	vertical-align: middle;
	text-transform: none;
}

.btn--promo:hover,
.btn--promo:focus {
	border-color: var(--white);
	background: var(--white);
	color: var(--heading);
}

@media (max-width: 768px) {
	.promo__title { font-size: 20px; }
	.btn--promo { margin: 20px 0 0; }
}

/* ---------- references / support (full width sliders) ---------- */

.container--slider { padding: 0; }

/* navy strip only behind the title, slider sits below on white (as in the original) */
.support__band {
	padding: 60px 15px 30px;
	margin-bottom: 30px;
	background: var(--navy);
}

.support__band .section-title { margin-bottom: 0; }

/* ---------- downloads ---------- */

.downloads {
	display: table;
	margin: -30px auto 0;
	padding-left: 10px;
	text-align: left;
}

.downloads li { line-height: 30px; }

.downloads a { text-transform: uppercase; }

.downloads a:hover { color: var(--navy); }

.downloads i { width: 18px; }

/* ---------- contact ---------- */

.contact { padding-bottom: 0; }

.contact__body {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	padding: 30px 0 60px;
}

.contact__form { flex: 2 1 0; }

.contact__photo { flex: 1 1 0; }

.form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px 30px;
}

.form-group--full { grid-column: 1 / -1; }

.form-control {
	display: block;
	width: 100%;
	height: 52px;
	padding: 10px;
	border: 1px solid var(--input-bg);
	border-radius: 4px;
	background: var(--input-bg);
	color: #555;
	font-family: var(--font-heading);
	font-size: 14px;
	box-shadow: none;
	transition: border-color .2s;
}

textarea.form-control { height: 200px; resize: vertical; }

.form-control:hover,
.form-control:focus {
	border-color: var(--teal);
	outline: 0;
}

.form-control::placeholder { color: #999; }

.form-error {
	display: block;
	margin-top: 4px;
	color: #c0392b;
	font-size: 13px;
}

.btn--contact {
	padding: 10px 20px;
	border: 2px solid var(--teal);
	border-radius: 3px;
	background: var(--teal);
	color: var(--white);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.btn--contact:hover,
.btn--contact:focus {
	border-color: var(--heading);
	background: var(--heading);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
	margin: 0 0 20px;
	padding: 15px 20px;
	border-radius: 4px;
	list-style: none;
}

.alert--success { background: #e3f6f5; color: #0d7a78; border: 1px solid var(--teal); }
.alert--error { background: #fdecea; color: #a12a1e; border: 1px solid #f5c2bc; }

.social {
	display: flex;
	justify-content: space-around;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 15px 60px;
}

.social a {
	color: var(--navy);
	font-size: 50px;
	line-height: 1;
}

.social a:hover { color: var(--teal); }

@media (max-width: 767px) {
	.contact .section-title { margin-bottom: 30px; }
	.contact__body {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
		padding: 0 0 50px;
	}
	.contact__form,
	.contact__photo { flex: none; width: 100%; }
	.contact__photo img { width: 100%; border-radius: 4px; }
	.form-grid { grid-template-columns: 1fr; gap: 12px; }
	.form-control {
		font-size: 16px; /* prevents iOS zoom on focus */
		border-color: var(--border);
	}
	textarea.form-control { height: 160px; }
	.btn--contact { width: 100%; padding: 14px 20px; font-size: 14px; }
	.social { justify-content: center; gap: 50px; padding-bottom: 50px; }
	.social a { font-size: 40px; }
}

/* ---------- addresses ---------- */

.addresses {
	padding: 100px 0;
	background: var(--grey-bg);
}

.addresses__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.address {
	padding: 40px 20px;
	border: 1px solid var(--border);
	border-bottom: 3px solid var(--teal);
	background: var(--white);
	text-align: center;
	transition: .2s;
}

.address:hover { box-shadow: var(--shadow-lift); }

.address i {
	display: inline-block;
	width: 50px;
	height: 50px;
	margin-bottom: 20px;
	border-radius: 30px;
	background: var(--teal);
	color: var(--white);
	font-size: 20px;
	line-height: 50px;
}

.address p { min-height: 48px; }

.address a { color: inherit; }

.address a:hover { color: var(--teal); }

@media (max-width: 767px) {
	.addresses { padding: 60px 0; }
	.addresses__grid { grid-template-columns: 1fr; }
	.address p { min-height: 0; font-size: 15px; }
}

/* ---------- map ---------- */

.map iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

/* ---------- footer ---------- */

.footer {
	padding: 60px 0;
	background: var(--navy);
	text-align: center;
}

.footer__logo { display: inline-block; }

.footer__logo img { width: 250px; margin: 0 auto 30px; }

.footer__copyright {
	padding: 30px 0 0;
	color: #eee;
}

/* ---------- scroll to top ---------- */

.to-top {
	position: fixed;
	right: 5px;
	bottom: 5px;
	z-index: 900;
	width: 35px;
	height: 35px;
	border-radius: 5px;
	background: var(--teal);
	box-shadow: 0 1px 10px rgba(0, 0, 0, .2);
	color: var(--white);
	font-size: 22px;
	line-height: 33px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: all .2s ease;
}

.to-top.is-visible { opacity: 1; visibility: visible; }

.to-top:hover { background: #222; color: var(--white); }

/* ---------- error page ---------- */

.error-page { background: var(--grey-bg); }

.error-box {
	max-width: 640px;
	margin: 15vh auto;
	padding: 40px 16px;
	text-align: center;
}

.error-box img { margin: 0 auto 20px; background: var(--navy); padding: 20px; }

.error-box h1 { margin: 0 0 10px; font-size: 64px; color: var(--navy); }

.error-box p + p { margin-top: 20px; }
