/* Landing Page template (template-landing-page.php). Loaded only on landing pages. */

.flp {
	--flp-green: #026653;
	--flp-green-dark: #014d3f;
	--flp-mint: #e3f1ee;
	--flp-grey: #f8f8f8;
	--flp-line: #e9eaee;
	--flp-muted: #5f5f5f;
	--flp-space: clamp(48px, 7vw, 96px);
}

/* Sections ---------------------------------------------------------------- */

.flp-section {
	position: relative;
	padding: var(--flp-space) 0;
}

.flp-bg-white { background-color: #ffffff; }
.flp-bg-grey  { background-color: var(--flp-grey); }
.flp-bg-mint  { background-color: var(--flp-mint); }
.flp-bg-green { background-color: var(--flp-green); color: #ffffff; }

.flp-bg-green h2,
.flp-bg-green h3,
.flp-bg-green p,
.flp-bg-green li,
.flp-bg-green a:not(.button) {
	color: #ffffff;
}

/* The theme gives every .grid-container 55px top/bottom padding; landing
   sections handle their own spacing, so remove it here. */
.flp-section > .grid-container,
.flp-breadcrumbs > .grid-container {
	padding-top: 0;
	padding-bottom: 0;
}

/* Two consecutive sections with the same background read as one block. */
.flp-bg-white + .flp-bg-white,
.flp-bg-grey + .flp-bg-grey,
.flp-bg-mint + .flp-bg-mint {
	padding-top: 0;
}

.flp-section-header h2,
.flp-text-image-copy > h2,
.flp-content-inner > h2 {
	font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
	line-height: 1.15;
	margin: 0 0 0.6em;
}

.flp-section-header {
	max-width: 760px;
	margin: 0 auto clamp(24px, 4vw, 40px);
}

.flp-section-header.text-left {
	margin-left: 0;
}

.flp-intro,
.flp-intro p {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.flp-intro p:last-child {
	margin-bottom: 0;
}

.flp-simple-header {
	padding: clamp(32px, 5vw, 56px) 0 0;
}

.flp-simple-header h1 {
	margin: 0;
}

.flp-breadcrumbs {
	background: #ffffff;
	padding: 14px 0 0;
}

.flp-breadcrumbs + .flp-section {
	padding-top: clamp(32px, 4vw, 64px);
}

.flp-breadcrumbs #breadcrumbs {
	margin: 0;
	font-size: 0.875rem;
}

/* Buttons ----------------------------------------------------------------- */

.flp-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.5rem;
}

.text-center .flp-buttons,
.flp-section-header.text-center + .flp-buttons {
	justify-content: center;
}

.flp a.flp-button {
	margin: 0;
	padding: 0.95em 1.9em;
	border: 1px solid var(--flp-green);
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.flp a.flp-button-primary {
	background-color: var(--flp-green);
	color: #ffffff;
}

.flp a.flp-button-primary:hover,
.flp a.flp-button-primary:focus-visible {
	background-color: var(--flp-green-dark);
	border-color: var(--flp-green-dark);
	color: #ffffff;
}

.flp a.flp-button-secondary {
	background-color: transparent;
	color: var(--flp-green);
}

.flp a.flp-button-secondary:hover,
.flp a.flp-button-secondary:focus-visible {
	background-color: var(--flp-green);
	color: #ffffff;
}

/* Buttons on dark backgrounds */
.flp-hero-light a.flp-button-primary,
.flp-bg-green a.flp-button-primary,
.flp-cta-has-image a.flp-button-primary {
	background-color: #ffffff;
	border-color: #ffffff;
	color: var(--flp-green);
}

.flp-hero-light a.flp-button-primary:hover,
.flp-bg-green a.flp-button-primary:hover,
.flp-cta-has-image a.flp-button-primary:hover {
	background-color: var(--flp-mint);
	border-color: var(--flp-mint);
	color: var(--flp-green);
}

.flp-hero-light a.flp-button-secondary,
.flp-bg-green a.flp-button-secondary,
.flp-cta-has-image a.flp-button-secondary {
	border-color: #ffffff;
	color: #ffffff;
}

.flp-hero-light a.flp-button-secondary:hover,
.flp-bg-green a.flp-button-secondary:hover,
.flp-cta-has-image a.flp-button-secondary:hover {
	background-color: #ffffff;
	color: var(--flp-green);
}

/* Hero -------------------------------------------------------------------- */

.flp-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--flp-green);
}

