/*
 * KSAacoustics design system.
 * Ported verbatim from HTML/index.html so the theme renders identically.
 */

:root {
	--ksa-navy-deep: #0C3474;
	--ksa-navy: #10469E;
	--ksa-blue: #3B7DD8;
	--ksa-blue-light: #5591E2;
	--ksa-blue-pale: #9CC4F5;
	--ksa-blue-mist: #C9DCF8;
	--ksa-blue-wash: #DCE9FB;
	--ksa-blue-tint: #EBF2FC;
	--ksa-blue-faint: #F1F6FD;
	--ksa-ink: #111111;
	--ksa-slate: #3C4654;
	--ksa-grey: #58595B;
	--ksa-grey-light: #8A919C;
	--ksa-border: #E3E6EB;
	--ksa-surface: #F7F8FA;
	--ksa-white: #FFFFFF;
	--ksa-wrap: 1240px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', sans-serif; color: #111111; background: #FFFFFF; }

/*
 * The `:visited` / `:hover` pairs are needed because Underscores' style.css
 * styles those states (purple / midnight blue) at a higher specificity than a
 * bare `a` selector, which would otherwise win.
 */
a,
a:visited { color: #10469E; text-decoration: none; }
a:hover,
a:focus,
a:active { color: #3B7DD8; }

::selection { background: #9CC4F5; }
button { font-family: 'Manrope', sans-serif; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Accessibility ------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	background: #FFFFFF;
	clip-path: none;
	color: #10469E;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 6px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 7px;
	width: auto;
	z-index: 100000;
}

/* Announcement / utility strip ---------------------------------------- */
.util { background: #0C3474; color: #C9DCF8; font-size: 12px; font-weight: 500; }
.util-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 6px; padding-bottom: 6px; }
.util-l { display: flex; gap: 24px; flex-wrap: wrap; }
.util span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.util a { color: inherit; }
.util a:hover { color: #FFFFFF; }

/* Header --------------------------------------------------------------- */
.hdr { background: #FFFFFF; border-bottom: 3px solid #10469E; position: relative; z-index: 60; }
.hdr-in { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; justify-content: center; padding: 14px 0; }
.brand-row { display: flex; align-items: center; gap: 7px; }
.logotype,
.logotype:visited { font-family: 'GoodTiming', sans-serif; font-style: italic; font-weight: 600; font-size: 29px; line-height: 0.9; color: #10469E; padding-right: 2px; }
.logotype:hover { color: #3B7DD8; }
.brand .custom-logo { display: block; max-height: 52px; width: auto; }
.tagline { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; color: #8A919C; margin-top: 5px; text-transform: uppercase; white-space: nowrap; }

.nav-desk { display: flex; align-items: stretch; gap: 2px; font-size: 14px; font-weight: 600; }
.nav-desk ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.nav-desk li { position: relative; display: flex; }
.nav-desk a { color: #3C4654; display: flex; align-items: center; gap: 7px; padding: 0 15px; }
.nav-desk a:hover { color: #10469E; box-shadow: inset 0 -3px 0 #9CC4F5; }
.nav-desk .current-menu-item > a,
.nav-desk .current_page_item > a,
.nav-desk .current-menu-ancestor > a,
.nav-desk .active { color: #10469E; box-shadow: inset 0 -3px 0 #3B7DD8; }
.nav-desk .current-menu-item > a:hover,
.nav-desk .current_page_item > a:hover,
.nav-desk .active:hover { color: #10469E; box-shadow: inset 0 -3px 0 #3B7DD8; }
.nav-desk .menu-item-has-children > a::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	border-radius: 1px;
}

/* Desktop dropdown */
.nav-desk .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	display: none;
	flex-direction: column;
	min-width: 230px;
	padding: 8px 0;
	gap: 0;
	background: #FFFFFF;
	border-top: 3px solid #3B7DD8;
	box-shadow: 0 16px 36px rgba(12,52,116,0.16);
}
.nav-desk li:hover > .sub-menu,
.nav-desk li:focus-within > .sub-menu { display: flex; }
.nav-desk .sub-menu li { display: block; }
.nav-desk .sub-menu a { padding: 10px 20px; color: #3C4654; font-weight: 600; font-size: 13.5px; box-shadow: none; }
.nav-desk .sub-menu a:hover { background: #F1F6FD; color: #10469E; box-shadow: none; }

.hdr-cta { display: flex; align-items: center; gap: 14px; }
.btn-quote,
.btn-quote:visited { background: #10469E; color: #FFFFFF; padding: 11px 22px; border-radius: 3px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.btn-quote:hover,
.btn-quote:focus { background: #3B7DD8; color: #FFFFFF; }

.burger { display: none; width: 44px; height: 44px; border-radius: 3px; border: 1px solid #E3E6EB; background: #FFFFFF; cursor: pointer; align-items: center; justify-content: center; align-self: center; flex-shrink: 0;padding: 0; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu */
.menu-m { position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; box-shadow: 0 24px 44px rgba(12,52,116,0.22); display: none; flex-direction: column; padding: 0 0 14px; }
.menu-m.is-open { display: flex; }
.menu-m ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-m a { padding: 14px 20px; font-size: 15px; font-weight: 600; color: #3C4654; display: block; }
.menu-m .current-menu-item > a,
.menu-m .current_page_item > a { color: #10469E; font-weight: 700; box-shadow: inset 3px 0 0 #3B7DD8; background: #F7FAFE; }
.menu-m .acc {
	border: none;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	width: 100%;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #3C4654;
}
.menu-m .acc svg { transition: transform 0.18s ease; flex-shrink: 0; }
.menu-m .acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-m .sub-menu { display: none; background: #F7F8FA; padding: 4px 0; }
.menu-m .sub-menu.is-open { display: flex; }
.menu-m .sub-menu a { padding: 12px 34px; font-size: 14px; }
.menu-m-cta { padding: 10px 20px 0; }
.menu-m-cta a { display: block; background: #10469E; color: #FFFFFF; padding: 14px; border-radius: 3px; font-size: 14px; font-weight: 700; text-align: center; }
.menu-m-cta a:hover { background: #3B7DD8; color: #FFFFFF; }

/* Buttons -------------------------------------------------------------- */
.btn-solid,
.btn-solid:visited { display: inline-block; background: #10469E; color: #FFFFFF; padding: 12px 24px; border-radius: 3px; font-size: 14px; font-weight: 700; }
.btn-solid:hover,
.btn-solid:focus { background: #3B7DD8; color: #FFFFFF; }

/* Used by the hero and by the Why Choose Us panel, so shared rather than kept
   in the hero block's stylesheet — that one only loads where the hero is. */
.btn-hero1,
.btn-hero1:visited { display: inline-block; background: #3B7DD8; color: #FFFFFF; padding: 14px 28px; border-radius: 3px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-align: center; }
.btn-hero1:hover,
.btn-hero1:focus { background: #5591E2; color: #FFFFFF; }
.btn-hero2,
.btn-hero2:visited { display: inline-block; background: #FFFFFF; color: #0C3474; padding: 14px 28px; border-radius: 3px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-align: center; }
.btn-hero2:hover,
.btn-hero2:focus { background: #DCE9FB; color: #0C3474; }

/* Article image stand-in ------------------------------------------------ */
/* Fills whichever panel it lands in — blog cards, the article hero, the home
   page strip — so a post with no featured image never collapses one. Shared
   because those panels live in three different stylesheets. */
.ksa-img-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 12%;
	background: #EBF2FC;
	color: #9CC4F5;
}
.ksa-img-ph svg { width: 100%; max-width: 170px; height: auto; }

/* Two-column bands ----------------------------------------------------- */
/* Shared by every band block (About Band, Blanket PO), so the rules live here
   rather than in one block's stylesheet — a block's CSS only loads on pages
   where that block is used. */
.band { padding-top: 52px; padding-bottom: 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band.rev { grid-template-columns: 1fr 1.1fr; }
.band h2 { font-size: 28px; font-weight: 700; margin: 0 0 14px; }
.band p { font-size: 15px; line-height: 1.65; color: #3C4654; margin: 0 0 14px; max-width: 52ch; }
.band-img { height: 300px; }
/* The design drew this panel with a rounded 4px image slot. */
.band-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
/* No photo, so the copy takes the full width rather than a half-width track. */
.band--full { grid-template-columns: 1fr; }
.band--full p { max-width: none; }
/* The design zeroed this with an inline style on the closing paragraph. */
.band > div > p:last-child { margin-bottom: 0; }

/* Section headings ----------------------------------------------------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sec-h h2 { font-size: 28px; font-weight: 700; margin: 0; }
.sec-h a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sec-h a:hover { color: #3B7DD8; }
.sec-sub { font-size: 15px; color: #58595B; margin: 0 0 28px; }

/* Content -------------------------------------------------------------- */
/* The page templates render <main class="site-main"> with no container of
   their own, so it carries the same gutters as .wrap. */
.site-main {
	max-width: 1240px;
	margin: 0 auto;
	padding: 44px 24px 56px;
}
.site-main h1 { font-size: 34px; font-weight: 800; font-style: italic; line-height: 1.15; margin: 0 0 16px; }
.site-main h2 { font-size: 26px; font-weight: 700; margin: 32px 0 12px; }
.site-main h3 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.site-main p { font-size: 15px; line-height: 1.7; color: #3C4654; margin: 0 0 16px; }
.site-main a:hover { color: #3B7DD8; }

/* Block-built pages ---------------------------------------------------- */
/* front-page.php prints the content with no container of its own so design
   sections reach the viewport edge. Those sections carry their own .wrap;
   plain editor content still needs the shared gutters. :where() keeps the
   specificity at zero, so a block's own styles always win. */
.blocks-main > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre, figure, table, .wp-block-image, .wp-block-embed) {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Footer --------------------------------------------------------------- */
.ftr { background: #FFFFFF; border-top: 1px solid #E3E6EB; }
.ftr-in { padding-top: 44px; padding-bottom: 18px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 34px; }
.ftr h4 { font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr-col a, .ftr-col span { color: #58595B; }
.ftr-col a:hover { color: #10469E; }
/*
 * Current page, marked the same way as the mobile menu.
 *
 * WordPress puts current-menu-item / current_page_item on the <li> and
 * aria-current on the link itself, so both are matched. current_page_parent is
 * what marks the Blog entry while an article is open, and
 * current-menu-ancestor does the same for a parent whose child is open.
 */
.ftr-col .current-menu-item > a,
.ftr-col .current_page_item > a,
.ftr-col .current-menu-ancestor > a,
.ftr-col .current_page_parent > a,
.ftr-col a[aria-current="page"] { color: #10469E; font-weight: 700; }
.ftr-col .sub-menu { display: none; }
.ftr-formerly { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8A919C; margin: 5px 0 12px; }
.ftr-desc { font-size: 13.5px; line-height: 1.6; color: #58595B; margin: 0 0 16px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 3px; border: 1px solid #E3E6EB; display: flex; align-items: center; justify-content: center; }
.soc:hover { border-color: #3B7DD8; background: #F1F6FD; }
.ftr-legal { border-top: 1px solid #E3E6EB; padding-top: 15px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #8A919C; flex-wrap: wrap; }
.ftr-legal a { color: #8A919C; white-space: nowrap; }
.ftr-legal a:hover { color: #10469E; }
/* Colour only, no weight change: this row is horizontal, so bolding an entry
   would shift the ones after it sideways. */
.ftr-legal .current-menu-item > a,
.ftr-legal .current_page_item > a,
.ftr-legal a[aria-current="page"] { color: #10469E; }
.ftr-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
	.nav-desk { display: none; }
	.hdr-cta .btn-quote { display: none; }
	.burger { display: flex; }
	.ftr-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 900px) {
	.util-in { justify-content: center; }
	.util-r { display: none !important; }
	.band, .band.rev { grid-template-columns: 1fr; gap: 28px; }
	.band.rev .band-img { order: -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.util { font-size: 11.5px; }
	.util-in { padding-top: 7px; padding-bottom: 7px; }
	.util-l { flex-wrap: nowrap; gap: 16px; justify-content: center; }
	.util-l span { gap: 5px; }
	.util .u-loc { display: none; }
	.logotype { font-size: 23px; }
	.tagline { font-size: 8px; letter-spacing: 0.08em; }
	.site-main { padding: 30px 16px 38px; }
	.site-main h1 { font-size: 25px; }
	.band { padding-top: 36px; padding-bottom: 36px; }
	.band h2 { font-size: 22px; }
	.band p { font-size: 14px; }
	.band-img { height: 190px; }
	.btn-hero1, .btn-hero2 { padding: 15px; font-size: 13.5px; }
	.sec-h h2 { font-size: 22px; }
	.sec-sub { font-size: 13.5px; margin-bottom: 20px; }
	.ftr-grid { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
	.ftr-brandcol { grid-column: 1 / -1; }
	.ftr-legal { flex-direction: column; gap: 8px; }
}
