/*
 * SkyWanted: front end only. Header, footer, forms, and behaviour that would
 * get in the way while editing.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Fonts and base typography are defined here as well as in theme.json, so the
   site looks right even if a plugin removes WordPress's global styles. */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
}

body {
	background: #fff;
	color: var(--sw-text);
	font-family: var(--sw-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

:where(h1, h2, h3, h4) {
	font-family: var(--sw-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--sw-ink);
}

:where(h1) {
	font-size: clamp(2.375rem, 5.2vw, 4.125rem);
	line-height: 1.04;
}

:where(h2) {
	font-size: clamp(1.875rem, 3.6vw, 2.875rem);
}

:where(h3) {
	font-size: 1.375rem;
	line-height: 1.2;
}

:where(a) {
	color: var(--sw-navy);
}

:where(a:hover) {
	color: var(--sw-orange-dark);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 3px solid var(--sw-orange);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text,
.sw-skip:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sw-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 200;
	padding: 10px 14px;
	background: #fff;
	color: var(--sw-ink);
	border-radius: var(--sw-radius-sm);
}

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

.sw-container,
.sw-content > :not(.alignfull):not(.sw-section) {
	max-width: var(--wp--style--global--content-size, 1240px);
	margin-inline: auto;
}

.sw-content > .alignfull {
	margin-block: 0;
}

.sw-content > .sw-hero.alignfull {
	margin: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0;
}

.sw-prose > * {
	max-width: 50rem;
}

.sw-prose > :is(.alignwide, form, table, .elementor) {
	max-width: none;
}

.sw-prose > :first-child {
	margin-top: 0;
}

.sw-entry {
	padding-block: 28px;
	border-bottom: 1px solid var(--sw-line);
}

.sw-entry h2 {
	font-size: 1.625rem;
	margin: 0 0 8px;
}

.sw-entry h2 a {
	color: inherit;
	text-decoration: none;
}

.sw-notice {
	padding: 14px 18px;
	background: #fff6e5;
	border-left: 4px solid var(--sw-orange);
	border-radius: var(--sw-radius-sm);
	color: var(--sw-text);
	font-size: 0.9375rem;
}

.sw-notice--bar {
	margin: 0;
	border-radius: 0;
	font-size: 0.875rem;
}

/* Header ------------------------------------------------------------------ */

.sw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(226, 231, 239, 0.8);
}

.admin-bar .sw-header {
	top: 32px;
}

.sw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1320px;
	min-height: 78px;
	margin-inline: auto;
	padding: 10px var(--sw-gutter);
}

.sw-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	text-decoration: none;
	color: var(--sw-navy);
}

.sw-logo img {
	width: auto;
	height: 46px;
}

.sw-logo__name {
	font-family: var(--sw-display);
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1;
}

.sw-nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.6vw, 40px);
}

.sw-menu,
.sw-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sw-menu {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.2vw, 34px);
}

.sw-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.sw-menu a {
	display: block;
	padding: 10px 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--sw-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.sw-menu a:hover,
.sw-menu .current-menu-item > a,
.sw-menu .current-menu-ancestor > a {
	color: var(--sw-orange-dark);
}

.sw-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 8px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.sw-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: -16px;
	min-width: 340px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--sw-line);
	border-radius: var(--sw-radius);
	box-shadow: var(--sw-shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

/* Keeps the submenu open while the pointer crosses the gap above it. */
.sw-menu .sub-menu::before {
	content: "";
	position: absolute;
	inset: -12px 0 auto;
	height: 12px;
}

.sw-menu li:hover > .sub-menu,
.sw-menu li:focus-within > .sub-menu,
.sw-menu li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sw-menu .sub-menu a {
	padding: 10px 14px;
	white-space: normal;
	border-radius: var(--sw-radius-sm);
}

.sw-menu .sub-menu a:hover {
	background: var(--sw-mist);
}

.sw-header .sw-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	flex: none;
	padding: 0.8rem 1.25rem;
	background: var(--sw-orange);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border-radius: var(--sw-radius-sm);
	transition: background-color 0.2s, box-shadow 0.2s;
}

.sw-header .sw-header__cta::after {
	content: "\2192";
}

.sw-header .sw-header__cta:hover {
	background: var(--sw-orange-dark);
	color: #fff;
	box-shadow: 0 8px 20px rgba(249, 122, 22, 0.25);
}

.sw-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	background: none;
	border: 1px solid var(--sw-line);
	border-radius: var(--sw-radius-sm);
	cursor: pointer;
}

.sw-menu-toggle__bars,
.sw-menu-toggle__bars::before,
.sw-menu-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	border-radius: 2px;
	background: var(--sw-ink);
	transition: transform 0.2s, background-color 0.2s;
}

.sw-menu-toggle__bars::before,
.sw-menu-toggle__bars::after {
	content: "";
	position: relative;
	top: -6px;
}

.sw-menu-toggle__bars::after {
	top: 4px;
}

.sw-menu-toggle[aria-expanded="true"] .sw-menu-toggle__bars {
	background: transparent;
}

