/*
 * Shared components (Home + Page rows): style tiles, testimonials, process step list, FAQ, video pop-up.
 * Page rows layout follows below ("Rows"). Values measured on live at 1440 / 1280 / 1024 / 768 / 390.
 */

/* ------------------------------------------------------------------ Style tiles (live: loop carousel 7600). */
.sg-tiles { position: relative; }
.sg-tile { padding-right: 15px; }
.sg-tile__link { position: relative; display: block; line-height: 0; color: #fff; }
.sg-tile__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .5); transition: background-color .5s ease; }
.sg-tile:hover .sg-tile__link::before, .sg-tile__link:focus-visible::before { background-color: rgba(0, 0, 0, 0); }
.sg-tile__img { width: 100%; height: auto; aspect-ratio: 335 / 496; object-fit: cover; }
.sg-tile__title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 35px; margin: 0; font-size: 20px; line-height: 1; font-weight: 500; text-align: center; color: #fff; }
.sg-tiles__arrow { position: absolute; top: -70px; transform: translateY(-50%); width: 37px; height: 37px; color: #BEBEBE; }
.sg-tiles__arrow svg { width: 100%; height: 100%; }
.sg-tiles .sg-slider__next { right: -8px; }
.sg-tiles .sg-slider__prev { right: 32px; }
@media (max-width: 1024px) {
	.sg-tiles__arrow { top: -65px; transform: none; width: 30px; height: 30px; }
	.sg-tiles .sg-slider__next { right: 15px; }
	.sg-tiles .sg-slider__prev { right: 50px; }
}
@media (max-width: 767px) {
	.sg-tiles { padding-right: 41px; }
	.sg-tiles .sg-slider__viewport { margin-right: -20px; }
	.sg-tile { padding-right: 20px; }
	.sg-tile__title { font-size: 14px; }
	.sg-tiles__arrow { top: -45px; width: 25px; height: 25px; }
	.sg-tiles .sg-slider__next { right: 0; }
	.sg-tiles .sg-slider__prev { right: 30px; }
}

/* ------------------------------------------------------------------ Testimonials (live: testimonial carousel). */
.sg-reviews { position: relative; }
.sg-reviews__slider { padding-bottom: 101px; overflow: hidden; }
.sg-reviews__slider .sg-slider__viewport { margin-right: -50px; }
.sg-review { display: flex; padding-right: 50px; }
.sg-review__card {
	flex: 1; margin: 0; padding: 25px 30px 40px; color: #fff;
	background-color: #2E2E2E;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 157 116'%3E%3Cg fill='none' stroke='%23323232' stroke-width='2'%3E%3Cpath d='M5 5H69V64L39 110.5H8.5L28 62.5H5Z'/%3E%3Cpath d='M87.5 5H151.5V64L121.5 110.5H91L110.5 62.5H87.5Z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(to bottom, #323232 0%, #2D2D2D 27%, #1E1E1E 76%, #1A1A1A 100%);
	background-repeat: no-repeat; background-size: 157px 116px, cover; background-position: right 18px bottom 17px, center;
}
.sg-review__quote { margin: 0; font-size: 16px; }
.sg-review__quote p { line-height: 2.25em; }
.sg-review__by { margin-top: 35px; font-size: 16px; line-height: 2.25em; }
.sg-review__name { display: block; font-weight: 500; }
.sg-review__role { display: block; font-weight: 400; }
.sg-reviews__arrow { position: absolute; bottom: -3px; transform: translateY(-50%); width: 40px; height: 40px; color: #BEBEBE; }
.sg-reviews__slider { position: relative; }
.sg-reviews__arrow svg { width: 100%; height: 100%; }
.sg-reviews .sg-slider__next { right: -7px; }
.sg-reviews .sg-slider__prev { right: 40px; }
.sg-reviews__action { position: absolute; left: 0; bottom: 12px; z-index: 2; }
.sg-reviews__btn { padding: 15px 40px; border-color: #fff; color: #fff; }
@media (max-width: 1280px) {
	.sg-reviews__slider .sg-slider__viewport { margin-right: -10px; }
	.sg-review { padding-right: 10px; }
}
@media (max-width: 1024px) {
	.sg-reviews__slider { padding-bottom: 0; overflow: visible; }
	.sg-reviews__slider .sg-slider__viewport { overflow: visible; } /* Live: the next card peeks in below 1025px. */
	.sg-reviews__slider .sg-reviews__arrow { bottom: -80px; width: 30px; height: 30px; }
	.sg-reviews__action { bottom: -74px; }
}
@media (max-width: 880px) {
	.sg-review__quote, .sg-review__by { font-size: 15px; }
}
@media (max-width: 767px) {
	.sg-review__card { padding: 13px 16px 25px; }
	.sg-review__quote, .sg-review__by { font-size: 14px; }
	.sg-review__quote p, .sg-review__by { line-height: 2.6em; }
	.sg-reviews__slider .sg-reviews__arrow { bottom: -75px; }
	.sg-reviews .sg-slider__prev { right: auto; left: 50%; margin-left: -50px; }
	.sg-reviews .sg-slider__next { right: auto; left: 50%; margin-left: 8px; }
	.sg-reviews__action { position: static; margin-top: 90px; text-align: center; }
	.sg-reviews__btn { padding: 13px 52px; font-size: 14px; line-height: 14px; }
}

/* ------------------------------------------------------------------ Process step list (Home, steps row "list"). */
.sg-steplist { position: relative; padding: 0 0 109px; background: rgba(0, 0, 0, .96); color: #fff; }
.sg-steplist__box { display: flex; width: calc(100% - 40px); max-width: 1440px; margin-inline: auto; }
/* z-index 3: above the home "From Concept To Reality" sketch/rendering, which bleeds up behind this section (z-index 1). */
.sg-steplist__media { position: relative; z-index: 3; flex: 0 0 49.891%; padding: 20px 50px 0 0; }
.sg-steplist__img1 { margin-left: -380px; line-height: 0; }
.sg-steplist__img1 img { width: 100%; height: auto; }
.sg-steplist__img2 { position: relative; margin-top: -130px; line-height: 0; }
.sg-steplist__img2 img { width: auto; max-width: 100%; height: auto; }
.sg-steplist__list { flex: 0 0 50%; margin: 0; padding: 20px 0 0 50px; list-style: none; }
.sg-steplist__item { padding: 33px 0; border-bottom: 1px solid #2C2C2C; }
.sg-steplist__item:first-child { border-top: 1px solid #2C2C2C; }
.sg-steplist__title { margin: 0; font-size: 28px; line-height: 1; font-weight: 500; color: #fff; }
@media (max-width: 1280px) {
	.sg-steplist { padding: 50px 0 70px; }
	.sg-steplist__media { padding: 15px 30px 0 0; }
	.sg-steplist__list { padding: 0 0 0 30px; }
}
@media (max-width: 1024px) {
	.sg-steplist { padding: 30px 0 50px; }
	.sg-steplist__box { padding-top: 50px; }
	.sg-steplist__media { display: none; }
	.sg-steplist__list { flex: none; width: 100%; padding: 0; }
	.sg-steplist__title { font-size: 23px; }
}
@media (max-width: 880px) { .sg-steplist__title { font-size: 22px; } }
@media (max-width: 767px) {
	.sg-home-steps { margin-top: -78px; }
	.sg-steplist { padding: 0 0 50px; }
	.sg-steplist__box { padding-top: 0; }
	.sg-steplist__title { font-size: 19px; }
}

/* ------------------------------------------------------------------ FAQ accordion. */
/* Live: Elementor accordion on the Naples page — boxed items, 1px #D5D8DC rules, "+"/"−" left, 19px titles. */
.sg-faq { color: #fff; }
.sg-faq__heading { margin: 0; font-size: 50px; line-height: 1.2; font-weight: 500; color: #fff; }
.sg-faq__list { border: 1px solid #D5D8DC; border-bottom: 0; }
.sg-faq__item { border-bottom: 1px solid #D5D8DC; }
.sg-faq__q { display: block; padding: 15px 20px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; line-height: 22px; color: #fff; }
.sg-faq__q::-webkit-details-marker { display: none; }
.sg-faq__icon { position: relative; float: left; width: 22px; height: 24.2px; margin-right: 15px; }
.sg-faq__icon::before, .sg-faq__icon::after { content: ""; position: absolute; left: 0; top: 9.75px; width: 13px; height: 2.5px; background: currentColor; transition: transform .3s; }
.sg-faq__icon::after { transform: rotate(90deg); }
.sg-faq__item[open] .sg-faq__icon::after { transform: rotate(0); }
.sg-faq__qtext { display: inline; }
.sg-faq__a { overflow: hidden; padding: 15px 20px; border-top: 1px solid #D5D8DC; font-size: var(--fs-body); line-height: 1.68; color: #fff; }
.sg-faq__a p { margin: 0; line-height: 1.68; }
.sg-faq__a > * + * { margin-top: 1em; }
@media (max-width: 1280px) { .sg-faq__heading { font-size: 40px; } }
@media (max-width: 1024px) { .sg-faq__heading { font-size: 35px; } }
@media (max-width: 767px) {
	.sg-faq__heading { font-size: 36px; }
	.sg-faq__q { padding: 12px 15px; }
	.sg-faq__a { padding: 7px 15px; }
	.sg-faq__a p { line-height: 1.68; }
}

/* ------------------------------------------------------------------ Video / 360° tour pop-up (home.js). */
.sg-video-modal .sg-modal__dialog { max-width: 1200px; }
.sg-video-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.sg-video-modal__frame iframe, .sg-video-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-video-modal--tour .sg-video-modal__frame { aspect-ratio: auto; height: min(80vh, 680px); }
