/* ==========================================================================
   Hello Elementor Child – single blog post layout, CTAs and enquiry form.
   Loaded only on single blog posts (and wherever [rft_quick_enquiry] is used).
   Brand colours come from Blog Post Layout → Layout & colours.
   ========================================================================== */

:root {
	--rft-navy: #0b2545;
	--rft-navy-2: #13315c;
	--rft-accent: #0b7a6b;
	--rft-accent-hover: color-mix(in srgb, var(--rft-accent) 82%, #000);
	--rft-mint: #3ddbb6;
	--rft-cta: #1e5bb8; /* All CTA buttons */
	--rft-link: #1e5bb8; /* Links in the article */
	--rft-cta-hover: color-mix(in srgb, var(--rft-cta) 80%, #000);
	--rft-text: #1f2937;
	--rft-muted: #5b6575;
	--rft-border: #e3e8ef;
	--rft-bg-soft: #f5f7fa;
	--rft-blue-soft: #eaf2fb;
	--rft-green-soft: #e6f6f2;
	--rft-error: #b42318;
	--rft-whatsapp: #25d366;
	--rft-whatsapp-hover: #1ebe5b;
	--rft-radius: 16px;
	--rft-radius-sm: 10px;
	--rft-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
	--rft-gap: 56px;
	--rft-sidebar: 340px;
	--rft-article: 780px;
}

/* --- Layout ------------------------------------------------------------- */

body .site-main.rft-single {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

.rft-layout {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, var(--rft-article)) var(--rft-sidebar);
	justify-content: space-between;
	align-items: start;
	gap: var(--rft-gap);
	max-width: calc(var(--rft-article) + var(--rft-sidebar) + var(--rft-gap) + 48px);
	margin: 0 auto;
	padding: 48px 24px 72px;
}

.rft-article {
	min-width: 0;
}

.rft-sidebar {
	position: relative;
	z-index: 9998; /* Form sits above the sticky header and floating chat bubbles; Elementor popups (9999) stay on top. */
	min-width: 0;
}

/* Floating WhatsApp / chat bubbles: below the sidebar form on blog posts, so
 * they never cover it (some plugins use z-index 99999+). */
body.rft-has-post-layout .e-contact-buttons,
body.rft-has-post-layout .e-floating-buttons,
body.rft-has-post-layout .joinchat,
body.rft-has-post-layout #ht-ctc-chat,
body.rft-has-post-layout .ht-ctc,
body.rft-has-post-layout .wa__btn_popup,
body.rft-has-post-layout .wa__popup_chat_box,
body.rft-has-post-layout #qlwapp,
body.rft-has-post-layout .qlwapp,
body.rft-has-post-layout .chaty,
body.rft-has-post-layout .chaty-widget,
body.rft-has-post-layout .wws-popup-container,
body.rft-has-post-layout #nta-wa-gdpr,
body.rft-has-post-layout .nta-wa-gdpr,
body.rft-has-post-layout .wa-chat-box {
	z-index: 55 !important;
}

/* The sidebar scrolls naturally with the page (not sticky). */
.rft-sidebar__inner {
	position: static;
}

/* --- Article header ----------------------------------------------------- */

.rft-article__header {
	margin-bottom: 28px;
}

.rft-article__kicker {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rft-green-soft);
	color: var(--rft-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.rft-article__kicker:hover,
.rft-article__kicker:focus-visible {
	background: var(--rft-accent);
	color: #fff;
}

.rft-article__title {
	margin: 0 0 18px;
	color: var(--rft-navy);
	font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -0.015em;
	overflow-wrap: break-word;
}

.rft-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--rft-muted);
	font-size: 0.9375rem;
}

.rft-meta__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.rft-meta img.rft-meta__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
}

.rft-meta a {
	color: var(--rft-navy);
	font-weight: 600;
	text-decoration: none;
}

.rft-meta a:hover {
	text-decoration: underline;
}

.rft-meta__sep {
	color: #b6bfcc;
}

.rft-article__media {
	margin: 0 0 36px;
}

.rft-article__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rft-radius);
}

