/* ==========================================================================
   SeaBridge – theme styles
   --------------------------------------------------------------------------
   Plain, hand-editable CSS. No build step: edit, save, upload.

   Contents
     1.  Brand variables
     2.  Reset (based on Tailwind's open-source "preflight", MIT)
     3.  Base
     4.  Layout: container, sections, split, grids
     5.  Shared components: section title, eyebrow, lead text, cards,
         stats, buttons, text links, arrow
     6.  Header & navigation
     7.  Footer
     8.  Inner-page hero
     9.  Home
     10. Investment Management
     11. Wealth Management
     12. Who We Serve
     13. Our Story
     14. Our Team (cards + bio pop-up)
     15. Contact (+ Contact Form 7)
     16. 404 + default pages
     17. Animations (scroll reveal, hero entrance, Ken Burns)
     18. WordPress admin bar

   Breakpoints (min-width): sm 40rem (640px) · md 48rem (768px)
                            lg 64rem (1024px) · xl 80rem (1280px)
   ========================================================================== */


/* ==========================================================================
   1. Brand variables
   ========================================================================== */

:root {
	/* Colors */
	--sb-navy:        #1b2d45;
	--sb-navy-dark:   #111d2e;
	--sb-navy-light:  #243a57;
	--sb-steel:       #2a6496;
	--sb-steel-light: #4a8bbf;
	--sb-gold:        #b8964e;
	--sb-cream:       #f8f5f0;
	--sb-mist:        #edf2f5;
	--sb-slate:       #4b5563;
	--sb-gray:        #6b7280;
	--sb-white:       #ffffff;
	--sb-error:       #b42318;

	/* Thin divider lines */
	--sb-line:       rgb(27 45 69 / 0.1);   /* navy at 10% */
	--sb-line-light: rgb(255 255 255 / 0.1);

	/* Fonts */
	--sb-font-sans:    'Inter', system-ui, sans-serif;
	--sb-font-display: 'Playfair Display', Georgia, serif;
	--sb-font-accent:  'Libre Baskerville', Georgia, serif;

	/* Motion */
	--sb-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--sb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--sb-transition-colors:
		color 0.15s var(--sb-ease),
		background-color 0.15s var(--sb-ease),
		border-color 0.15s var(--sb-ease),
		text-decoration-color 0.15s var(--sb-ease);
}


/* ==========================================================================
   2. Reset
   ========================================================================== */

*,
::after,
::before,
::backdrop,
::file-selector-button {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0 solid;
}

html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
	font-family: var(--sb-font-sans);
	-webkit-tap-highlight-color: transparent;
}

hr { height: 0; color: inherit; border-top-width: 1px; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

a { color: inherit; text-decoration: inherit; }

b, strong { font-weight: bolder; }

small { font-size: 80%; }

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }

table { text-indent: 0; border-color: inherit; border-collapse: collapse; }

ol, ul, menu { list-style: none; }

img, svg, video, canvas, audio, iframe, embed, object {
	display: block;
	vertical-align: middle;
}

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

button, input, select, optgroup, textarea, ::file-selector-button {
	font: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	letter-spacing: inherit;
	color: inherit;
	border-radius: 0;
	background-color: transparent;
	opacity: 1;
}

::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }

textarea { resize: vertical; }

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
	appearance: button;
}

/* Keep elements with the hidden attribute hidden (used by the mobile menu) */
[hidden]:where(:not([hidden='until-found'])) { display: none !important; }


/* ==========================================================================
   3. Base
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--sb-font-sans);
	font-size: 16px;
	line-height: 1.65;
	background-color: var(--sb-cream);
	color: var(--sb-navy);
	-webkit-font-smoothing: antialiased;
}

.sb-main { flex: 1; }

::selection { background: rgb(42 100 150 / 0.18); }

a, button { text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--sb-steel); outline-offset: 3px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(27 45 69 / 0.25); border-radius: 3px; }

/* Visually hidden, still read by screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border-width: 0;
}

/* Prevents page scroll while the Team bio pop-up is open (set by theme.js) */
.sb-no-scroll { overflow: hidden; }

/* Italic serif accent used in headlines (e.g. Home hero line 2) */
.sb-accent {
	font-family: var(--sb-font-accent);
	font-weight: 400;
	font-style: italic;
	letter-spacing: -0.035em;
}


/* ==========================================================================
   4. Layout
   ========================================================================== */

/* Centered content column */
.sb-container {
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}
.sb-container--narrow { max-width: 56rem; }

@media (min-width: 64rem) {
	.sb-container { padding-inline: 3rem; }
}

/* Standard page section: vertical padding + background color */
.sb-section { padding-block: 6rem; }
.sb-section--white { background-color: var(--sb-white); }
.sb-section--cream { background-color: var(--sb-cream); }
.sb-section--mist  { background-color: var(--sb-mist); }
.sb-section--navy  { background-color: var(--sb-navy); }

@media (min-width: 64rem) {
	.sb-section { padding-block: 8rem; }
}

