/**
 * Seafarer header and footer for the WordPress blog.
 *
 * Values are transcribed from the static site's service and industry page
 * templates so the two render identically. Colours, spacing, radii and shadows
 * all come from the shared design tokens loaded ahead of this file.
 *
 * Everything is namespaced .sf-* so it cannot collide with Elementor or the
 * Hello Elementor parent theme.
 */

/* ---------------------------------------------------------------- skip link */

.sf-skip {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 300;
	background: var(--gold-500);
	color: var(--navy-900);
	padding: 10px 18px;
	border-radius: 0 0 10px 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.sf-skip:focus {
	left: 0;
}

.sf-content-anchor {
	outline: none;
}

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

.sf-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--border-default);
	font-family: var(--font-body);
}

/* The WordPress admin bar is fixed at the top for logged-in users, so the
   sticky header has to start below it or it hides underneath. */
body.admin-bar .sf-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .sf-header {
		top: 46px;
	}
}

.sf-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 24px;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sf-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.sf-header__logo img {
	height: 38px;
	width: auto;
	display: block;
}

/* ---------------------------------------------------------- desktop nav */

.sf-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
}

.sf-nav__link {
	color: var(--ink-900);
	text-decoration: none;
	white-space: nowrap;
}

.sf-nav__link:hover {
	color: var(--gold-700);
}

.sf-nav__link--icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sf-nav__link--icon svg {
	width: 15px;
	height: 15px;
}

/* ------------------------------------------------------------- dropdowns */

.sf-drop {
	position: relative;
}

.sf-drop__trigger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	/* Tall padding keeps the pointer inside the trigger while travelling down
	   to the panel, so the menu does not flicker shut on the way. */
	padding: 26px 0;
}

.sf-drop__chev {
	width: 14px;
	height: 14px;
}

.sf-drop__menu {
	position: absolute;
	top: 100%;
	left: 50%;
	background: var(--paper);
	border: 1px solid var(--border-default);
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 160ms;
	z-index: 70;
}

.sf-drop:hover .sf-drop__menu,
.sf-drop:focus-within .sf-drop__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sf-drop__menu--services {
	margin-left: -180px;
	width: 360px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sf-drop__menu--industries {
	margin-left: -230px;
	width: 460px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

.sf-drop__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 11px;
	border-radius: 10px;
	text-decoration: none;
	transition: all 140ms ease-out;
}

.sf-drop__item--rich {
	align-items: flex-start;
	gap: 11px;
	padding: 10px 12px;
}

.sf-drop__item:hover {
	background: var(--gold-050);
	box-shadow: inset 3px 0 0 var(--gold-500);
	transform: translateX(3px);
}

.sf-drop__icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: rgba(253, 181, 21, 0.16);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sf-drop__icon svg {
	width: 17px;
	height: 17px;
	color: var(--gold-700);
}

.sf-drop__icon--sm {
	width: 30px;
	height: 30px;
}

.sf-drop__icon--sm svg {
	width: 16px;
	height: 16px;
}

.sf-drop__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.sf-drop__label {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	color: var(--ink-900);
}

.sf-drop__label--sm {
	font-size: 13px;
	line-height: 1.3;
	white-space: normal;
}

.sf-drop__desc {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.4;
	white-space: normal;
}

/* ---------------------------------------------------------------- button */

.sf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-pill);
	background: var(--gold-500);
	color: var(--navy-900);
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	border: none;
	cursor: pointer;
	transition: background 160ms ease-out, transform 160ms ease-out;
}

.sf-btn:hover {
	background: var(--gold-400);
	color: var(--navy-900);
	transform: translateY(-1px);
	text-decoration: none;
}

.sf-btn--sm {
	height: 38px;
	padding: 0 18px;
	font-size: 13px;
}

.sf-btn--md {
	height: 46px;
	padding: 0 24px;
	font-size: 15px;
}