.rft-article__caption {
	margin-top: 10px;
	color: var(--rft-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* --- Article body (block / classic editor posts) ------------------------- */

.rft-content {
	color: var(--rft-text);
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.rft-content--classic > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.rft-content--classic h2,
.rft-content--classic h3,
.rft-content--classic h4 {
	color: var(--rft-navy);
	line-height: 1.3;
	font-weight: 700;
}

.rft-content--classic h2 {
	margin-top: 2.1em;
	margin-bottom: 0.7em;
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
}

.rft-content--classic h3 {
	margin-top: 1.7em;
	margin-bottom: 0.55em;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.35rem);
}

.rft-content--classic h4 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.125rem;
}

.rft-content--classic a:not(.rft-btn):not(.rft-service) {
	color: var(--rft-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.rft-content--classic a:not(.rft-btn):not(.rft-service):hover {
	color: var(--rft-navy);
}

/* Same link colour inside Elementor-built posts (Text Editor widgets). */
.rft-content--elementor .elementor-widget-text-editor a:not(.rft-btn):not(.rft-service) {
	color: var(--rft-link);
}

.rft-content--elementor .elementor-widget-text-editor a:not(.rft-btn):not(.rft-service):hover {
	color: var(--rft-navy);
}

.rft-content--classic ul,
.rft-content--classic ol {
	padding-left: 1.4em;
}

.rft-content--classic li {
	margin-bottom: 0.45em;
}

.rft-content--classic li::marker {
	color: var(--rft-accent);
}

.rft-content--classic blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 18px 24px;
	border-left: 4px solid var(--rft-accent);
	border-radius: 0 var(--rft-radius-sm) var(--rft-radius-sm) 0;
	background: var(--rft-bg-soft);
	color: var(--rft-navy);
	font-style: normal;
}

.rft-content img,
.rft-content video,
.rft-content iframe,
.rft-content embed,
.rft-content object {
	max-width: 100%;
}

.rft-content img {
	height: auto;
}

.rft-content--classic figure img,
.rft-content--classic p > img {
	border-radius: var(--rft-radius-sm);
}

.rft-content--classic table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.rft-content--classic th,
.rft-content--classic td {
	padding: 10px 12px;
	border: 1px solid var(--rft-border);
	text-align: left;
}

.rft-content--classic th {
	background: var(--rft-bg-soft);
	color: var(--rft-navy);
}

.rft-content pre {
	max-width: 100%;
	overflow-x: auto;
}

/* --- Buttons (shared) ---------------------------------------------------- */

.rft-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--rft-radius-sm);
	background: var(--rft-cta);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rft-content .rft-btn,
.rft-content .rft-btn:visited {
	color: #fff;
	text-decoration: none;
}

.rft-btn:hover,
.rft-content .rft-btn:hover {
	background: var(--rft-cta-hover);
	color: #fff;
}

.rft-btn:focus-visible,
.rft-service:focus-visible,
.rft-article__kicker:focus-visible {
	outline: 3px solid var(--rft-navy);
	outline-offset: 3px;
}

/* --- In-article CTAs ----------------------------------------------------- */

.rft-content .rft-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 28px;
	margin: 2.25em 0;
	padding: 28px 32px;
	border-radius: var(--rft-radius);
	line-height: 1.5;
}

.rft-cta__body {
	min-width: 0;
}

.rft-content .rft-cta__title {
	margin: 0 0 6px;
	font-size: 1.3125rem;
	line-height: 1.3;
	font-weight: 800;
}

.rft-content .rft-cta__text {
	margin: 0;
	font-size: 1rem;
}

.rft-cta__button {
	flex-shrink: 0;
}

/* 1 – dark navy, blue button */
.rft-content .rft-cta--1 {
	background: var(--rft-navy);
	background-image: radial-gradient(120% 140% at 100% 0%, var(--rft-navy-2) 0%, var(--rft-navy) 60%);
	color: #c9d6e8;
}

.rft-content .rft-cta--1 .rft-cta__title {
	color: #fff;
}

