/* Permanent dark palette, applied before JavaScript or device preferences. */
:root {
	color-scheme: dark;
	background-color: var(--bimav-bg);
	--bimav-bg: #101C1A;
	--bimav-surface: #192B27;
	--bimav-raised: #243B35;
	--bimav-text: #D1DED8;
	--bimav-heading: #F1F6F3;
	--bimav-muted: #AEC4BA;
	--bimav-border: #3D564D;
	--bimav-accent: #77D5BD;
	--bimav-on-accent: #102D25;
	/* Brand panels retain white lettering. */
	--bimav-brand: #146C64;
	--bimav-brand-deep: #0D504A;
	--bimav-brand-end: #207D72;
	--bimav-footer: #132E29;
	/* Shared instrument colours, already used by the homepage compass. */
	--bimav-brass: #c8a46a;
	--bimav-ivory: #e6e2d8;
	--bimav-darkest: #0f1a1d;
}

body {
	color: var(--bimav-text);
	background-color: var(--bimav-bg);
}

h2, h3, h4, h5, h6,
h2 a, h3 a, h4 a, h5 a, h6 a {
	color: var(--bimav-heading);
}

/* A quiet caption tied to the homepage introduction photo in either theme. */
.bimav-intro-photo {
	margin: 0;
}

.bimav-intro-photo > img {
	display: block;
}

.bimav-intro-photo > figcaption {
	margin-top: 12px;
	color: var(--bimav-muted);
	font-size: 13px;
	line-height: 1.6;
}

.bimav-intro-photo-title {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
}

/* Marine partner names use the shared palette in both light and dark mode. */
.bimav-marine-partners-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bimav-marine-partners-list > li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	border: 1px solid var(--bimav-border);
	background-color: var(--bimav-surface);
	color: var(--bimav-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	overflow-wrap: anywhere;
}

html :is(.template-background-color-1, .template-background-color-2,
	.template-component-blockquote, .bimav-pricing-steps > li, .bimav-package-extra,
	.template-component-google-map .template-component-google-map-button) {
	background-color: var(--bimav-surface);
}

html :is(.template-component-divider, .template-component-header-subheader > div) {
	background-color: var(--bimav-border);
}

html :is(.bimav-package, .bimav-contact-card) {
	border-color: var(--bimav-border);
}

html :is(.bimav-package-price-value, .bimav-price-list-value, .bimav-service-prices dd,
	.bimav-contact-card-primary > a, .bimav-contact-address-label, .bimav-contact-card-icon) {
	color: var(--bimav-accent);
}

html :is(.bimav-service-prices > div, .bimav-pricing-heading, .bimav-price-list,
	.bimav-price-list > li, .bimav-contact-hours-row, .template-component-form-field,
	.template-component-announcement) {
	border-color: var(--bimav-border);
}

html .bimav-pricing-example {
	border-color: var(--bimav-accent);
	background-color: var(--bimav-raised);
}

html .bimav-pricing-step-number {
	color: var(--bimav-on-accent);
	background-color: var(--bimav-accent);
}

html :is(input, textarea, select) {
	color: var(--bimav-text);
	accent-color: var(--bimav-accent);
}

html :is(a, button, input, textarea, select):focus-visible,
.bimav-relocation-notice .bimav-relocation-booking:focus-visible {
	outline-color: var(--bimav-accent);
}

html :is(.bimav-contact-card-note > a, .bimav-contact-address-link):hover {
	color: var(--bimav-accent);
}

.template-header .template-header-top:is(.template-header-top-sticky, .template-header-top-static),
.template-component-menu-responsive > ul,
.template-component-menu-default > .sf-menu > li ul,
.template-component-menu-default > .sf-menu > li > ul:before,
.flexnav li a, .flexnav li ul li a, .flexnav li.item-with-ul ul, .flexnav .touch-button {
	background-color: var(--bimav-bg);
}

.template-header .template-header-top .template-component-menu-default > .sf-menu > li ul li a:is(:hover, .template-state-selected),
.flexnav li a:is(:hover, .template-state-selected),
.flexnav li.item-with-ul ul a:is(:hover, .template-state-selected) {
	color: var(--bimav-accent);
	background-color: var(--bimav-raised);
	box-shadow: inset 3px 0 0 var(--bimav-accent);
}

.template-component-menu-default > .sf-menu > li ul li a:is(:hover, .template-state-selected) span {
	color: var(--bimav-accent);
}

