/* ==========================================================================
   DSMS — New UI: design tokens, buttons, header, footer (all pages).
   Figma "Design Stage Manage Sophia" (GulEjGdRr4Ofk133zfqiVO), desktop 1440px,
   content width 1200px. Mobile/tablet adapted from the desktop design.
   ========================================================================== */

:root {
	--hm-primary: #fa925a;
	--hm-primary-hover: #f47c3c;
	--hm-black: #1c0f13;
	--hm-heading: #242527;
	--hm-text: #3a475b;
	--hm-text-2: #2c3544;
	--hm-gray-bg: #f5f6f7;
	--hm-neutral: #fcfbfa;
	--hm-brown: #402930;
	--hm-gold: #c38650;
	--hm-gold-2: #d19c6f;
	--hm-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hm-container: 1200px;
	--hm-gutter: 20px;
	--hm-gap: 65px;
}

/* ---------- reCAPTCHA (Contact Form 7) ----------
   The floating badge covered the content on phones: hidden (reCAPTCHA still works);
   the notice Google asks for is shown under the forms instead (inc/compat.php). */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.recaptcha-note { margin: 8px 0 0; color: var(--hm-text); font-family: var(--hm-font); font-size: 12px; line-height: 1.5; }
.recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.recaptcha-note a:hover { color: var(--hm-primary); }
.recaptcha-note--footer { color: rgba(255, 255, 255, .6); }