.flp-hero-medium { min-height: clamp(420px, 56vh, 560px); }
.flp-hero-large  { min-height: clamp(520px, 78vh, 760px); }

.flp-hero-media,
.flp-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.flp-hero-media img {
	object-fit: cover;
	object-position: center;
}

.flp-hero-light .flp-hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 50%, rgba(0, 0, 0, 0.08) 100%);
}

.flp-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: clamp(48px, 8vw, 96px);
	padding-bottom: clamp(48px, 8vw, 96px);
}

.flp-hero-content {
	max-width: 620px;
}

.flp-hero h1 {
	margin: 0 0 0.35em;
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
	line-height: 1.05;
}

.flp-hero-text,
.flp-hero-text p {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.6;
}

.flp-hero-text p:last-child {
	margin-bottom: 0;
}

.flp-hero-light h1,
.flp-hero-light .flp-hero-text,
.flp-hero-light .flp-hero-text p,
.flp-hero-light .flp-hero-text a {
	color: #ffffff;
}

.flp-hero-dark .flp-hero-content {
	background: rgba(255, 255, 255, 0.94);
	padding: clamp(24px, 4vw, 48px);
}

.flp-hero-no-image.flp-hero-dark {
	background-color: var(--flp-mint);
}

@media screen and (max-width: 639px) {
	.flp-hero {
		align-items: flex-end;
	}

	.flp-hero-light .flp-hero-media::after {
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
	}

	.flp-hero .flp-buttons {
		flex-direction: column;
	}

	.flp-hero a.flp-button {
		text-align: center;
	}
}

/* Text + image ------------------------------------------------------------ */

.flp-text-image-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media screen and (min-width: 640px) {
	.flp-image-left .flp-text-image-media {
		order: -1;
	}

	.flp-text-image-copy {
		padding-right: clamp(0px, 2vw, 32px);
	}

	.flp-image-left .flp-text-image-copy {
		padding-right: 0;
		padding-left: clamp(0px, 2vw, 32px);
	}
}

.flp-text-image-copy .entry-content p,
.flp-content-inner .entry-content p {
	line-height: 1.75;
}

/* Products ---------------------------------------------------------------- */

/* Card styling comes from the global product-cards.css. */
.flp-products .product-slider {
	margin: 0 -10px;
}

.flp-products .flp-buttons {
	justify-content: center;
	margin-top: clamp(24px, 4vw, 40px);
}

.flp-products-grid ul.products {
	margin-bottom: 0;
}

/* Features ---------------------------------------------------------------- */

.flp-feature {
	text-align: center;
	padding: 8px 12px;
}

.flp-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--flp-mint);
	color: var(--flp-green);
	font-size: 24px;
}

.flp-bg-mint .flp-feature-icon {
	background: #ffffff;
}

.flp-bg-green .flp-feature-icon {
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
}

.flp-feature h3 {
	font-size: 1.5rem;
	margin: 0 0 0.4em;
}

.flp-feature p {
	margin: 0;
	line-height: 1.65;
	color: var(--flp-muted);
}

.flp-bg-green .flp-feature p {
	color: rgba(255, 255, 255, 0.85);
}

/* Tiles ------------------------------------------------------------------- */

.flp-tile {
	display: block;
	color: inherit;
	text-align: center;
}

.flp-tile-image {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--flp-grey);
}

.flp-tile-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.flp-tile:hover .flp-tile-image img,
.flp-tile:focus-visible .flp-tile-image img {
	transform: scale(1.04);
}

.flp-tile-title {
	display: block;
	padding: 14px 6px 0;
	font-family: cormorant-garamond, serif;
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
	font-weight: 700;
	line-height: 1.2;
	color: #000000;
}

.flp-tile:hover .flp-tile-title {
	color: var(--flp-green);
}

.flp-bg-green .flp-tile-title,
.flp-bg-green .flp-tile:hover .flp-tile-title {
	color: #ffffff;
}

/* FAQ --------------------------------------------------------------------- */

.flp-faq-list {
	max-width: 860px;
	margin: 0 auto;
	border-top: 1px solid var(--flp-line);
}

.flp-faq-item {
	border-bottom: 1px solid var(--flp-line);
}

.flp-faq-item summary {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	cursor: pointer;
	list-style: none;
}

.flp-faq-item summary::-webkit-details-marker {
	display: none;
}