.flexnav li.item-with-ul ul {
	border-left-color: var(--bimav-accent);
}

.template-footer {
	color: #C3D3CC;
	background-color: var(--bimav-footer);
}

.template-footer a {
	color: #C3D3CC;
}

.template-footer .template-footer-bottom {
	border-color: #3D564D;
}

.bimav-relocation-notice,
.bimav-pricing-cta {
	background-color: var(--bimav-brand);
	background-image: linear-gradient(110deg, var(--bimav-brand-deep), var(--bimav-brand), var(--bimav-brand-end));
	border-color: var(--bimav-brand-deep);
}

/* Floating booking buttons stay white with dark text in either theme. */
:root .bimav-relocation-notice .bimav-relocation-booking {
	color: var(--bimav-brand-deep);
	border-color: var(--bimav-brand-deep);
}

:root .bimav-relocation-notice .bimav-relocation-booking:hover {
	color: #FFFFFF;
	background-color: var(--bimav-brand-deep);
}

.bimav-relocation-notice-icon {
	color: var(--bimav-brand);
}

.bimav-relocation-notice-link:hover .bimav-relocation-notice-icon,
.bimav-relocation-notice-link:focus-visible .bimav-relocation-notice-icon {
	background-color: var(--bimav-brand-deep);
}

.bimav-pricing-cta .template-component-button:hover {
	color: var(--bimav-brand-deep);
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bimav-bg: #101C1A;
	--bimav-surface: #192B27;
	--bimav-raised: #243B35;
	--bimav-text: #D1DED8;
	--bimav-heading: #F1F6F3;
	--bimav-muted: #AEC4BA;
	--bimav-border: #3D564D;
	--bimav-accent: #77D5BD;
	--bimav-on-accent: #102D25;
	--bimav-footer: #0B1613;
	background-color: var(--bimav-bg);
}

html[data-theme="dark"] body {
	color: var(--bimav-text);
	background-color: var(--bimav-bg);
}

html[data-theme="dark"] :is(h2, h3, h4, h5, h6, h2 a, h3 a, h4 a, h5 a, h6 a),
html[data-theme="dark"] .bimav-contact-hours-row > dd {
	color: var(--bimav-heading);
}

html[data-theme="dark"] a {
	color: var(--bimav-accent);
}

html[data-theme="dark"] :is(.template-background-color-1, .template-background-color-2,
	.template-component-blockquote, .bimav-pricing-steps > li, .bimav-package-extra,
	.template-component-google-map .template-component-google-map-button) {
	background-color: var(--bimav-surface);
}

html[data-theme="dark"] :is(.bimav-package, .bimav-contact-card, .fancybox-skin) {
	background-color: var(--bimav-surface);
	border-color: var(--bimav-border);
}

html[data-theme="dark"] .bimav-pricing-example {
	background-color: var(--bimav-raised);
}

html[data-theme="dark"] :is(.bimav-pricing-lead, .bimav-pricing-note,
	.bimav-pricing-steps > li > p, .bimav-package-summary, .bimav-package-meta,
	.bimav-package-extra, .bimav-price-list-note, .bimav-contact-card-note > a,
	.bimav-contact-address-link, .bimav-contact-hours-row > dt,
	.template-widget-service ul li a) {
	color: var(--bimav-text);
}

html[data-theme="dark"] :is(.bimav-package-price-note, .bimav-package-subheading,
	.template-component-form-field label, .template-component-gallery-filter-list > li > a,
	.fancybox-title.fancybox-title-inside-wrap) {
	color: var(--bimav-muted);
}

html[data-theme="dark"] :is(.bimav-package-price-value, .bimav-price-list-value,
	.bimav-service-prices dd, .bimav-contact-card-primary > a, .bimav-contact-address-label,
	.bimav-contact-card-icon, .template-component-list li > span,
	.template-component-header-subheader span, .template-component-italic,
	[class^="template-icon-feature-"], [class*=" template-icon-feature-"]) {
	color: var(--bimav-accent);
}

html[data-theme="dark"] :is(.bimav-service-prices > div, .bimav-pricing-heading,
	.bimav-price-list, .bimav-price-list > li, .bimav-contact-hours-row,
	.template-component-form-field, .template-component-announcement,
	.template-widget-service ul li a, .template-component-gallery-filter-list > li > a,
	.template-component-social-icon-list-3 li a) {
	border-color: var(--bimav-border);
}

