/* ==========================================================================
   Samui Explorer – Section classes (homepage, destinations and other pages)
   Add to the Impreza row as "Extra class", e.g.  se-section se-section--sand
   Set the row height in Impreza so it adds no vertical padding of its own;
   .se-section handles the vertical spacing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Section backgrounds – light, warm and cool, both from the brand family */
	--color-sand: #f7f2ea;        /* warm, beach – for destination content */
	--color-mist: #edf3f6;        /* cool, sea – for trust / info content */

	/* Section spacing */
	--section-pad: clamp(3.5rem, 2.25rem + 4vw, 6.5rem);
	--section-pad-tight: clamp(2.5rem, 1.75rem + 2.5vw, 4rem);
	--section-head-gap: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   2. Section spacing
   -------------------------------------------------------------------------- */
.se-section {
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}

.se-section--tight {
	padding-top: var(--section-pad-tight);
	padding-bottom: var(--section-pad-tight);
}

/* Full-width rows for [boat_hero] and [enquiry_banner] – the shortcode brings its own padding */
.se-section--flush {
	padding-top: 0;
	padding-bottom: 0;
}

/* Two sections with the same background in a row: halve the gap between them */
.se-section--white + .se-section--white,
.se-section--sand + .se-section--sand,
.se-section--mist + .se-section--mist {
	padding-top: var(--section-pad-tight);
}

/* --------------------------------------------------------------------------
   3. Section backgrounds
   Doubled selector (.l-section.) wins over Impreza's colour schemes.
   -------------------------------------------------------------------------- */