.flp-faq-item summary::after {
	content: '\2b';
	font: var(--fa-font-solid);
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: var(--flp-green);
}

.flp-faq-item[open] summary::after {
	content: '\f068';
}

.flp-faq-item summary h3 {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	line-height: 1.3;
}

.flp-faq-item summary:hover h3,
.flp-faq-item summary:focus-visible h3 {
	color: var(--flp-green);
}

.flp-faq-answer {
	padding: 0 48px 20px 0;
}

.flp-faq-answer p {
	line-height: 1.75;
}

.flp-faq-answer p:last-child {
	margin-bottom: 0;
}

.flp-bg-green .flp-faq-list,
.flp-bg-green .flp-faq-item {
	border-color: rgba(255, 255, 255, 0.25);
}

.flp-bg-green .flp-faq-item summary::after {
	color: #ffffff;
}

/* CTA --------------------------------------------------------------------- */

.flp-cta .flp-section-header {
	margin-bottom: 0;
}

.flp-cta-has-image {
	overflow: hidden;
	background-color: #000000;
}

.flp-cta-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.flp-cta-inner {
	position: relative;
	z-index: 1;
}

.flp-cta-has-image h2,
.flp-cta-has-image .flp-intro,
.flp-cta-has-image .flp-intro p {
	color: #ffffff;
}

/* Form -------------------------------------------------------------------- */

.flp-form-side {
	padding-top: 6px;
}

.flp-form-side p {
	line-height: 1.75;
}

.flp-form-wrap .frm_forms {
	max-width: none;
}

/* On phones show the form first, contact details after it. */
@media screen and (max-width: 639px) {
	.flp-form-side {
		order: 2;
	}
}

/* Text block -------------------------------------------------------------- */

.flp-content-inner .entry-content h3,
.flp-text-image-copy .entry-content h3 {
	font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.6rem);
	line-height: 1.25;
	margin: 1.4em 0 0.4em;
}

.flp-content-inner .entry-content > h3:first-child,
.flp-text-image-copy .entry-content > h3:first-child {
	margin-top: 0;
}

.flp-content-narrow .flp-content-inner {
	max-width: 820px;
	margin: 0 auto;
}

/* Testimonials (existing part) ------------------------------------------- */

.flp-testimonials .testimonials-section {
	padding-top: var(--flp-space);
	padding-bottom: var(--flp-space);
}

/* Eyebrow (small capitals above a heading) -------------------------------- */

.flp-eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--flp-green);
}

.flp-bg-green .flp-eyebrow {
	color: var(--flp-mint);
}

/* Badges strip ------------------------------------------------------------ */

.flp-section.flp-badges {
	padding: clamp(24px, 3vw, 36px) 0;
}

.flp-badges-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media screen and (min-width: 900px) {
	.flp-badges-3 .flp-badges-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.flp-badges-4 .flp-badges-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.flp-badge {
	margin: 0;
}

.flp-badge-inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

a.flp-badge-inner:hover .flp-badge-title,
a.flp-badge-inner:focus-visible .flp-badge-title {
	text-decoration: underline;
}

.flp-badge-icon {
	font-size: 1.25rem;
	color: var(--flp-green);
	margin-bottom: 4px;
}

.flp-badge-title {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.flp-badge-text {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--flp-muted);
}

.flp-bg-green .flp-badge-icon,
.flp-bg-green .flp-badge-text {
	color: #ffffff;
}

/* Split image / text (full width) ----------------------------------------- */

.flp-section.flp-split {
	padding: 0;
}

.flp-split-grid {
	display: grid;
	grid-template-columns: 1fr;
}

.flp-split-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.flp-split-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flp-split-copy {
	display: flex;
	align-items: center;
	padding: var(--flp-space) 20px;
}

.flp-split-copy-inner {
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
}

.flp-split-copy h2 {
	font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
	line-height: 1.15;
	margin: 0 0 0.6em;
}

.flp-split-copy .entry-content p {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.flp-split-copy .entry-content p:last-child {
	margin-bottom: 0;
}

.flp-split-copy .entry-content h3 {
	font-size: 1.375rem;
	margin: 1.25em 0 0.5em;
}

@media screen and (min-width: 768px) {
	.flp-split-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: clamp(460px, 42vw, 640px);
	}

	.flp-split-media {
		aspect-ratio: auto;
	}

	.flp-split-image-left .flp-split-media { order: 1; }
	.flp-split-image-left .flp-split-copy  { order: 2; }
	.flp-split-image-right .flp-split-media { order: 2; }
	.flp-split-image-right .flp-split-copy  { order: 1; }

	.flp-split-copy {
		padding: var(--flp-space) clamp(32px, 6vw, 96px);
	}

	.flp-split-no-image .flp-split-grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.flp-split-no-image .flp-split-copy-inner {
		max-width: 760px;
	}
}

/* Stacked split sections with the same background: keep them flush. */
.flp-split + .flp-split {
	padding-top: 0;
}

/* Steps ------------------------------------------------------------------- */

.flp-steps-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.flp-step {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
	margin: 0;
	padding: clamp(28px, 4vw, 48px) 0;
	border-top: 1px solid var(--flp-line);
}

.flp-step:first-child {
	border-top: 0;
	padding-top: 0;
}

.flp-step:last-child {
	padding-bottom: 0;
}

.flp-step-media {
	position: relative;
	aspect-ratio: 7 / 4;
	overflow: hidden;
	background: var(--flp-grey);
}

.flp-step-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flp-step-copy h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	line-height: 1.2;
	margin: 0 0 0.6em;
}

