/* ==========================================================================
   Startup Nest — home.css
   Front page: hero, services (negative-margin overlap + background image),
   guide/FAQ and newsletter.

   Declarations are transcribed verbatim from the legacy index.php <style>
   block; only the selectors are re-prefixed with `sn-`. Where the legacy file
   declared the same rule twice inside two @media(max-width:768px) blocks, the
   later — effective — value is the one kept (see BUILD CONTRACT 4.3).
   ========================================================================== */

/* ------------ HERO ------------ */
.sn-hero {
	padding: 80px 0 200px;
	background: var(--sn-bg, #EEEEEE);
}

.sn-hero__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.sn-hero__text h1 {
	font-family: var(--sn-font-display, 'El Messiri', sans-serif);
	font-size: 50px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
	color: var(--sn-primary, #864622);
}

.sn-hero__images {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 20px;
	width: 100%;
}

.sn-hero__image {
	height: 350px;
	background: #f4f4f4;
	border-radius: 14px;
	border: 1px solid #ddd;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sn-hero__images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ------------ SERVICES SECTION ------------ */
.sn-services {
	position: relative;
	background: #ffffff;
	padding-top: 60px;
	margin-top: -140px;
	z-index: 3;
}

.sn-services__wrapper {
	position: relative;
	z-index: 4;
	text-align: left;
}

.sn-services__wrapper h2 {
	font-family: var(--sn-font-display, 'El Messiri', sans-serif);
	font-size: 32px;
	font-weight: 600;
	color: var(--sn-primary, #864622);
	margin-bottom: 12px;
}

.sn-services__intro {
	font-size: 16px;
	line-height: 1.55;
	color: var(--sn-muted, #555);
	margin-bottom: 45px;
}

.sn-services__cards {
	display: flex;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 120px;
}

.sn-service-card {
	flex: 1;
	background: #FFF;
	border-radius: 6px;
	height: 330px;
	padding: 60px 24px 90px;
	position: relative;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
	border: 1px solid var(--sn-border, #e9e9e9);
	transition: .3s;
}

.sn-service-card__icon {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	filter: brightness(0) invert(47%);
}

.sn-service-card__title {
	font-family: var(--sn-font-display, 'El Messiri', sans-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--sn-primary, #864622);
}

.sn-service-card p {
	font-size: 14px;
	color: var(--sn-muted, #555);
	line-height: 1.45;
}

.sn-service-card__list {
	margin: 15px 0 0;
	padding-left: 18px;
	text-align: left;
}

.sn-service-card__list li {
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sn-muted, #555);
	transition: color 0.3s ease;
}

/* The overlapping background image sits behind the cards. */
.sn-bgimage {
	position: relative;
	width: 100%;
	margin-top: -285px;
	z-index: 1;
	margin-bottom: -40px;
	overflow: hidden;
}

.sn-bgimage__img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Hover desktop */
.sn-service-card:hover {
	background: linear-gradient(90deg, #864622, #F38B20);
	transform: translateY(-6px);
	color: #FFF;
}

.sn-service-card:hover .sn-service-card__title,
.sn-service-card:hover p {
	color: #FFF;
}

.sn-service-card:hover .sn-service-card__icon {
	filter: brightness(0) invert(1);
}

.sn-service-card:hover .sn-service-card__list li {
	color: #fff;
}

.sn-service-card:hover .sn-service-card__list li::marker {
	color: #fff;
}

/* ------------ FAQ + VIDEO SECTION ------------ */
.sn-guide {
	background: var(--sn-bg, #EEEEEE);
	padding: 100px 0;
}

.sn-guide__wrapper {
	width: 88%;
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	gap: 50px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.sn-guide__left {
	flex: 1;
	min-width: 300px;
}

.sn-guide__left h2 {
	font-family: var(--sn-font-display, 'El Messiri', sans-serif);
	font-size: 48px;
	font-weight: 600;
	color: var(--sn-footer, #844521);
	line-height: 1.15;
	margin-bottom: 28px;
}

.sn-guide__left video {
	border-radius: 12px;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.sn-guide__msg {
	margin-top: 22px;
	background: #FFFFFF;
	border-radius: 10px;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sn-guide__msg span {
	font-size: 17px;
	font-weight: 500;
	color: var(--sn-ink, #383331);
}

.sn-guide__right {
	flex: 1.2;
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 300px;
}

.sn-faq {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 28px 32px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* The legacy accordion header was a <div>; it is a <button> here, so the UA
   button styling is reset back to the original appearance. */
.sn-faq__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	cursor: pointer;
	width: 100%;
	gap: 16px;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	text-align: left;
	font-family: inherit;
	color: inherit;
}

.sn-faq__title {
	font-family: var(--sn-font-body, 'Inter', sans-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--sn-footer, #844521);
	margin: 0;
}

.sn-faq__toggle {
	background: #F5F5F5;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--sn-ink, #383331);
	flex-shrink: 0;
}

.sn-faq__body {
	font-size: 15px;
	color: var(--sn-muted, #555);
	line-height: 1.45;
	max-width: 100%;
	margin-top: 12px;
	display: none;
}

/* Opened either by dropping the `hidden` attribute or by an `is-open` class. */
.sn-faq__body:not([hidden]) {
	display: block;
}

.sn-faq.is-open .sn-faq__body,
.sn-faq__body.is-open,
.sn-faq__body[aria-hidden="false"] {
	display: block;
}

.sn-faq__body p {
	margin-bottom: 12px;
}

.sn-faq__body p:last-child {
	margin-bottom: 0;
}

.sn-faq__criteria {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px 30px;
	padding-left: 20px;
	line-height: 1.6;
}

.sn-faq__criteria li {
	margin-bottom: 6px;
}

/* ------------ NEWSLETTER SECTION ------------ */
.sn-newsletter {
	background: #F8F5F2;
	padding: 100px 0;
}

.sn-newsletter__wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 50px;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.sn-newsletter__left {
	flex: 1;
	min-width: 280px;
}

.sn-newsletter__left h2 {
	font-family: var(--sn-font-display, 'El Messiri', sans-serif);
	font-size: 42px;
	font-weight: 700;
	color: var(--sn-footer, #844521);
	margin-bottom: 16px;
}

.sn-newsletter__left p {
	font-size: 17px;
	color: var(--sn-muted, #555);
	line-height: 1.5;
}

.sn-newsletter__right {
	flex: 1;
	min-width: 280px;
	background: #fff;
	padding: 40px 30px;
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.sn-newsletter__right form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sn-newsletter__right input {
	padding: 14px 16px;
	font-size: 16px;
	border-radius: 8px;
	border: 1px solid #ccc;
	outline: none;
	transition: 0.3s;
	font-family: inherit;
}

.sn-newsletter__right input:focus {
	border-color: var(--sn-footer, #844521);
	box-shadow: 0 0 8px rgba(132, 69, 33, 0.2);
}

.sn-newsletter__right button {
	padding: 16px;
	font-size: 16px;
	font-weight: 600;
	background: var(--sn-footer, #844521);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	transition: 0.3s;
}

.sn-newsletter__right button:hover {
	background: var(--sn-primary-dark, #6e381d);
}

/* ------------ RESPONSIVE MOBILE ------------ */
@media (max-width: 768px) {

	/* Hero */
	.sn-hero__content {
		flex-direction: column;
		gap: 20px;
	}

	.sn-hero__text h1 {
		font-size: 32px;
		text-align: center;
	}

	.sn-hero__text a {
		margin-top: 14px;
	}

	.sn-hero__images {
		display: flex;
		overflow-x: auto;
		gap: 12px;
		scroll-snap-type: x mandatory;
		padding-bottom: 10px;
	}

	.sn-hero__image {
		min-width: 70%;
		scroll-snap-align: center;
	}

	/* Services — horizontal-scroll card carousel */
	.sn-services__cards {
		display: flex;
		overflow-x: auto;
		gap: 14px;
		padding-bottom: 18px;
		scroll-snap-type: x mandatory;
	}

	.sn-service-card {
		min-width: 78%;
		flex: unset;
		scroll-snap-align: center;
		height: auto;
		padding: 40px 20px 60px;
	}

	.sn-service-card:hover {
		transform: none;
		background: #FFF;
		color: inherit;
	}

	.sn-service-card:active {
		background: linear-gradient(90deg, #864622, #F38B20);
		color: #FFF;
	}

	.sn-service-card__icon {
		position: relative;
		top: auto;
		right: auto;
		margin-bottom: 12px;
	}

	.sn-bgimage {
		margin-top: -140px;
	}

	.sn-bgimage__img {
		height: auto;
		object-fit: cover;
	}

	/* Guide + FAQ */
	.sn-guide__wrapper {
		flex-direction: column;
		gap: 30px;
	}

	.sn-guide__left {
		width: 100%;
	}

	.sn-guide__left h2 {
		font-size: 32px;
		margin-bottom: 20px;
		line-height: 1.2;
	}

	.sn-guide__left video {
		height: 200px;
	}

	.sn-guide__msg {
		flex-direction: column;
		gap: 14px;
		align-items: flex-start;
		padding: 18px;
	}

	.sn-guide__msg span {
		font-size: 16px;
	}

	.sn-guide__msg .sn-btn--brown {
		width: 100%;
		text-align: center;
	}

	.sn-guide__right {
		width: 100%;
		gap: 20px;
	}

	.sn-faq {
		padding: 20px;
	}

	.sn-faq__title {
		font-size: 18px;
	}

	.sn-faq__toggle {
		width: 30px;
		height: 30px;
		font-size: 20px;
	}

	/* Newsletter */
	.sn-newsletter__wrapper {
		flex-direction: column;
		gap: 30px;
	}

	.sn-newsletter__left {
		text-align: center;
	}

	.sn-newsletter__left h2 {
		font-size: 32px;
	}

	.sn-newsletter__left p {
		font-size: 16px;
	}

	.sn-newsletter__right {
		width: 100%;
		padding: 30px 20px;
	}

	.sn-newsletter__right input,
	.sn-newsletter__right button {
		width: 100%;
	}
}