/* ---------- Buttons ---------- */
.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 24px;
	border: 0;
	border-radius: 0;
	background: var(--hm-primary);
	color: #fff;
	font-family: var(--hm-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.hm-btn:hover,
.hm-btn:focus-visible { background: var(--hm-primary-hover); color: #fff; }
.hm-btn:focus-visible { outline: 2px solid var(--hm-black); outline-offset: 2px; }
.hm-btn--md { padding: 10px 24px; font-size: 16px; line-height: 24px; }
.hm-btn--dark { background: var(--hm-black); color: var(--hm-neutral); }
.hm-btn--dark:hover,
.hm-btn--dark:focus-visible { background: #3b2a2f; color: var(--hm-neutral); }

/* ==========================================================================
   Header (Figma component "header")
   ========================================================================== */
.hdr {
	background: var(--hm-neutral);
	box-shadow: 0 1px 0 rgba(28, 15, 19, .06);
	font-family: var(--hm-font);
}
.hdr__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
	min-height: 85px;
	margin-inline: auto;
	padding: 10px var(--hm-gutter);
}
.hdr__logo { display: inline-flex; flex-shrink: 0; }
.hdr__logo-img { display: block; width: 80px; height: 65px; object-fit: contain; }

.hdr__nav { margin: 0 auto; }
.hdr .dsms-nav { gap: 24px; padding: 0; }
.hdr .dsms-nav__link {
	gap: 6px;
	height: auto;
	padding: 12px 16px;
	border-bottom: 1px solid transparent;
	color: var(--hm-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	transition: color .2s ease, border-color .2s ease;
}
.hdr .dsms-nav__link:hover,
.hdr .dsms-nav__item:focus-within > .dsms-nav__link { color: var(--hm-primary); border-bottom-color: transparent; }
.hdr .dsms-nav > .is-active > .dsms-nav__link {
	color: var(--hm-primary);
	font-weight: 500;
	border-bottom-color: var(--hm-primary);
}
.hdr .dsms-nav__caret { width: 16px; height: 16px; }
.hdr .dsms-nav__sub { left: 0; border-radius: 0; font-family: var(--hm-font); }
/* Sub menu: same type as the top level (Poppins 16/24, regular, ALL CAPS). */
.hdr .dsms-nav__sublink,
.hdr-offcanvas .dsms-nav__sublink {
	color: var(--hm-text);
	font-family: var(--hm-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-transform: uppercase;
}
.hdr .dsms-nav__sublink { padding: 12px 24px; white-space: nowrap; }
.hdr .dsms-nav__sublink:hover,
.hdr .dsms-nav__sub .is-active > .dsms-nav__sublink { color: var(--hm-primary-hover); background: #fff4ee; }

.hdr__cta { flex-shrink: 0; }

.hdr__burger {
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
}

/* ---------- Mobile menu (offcanvas, Figma 291:4722) ----------
   Dark overlay, white panel 392px from the right, logo, rows of 67px with a light line,
   Our Services opens its sub menu (dots, current page on grey), orange "Contact us" button. */
.offcanvas-backdrop { background-color: #001416; }
.offcanvas-backdrop.show { opacity: .6; }
.hdr-offcanvas.offcanvas-end { --bs-offcanvas-width: min(392px, calc(100vw - 48px)); border-left: 0; font-family: var(--hm-font); }
.hdr-offcanvas .offcanvas-header { position: static; padding: 40px 20px 0 22px; border-bottom: 0; }
.hdr-offcanvas .hdr__logo-img { width: 80px; height: 65px; object-fit: contain; }
.hdr-offcanvas .dsms-offcanvas__close { position: absolute; top: 8px; right: 8px; padding: 0; line-height: 0; }
.hdr-offcanvas .dsms-offcanvas__close svg { width: 32px; height: 32px; }
.hdr-offcanvas .dsms-offcanvas__close path { stroke: var(--hm-black); stroke-width: 1.5; }
.hdr-offcanvas .offcanvas-body { display: flex; flex-direction: column; gap: 20px; padding: 20px 20px 40px 22px; }

/* Top level rows. */
.hdr-offcanvas .dsms-nav--mobile > .dsms-nav__item { border-bottom: 1px solid #f4f3f6; }
.hdr-offcanvas .dsms-nav--mobile > .dsms-nav__item:last-child { border-bottom: 0; }
.hdr-offcanvas .dsms-nav--mobile > li > .dsms-nav__link {
	min-height: 67px;
	padding: 20px;
	border-bottom: 0;
	color: var(--hm-text-2);
	font-size: 18px;
	font-weight: 400;
	line-height: 26px;
	text-transform: uppercase;
}
.hdr-offcanvas .dsms-nav--mobile > li:last-child > .dsms-nav__link { padding-bottom: 0; }
.hdr-offcanvas .dsms-nav--mobile > li > .dsms-nav__link:hover { color: var(--hm-primary); }
.hdr-offcanvas .dsms-nav--mobile > .is-active > .dsms-nav__link,
.hdr-offcanvas .dsms-nav--mobile > .is-open > .dsms-nav__link { color: var(--hm-primary); font-weight: 600; }

/* Our Services: link + chevron (opens / closes the sub menu). */
.hdr-offcanvas .dsms-nav--mobile > .has-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.hdr-offcanvas .dsms-nav--mobile > .has-sub > .dsms-nav__sub { grid-column: 1 / -1; }
.dsms-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hm-text-2);
	cursor: pointer;
}
.dsms-nav__toggle svg { width: 20px; height: 20px; transform: rotate(-90deg); transition: transform .25s ease; }
.is-open > .dsms-nav__toggle,
.is-active > .dsms-nav__toggle { color: var(--hm-primary); }
.is-open > .dsms-nav__toggle svg { transform: none; }
.dsms-nav__toggle:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: -6px; }
.dsms-nav--mobile[data-collapsible] .has-sub:not(.is-open) > .dsms-nav__sub { display: none; }

/* Sub menu rows: dot + name, current page on grey. */
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sub {
	display: block;
	margin: 0;
	padding: 0;
	border-top: 1px solid #f4f3f6;
	border-bottom: 0;
	border-left: 0;
	list-style: none;
}
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sub > li { border-bottom: 1px solid #f4f3f6; }
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sub > li:last-child { border-bottom: 0; }
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sublink {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 14px 20px 14px 34px;
	border-radius: 0;
	background: none;
	color: var(--hm-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
	transition: background-color .2s ease, color .2s ease;
}
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sublink::before {
	content: "";
	flex-shrink: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sublink:hover { color: var(--hm-primary); }
.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sub .is-active > .dsms-nav__sublink { background: var(--hm-gray-bg); color: var(--hm-primary); font-weight: 600; }

/* "Contact us": full-width orange button. */
.hdr-offcanvas .offcanvas-body > .hm-btn {
	margin-top: 0 !important;
	padding: 8px 24px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
	.dsms-nav__toggle svg,
	.hdr-offcanvas .dsms-nav--mobile .dsms-nav__sublink { transition: none; }
}

@media (max-width: 1299.98px) {
	.hdr .dsms-nav { gap: 4px; }
	.hdr .dsms-nav__link { padding-inline: 12px; font-size: 15px; }
	.hdr .dsms-nav__sublink { font-size: 15px; }
}
@media (max-width: 1099.98px) {
	.hdr .dsms-nav__link { padding-inline: 8px; font-size: 14px; }
	.hdr .dsms-nav__sublink { font-size: 14px; }
}
@media (max-width: 991.98px) {
	.hdr__inner { min-height: 70px; }
	.hdr__logo-img { width: 62px; height: 50px; }
}

/* ==========================================================================
   Footer CTA band (Figma component "CTA")
   ========================================================================== */
.site-footer.ftr { margin-top: var(--hm-gap); font-family: var(--hm-font); }
/* A page that ends with a coloured band runs straight into the CTA (Figma). */
body:has(.site-main > .hm-section--gray:last-child, .site-main > .hm-section--dark:last-child) .site-footer.ftr { margin-top: 0; }

.ftr-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* 1440 × 435 in the design: keeps that ratio on wider screens (never taller than 70% of the window). */
	min-height: max(435px, min(30.21vw, 70svh));
	padding: 64px 48px;
	overflow: hidden;
	color: #fff;
	text-align: center;
}
.ftr-cta__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ftr-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, .4);
}
.ftr-cta__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 992px;
}
.ftr-cta__title { margin: 0; color: #fff; font-family: var(--hm-font); font-size: 36px; font-weight: 700; line-height: normal; }
.ftr-cta__text { margin: -12px 0 0; font-size: 20px; line-height: 1.5; }
.ftr-cta__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	background: var(--hm-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease;
}
.ftr-cta__btn:hover,
.ftr-cta__btn:focus-visible { background: var(--hm-primary-hover); color: #fff; }

/* ==========================================================================
   Footer (Figma component "footer")
   ========================================================================== */
.ftr-main {
	padding: 65px var(--hm-gutter) 40px;
	border-top: 5px solid var(--hm-primary);
	background: var(--hm-black);
	color: #fff;
}
.ftr-main__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: var(--hm-container);
	margin: 0 auto;
}

.ftr-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ftr-brand__logo { display: inline-flex; margin-bottom: 4px; }
.ftr-brand__logo img { display: block; width: 158px; height: 128px; object-fit: contain; }
.ftr-brand__name { margin: 0 0 4px; color: #fff; font-size: 24px; font-weight: 700; line-height: normal; }
.ftr-brand__text { margin: 0; font-size: 16px; line-height: 24px; }

.ftr-line { margin: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); opacity: 1; }
.ftr-disclaimer { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ftr-disclaimer p { margin: 0; color: #9ca3af; font-size: 12px; line-height: 1.5; text-align: center; }

.ftr-cols { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.ftr-col { display: flex; flex-direction: column; gap: 16px; }
.ftr-col__title { margin: 0; color: #fff; font-family: var(--hm-font); font-size: 18px; font-weight: 600; line-height: 1.5; }
.ftr-col__title--bold { color: var(--hm-neutral); font-weight: 700; line-height: 26px; }

.ftr-contact__addr { margin: 0; font-size: 16px; line-height: 24px; }
.ftr-contact { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ftr-contact li { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.ftr-contact .dsms-icon { width: 24px; height: 24px; color: var(--hm-neutral); }
.ftr-contact a { color: #fff; text-decoration: none; }
.ftr-contact a:hover { color: var(--hm-primary); }
.ftr-contact__email a { color: var(--hm-primary); }

.ftr .footer-links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ftr .footer-links a,
.ftr .footer-links span { color: #e5e7eb; font-size: 16px; line-height: 24px; opacity: 1; text-decoration: none; }
.ftr .footer-links a:hover { color: var(--hm-primary); }

.ftr-col--newsletter { gap: 24px; width: 100%; max-width: 330px; }
.ftr-col--newsletter .ftr-col__title { margin-bottom: -19px; }
.ftr-newsletter__text { margin: 0; color: #9ca3af; font-size: 14px; line-height: 20px; }

/* Built-in newsletter form */
.ftr .newsletter-form { display: flex; gap: 0; }
.ftr .newsletter-form__input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 10px 14px;
	border: 1px solid #d5dae1;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	color: #4b5563;
	font-family: var(--hm-font);
	font-size: 14px;
	line-height: 24px;
}
.ftr .newsletter-form__input::placeholder { color: #9ca3af; }
.ftr .newsletter-form__btn {
	flex-shrink: 0;
	height: 42px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--hm-primary);
	color: var(--hm-neutral);
	font-family: "Inter", var(--hm-font);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.ftr .newsletter-form__btn:hover { background: var(--hm-primary-hover); }
.ftr .newsletter-form__msg { color: #fff; }

/* Contact Form 7 newsletter form */
.ftr .newsletter-form--shortcode .emailsubmit_wrapper { gap: 0; }
.ftr .newsletter-form--shortcode input[type="email"],
.ftr .newsletter-form--shortcode input[type="text"] {
	height: 42px;
	padding: 10px 14px;
	border: 1px solid #d5dae1;
	border-radius: 0;
	color: #4b5563;
	font-family: var(--hm-font);
	font-size: 14px;
}
.ftr .newsletter-form--shortcode button[type="submit"],
.ftr .newsletter-form--shortcode input[type="submit"] {
	height: 42px;
	padding: 0 24px;
	border-radius: 0;
	background: var(--hm-primary);
	color: var(--hm-neutral);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}
.ftr .newsletter-form--shortcode button[type="submit"]:hover,
.ftr .newsletter-form--shortcode input[type="submit"]:hover { background: var(--hm-primary-hover); }

.ftr-copy { margin: 0; color: var(--hm-neutral); font-size: 14px; line-height: 20px; text-align: center; }
.ftr-copy a { color: inherit; text-decoration: underline; }
.ftr-copy a:hover { color: var(--hm-primary); }

/* Line break before "POWERED BY" on phones only. */
.ftr-copy__br { display: none; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991.98px) {
	.ftr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr-col--newsletter { max-width: none; grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
	:root { --hm-gap: 40px; }

	/* Header (Figma "header mobile" 119:8640): 89px, logo 80×65, 32px menu icon. */
	.hdr__inner { min-height: 89px; padding: 12px 16px; }
	.hdr__logo-img { width: 80px; height: 65px; }
	.hdr__burger svg { width: 32px; height: 32px; }

	/* CTA band (Figma 182:10174). */
	.ftr-cta { min-height: min(calc(100vw * 664 / 440), 664px); padding: 40px 24px; }
	.ftr-cta__inner { gap: 24px; }
	.ftr-cta__title { font-size: 32px; line-height: 1.4; }
	.ftr-cta__text { margin-top: -16px; font-size: 20px; line-height: 1.5; }
	.ftr-cta__btn { font-weight: 600; }

	/* Footer (Figma "footer mobile" 141:716). */
	.ftr-main { padding: 40px var(--hm-gutter) 32px; }
	.ftr-main__inner { gap: 24px; }
	.ftr-brand { gap: 16px; }
	.ftr-brand__logo { margin-bottom: 0; }
	.ftr-brand__logo img { width: 118px; height: 96px; }
	.ftr-brand__name { margin: 0; font-size: 18px; line-height: 1.5; }
	.ftr-brand__text { max-width: 361px; font-size: 14px; line-height: 20px; }
	.ftr-brand__text + .ftr-brand__text { margin-top: -4px; }
	.ftr-disclaimer p { line-height: normal; }

	.ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 29px; }
	.ftr-col--contact,
	.ftr-col--newsletter { grid-column: 1 / -1; }
	.ftr-col--contact { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.ftr-col--newsletter { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
	.ftr-contact li { align-items: flex-start; }
	.ftr-contact a { min-width: 0; overflow-wrap: anywhere; }

	.ftr-copy { line-height: 24px; }
	.ftr-copy__br { display: block; }
}
@media (max-width: 359.98px) {
	.ftr-cols { grid-template-columns: minmax(0, 1fr); }
}