.rft-content .rft-cta--1 .rft-btn {
	background: var(--rft-cta);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.rft-content .rft-cta--1 .rft-btn:hover {
	background: var(--rft-cta-hover);
	color: #fff;
}

.rft-content .rft-cta--1 .rft-btn:focus-visible {
	outline-color: #fff;
}

/* 2 – light blue, blue button */
.rft-content .rft-cta--2 {
	background: var(--rft-blue-soft);
	border: 1px solid #d4e3f5;
	color: var(--rft-text);
}

.rft-content .rft-cta--2 .rft-cta__title {
	color: var(--rft-navy);
}

/* 3 – white card, coloured left border, larger heading */
.rft-content .rft-cta--3 {
	background: #fff;
	border: 1px solid var(--rft-border);
	border-left: 6px solid var(--rft-accent);
	box-shadow: var(--rft-shadow);
	color: var(--rft-text);
}

.rft-content .rft-cta--3 .rft-cta__title {
	color: var(--rft-navy);
	font-size: 1.5rem;
}

/* 4 – soft green, blue button */
.rft-content .rft-cta--4 {
	background: var(--rft-green-soft);
	border: 1px solid #cdeee5;
	color: var(--rft-text);
}

.rft-content .rft-cta--4 .rft-cta__title {
	color: var(--rft-navy);
}

.rft-content .rft-cta--4 .rft-btn {
	background: var(--rft-cta);
	color: #fff;
}

.rft-content .rft-cta--4 .rft-btn:hover {
	background: var(--rft-cta-hover);
}

/* 5 – light grey card, compact WhatsApp button */
.rft-content .rft-cta--5 {
	background: var(--rft-bg-soft);
	border: 1px solid var(--rft-border);
	color: var(--rft-text);
}

.rft-content .rft-cta--5 .rft-cta__title {
	color: var(--rft-navy);
}

.rft-content .rft-btn--whatsapp,
.rft-content .rft-btn--whatsapp:visited {
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--rft-whatsapp);
	color: #fff;
	font-size: 0.9375rem;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.rft-content .rft-btn--whatsapp:hover {
	background: var(--rft-whatsapp-hover);
	color: #fff;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
}

.rft-content .rft-btn--whatsapp .rft-btn__icon {
	fill: #fff;
}

.rft-btn__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.rft-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Service links ------------------------------------------------------- */

.rft-content .rft-services {
	margin: 2.5em 0 1.5em;
	padding: 24px;
	border: 1px solid var(--rft-border);
	border-radius: var(--rft-radius);
	background: var(--rft-bg-soft);
	line-height: 1.45;
}

.rft-content .rft-services__title {
	margin: 0 0 14px;
	color: var(--rft-navy);
	font-size: 1.125rem;
	font-weight: 800;
}

.rft-content .rft-services__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rft-content .rft-services__list li {
	margin: 0;
}

.rft-content .rft-services__list li::marker {
	content: none;
}

.rft-content a.rft-service {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	border: 1px solid var(--rft-border);
	border-radius: var(--rft-radius-sm);
	background: #fff;
	color: var(--rft-navy);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rft-content a.rft-service:hover {
	border-color: var(--rft-accent);
	box-shadow: var(--rft-shadow);
	color: var(--rft-navy);
}

.rft-service__kicker {
	color: var(--rft-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rft-service__label {
	font-size: 1rem;
	font-weight: 700;
}

/* Single service-style box in the middle of the article */
.rft-content .rft-inline-service {
	max-width: 380px;
	margin: 2em 0;
	line-height: 1.45;
}

/* --- Article footer: tags + previous/next ------------------------------- */

.rft-article__footer {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--rft-border);
}

.rft-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
}

.rft-tags__label {
	color: var(--rft-muted);
	font-weight: 600;
}

.rft-tags a {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rft-bg-soft);
	color: var(--rft-navy);
	text-decoration: none;
}

.rft-tags a:hover {
	background: var(--rft-blue-soft);
}

.rft-postnav {
	margin-top: 32px;
}

.rft-postnav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.rft-postnav .nav-next {
	grid-column: 2;
	text-align: right;
}

.rft-postnav a {
	display: block;
	height: 100%;
	box-sizing: border-box;
	padding: 18px 20px;
	border: 1px solid var(--rft-border);
	border-radius: var(--rft-radius-sm);
	color: var(--rft-navy);
	text-decoration: none;
}

.rft-postnav a:hover {
	border-color: var(--rft-accent);
}

.rft-postnav__dir {
	display: block;
	margin-bottom: 4px;
	color: var(--rft-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.rft-postnav__title {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

/* --- Enquiry form card --------------------------------------------------- */

.rft-form-card {
	box-sizing: border-box;
	padding: 28px 26px;
	border: 1px solid var(--rft-border);
	border-radius: var(--rft-radius);
	background: #fff;
	box-shadow: var(--rft-shadow);
	color: var(--rft-text);
}

.rft-form-card__title {
	margin: 0 0 6px;
	color: var(--rft-navy);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
}

.rft-form-card__intro {
	margin: 0 0 14px;
	color: var(--rft-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.rft-form__required-note {
	margin: 0 0 12px;
	color: var(--rft-muted);
	font-size: 0.8125rem;
}

.rft-field {
	margin-bottom: 12px;
}

.rft-field__label {
	display: block;
	margin-bottom: 5px;
	color: var(--rft-navy);
	font-size: 0.875rem;
	font-weight: 600;
}

.rft-field__req {
	color: var(--rft-error);
}

.rft-form .rft-field__input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cfd7e2;
	border-radius: var(--rft-radius-sm);
	background: #fff;
	color: var(--rft-text);
	font: inherit;
	font-size: 1rem; /* 16px prevents zoom on iOS */
	line-height: 1.4;
	box-shadow: none;
}

.rft-form textarea.rft-field__input {
	min-height: 96px;
	resize: vertical;
}

.rft-form .rft-field__input:focus {
	border-color: var(--rft-accent);
	outline: 3px solid color-mix(in srgb, var(--rft-accent) 25%, transparent);
	outline-offset: 0;
}

.rft-form .rft-field__input[aria-invalid="true"] {
	border-color: var(--rft-error);
}

.rft-field__error {
	margin: 5px 0 0;
	color: var(--rft-error);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.rft-form__privacy {
	margin: 4px 0 12px;
	color: var(--rft-muted);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.rft-form__privacy a {
	color: var(--rft-link);
}

.rft-form__status {
	font-size: 0.875rem;
}

.rft-form__status:not(:empty) {
	margin-bottom: 10px;
}

.rft-form__status--error {
	color: var(--rft-error);
}

.rft-form__submit {
	width: 100%;
	white-space: normal;
}

.rft-form__submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.rft-form__notice {
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: var(--rft-radius-sm);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.rft-form__notice:focus {
	outline: 3px solid var(--rft-accent);
	outline-offset: 2px;
}

.rft-form__notice--success {
	background: var(--rft-green-soft);
	color: #0a5a4f;
	border: 1px solid #b9e5d8;
}

.rft-form__notice--error {
	background: #fdecea;
	color: var(--rft-error);
	border: 1px solid #f5c2bc;
}

/* Honeypot */
.rft-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Compact form: field names as placeholders, so the full form fits in the sidebar. */
.rft-form--compact .rft-field {
	margin-bottom: 10px;
}

.rft-form-card .rft-form .rft-field__input::placeholder {
	color: #6b7280; /* 4.8:1 on white */
	opacity: 1;
}

.rft-form--compact textarea.rft-field__input {
	min-height: 84px;
}

/* Guard the card against Elementor global styles (Site Settings → Typography /
 * Form Fields / Buttons use ".elementor-kit-N h2/input/button" selectors, which
 * would otherwise enlarge the heading, fields and button). */
.rft-sidebar .rft-form-card .rft-form-card__title {
	margin: 0 0 6px;
	color: var(--rft-navy);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
}

.rft-sidebar .rft-form-card .rft-form-card__intro {
	margin: 0 0 14px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.rft-form-card .rft-form .rft-field input.rft-field__input,
.rft-form-card .rft-form .rft-field textarea.rft-field__input {
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cfd7e2;
	border-radius: var(--rft-radius-sm);
	background: #fff;
	color: var(--rft-text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: none;
}

.rft-form-card .rft-form .rft-field textarea.rft-field__input {
	min-height: 84px;
}

.rft-form-card .rft-form .rft-field input.rft-field__input:focus,
.rft-form-card .rft-form .rft-field textarea.rft-field__input:focus {
	border-color: var(--rft-accent);
	outline: 3px solid color-mix(in srgb, var(--rft-accent) 25%, transparent);
	outline-offset: 0;
}

.rft-form-card .rft-form .rft-field input.rft-field__input[aria-invalid="true"],
.rft-form-card .rft-form .rft-field textarea.rft-field__input[aria-invalid="true"] {
	border-color: var(--rft-error);
}

.rft-form-card form.rft-form button.rft-form__submit {
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--rft-radius-sm);
	background: var(--rft-cta);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
}

.rft-form-card form.rft-form button.rft-form__submit:hover,
.rft-form-card form.rft-form button.rft-form__submit:focus {
	background: var(--rft-cta-hover);
	color: #fff;
}

/* Form plugin inside the card */
.rft-form-card__plugin input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.rft-form-card__plugin textarea,
.rft-form-card__plugin select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1200px) {
	:root {
		--rft-gap: 40px;
		--rft-sidebar: 320px;
	}
}

/* Tablet: narrower columns, still two-up while there is room. */
@media (max-width: 1024px) {
	:root {
		--rft-gap: 32px;
		--rft-sidebar: 300px;
	}

	.rft-layout {
		padding-top: 36px;
	}

	.rft-content .rft-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Stacked: article first, form below. */
@media (max-width: 960px) {
	.rft-layout {
		grid-template-columns: minmax(0, 1fr);
		max-width: calc(var(--rft-article) + 48px);
		gap: 40px;
	}

	.rft-content .rft-services__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.rft-layout {
		padding: 24px 16px 48px;
	}

	.rft-content {
		font-size: 1rem;
	}

	.rft-content .rft-cta {
		padding: 22px 20px;
	}

	.rft-content .rft-cta__title,
	.rft-content .rft-cta--3 .rft-cta__title {
		font-size: 1.1875rem;
	}

	.rft-cta__button,
	.rft-content .rft-btn {
		width: 100%;
		white-space: normal;
	}

	/* The WhatsApp button stays compact on phones. */
	.rft-content .rft-btn--whatsapp {
		width: auto;
	}

	.rft-form-card {
		padding: 22px 18px;
	}

	.rft-postnav .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.rft-postnav .nav-next {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rft-btn,
	.rft-content a.rft-service {
		transition: none;
	}
}

@media print {
	.rft-sidebar,
	.rft-cta,
	.rft-services,
	.rft-postnav {
		display: none !important;
	}

	.rft-layout {
		display: block;
	}
}