.flp-step-copy .entry-content p {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.flp-step-copy .entry-content p:last-child {
	margin-bottom: 0;
}

@media screen and (min-width: 768px) {
	.flp-step {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(32px, 5vw, 80px);
	}

	.flp-step:nth-child(even) .flp-step-media {
		order: 2;
	}

	.flp-step-no-image {
		grid-template-columns: 1fr;
	}

	.flp-step-no-image .flp-step-copy {
		max-width: 760px;
	}
}

.flp-bg-grey .flp-step,
.flp-bg-mint .flp-step {
	border-top-color: rgba(0, 0, 0, 0.08);
}

.flp-bg-green .flp-step {
	border-top-color: rgba(255, 255, 255, 0.2);
}

.flp-steps .flp-buttons {
	margin-top: clamp(32px, 4vw, 48px);
}

/* Formidable forms inside landing sections -------------------------------- */

.flp-form-wrap .frm_forms .frm_primary_label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #222222;
	padding-bottom: 4px;
}

.flp-form-wrap .frm_forms input[type="text"],
.flp-form-wrap .frm_forms input[type="email"],
.flp-form-wrap .frm_forms input[type="tel"],
.flp-form-wrap .frm_forms select,
.flp-form-wrap .frm_forms textarea {
	border: 1px solid #cfd3d8;
	border-radius: 0;
	font-size: 1rem;
	color: #222222;
	box-shadow: none;
}

.flp-form-wrap .frm_forms input:focus,
.flp-form-wrap .frm_forms select:focus,
.flp-form-wrap .frm_forms textarea:focus {
	border-color: var(--flp-green);
	outline: 2px solid rgba(2, 102, 83, 0.2);
	outline-offset: 0;
}

.flp-form-wrap .frm_forms .frm_button_submit {
	min-width: 180px;
	padding: 12px 28px;
	border: 1px solid var(--flp-green);
	background-color: var(--flp-green);
	color: #ffffff;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.flp-form-wrap .frm_forms .frm_button_submit:hover,
.flp-form-wrap .frm_forms .frm_button_submit:focus-visible {
	background-color: var(--flp-green-dark);
	border-color: var(--flp-green-dark);
	color: #ffffff;
}

/* Anchor links (#enquire etc.) land below the sticky site header. */
.flp-section[id] {
	scroll-margin-top: 110px;
}

/* WhatsApp button in the enquiry form section ----------------------------- */

.flp-whatsapp {
	max-width: 760px;
	margin: 0 auto clamp(24px, 3vw, 32px);
	text-align: center;
}

.flp a.flp-button-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #1f9e54;
	background-color: #1f9e54;
	color: #ffffff;
}

.flp a.flp-button-whatsapp:hover,
.flp a.flp-button-whatsapp:focus-visible {
	border-color: #167a40;
	background-color: #167a40;
	color: #ffffff;
}

.flp-button-whatsapp .fa-whatsapp {
	font-size: 1.25rem;
}

.flp-whatsapp-or {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 420px;
	margin: 24px auto 0;
	font-size: 0.875rem;
	color: var(--flp-muted);
}

.flp-whatsapp-or::before,
.flp-whatsapp-or::after {
	content: "";
	flex: 1;
	border-top: 1px solid #d9dcdf;
}