.se-section--white,
.l-section.se-section--white {
	background-color: var(--color-background, #ffffff);
}

.se-section--sand,
.l-section.se-section--sand {
	background-color: var(--color-sand);
}

.se-section--mist,
.l-section.se-section--mist {
	background-color: var(--color-mist);
}

/* Hairline between two white sections, if you ever need one */
.se-section--divider {
	border-top: 1px solid var(--color-border, #dde2e6);
}

/* --------------------------------------------------------------------------
   4. Section head – heading, intro and "see all" link above a grid
   Impreza: one row, two columns (2/3 + 1/3), vertical align bottom.
   Put .se-head on the row, .se-head__link on the text element with the link.
   -------------------------------------------------------------------------- */
.se-head {
	margin-bottom: var(--section-head-gap);
}

.se-head h2 {
	margin-bottom: 0.5rem;
}

.se-head__intro,
.se-head p {
	max-width: 40rem;
	margin-bottom: 0;
	color: var(--color-text-light, #5f6770);
}

.se-head__link {
	text-align: right;
}

.se-head__link a {
	color: var(--color-primary, #17324d);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--color-accent, #f05a28);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.se-head__link a:hover {
	color: var(--color-accent, #f05a28);
}

.se-head__link a:focus-visible {
	outline: 3px solid var(--color-info, #3c6d97);
	outline-offset: 3px;
}

@media (max-width: 899px) {
	/* Columns stack: link sits under the intro, left-aligned */
	.se-head__link {
		margin-top: 0.75rem;
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   5. Guide cards – "Which destination suits you?"
   Impreza HTML element with <ul class="se-guides">. The title link covers the card.
   -------------------------------------------------------------------------- */
.se-guides {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.se-guides > .se-guide {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	border: 1px solid var(--color-border, #dde2e6);
	border-radius: 1.25rem;
	background: var(--color-background, #ffffff);
	transition: box-shadow 0.2s ease;
}

.se-guides > .se-guide:hover {
	box-shadow: 0 1.25rem 2.5rem -1.5rem color-mix(in srgb, var(--color-primary, #17324d) 35%, transparent);
}

.se-guide .se-guide__place {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--color-primary, #17324d);
	font-size: var(--fs-small, 0.9375rem);
	font-weight: 600;
}

.se-guide__place svg {
	flex: none;
	width: 1.05em;
	height: 1.05em;
	color: var(--color-accent, #f05a28);
}

.se-guide .se-guide__title {
	margin: 0;
	padding: 0;
	font-size: var(--fs-h4, 1.375rem);
	line-height: var(--lh-h2, 1.2);
}

.se-guide .se-guide__link {
	color: var(--color-primary, #17324d);
	text-decoration: none;
}

/* Whole card clickable; the title link stays the only focusable element */
.se-guide__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.se-guide .se-guide__link:focus-visible {
	outline: none;
}

.se-guides > .se-guide:has(.se-guide__link:focus-visible) {
	outline: 3px solid var(--color-info, #3c6d97);
	outline-offset: 2px;
}

.se-guide .se-guide__text {
	margin: 0;
	color: var(--color-text-light, #5f6770);
}

.se-guide .se-guide__more {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--color-primary, #17324d);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--color-accent, #f05a28);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

@media (min-width: 48em) {
	.se-guides {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   6. Page head – H1 and intro on inner pages (About us, Contact us …)
   Impreza: Text element with class se-page-head in a sand row.
   -------------------------------------------------------------------------- */
.se-page-head h1 {
	margin: 0 0 1rem;
	padding: 0;
	color: var(--color-primary, #17324d);
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	line-height: 1.1;
}

.se-page-head p {
	max-width: 45rem;
	margin: 0;
	color: var(--color-text-light, #5f6770);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. Story – text blocks separated by hairlines (About us)
   Impreza: Text element with class se-story; each <h2> after the first starts a new block.
   -------------------------------------------------------------------------- */
.se-story h2 {
	margin: 0 0 1rem;
	padding: 0;
	color: var(--color-primary, #17324d);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	line-height: 1.2;
}

.se-story h2:first-child {
	font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.25rem);
}

.se-story p {
	margin: 0;
	color: var(--color-text-light, #5f6770);
	font-size: 1.125rem;
	line-height: 1.7;
}

.se-story p + h2 {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--color-border, #dde2e6);
}

/* --------------------------------------------------------------------------
   8. At a glance – fact list in a tinted panel (About us, Contact us)
   Impreza: HTML element with <aside class="se-glance">
   -------------------------------------------------------------------------- */
.se-glance {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
	border-radius: 1.25rem;
	background: var(--color-mist);
}

.se-glance .se-glance__title {
	margin: 0;
	padding: 0;
	color: var(--color-primary, #17324d);
	font-size: 1.375rem;
	line-height: 1.2;
}

.se-glance__list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.se-glance__list > li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 0;
	padding: 0;
}

.se-glance__list svg {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	color: var(--color-accent, #f05a28);
}

.se-glance__list strong {
	display: block;
	color: var(--color-primary, #17324d);
	font-size: 1.0625rem;
	line-height: 1.4;
}

.se-glance__list span {
	display: block;
	color: var(--color-text-light, #5f6770);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Steps – numbered cards ("How it works")
   Impreza: HTML element with <ol class="se-steps">
   -------------------------------------------------------------------------- */
.se-steps {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: se-step;
}

.se-steps > li {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin: 0;
	padding: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
	border: 1px solid var(--color-border, #dde2e6);
	border-radius: 1.25rem;
	background: var(--color-background, #ffffff);
	counter-increment: se-step;
}

.se-steps > li::before {
	content: counter(se-step);
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: var(--color-primary, #17324d);
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
}

.se-steps .se-steps__title {
	margin: 0;
	padding: 0;
	color: var(--color-primary, #17324d);
	font-size: 1.375rem;
	line-height: 1.25;
}

.se-steps .se-steps__text {
	margin: 0;
	color: var(--color-text-light, #5f6770);
	line-height: 1.6;
}

@media (min-width: 56em) {
	.se-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   10. Question cards – "Before you book" (Contact us)
   Impreza: HTML element with <div class="se-faq">
   -------------------------------------------------------------------------- */
.se-faq {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
}

.se-faq__item {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
	border: 1px solid var(--color-border, #dde2e6);
	border-radius: 1.25rem;
	background: var(--color-background, #ffffff);
}

.se-faq .se-faq__question {
	margin: 0;
	padding: 0;
	color: var(--color-primary, #17324d);
	font-size: 1.25rem;
	line-height: 1.3;
}

.se-faq .se-faq__answer {
	margin: 0;
	color: var(--color-text-light, #5f6770);
	line-height: 1.6;
}

.se-faq__answer a {
	color: var(--color-primary, #17324d);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--color-accent, #f05a28);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

@media (min-width: 48em) {
	.se-faq {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Contact page: space between the contact buttons and the facts box */
.se-contact-side .se-glance {
	margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   11. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.se-guides > .se-guide {
		transition: none;
	}
}