.sf-btn--block {
	display: flex;
	width: 100%;
	height: 46px;
	font-size: 15px;
	margin-top: 10px;
}

/* ------------------------------------------------- mobile trigger + menu */

.sf-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sf-btn--mobile,
.sf-menu-toggle {
	display: none;
}

.sf-menu-toggle {
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid var(--border-default);
	background: var(--paper);
	color: var(--ink-900);
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
}

.sf-menu-toggle svg {
	width: 21px;
	height: 21px;
}

.sf-mobile {
	border-top: 1px solid var(--border-default);
	background: var(--paper);
	max-height: calc(100svh - 76px);
	overflow-y: auto;
}

.sf-mobile[hidden] {
	display: none;
}

.sf-mobile__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 18px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sf-mobile__heading {
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--gold-700);
	padding: 4px 0 6px;
}

.sf-mobile__heading--spaced {
	padding-top: 14px;
}

.sf-mobile__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 10px;
	border-radius: 10px;
	text-decoration: none;
}

.sf-mobile__item--filled {
	background: var(--surface-page);
}

.sf-mobile__plain {
	padding: 11px 10px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--ink-900);
	text-decoration: none;
}

.sf-mobile__plain--spaced {
	margin-top: 8px;
}

.sf-mobile__plain--icon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sf-mobile__plain--icon svg {
	width: 16px;
	height: 16px;
	color: var(--gold-700);
}

/* The static site swaps to the compact header at 1140px, where the full nav
   stops fitting alongside the logo and the call-to-action. */
@media (max-width: 1140px) {
	.sf-nav {
		display: none;
	}

	.sf-btn--mobile {
		display: inline-flex;
	}

	.sf-menu-toggle {
		display: inline-flex;
	}
}

@media (max-width: 480px) {
	.sf-btn--mobile {
		display: none;
	}
}

/* -------------------------------------------------------------------- footer */

.sf-footer {
	background: var(--surface-dark);
	border-top: 1px solid var(--navy-700);
	font-family: var(--font-body);
}

.sf-footer__cols {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 54px 24px 38px;
	display: grid;
	gap: 34px;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
	.sf-footer__cols {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.sf-footer__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sf-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.sf-footer__col--brand {
	gap: 11px;
}

.sf-footer__logo {
	display: inline-flex;
	align-self: flex-start;
}

.sf-footer__logo img {
	height: 38px;
	width: auto;
	display: block;
}

.sf-footer__blurb {
	margin: 0;
	font-size: 14px;
	color: var(--ink-300);
	line-height: 1.6;
	max-width: 300px;
}

.sf-footer__social {
	display: flex;
	gap: 14px;
	margin-top: 4px;
}

.sf-footer__social a {
	color: var(--ink-300);
	display: inline-flex;
}

.sf-footer__social svg {
	width: 20px;
	height: 20px;
}

.sf-footer__heading {
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--gold-500);
}

.sf-footer__col a {
	font-size: 14px;
	color: var(--ink-300);
	text-decoration: none;
}

.sf-footer__place {
	font-size: 14px;
	color: var(--ink-300);
	line-height: 1.6;
}

.sf-footer__bar {
	border-top: 1px solid var(--navy-700);
}

.sf-footer__bar-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 16px 24px;
	font-size: 13px;
	color: var(--ink-500);
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.sf-footer__legal {
	display: inline-flex;
	gap: 18px;
	flex-wrap: wrap;
}

.sf-footer__bar a {
	color: var(--ink-500);
	text-decoration: none;
}

/* Matches the static site: footer links go gold and underline on hover. */
.sf-footer a:hover {
	color: var(--gold-500);
	text-decoration: underline;
}

/* ------------------------------------------------------------------- focus */

.sf-header a:focus-visible,
.sf-header button:focus-visible,
.sf-footer a:focus-visible {
	outline: 3px solid var(--gold-500);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sf-drop__menu,
	.sf-drop__item,
	.sf-btn {
		transition: none;
	}
}