.sw-menu-toggle[aria-expanded="true"] .sw-menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.sw-menu-toggle[aria-expanded="true"] .sw-menu-toggle__bars::after {
	transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1000px) {
	.sw-header__inner {
		flex-wrap: wrap;
	}

	.sw-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 14px;
	}

	/* Collapsed only when scripts run; otherwise the menu simply stays open. */
	.js .sw-menu-toggle {
		display: block;
	}

	.js .sw-nav {
		display: none;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
	}

	.js .sw-nav.is-open {
		display: flex;
	}

	.sw-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sw-menu > li {
		flex-wrap: wrap;
		border-top: 1px solid var(--sw-line);
	}

	.sw-menu a {
		flex: 1;
		padding: 14px 0;
		font-size: 1rem;
		white-space: normal;
	}

	.sw-menu > .menu-item-has-children > a::after {
		display: none;
	}

	.sw-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 10px 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.sw-menu .sub-menu::before {
		display: none;
	}

	.sw-menu .sub-menu a {
		padding: 9px 0;
		font-size: 0.9375rem;
		color: var(--sw-muted);
	}

	.sw-header__cta {
		justify-content: space-between;
		margin-top: 12px;
		padding: 1rem 1.25rem;
	}

	.sw-logo img {
		height: 40px;
	}

	.sw-logo__name {
		font-size: 1.4375rem;
	}
}

@media (max-width: 782px) {
	.admin-bar .sw-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .sw-header {
		top: 0;
	}
}

/* Cards: the whole card is the link (front end only, so the editor can still
   select what is inside). */

.sw-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sw-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sw-shadow-lift);
}

.sw-card:hover .sw-card__img {
	transform: scale(1.04);
}

/* Scroll reveal: classes are added by theme.js, so nothing is hidden without it. */

.sw-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.sw-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Forms ------------------------------------------------------------------- */

.sw-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.sw-field {
	margin: 0 0 20px;
}

.sw-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sw-ink);
}

.sw-optional {
	font-weight: 400;
	color: var(--sw-muted);
}

.sw-content :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea) {
	width: 100%;
	padding: 0.85rem 1rem;
	font: inherit;
	color: var(--sw-text);
	background: #fff;
	border: 1px solid #c3ccd9;
	border-radius: var(--sw-radius-sm);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.sw-content :is(input, select, textarea):focus {
	border-color: var(--sw-navy);
	box-shadow: 0 0 0 4px rgba(4, 53, 107, 0.12);
	outline: none;
}

.sw-field.has-error :is(input, select, textarea) {
	border-color: #b3261e;
}

.sw-field__error {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #b3261e;
}

.sw-field--hp {
	position: absolute;
	left: -9999px;
}

.sw-form__privacy {
	margin: 0 0 18px;
	font-size: 0.875rem;
	color: var(--sw-muted);
}

.sw-form__actions {
	margin: 0;
}

.sw-form button[type="submit"] {
	padding: 0.95rem 1.6rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--sw-orange);
	border: 1px solid var(--sw-orange);
}

.sw-form button[type="submit"]:hover {
	background: var(--sw-orange-dark);
	border-color: var(--sw-orange-dark);
}

.sw-form-message {
	margin-bottom: 26px;
	padding: 18px 22px;
	border-left: 4px solid #1c7c4a;
	border-radius: var(--sw-radius-sm);
	background: #eaf6ef;
}

.sw-form-message--error {
	border-left-color: #b3261e;
	background: #fdeeed;
}

.sw-form-message > * {
	margin: 0;
}

.sw-form-message h2 {
	font-size: 1.5rem;
	margin-bottom: 8px;
}

/* Phone line with icons (footer and contact page) ---------------------------- */

.sw-contact-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sw-icon--email {
	color: var(--sw-orange);
}

.sw-icon--linkedin {
	color: #0a66c2;
}

.sw-icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.sw-icon--phone {
	color: var(--sw-orange);
}

.sw-phone a.sw-phone__wa {
	display: inline-flex;
	margin-left: 4px;
	color: #25d366;
	transition: transform 0.2s;
}

.sw-phone a.sw-phone__wa:hover {
	color: #25d366;
	transform: scale(1.12);
}

.sw-phone__wa .sw-icon {
	width: 20px;
	height: 20px;
}

/* Footer ------------------------------------------------------------------ */

.sw-footer {
	background: #071528;
	color: #aebbd0;
	font-size: 0.9375rem;
}

.sw-footer a {
	color: #dfe6f1;
	text-decoration: none;
}

.sw-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.sw-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.sw-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
	gap: 40px clamp(28px, 4vw, 56px);
	max-width: 1320px;
	margin-inline: auto;
	padding: 64px var(--sw-gutter) 40px;
}

.sw-footer .sw-logo {
	color: #fff;
}

.sw-footer__brand p {
	margin: 16px 0 0;
}

.sw-footer__label {
	margin: 0 0 14px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.sw-footer__entities {
	grid-column: 1 / -1;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sw-footer__entity-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.sw-footer .sw-entity {
	padding: 18px 22px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--sw-radius);
}

.sw-footer .sw-entity .sw-entity__label {
	color: #ffb27a;
}

.sw-footer .sw-entity p {
	margin: 0;
	color: #c9d3e2;
}

.sw-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	max-width: 1320px;
	margin-inline: auto;
	padding: 20px var(--sw-gutter) 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.875rem;
}

.sw-footer__base p {
	margin: 0;
}

.sw-footer .sw-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

@media (max-width: 900px) {
	.sw-footer__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.sw-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.sw-form__grid,
	.sw-footer__inner,
	.sw-footer__entity-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