/* Two-part layout: narrow left column (title) + wide right column */
.sb-split { display: grid; gap: 3rem; }

@media (min-width: 64rem) {
	.sb-split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.sb-split__aside { grid-column: span 4 / span 4; }
	.sb-split__main  { grid-column: span 8 / span 8; }
}

/* Card grids
   .sb-grid--fill  : 1px divider lines from the grid background (cards need a background color)
   .sb-grid--lines : 1px divider lines drawn by each card, so a short last row
                     leaves blank space instead of a gray block
   Column modifiers: --2 (2 from tablet) · --3 (3 from tablet) · --sm-2 (2 from 640px)
                     --2-3 · --2-4 · --2-5 (2 on tablet, then 3/4/5 on desktop) */
.sb-grid { display: grid; margin-top: 3.5rem; }

.sb-grid--fill { gap: 1px; background-color: var(--sb-line); }
.sb-grid--fill.sb-grid--on-dark { background-color: var(--sb-line-light); }

.sb-grid--lines { gap: 1px; overflow: hidden; }
.sb-grid--lines > * {
	box-shadow:
		1px 0 0 0 var(--sb-line),
		0 1px 0 0 var(--sb-line),
		1px 1px 0 0 var(--sb-line);
}

@media (min-width: 40rem) {
	.sb-grid--sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
	.sb-grid--2,
	.sb-grid--2-3,
	.sb-grid--2-4,
	.sb-grid--2-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-grid--3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
	.sb-grid--2-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sb-grid--2-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sb-grid--2-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}


/* ==========================================================================
   5. Shared components
   ========================================================================== */

/* Section title (output by sb_section_title() in functions.php) */
.sb-eyebrow,
.sb-section-title__eyebrow {
	margin-bottom: 1rem;
	color: var(--sb-steel);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.sb-section-title__heading {
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.875rem;
	line-height: 1.25;
}

.sb-section-title--light .sb-section-title__eyebrow { color: var(--sb-steel-light); }
.sb-section-title--light .sb-section-title__heading { color: var(--sb-white); }

@media (min-width: 64rem) {
	.sb-section-title__heading { font-size: 2.25rem; }
}

/* Lead paragraph under a section title */
.sb-lead {
	max-width: 56rem;
	margin-top: 2rem;
	color: var(--sb-slate);
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 300;
}
.sb-lead--3xl     { max-width: 48rem; }
.sb-lead--close   { margin-top: 1.5rem; }
.sb-lead--on-dark { color: rgb(255 255 255 / 0.6); }

/* Cards (inside .sb-grid) */
.sb-card              { padding: 2.5rem; }
.sb-card--compact     { padding: 2rem; }
.sb-card--compact-lg  { padding: 2rem; }
.sb-card--white       { background-color: var(--sb-white); }
.sb-card--cream       { background-color: var(--sb-cream); }
.sb-card--navy        { background-color: var(--sb-navy); }

@media (min-width: 64rem) {
	.sb-card--compact-lg { padding: 2.5rem; }
}

.sb-card__title {
	margin-bottom: 1rem;
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.25rem;
	line-height: 1.75rem;
}
.sb-card__title--sm    { font-size: 1.125rem; }
.sb-card__title--lg    { font-size: 1.5rem; line-height: 2rem; margin-bottom: 1.25rem; }
.sb-card__title--light { color: var(--sb-white); margin-bottom: 1.25rem; }

.sb-card__text {
	color: var(--sb-slate);
	font-size: 15px;
	line-height: 1.75rem;
}
.sb-card__text--light { color: rgb(255 255 255 / 0.7); }

/* Stats (large number + label) */
.sb-stats { margin-top: 4rem; }

.sb-stat__value {
	margin-bottom: 0.5rem;
	color: var(--sb-steel);
	font-family: var(--sb-font-display);
	font-size: 1.875rem;
	line-height: 2.25rem;
}

.sb-stat__label {
	color: var(--sb-slate);
	font-size: 0.75rem;
	line-height: 1rem;
}
.sb-stat__label--relaxed { line-height: 1.625; }

/* Investment Management + Wealth Management stats: white cards, centered (client request) */
.sb-im-stats > .sb-card,
.sb-wm-stats > .sb-card {
	background-color: var(--sb-white);
	text-align: center;
}

/* Buttons */
.sb-btn {
	display: inline-flex;
	align-items: center;
	padding: 1rem 2rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: 0.025em;
	transition: var(--sb-transition-colors);
}

.sb-btn--white {
	background-color: var(--sb-white);
	color: var(--sb-navy);
	font-weight: 500;
}
.sb-btn--white:hover { background-color: var(--sb-cream); }

.sb-btn--outline-light {
	border: 1px solid rgb(255 255 255 / 0.4);
	color: var(--sb-white);
}
.sb-btn--outline-light:hover {
	background-color: var(--sb-white);
	color: var(--sb-navy);
}

/* Text links under sections ("Our Story →", "Learn More →") */
.sb-text-link {
	display: inline-flex;
	margin-top: 2.5rem;
	color: var(--sb-steel);
	transition: var(--sb-transition-colors);
}
.sb-text-link:hover { color: var(--sb-navy); }
.sb-text-link--close { margin-top: 2rem; }
.sb-text-link--light { color: var(--sb-steel-light); }
.sb-text-link--light:hover { color: var(--sb-white); }

/* Trailing arrow: add class="sb-arrow" to any link or button.
   The non-breaking space keeps the arrow on the same line as the last word;
   the "/ ''" stops screen readers announcing "right arrow". */
.sb-arrow::after {
	content: "\00a0\2192";
	content: "\00a0\2192" / "";
	position: relative;
	left: 0.25em;
	transition: left 0.2s ease;
}
.sb-arrow:hover::after,
.sb-arrow:focus-visible::after { left: 0.45em; }


/* ==========================================================================
   6. Header & navigation
   Front page: transparent over the hero, then .is-solid (white) on scroll.
   Other pages: always .is-solid.
   ========================================================================== */

.sb-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.sb-skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 60;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.5rem 1rem;
	overflow: visible;
	clip-path: none;
	white-space: normal;
	background-color: var(--sb-white);
	color: var(--sb-navy);
}

