/*
 * ABM Security — WordPress additions to the design stylesheet.
 *
 * Loads after styles.css (plain CSS, no cascade layers). Cascade rules that
 * matter here:
 *  - A rule in this file beats a styles.css utility of the SAME specificity,
 *    including one inside a media query (media queries add no specificity).
 *    That is how the single-class section-setting classes below (.abm-bg-*,
 *    .abm-pt-*, .abm-w-*) override the design's utilities.
 *  - hover:/group-hover: utilities in styles.css are two-class specificity;
 *    to override one, match or exceed that.
 *  - Never add a broad element rule such as `img { height: auto }` here: the
 *    reset in styles.css already sets img { max-width: 100%; height: auto }
 *    (which stops WordPress's width/height attributes stretching images), and
 *    a later element rule would fight the h-full / w-auto utilities.
 */

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */

.abm-display {
	font-family: 'Manrope', sans-serif;
}

html {
	scroll-padding-top: calc(var(--abm-header-h, 0px) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.abm-skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	background: #1565c0;
	color: #fff;
	padding: .75rem 1rem;
	border-radius: .375rem;
	font-weight: 600;
	font-size: .875rem;
}

.abm-skip-link:focus {
	top: 1rem;
}

/* Visible keyboard focus on the design's custom controls. */
.abm-site a:focus-visible,
.abm-site button:focus-visible {
	outline: 2px solid #1e88e5;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Header
 * The design switches from relative to fixed on scroll, which makes the page
 * jump. position: sticky gives the same look without the jump.
 * ------------------------------------------------------------------------ */

.abm-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	/* The admin bar scrolls away below 600px, so don't leave a gap for it. */
	.admin-bar .abm-header {
		top: 0;
	}
}

.abm-header.is-scrolled {
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}

.abm-header__bar {
	padding-block: 1rem;
}

.abm-header.is-scrolled .abm-header__bar {
	padding-block: .5rem;
}

@media (min-width: 64rem) {
	.abm-header__bar {
		padding-block: 1.25rem;
	}

	.abm-header.is-scrolled .abm-header__bar {
		padding-block: .75rem;
	}
}

/* Logo height comes from Site Settings as --logo-height (inline custom
 * property), so this rule and the scrolled state can still override it. */
.abm-logo {
	height: var(--logo-height, 90px);
	width: auto;
}

.abm-header.is-scrolled .abm-logo {
	height: 52px;
}

/* Hamburger / close swap. */
.abm-menu-close,
[data-abm-menu-toggle][aria-expanded="true"] .abm-menu-open {
	display: none;
}

[data-abm-menu-toggle][aria-expanded="true"] .abm-menu-close {
	display: block;
}

.abm-mobile-menu {
	max-height: calc(100vh - var(--abm-header-h, 80px));
	overflow-y: auto;
}

/* ---------------------------------------------------------------------------
 * Desktop mega menu — CSS hover/focus, no JS state.
 * The padding-top on the dropdown is a hover bridge across the gap.
 * ------------------------------------------------------------------------ */

.abm-dropdown {
	display: none;
	padding-top: .75rem;
}

.abm-dropdown__arrow {
	top: .25rem;
}

.abm-has-dropdown:hover > .abm-dropdown,
.abm-has-dropdown:focus-within > .abm-dropdown {
	display: block;
}

.abm-has-dropdown:hover > .abm-nav__link,
.abm-has-dropdown:focus-within > .abm-nav__link {
	color: #1565c0;
}

.abm-has-dropdown:hover .abm-nav__caret,
.abm-has-dropdown:focus-within .abm-nav__caret {
	transform: rotate(180deg);
}

.abm-flyout {
	display: none;
}

/* Bridge across the ml-2 gap between the row and its flyout. */
.abm-flyout::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 100%;
	width: .75rem;
}

.abm-has-flyout:hover > .abm-flyout,
.abm-has-flyout:focus-within > .abm-flyout {
	display: block;
}

.abm-has-flyout:hover > :is(a, button),
.abm-has-flyout:focus-within > :is(a, button) {
	background-color: rgb(21 101 192 / .08);
}

.abm-has-flyout:hover > :is(a, button) :is(span, svg),
.abm-has-flyout:focus-within > :is(a, button) :is(span, svg) {
	color: #1565c0;
}

/* Mobile menu carets. */
.abm-mnav__toggle[aria-expanded="true"] .abm-mnav__caret {
	transform: rotate(180deg);
}

