/* Skyview — dark mode. Switched on by html.hl-mode-dark (sun/moon button in the top bar).
   Neutral colours are swapped for both looks; each look keeps its own accent, lightened for dark. */

html.hl-mode-dark { color-scheme: dark; }

/* Neutrals (beats the Bright look's body-level variables) */
html.hl-mode-dark body {
	--hl-white: #0e161d;
	--hl-paper: #141f29;
	--hl-mist: #192632;
	--hl-surface: #17232e;
	--hl-line: #283846;
	--hl-line-cool: #283846;
	--hl-ink: #e7edf1;
	--hl-muted: #a2b1bc;
	--hl-on-dark: #c9d3d8;
	--hl-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
	--hl-buoy: #d9b97f;
	--hl-harbour: #8cc3ea;
	background: var(--hl-white);
	color: var(--hl-ink);
}
/* Bright look accents, lightened */
html.hl-mode-dark body.hl-look-bright {
	--hl-harbour: #6fb3ec;
	--hl-buoy: #6fb3ec;
	--hl-green: #8fd16a;
	--hl-navy: #0f2c47;
	--hl-night: #08192a;
}

/* Header, menus and panels that were white */
html.hl-mode-dark .hl-header { background: rgba(14, 22, 29, 0.96); border-color: var(--hl-line); }
html.hl-mode-dark :is(
	.hl-menu .sub-menu,
	.hl-lang__menu, .hl-lang__close,
	.hl-quick,
	.hl-quotebar__card,
	.hl-service,
	.hl-section--quote .hl-form-wrap,
	.hl-section--paper .hl-claim-card,
	.hl-a11y__structure,
	.hl-a11y__icon,
	.hl-home-hero__badge,
	.hl-stats__grid
) { background-color: var(--hl-surface); color: var(--hl-ink); }
html.hl-mode-dark .hl-a11y { background: var(--hl-paper); color: var(--hl-ink); }
html.hl-mode-dark .hl-a11y__option { background: var(--hl-mist); color: var(--hl-ink); }
@media (max-width: 1080px) {
	html.hl-mode-dark .hl-nav-panel { background: var(--hl-white); }
}

/* Form fields */
html.hl-mode-dark :is(.hl-field input, .hl-field select, .hl-field textarea) { background-color: var(--hl-mist); color: var(--hl-ink); border-color: var(--hl-line); }
html.hl-mode-dark .hl-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a2b1bc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html.hl-mode-dark :is(.hl-quick__field select, .hl-quick__field input) { color: var(--hl-ink); }
html.hl-mode-dark :is(input, select, textarea)::placeholder { color: #7f8f9b; }
html.hl-mode-dark .hl-notice--ok { background: #13281f; }
html.hl-mode-dark .hl-notice--error { background: #2e1719; }

/* Places where "ink" was used as a dark fill under white text */
html.hl-mode-dark .page-numbers.current { background: var(--hl-brass); border-color: var(--hl-brass); color: #0b1b26; }
html.hl-mode-dark :is(.hl-socials a:hover, .hl-slider__nav button:hover, .hl-section--photo .wp-block-button.is-style-outline > .wp-block-button__link:hover, .hl-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover) { color: #0b1b26; }
html.hl-mode-dark .hl-btn--outline:hover,
html.hl-mode-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--hl-ink); color: #0b1b26; }
html.hl-mode-dark.hl-a11y-links a:not(.hl-btn):not(.wp-block-button__link):not(.hl-logo):not(.hl-service):not(.hl-feature-card) { color: #111 !important; }

/* Dark sections stay a step darker than the page so they still stand out */
html.hl-mode-dark .hl-section--ink,
html.hl-mode-dark .hl-dark { background: #08111a; }
html.hl-mode-dark .hl-footer { background: #070e14; }
html.hl-mode-dark .hl-topbar { background: #070e14; }
html.hl-mode-dark body.hl-look-bright .hl-topbar { background: #0f4a80; }

/* Logo artwork keeps its white tile; soften the ring */
html.hl-mode-dark .hl-logo__img { box-shadow: none; }

/* Maps: slightly dimmed so they don't glare */
html.hl-mode-dark .hl-office-card__map iframe { filter: brightness(0.85) contrast(1.05); }

/* Theme switch button */
.hl-mode-toggle {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hl-mode-toggle:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.hl-mode-toggle .hl-icon { width: 16px; height: 16px; }
.hl-mode-toggle .hl-mode-toggle__sun { display: none; }
html.hl-mode-dark .hl-mode-toggle .hl-mode-toggle__sun { display: block; }
html.hl-mode-dark .hl-mode-toggle .hl-mode-toggle__moon { display: none; }

/* Page titles and big numbers were set in fixed navy */
html.hl-mode-dark :is(.hl-hero-page__title, .hl-home-hero__title, .hl-stat__num) { color: var(--hl-ink); }
/* Mobile menu button */
html.hl-mode-dark .hl-burger { background: transparent; color: var(--hl-ink); border-color: var(--hl-line); }