.sb-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
	z-index: 50;
	background-image: linear-gradient(to bottom in oklab, rgb(0 0 0 / 0.5), transparent);
	transition:
		color 0.3s var(--sb-ease),
		background-color 0.3s var(--sb-ease),
		border-color 0.3s var(--sb-ease);
}
.sb-header.is-solid {
	background-image: none;
	background-color: rgb(255 255 255 / 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--sb-line);
}

.sb-header__inner {
	max-width: 80rem;
	height: 5rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo: white over the hero, full-color once solid */
.sb-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.sb-logo__img { height: 1.75rem; width: auto; object-fit: contain; }
.sb-logo__img--dark { display: none; }
.sb-header.is-solid .sb-logo__img--light { display: none; }
.sb-header.is-solid .sb-logo__img--dark  { display: block; }

/* Desktop nav (1280px and up) */
.sb-nav { display: none; }

.sb-nav-link {
	color: rgb(255 255 255 / 0.8);
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: 0.025em;
	transition: var(--sb-transition-colors);
}
.sb-nav-link:hover { color: var(--sb-white); }
.sb-header.is-solid .sb-nav-link { color: rgb(27 45 69 / 0.7); }
.sb-header.is-solid .sb-nav-link:hover { color: var(--sb-navy); }

.sb-nav-link.is-active {
	font-weight: 500;
	text-decoration-line: underline;
	text-decoration-color: var(--sb-steel);
	text-decoration-thickness: 2px;
}

/* Dropdowns – open on hover, keyboard focus, or click (.is-open via theme.js) */
.sb-dropdown { position: relative; }

.sb-dropdown__panel {
	position: absolute;
	top: 100%;
	left: 0;
	width: 14rem;
	padding-top: 0.75rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s var(--sb-ease);
}
.sb-dropdown:hover .sb-dropdown__panel,
.sb-dropdown:focus-within .sb-dropdown__panel,
.sb-dropdown.is-open .sb-dropdown__panel {
	visibility: visible;
	opacity: 1;
}

.sb-dropdown__menu {
	padding-block: 0.5rem;
	background-color: var(--sb-white);
	border: 1px solid var(--sb-line);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.sb-dropdown__link {
	display: block;
	padding: 0.75rem 1.25rem;
	color: rgb(27 45 69 / 0.7);
	font-size: 13px;
	transition: var(--sb-transition-colors);
}
.sb-dropdown__link:hover,
.sb-dropdown__link.is-current {
	color: var(--sb-navy);
	background-color: var(--sb-cream);
}

/* Header buttons (Appearance → Menus → Header Buttons). Last one = solid. */
.sb-header-buttons { display: none; }

.sb-header-btn {
	padding: 0.5rem 1rem;
	border: 1px solid;
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: var(--sb-transition-colors);
}

.sb-header-btn--ghost { border-color: rgb(255 255 255 / 0.35); color: var(--sb-white); }
.sb-header-btn--ghost:hover { background-color: rgb(255 255 255 / 0.1); }
.sb-header.is-solid .sb-header-btn--ghost { border-color: rgb(27 45 69 / 0.25); color: var(--sb-navy); }
.sb-header.is-solid .sb-header-btn--ghost:hover { background-color: var(--sb-cream); }

.sb-header-btn--solid { border-color: rgb(255 255 255 / 0.35); color: var(--sb-white); }
.sb-header-btn--solid:hover { background-color: var(--sb-white); color: var(--sb-navy); }
.sb-header.is-solid .sb-header-btn--solid {
	border-color: var(--sb-navy);
	background-color: var(--sb-navy);
	color: var(--sb-white);
}
.sb-header.is-solid .sb-header-btn--solid:hover { background-color: var(--sb-navy-light); color: var(--sb-white); }

/* Mobile menu toggle (below 1280px) */
.sb-menu-toggle { padding: 0.5rem; color: var(--sb-white); }
.sb-header.is-solid .sb-menu-toggle { color: var(--sb-navy); }

.sb-menu-toggle__bar {
	display: block;
	width: 1.5rem;
	height: 1px;
	margin-bottom: 0.375rem;
	background-color: currentColor;
}
.sb-menu-toggle__bar:last-child { margin-bottom: 0; }

/* Mobile menu panel */
.sb-mobile-menu {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 5rem);
	overflow-y: auto;
	padding: 1.25rem 1.5rem;
	background-color: var(--sb-white);
	border-top: 1px solid var(--sb-line);
}

.sb-mobile-menu__heading {
	padding-top: 0.25rem;
	padding-bottom: 0.5rem;
	color: var(--sb-steel);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.sb-mobile-menu__heading:not(:first-child) { padding-top: 1.25rem; }

.sb-mobile-menu__link {
	padding-block: 0.625rem;
	color: var(--sb-navy);
	font-size: 1rem;
	line-height: 1.5rem;
	border-bottom: 1px solid var(--sb-line);
}

/* Tap/hover color + current page (client request) */
.sb-mobile-menu__link { transition: var(--sb-transition-colors); }
.sb-mobile-menu__link:hover,
.sb-mobile-menu__link:active,
.sb-mobile-menu__link:focus-visible,
.sb-mobile-menu__link.is-current { color: var(--sb-steel); }
.sb-mobile-menu__link.is-current { font-weight: 500; }

.sb-mobile-menu__cta {
	align-self: flex-start;
	margin-top: 1.25rem;
	padding: 0.75rem 1.25rem;
	background-color: var(--sb-navy);
	color: var(--sb-white);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: var(--sb-transition-colors);
}
.sb-mobile-menu__cta:hover { background-color: var(--sb-navy-light); }

@media (min-width: 64rem) {
	.sb-header__inner { padding-inline: 3rem; }
}

@media (min-width: 80rem) {
	.sb-nav            { display: flex; align-items: center; gap: 1.25rem; }
	.sb-header-buttons { display: flex; align-items: center; gap: 0.75rem; }
	.sb-menu-toggle,
	.sb-mobile-menu    { display: none; }
}


/* ==========================================================================
   7. Footer
   ========================================================================== */

.sb-footer {
	position: relative;
	padding-block: 4rem;
	background-color: var(--sb-navy-dark);
	color: var(--sb-white);
}

/* Optional faint photo (assets/img/footer-bg.jpg) */
.sb-footer__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 65%;
	opacity: 0.12;
}

.sb-footer__container { position: relative; z-index: 10; }

.sb-footer__grid {
	display: grid;
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.sb-footer__logo-link { display: inline-block; margin-bottom: 1.25rem; }
.sb-footer__logo { height: 1.75rem; width: auto; object-fit: contain; }

.sb-footer__blurb {
	max-width: 20rem;
	color: rgb(255 255 255 / 0.5);
	font-size: 0.875rem;
	line-height: 1.625;
	font-weight: 300;
}

.sb-footer__contact {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
}
.sb-footer__contact > :not(:last-child) { margin-bottom: 0.25rem; }

.sb-footer__contact-link { color: rgb(255 255 255 / 0.35); transition: var(--sb-transition-colors); }
.sb-footer__contact-link:hover { color: var(--sb-steel-light); }
.sb-footer__contact-text { color: rgb(255 255 255 / 0.35); }

.sb-footer__social { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.sb-footer__social-link { color: rgb(255 255 255 / 0.3); transition: color 0.2s var(--sb-ease); }
.sb-footer__social-link:hover { color: rgb(255 255 255 / 0.7); }

.sb-footer__social-link svg,
.sb-footer__social-link img { width: 2rem; height: 2rem; }

.sb-footer__heading {
	margin-bottom: 1rem;
	color: rgb(255 255 255 / 0.3);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sb-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }

.sb-footer__link {
	color: rgb(255 255 255 / 0.5);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: var(--sb-transition-colors);
}
.sb-footer__link:hover { color: var(--sb-white); }

.sb-footer__disclosure-text {
	color: rgb(255 255 255 / 0.55);
	font-size: 13px;
	line-height: 1.625;
	font-weight: 300;
}

.sb-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--sb-line-light);
}

.sb-footer__copyright {
	color: rgb(255 255 255 / 0.3);
	font-size: 0.75rem;
	line-height: 1rem;
}

.sb-footer__docs { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: 0.5rem; }

.sb-footer__doc-link {
	color: rgb(255 255 255 / 0.3);
	font-size: 0.75rem;
	line-height: 1rem;
	transition: var(--sb-transition-colors);
}
.sb-footer__doc-link:hover { color: rgb(255 255 255 / 0.6); }

@media (min-width: 40rem) {
	.sb-footer__bottom { flex-direction: row; align-items: center; }
}

@media (min-width: 48rem) {
	.sb-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   8. Inner-page hero (template-parts/hero.php) – also used by 404
   ========================================================================== */

.sb-hero {
	position: relative;
	padding-top: 8rem;
	padding-bottom: 6rem;
	overflow: hidden;
}

/* Photo is set per page (inline background-image from the ACF field) */
.sb-hero-bg {
	position: absolute;
	inset: 0;
	background-color: var(--sb-navy);
	background-size: cover;
	background-position: center;
}

.sb-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: rgb(17 29 46 / 0.85);
}

.sb-hero-content { position: relative; z-index: 10; }

.sb-hero-eyebrow {
	margin-bottom: 1.5rem;
	color: var(--sb-steel-light);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.sb-hero-title {
	max-width: 56rem;
	margin-bottom: 1.5rem;
	color: var(--sb-white);
	font-family: var(--sb-font-display);
	font-size: 2.25rem;
	line-height: 1.25;
}

.sb-hero-subhead {
	max-width: 42rem;
	margin-bottom: 2.5rem;
	color: rgb(255 255 255 / 0.65);
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 300;
}

@media (min-width: 40rem) {
	.sb-hero-title { font-size: 3rem; }
}

@media (min-width: 64rem) {
	.sb-hero { padding-top: 11rem; padding-bottom: 8rem; }
	.sb-hero-title { font-size: 3.75rem; }
}


/* ==========================================================================
   9. Home
   ========================================================================== */

/* Hero – full screen, slow zoom (Ken Burns) + parallax on scroll */
.sb-home-hero {
	position: relative;
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

/* Outer layer moves on scroll (theme.js); inner layer zooms */
.sb-home-hero-parallax {
	position: absolute;
	top: -10%;
	inset-inline: 0;
	height: 120%;
	will-change: transform;
}

.sb-home-hero-bg {
	position: absolute;
	inset: 0;
	background-color: var(--sb-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.sb-home-hero-overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to top in oklab,
		var(--sb-navy-dark) 0%,
		rgb(17 29 46 / 0.65) 50%,
		rgb(17 29 46 / 0.3) 100%
	);
}

.sb-home-hero-content {
	position: relative;
	z-index: 10;
	width: 100%;
	padding-bottom: 6rem;
}

.sb-home-hero-title {
	max-width: 56rem;
	margin-bottom: 2rem;
	color: var(--sb-white);
	font-family: var(--sb-font-display);
	font-size: 2.25rem;
	line-height: 1.1;
}

.sb-home-hero-subhead {
	max-width: 42rem;
	margin-bottom: 2.5rem;
	color: rgb(255 255 255 / 0.7);
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 300;
}

@media (min-width: 40rem) {
	.sb-home-hero-title { font-size: 3rem; }
}

@media (min-width: 64rem) {
	.sb-home-hero-content { padding-bottom: 8rem; }
	.sb-home-hero-title   { font-size: 3.5rem; }
}

/* Mobile: hero sizes to its content instead of full screen, which removes
   the large gap above the H1 (client request). Must stay after the rules above. */
@media (max-width: 47.999rem) {
	.sb-home-hero { height: auto; min-height: 0; padding-top: 9rem; }
	.sb-home-hero-content { padding-bottom: 4rem; }
}

/* Capabilities – large link cards */
.sb-home-capabilities-link {
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.5rem;
	line-height: 2rem;
	transition: var(--sb-transition-colors);
}
.sb-home-capabilities-link:hover { color: var(--sb-steel); }

/* Darker divider for the Capabilities cards (client request) */
.sb-home-capabilities-cards { background-color: #D1D6DC; }

/* Intentionally Different – principles with icons */
.sb-home-principles-intro {
	max-width: 42rem;
	margin-top: 1.5rem;
	color: var(--sb-slate);
	font-weight: 300;
}

.sb-home-principle-icon { width: 2.25rem; height: 2.25rem; margin-bottom: 1.75rem; }
.sb-home-principle-icon img { width: 100%; height: 100%; object-fit: contain; }

.sb-home-principle-title {
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.25rem;
	line-height: 1.375;
}

/* Who We Serve preview – client types */
.sb-home-client-title {
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.25rem;
	line-height: 1.75rem;
}

/* Darker dividers for the Who We Serve preview (client request) */
.sb-home-clients { --sb-line: #D1D6DC; }

/* ==========================================================================
   10. Investment Management
   ========================================================================== */

/* Feature panel – photo with statement overlay */
.sb-im-feature {
	padding-block: 4rem;
	background-color: var(--sb-white);
}

.sb-im-feature__panel {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	background-color: var(--sb-navy);
}

.sb-im-feature__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Darkens the left and bottom so the text stays legible */
.sb-im-feature__shade {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to top in oklab, rgb(17 29 46 / 0.7) 0%, transparent 50%, transparent 100%),
		linear-gradient(to right in oklab, rgb(17 29 46 / 0.95) 0%, rgb(17 29 46 / 0.65) 50%, rgb(17 29 46 / 0.1) 100%);
}

.sb-im-feature__inner {
	position: relative;
	z-index: 10;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
}

.sb-im-feature__content { max-width: 42rem; padding: 2rem; }

.sb-im-feature__statement {
	margin-bottom: 2rem;
	color: var(--sb-white);
	font-family: var(--sb-font-display);
	font-size: 1.5rem;
	line-height: 1.375;
}

.sb-im-feature__text {
	max-width: 36rem;
	color: rgb(255 255 255 / 0.75);
	font-size: 1rem;
	line-height: 2rem;
	font-weight: 300;
}

/* Two Teams (navy) */
.sb-im-teams__intro {
	max-width: 48rem;
	margin-top: 1.5rem;
	color: rgb(255 255 255 / 0.6);
}

@media (min-width: 40rem) {
	.sb-im-feature__content { padding: 3rem; }
}

/* Tablet only: a lone last pillar spans both columns */
@media (min-width: 48rem) and (max-width: 63.999rem) {
	.sb-im-pillars > :last-child:nth-child(odd) { grid-column: span 2 / span 2; }
}

@media (min-width: 64rem) {
	.sb-im-feature { padding-block: 6rem; }
	.sb-im-feature__panel,
	.sb-im-feature__inner { min-height: 640px; }
	.sb-im-feature__content { padding: 4rem; }
	.sb-im-feature__statement { font-size: 1.875rem; }
	.sb-im-feature__text { font-size: 1.125rem; }
}


/* ==========================================================================
   11. Wealth Management
   ========================================================================== */

.sb-wm-intro__text {
	max-width: 56rem;
	color: var(--sb-navy);
	font-size: 1.25rem;
	line-height: 1.625;
	font-weight: 300;
}


/* ==========================================================================
   12. Who We Serve
   ========================================================================== */

.sb-wws-qualities__intro {
	margin-top: 1.5rem;
	color: var(--sb-slate);
	font-weight: 300;
}

.sb-wws-quality-list { margin-top: 0; align-self: start; }

.sb-wws-quality { display: flex; gap: 1rem; padding: 1.75rem; }

.sb-wws-quality__check {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.125rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(42 100 150 / 0.4);
	border-radius: 9999px;
	color: var(--sb-steel);
}
.sb-wws-quality__check svg { width: 0.875rem; height: 0.875rem; }


/* ==========================================================================
   13. Our Story
   ========================================================================== */

.sb-os-story__body {
	color: var(--sb-slate);
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 300;
}
.sb-os-story__body > :not(:last-child) { margin-bottom: 1.5rem; }

.sb-os-principles__intro { margin-top: 1.5rem; color: var(--sb-slate); }

.sb-os-value__icon { width: 2rem; height: 2rem; margin-bottom: 1.75rem; }
.sb-os-value__icon img { width: 100%; height: 100%; object-fit: contain; }


/* ==========================================================================
   14. Our Team
   ========================================================================== */

.sb-team-grid { display: grid; gap: 1.5rem; }

.sb-team-card {
	display: flex;
	flex-direction: column;
	background-color: var(--sb-white);
	border: 1px solid var(--sb-line);
}

/* Headshot: grayscale, turns to color on hover */
.sb-team-photo {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: rgb(27 45 69 / 0.05);
}

.sb-team-photo__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	filter: contrast(0.96) grayscale(100%);
	transition: filter 0.5s var(--sb-ease);
}
.sb-team-card:hover .sb-team-photo__img { filter: contrast(1) grayscale(0%); }

.sb-team-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
}

.sb-team-name {
	margin-bottom: 0.5rem;
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.5rem;
	line-height: 1.25;
}

.sb-team-title {
	margin-bottom: 1.25rem;
	color: var(--sb-steel);
	font-size: 0.75rem;
	line-height: 1.625;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sb-team-short {
	margin-bottom: 1.75rem;
	color: var(--sb-slate);
	font-size: 15px;
	line-height: 1.75rem;
}

.sb-team-bio-btn {
	align-self: flex-start;
	margin-top: auto;
	color: var(--sb-steel);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--sb-transition-colors);
}
.sb-team-bio-btn:hover { color: var(--sb-navy); }

/* Bio pop-up (native <dialog>) */
.sb-bio-dialog {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 1rem;
	overflow-y: auto;
	background-color: transparent;
}
.sb-bio-dialog::backdrop {
	background-color: rgb(17 29 46 / 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.sb-bio {
	position: relative;
	max-width: 64rem;
	margin-inline: auto;
	background-color: var(--sb-white);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.sb-bio__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 10;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgb(255 255 255 / 0.9);
	color: var(--sb-navy);
	border: 1px solid var(--sb-line);
	cursor: pointer;
	transition: var(--sb-transition-colors);
}
.sb-bio__close:hover { background-color: var(--sb-cream); }
.sb-bio__close svg { width: 1.25rem; height: 1.25rem; }

.sb-bio__layout { display: grid; }

.sb-bio__photo { min-height: 100%; background-color: var(--sb-steel); }

.sb-bio__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top;
	filter: grayscale(100%);
}

.sb-bio__content { padding: 2rem; }

.sb-bio__role {
	margin-bottom: 1rem;
	color: var(--sb-steel);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sb-bio__name {
	margin-bottom: 2.25rem;
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 1.875rem;
	line-height: 1.25;
}

.sb-bio__body {
	color: var(--sb-slate);
	font-size: 15px;
	line-height: 1.75rem;
}
.sb-bio__body > :not(:last-child) { margin-bottom: 1.5rem; }
.sb-bio__body a { color: var(--sb-steel); text-decoration-line: underline; }

@media (min-width: 40rem) {
	.sb-bio-dialog { padding: 2rem; }
	.sb-bio__content { padding: 3rem; }
	.sb-bio__name { font-size: 2.25rem; }
	.sb-bio__body { font-size: 1rem; }
}

@media (min-width: 48rem) {
	.sb-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
	.sb-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
	.sb-team-card__body { padding: 2rem; }
	.sb-bio-dialog { padding: 3rem; }
	.sb-bio__layout { grid-template-columns: minmax(280px, 0.75fr) 1.5fr; }
	.sb-bio__content { padding: 4rem; }
}


/* ==========================================================================
   15. Contact
   ========================================================================== */

.sb-contact__grid { display: grid; gap: 4rem; }

.sb-contact__intro {
	margin-bottom: 3rem;
	color: var(--sb-gray);
	font-size: 1rem;
	line-height: 1.625;
	font-weight: 300;
}
.sb-contact__intro--form { margin-bottom: 2rem; }

.sb-contact__details > :not(:last-child) { margin-bottom: 2.5rem; }

.sb-contact__label {
	margin-bottom: 0.5rem;
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
}

.sb-contact__email {
	color: var(--sb-steel);
	font-size: 1rem;
	line-height: 1.5rem;
	word-break: break-all;
	transition: var(--sb-transition-colors);
}
.sb-contact__email:hover { color: var(--sb-navy); }

.sb-contact__phone {
	color: var(--sb-slate);
	font-size: 1rem;
	line-height: 1.5rem;
	transition: var(--sb-transition-colors);
}
.sb-contact__phone:hover { color: var(--sb-navy); }

.sb-contact__address {
	color: var(--sb-slate);
	font-size: 1rem;
	line-height: 1.625;
	font-weight: 300;
}

/* Client Login box */
.sb-contact-login {
	margin-top: 4rem;
	padding: 2rem;
	background-color: var(--sb-navy);
}

.sb-contact-login__label {
	margin-bottom: 0.75rem;
	color: rgb(255 255 255 / 0.5);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sb-contact-login__text {
	margin-bottom: 1.25rem;
	color: rgb(255 255 255 / 0.7);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 300;
}

.sb-contact-login__link {
	display: inline-flex;
	align-items: center;
	color: var(--sb-steel-light);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	transition: var(--sb-transition-colors);
}
.sb-contact-login__link:hover { color: var(--sb-white); }

@media (min-width: 64rem) {
	.sb-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact Form 7 – the form's markup comes from CF7's Form tab (see the
   CF7 setup guide), so it's styled here by element. */
.sb-cf7 .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.sb-cf7 .sb-form-row { display: grid; gap: 1.25rem; }

.sb-cf7 label {
	display: block;
	margin-bottom: 0.5rem;
	color: #9ca3af;
	font-size: 0.75rem;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.sb-cf7 .wpcf7-form-control-wrap { display: block; }

.sb-cf7 input[type="text"],
.sb-cf7 input[type="email"],
.sb-cf7 input[type="tel"],
.sb-cf7 textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--sb-white);
	border: 1px solid #e5e7eb;
	border-radius: 0;
	outline: none;
	color: var(--sb-navy);
	font-size: 0.875rem;
	transition: border-color 0.15s ease;
}
.sb-cf7 textarea { height: 7.5rem; resize: none; }
.sb-cf7 input:focus,
.sb-cf7 textarea:focus { border-color: var(--sb-steel); }

.sb-cf7 .sb-form-submit { display: flex; align-items: center; gap: 1rem; }

.sb-cf7 .wpcf7-submit {
	padding: 1rem 2rem;
	background: var(--sb-navy);
	color: var(--sb-white);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.sb-cf7 .wpcf7-submit:hover { background: var(--sb-navy-light); }
.sb-cf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: wait; }
.sb-cf7 .wpcf7-spinner { margin: 0; }

/* Validation */
.sb-cf7 .wpcf7-not-valid { border-color: var(--sb-error) !important; }
.sb-cf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.375rem;
	color: var(--sb-error);
	font-size: 0.75rem;
}

/* Status messages (errors / spam / failed) */
.sb-cf7 .wpcf7-response-output {
	margin: 0 !important;
	padding: 1rem 1.25rem !important;
	background: var(--sb-white);
	border: 1px solid #e5e7eb !important;
	color: var(--sb-slate);
	font-size: 0.875rem;
}
.sb-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.sb-cf7 .wpcf7-form.unaccepted .wpcf7-response-output,
.sb-cf7 .wpcf7-form.payment-required .wpcf7-response-output,
.sb-cf7 .wpcf7-form.failed .wpcf7-response-output,
.sb-cf7 .wpcf7-form.aborted .wpcf7-response-output,
.sb-cf7 .wpcf7-form.spam .wpcf7-response-output {
	border-color: #fbd5d1 !important;
	color: var(--sb-error);
}

/* Sent: hide the fields and show only the thank-you box (matches the design) */
.sb-cf7 .wpcf7-form.sent > *:not(.wpcf7-response-output) { display: none; }
.sb-cf7 .wpcf7-form.sent .wpcf7-response-output {
	padding: 2.5rem !important;
	color: var(--sb-gray);
	font-weight: 300;
}

@media (min-width: 40rem) {
	.sb-cf7 .sb-form-row { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   16. 404 + default pages
   ========================================================================== */

.sb-404 {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding-top: 8rem;
	padding-bottom: 6rem;
	overflow: hidden;
	background-color: var(--sb-navy);
}

.sb-404__content { position: relative; z-index: 10; width: 100%; }
.sb-404__title { max-width: 48rem; }

.sb-404__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.sb-404__links {
	max-width: 48rem;
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--sb-line-light);
}

.sb-404__links-label {
	margin-bottom: 1.25rem;
	color: rgb(255 255 255 / 0.4);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sb-404__links-list { display: flex; flex-wrap: wrap; column-gap: 2rem; row-gap: 0.75rem; }

.sb-404__link {
	color: rgb(255 255 255 / 0.7);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: var(--sb-transition-colors);
}
.sb-404__link:hover { color: var(--sb-white); }

/* Fallback template (index.php) and default page content (page.php) */
.sb-default { padding-top: 10rem; padding-bottom: 6rem; }

.sb-default__title {
	margin-bottom: 2rem;
	color: var(--sb-navy);
	font-family: var(--sb-font-display);
	font-size: 2.25rem;
	line-height: 1.25;
}

.sb-prose {
	color: var(--sb-slate);
	font-size: 1.125rem;
	line-height: 1.625;
	font-weight: 300;
}

@media (min-width: 64rem) {
	.sb-404 { padding-top: 10rem; padding-bottom: 8rem; }
	.sb-default__title { font-size: 3rem; }
}


/* ==========================================================================
   17. Animations
   ========================================================================== */

/* Scroll reveal: theme.js adds .visible as elements enter the viewport */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.75s var(--sb-ease-out),
		transform 0.75s var(--sb-ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }
.reveal-delay-5 { transition-delay: 0.6s; }

/* Hero text entrance */
@keyframes heroFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hero-tag  { animation: heroFadeUp 0.9s var(--sb-ease-out) 0.3s both; }
.hero-h1   { animation: heroFadeUp 0.9s var(--sb-ease-out) 0.55s both; }
.hero-body { animation: heroFadeUp 0.9s var(--sb-ease-out) 0.8s both; }
.hero-cta  { animation: heroFadeUp 0.9s var(--sb-ease-out) 1s both; }

/* Home hero Ken Burns: slow zoom + drift. Uses transform (not background-size)
   so the image always covers its box, at any screen size. */
@keyframes kenburns {
	0%   { transform: scale(1.1) translateY(0); }
	50%  { transform: scale(1.2) translateY(-3%); }
	100% { transform: scale(1.1) translateY(0); }
}
.hero-kenburns {
	animation: kenburns 18s ease-in-out infinite;
	transform-origin: center 45%;
}

/* Respect "reduce motion" device settings */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-kenburns, .hero-tag, .hero-h1, .hero-body, .hero-cta { animation: none; }
}


/* ==========================================================================
   18. WordPress admin bar (logged-in users only)
   Pushes the fixed header below the bar.
   ========================================================================== */

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

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

/* Below 600px WordPress lets the admin bar scroll away */
@media (max-width: 600px) {
	body.admin-bar .sb-header { top: 0; }
	body.admin-bar #wpadminbar { position: absolute; }
}


/* Cookie Yes */
.cky-btn-accept {background: #2a6496 !important; border: 2px solid #2a6496 !important;}
.cky-btn-reject {background: #2a6496 !important; border: 2px solid #2a6496 !important; color: #fff !important;}
.cky-btn-customize {background: transparent !important; border: 2px solid #2a6496 !important; color: #2a6496 !important;}
.cky-btn-revisit-wrapper{background: #2a6496 !important;}

/* OneTap */
.onetap-container-toggle .onetap-toggle img.design-size2{width: 45px !important; height: 45px !important;}