.abm-mnav__toggle[aria-expanded="true"] .abm-mnav__caret--side {
	transform: rotate(90deg);
}

/* ---------------------------------------------------------------------------
 * Section settings (see abm_section_atts / abm_container_class)
 * ------------------------------------------------------------------------ */

.abm-bg-white { background-color: #fff; }
.abm-bg-light { background-color: #f9fafb; }
.abm-bg-dark  { background-color: #06101e; }
.abm-bg-navy  { background-color: #0a1628; }
.abm-bg-blue  { background-color: #1565c0; }

.abm-pt-none { padding-top: 0; }
.abm-pt-sm   { padding-top: 2.5rem; }
.abm-pt-md   { padding-top: 4rem; }
.abm-pt-lg   { padding-top: 6rem; }
.abm-pb-none { padding-bottom: 0; }
.abm-pb-sm   { padding-bottom: 2.5rem; }
.abm-pb-md   { padding-bottom: 4rem; }
.abm-pb-lg   { padding-bottom: 6rem; }

.abm-w-narrow { max-width: 56rem; }
.abm-w-wide   { max-width: 90rem; }
.abm-w-full   { max-width: none; }

/* A light-design section switched to a dark background: flip only the text
 * that sits directly on the background (marked .abm-on-bg). Text inside white
 * cards is left alone. */
.abm-section--dark .abm-on-bg { color: #fff; }
.abm-section--dark .abm-on-bg--muted { color: #d1d5db; }
.abm-section--dark .abm-on-bg--muted strong { color: #fff; }
.abm-section--dark .abm-eyebrow { color: #1e88e5; }

/* ---------------------------------------------------------------------------
 * Design backgrounds that were inline styles in the prototype
 * ------------------------------------------------------------------------ */

.abm-hero--tall     { min-height: 78vh; }
.abm-hero--standard { min-height: 72vh; }

.abm-grad-blue   { background: linear-gradient(145deg, #1565c0 0%, #0d3b8e 60%, #0a2d6e 100%); }
.abm-grad-tile   { background: linear-gradient(155deg, #06101e 0%, #0d2347 60%, #1a3a6e 100%); }
.abm-grad-cta    { background: linear-gradient(120deg, #0a1628 0%, #0d2347 60%, #112d5a 100%); }
.abm-grad-sector { background: linear-gradient(135deg, #06101e 0%, #0d2347 55%, var(--sector-accent, #1a3a6e) 100%); }

.abm-grid-28,
.abm-grid-40 {
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 28px 28px;
}

.abm-grid-40 {
	background-size: 40px 40px;
}

/* Sector card media: cover crop — images are decorative and vary in shape. */
.abm-sector-media {
	min-height: 340px;
}

.abm-scale-160 {
	transform: scale(1.6);
}

/* Home-page "Protecting businesses" panel and news featured card sizes. */
.abm-featured-card {
	min-height: 420px;
}

/* Process line between step circles. */
.abm-step-line {
	left: calc(50% + 40px);
	width: calc(100% - 80px);
}

/* Services carousel. */
.abm-service-card {
	min-width: 200px;
	flex: 1 0 200px;
}

.abm-scroller {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.abm-scroller::-webkit-scrollbar {
	display: none;
}

.abm-whatsapp {
	background-color: #25d366;
}

.abm-map {
	height: var(--map-height, 420px);
}

/* Placeholder where an image hasn't been chosen yet. */
.abm-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0a1628 0%, #0d2347 100%);
	color: rgb(255 255 255 / .35);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	padding: 1rem;
}

/* ---------------------------------------------------------------------------
 * Sticky elements sit below the sticky header.
 * --abm-header-h is set by script.js (header height + admin bar).
 * ------------------------------------------------------------------------ */

.abm-sticky-bar {
	top: var(--abm-header-h, 0px);
}

.abm-sticky {
	top: calc(var(--abm-header-h, 0px) + 1.5rem);
}

/* ---------------------------------------------------------------------------
 * Collapsibles (FAQ answers, "Read more").
 * Only collapse when JS is running (.abm-js is added in <head>), so the
 * content is fully readable without JavaScript. script.js owns max-height.
 * ------------------------------------------------------------------------ */

.abm-js .abm-collapse {
	overflow: hidden;
	transition: max-height .3s ease, opacity .3s ease, visibility 0s linear 0s;
}

.abm-js .abm-collapse:not(.is-open) {
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: max-height .3s ease, opacity .3s ease, visibility 0s linear .3s;
}

.abm-js .abm-readmore {
	transition-duration: .5s;
}

html:not(.abm-js) .abm-js-only {
	display: none;
}

[aria-expanded="true"] > .abm-toggle-caret {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.abm-js .abm-collapse,
	.abm-js .abm-collapse:not(.is-open),
	.abm-site *,
	.abm-site *::before,
	.abm-site *::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------------------
 * Rich text inside sections, and full prose for articles / plain pages
 * ------------------------------------------------------------------------ */

.abm-richtext strong {
	color: #1f2937;
	font-weight: 700;
}

.abm-richtext a,
.abm-prose a {
	color: #1565c0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.abm-richtext a:hover,
.abm-prose a:hover {
	color: #0d47a1;
}

.abm-richtext ul,
.abm-prose ul {
	list-style: disc;
	padding-left: 1.25rem;
}

.abm-richtext ol,
.abm-prose ol {
	list-style: decimal;
	padding-left: 1.25rem;
}

.abm-prose {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.75;
}

.abm-prose > * + * {
	margin-top: 1.25em;
}

.abm-prose h2,
.abm-prose h3,
.abm-prose h4 {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	color: #111827;
	line-height: 1.25;
	margin-top: 2em;
}

.abm-prose h2 { font-size: 1.875rem; }
.abm-prose h3 { font-size: 1.375rem; }
.abm-prose h4 { font-size: 1.125rem; }

.abm-prose h2 + *,
.abm-prose h3 + *,
.abm-prose h4 + * {
	margin-top: .75em;
}

.abm-prose strong {
	color: #1f2937;
	font-weight: 700;
}

.abm-prose li + li {
	margin-top: .375em;
}

.abm-prose blockquote {
	border-left: 3px solid #1565c0;
	padding-left: 1.25rem;
	font-style: italic;
	color: #374151;
}

.abm-prose img,
.abm-prose figure {
	border-radius: 1rem;
}

.abm-prose figcaption {
	font-size: .875rem;
	color: #6b7280;
	margin-top: .5rem;
	text-align: center;
}

.abm-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: .875rem;
}

.abm-prose th,
.abm-prose td {
	border: 1px solid #e5e7eb;
	padding: .5rem .75rem;
	text-align: left;
}

.abm-prose .alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.abm-prose .alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.abm-prose .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------------ */

.abm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 .75rem;
	border-radius: 9999px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #4b5563;
	font-size: .875rem;
	font-weight: 600;
	transition: color .15s, border-color .15s;
}

.abm-pagination a.page-numbers:hover {
	border-color: #1565c0;
	color: #1565c0;
}

.abm-pagination .page-numbers.current {
	background: #1565c0;
	border-color: #1565c0;
	color: #fff;
}

.abm-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ---------------------------------------------------------------------------
 * Editor-only notices
 * ------------------------------------------------------------------------ */

.abm-editor-notice {
	max-width: 80rem;
	margin: 1rem auto;
	padding: .875rem 1.25rem;
	border: 2px dashed #f59e0b;
	border-radius: .75rem;
	background: #fffbeb;
	color: #92400e;
	font-size: .875rem;
}

/* ---------------------------------------------------------------------------
 * Gravity Forms
 *
 * GF 2.7+ prints its CSS-API variables in an inline <style> scoped to
 * #gform_wrapper_{id}. An ID selector can't be out-specified from here, so the
 * variables are overridden with !important. Everything after that block is
 * ordinary specificity and also covers the legacy (non-Orbital) markup.
 * ------------------------------------------------------------------------ */

.abm-gf .gform_wrapper.gform-theme {
	--gf-color-primary: #1565c0 !important;
	--gf-color-primary-rgb: 21, 101, 192 !important;
	--gf-color-primary-darker: #0d47a1 !important;
	--gf-color-primary-contrast: #fff !important;
	--gf-ctrl-border-color: #e5e7eb !important;
	--gf-ctrl-border-color-hover: #d1d5db !important;
	--gf-ctrl-border-color-focus: #1565c0 !important;
	--gf-ctrl-radius: .5rem !important;
	--gf-ctrl-size: 2.875rem !important;
	--gf-ctrl-font-size: .875rem !important;
	--gf-ctrl-color: #1f2937 !important;
	--gf-ctrl-placeholder-color: #d1d5db !important;
	--gf-ctrl-outline-color-focus: rgb(21 101 192 / .1) !important;
	--gf-ctrl-label-color-primary: #6b7280 !important;
	--gf-ctrl-label-color-req: #1565c0 !important;
	--gf-ctrl-label-font-size-primary: .75rem !important;
	--gf-ctrl-label-font-weight-primary: 600 !important;
	--gf-ctrl-btn-radius: .5rem !important;
	--gf-ctrl-btn-font-size: .875rem !important;
	--gf-ctrl-btn-font-weight: 700 !important;
	--gf-font-family-base: inherit !important;
	--gf-form-gap-y: 1.25rem !important;
	--gf-form-gap-x: 1.25rem !important;
}

.abm-gf .gfield_label,
.abm-gf .gform-field-label,
.abm-gf legend.gfield_label {
	display: block;
	font-size: .75rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .375rem;
}

.abm-gf .gfield_required {
	color: #1565c0;
}

.abm-gf input[type="text"],
.abm-gf input[type="email"],
.abm-gf input[type="tel"],
.abm-gf input[type="number"],
.abm-gf input[type="url"],
.abm-gf select,
.abm-gf textarea {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: .5rem;
	padding: .75rem 1rem;
	font-size: .875rem;
	color: #1f2937;
	background-color: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.abm-gf textarea {
	resize: none;
}

.abm-gf input::placeholder,
.abm-gf textarea::placeholder {
	color: #d1d5db;
}

.abm-gf input:focus,
.abm-gf select:focus,
.abm-gf textarea:focus {
	outline: none;
	border-color: #1565c0;
	box-shadow: 0 0 0 3px rgb(21 101 192 / .1);
}

.abm-gf .gform_footer,
.abm-gf .gform_page_footer {
	margin-top: 1.25rem;
	padding: 0;
}

.abm-gf .gform_button,
.abm-gf .gform_footer input[type="submit"],
.abm-gf .gform_footer button {
	width: 100%;
	background-color: #1565c0;
	color: #fff;
	font-weight: 700;
	font-size: .875rem;
	text-transform: uppercase;
	letter-spacing: .025em;
	padding: 1rem 1.5rem;
	border: 0;
	border-radius: .5rem;
	cursor: pointer;
	transition: background-color .15s;
}

.abm-gf .gform_button:hover,
.abm-gf .gform_footer input[type="submit"]:hover,
.abm-gf .gform_footer button:hover {
	background-color: #0d47a1;
}

.abm-gf .gform_confirmation_message {
	padding: 3rem 1rem;
	text-align: center;
	color: #4b5563;
}

.abm-gf .validation_message,
.abm-gf .gfield_validation_message {
	font-size: .75rem;
	color: #dc2626;
	margin-top: .25rem;
}

/* Newsletter: single row, dark inputs, visually hidden labels. */
.abm-gf--inline .gform_wrapper form {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: flex-start;
}

.abm-gf--inline .gform_body {
	flex: 1 1 16rem;
}

@media (min-width: 40rem) {
	.abm-gf--inline .gform_body {
		width: 18rem;
	}
}

.abm-gf--inline .gform_footer {
	margin: 0 !important;
	padding: 0 !important;
}

.abm-gf--inline .gfield_label,
.abm-gf--inline .gform-field-label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.abm-gf--inline input[type="email"],
.abm-gf--inline input[type="text"] {
	background-color: rgb(255 255 255 / .1);
	border-color: rgb(255 255 255 / .2);
	color: #fff;
}

.abm-gf--inline input::placeholder {
	color: #9ca3af;
}

.abm-gf--inline .gform_button,
.abm-gf--inline .gform_footer input[type="submit"],
.abm-gf--inline .gform_footer button {
	width: auto;
	padding: .75rem 1.5rem;
}

.abm-gf--inline .gform_button:hover,
.abm-gf--inline .gform_footer input[type="submit"]:hover {
	background-color: #1e88e5;
}

.abm-gf--inline .gform_confirmation_message {
	padding: 0;
	color: #d1d5db;
	text-align: left;
}

.abm-gf .abm-gf-note {
	font-size: .75rem;
	color: #9ca3af;
	text-align: center;
}

.abm-gf .abm-gf-note a {
	text-decoration: underline;
}