html[data-theme="dark"] :is(.template-component-divider, .template-component-header-subheader > div) {
	background-color: var(--bimav-border);
}

/* Keep photographs, video, maps and the white lettering over them unchanged. */
html[data-theme="dark"] :is(.template-header-top.template-header-top-sticky,
	.template-header-top.template-header-top-static) {
	background-color: var(--bimav-surface);
}

html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-component-menu-default > .sf-menu > li > a,
html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-header-top-icon-list a,
html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-icon-meta-menu:before {
	color: var(--bimav-text);
}

html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-component-menu-default > .sf-menu > li > a:is(:hover, .template-state-selected) {
	color: var(--bimav-accent);
}

html[data-theme="dark"] .template-header .template-header-top .template-icon-meta-menu {
	border-color: var(--bimav-border);
}

/* The regular logo is designed for a dark background; keep its dimensions. */
html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-header-top-logo a .template-logo {
	display: inline-block;
}

html[data-theme="dark"] .template-header .template-header-top:is(.template-header-top-sticky,
	.template-header-top-static) .template-header-top-logo a .template-logo-sticky {
	display: none;
}

html[data-theme="dark"] :is(.template-component-menu-default > .sf-menu > li ul,
	.template-component-menu-default > .sf-menu > li > ul:before,
	.template-component-menu-responsive > ul, .flexnav li a, .flexnav li ul li a,
	.flexnav li.item-with-ul ul, .flexnav .touch-button) {
	background-color: var(--bimav-surface);
	border-color: var(--bimav-border);
}

html[data-theme="dark"] .template-header .template-header-top .template-component-menu-default > .sf-menu > li ul li a,
html[data-theme="dark"] .flexnav li a {
	color: var(--bimav-text);
}

html[data-theme="dark"] .template-header .template-header-top .template-component-menu-default > .sf-menu > li ul li a:is(:hover, .template-state-selected),
html[data-theme="dark"] .flexnav li a:is(:hover, .template-state-selected),
html[data-theme="dark"] .flexnav li.item-with-ul ul a:is(:hover, .template-state-selected) {
	color: var(--bimav-accent);
	background-color: var(--bimav-raised);
}

html[data-theme="dark"] :is(input, textarea, select) {
	color: var(--bimav-heading);
	background-color: var(--bimav-surface);
	border-color: var(--bimav-border);
	accent-color: var(--bimav-accent);
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
	color: var(--bimav-muted);
	opacity: 1;
}

html[data-theme="dark"] :is(input, textarea, select):focus-visible {
	outline: 2px solid var(--bimav-accent);
	outline-offset: 2px;
}

html[data-theme="dark"] .bimav-contact-form .bimav-contact-status {
	color: #FFB4AB;
	border-color: #FFB4AB;
}

html[data-theme="dark"] .bimav-contact-page .template-layout-flex.bimav-contact-layout > div.bimav-contact-map-column,
html[data-theme="dark"] .bimav-contact-page .template-layout-flex.bimav-contact-layout > div.bimav-contact-form-column {
	background-color: var(--bimav-surface);
}

html[data-theme="dark"] .template-component-button {
	color: var(--bimav-accent);
	border-color: var(--bimav-accent);
}

html[data-theme="dark"] .template-component-button:hover,
html[data-theme="dark"] .template-component-gallery .template-component-gallery-filter-list > li > a:is(:hover, .template-state-selected) {
	color: var(--bimav-on-accent);
	background-color: var(--bimav-accent);
	border-color: var(--bimav-accent);
}

html[data-theme="dark"] .template-footer {
	background-color: var(--bimav-footer);
}

html[data-theme="dark"] .template-footer,
html[data-theme="dark"] .template-footer a {
	color: var(--bimav-muted);
}

html[data-theme="dark"] .template-footer a:hover {
	color: var(--bimav-heading);
}

html[data-theme="dark"] .bimav-pricing-cta a,
html[data-theme="dark"] .template-color-white .template-component-button {
	color: #FFFFFF;
}

html[data-theme="dark"] .bimav-pricing-cta .template-component-button {
	color: #FFFFFF;
	border-color: #FFFFFF;
}

html[data-theme="dark"] .bimav-pricing-cta .template-component-button:hover {
	color: var(--bimav-brand-deep);
	background-color: #FFFFFF;
}
