/*
Theme Name: Schaller Preservation
Description: A WordPress theme recreating the public personalconsult.com presentation.
Version: 1.2.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: schaller-preservation
*/

:root {
	--sp-navy: #1f2f5c;
	--sp-deep: #0e1834;
	--sp-teal: #0a6c74;
	--sp-gold: #fdb602;
	--sp-pale: #f7f7f7;
	--sp-ink: #121820;
	--sp-body: "Plus Jakarta Sans", Arial, sans-serif;
	--sp-heading: Poppins, Arial, sans-serif;
	--sp-content-width: 1240px;
	--sp-header-height: 120px;
	--ast-global-color-0: var(--sp-navy);
	--ast-global-color-1: var(--sp-teal);
	--ast-global-color-2: var(--sp-navy);
	--ast-global-color-3: var(--sp-deep);
	--ast-global-color-4: var(--sp-navy);
	--ast-global-color-5: var(--sp-gold);
	--ast-global-color-6: var(--sp-pale);
	--ast-global-color-7: var(--sp-pale);
	--ast-global-color-8: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--sp-header-height) + 10px); }
body { margin: 0; font: 400 18px/1.65 var(--sp-body); color: var(--sp-ink); background: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--sp-deep); font-family: var(--sp-heading); font-weight: 600; line-height: 1.25; margin: 0 0 .55em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
p, ul, ol, blockquote, figure { margin: 0 0 1em; }
figure { margin-inline: 0; }
p, li, td, th, a { overflow-wrap: anywhere; }
a { color: var(--sp-teal); }
a:hover { color: var(--sp-navy); }
img, video { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
iframe { max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--sp-gold); outline-offset: 3px; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.sp-skip { position: fixed; z-index: 20; inset: .5rem auto auto 1rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.sp-skip:focus { transform: none; }

.sp-header { position: sticky; top: 0; z-index: 10; background: var(--sp-deep); color: white; font-size: 16px; }
.admin-bar .sp-header { top: 32px; }
.home .sp-header { background: transparent; }
.home .sp-header.sp-scrolled { background: var(--sp-deep); }
.sp-header a, .sp-footer a { color: inherit; text-decoration: none; }
.sp-header a:hover, .sp-footer a:hover { color: var(--sp-gold); }
.sp-header-top, .sp-header-primary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-inline: 35px; }
.sp-header-top { min-height: 60px; padding-top: 20px; }
.sp-header-primary { min-height: 60px; padding-bottom: 10px; }
.sp-brand { flex: 0 1 500px; min-width: 220px; }
.sp-brand img { display: block; width: min(100%, 500px); height: auto; }
.sp-header-contact { display: flex; align-items: center; gap: 1.25rem; font-weight: 600; }
.sp-header-contact span { color: white; font-size: 1.1em; }
.sp-social { display: flex; gap: .7rem; align-items: center; }
.sp-social a {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: white;
	font: 600 15px/1 var(--sp-body);
	text-decoration: none;
}
.sp-social a:hover { color: var(--sp-gold); }
.sp-header .sp-social { gap: 1.45rem; }
.sp-header .sp-social a { width: auto; height: auto; border: 0; border-radius: 0; font-size: 24px; }
.sp-menu, .sp-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.sp-primary-nav > .sp-menu { display: flex; gap: clamp(.55rem, 1.28vw, 1.2rem); align-items: center; }
.sp-menu li { position: relative; }
.sp-primary-nav .menu-item > a { display: inline-block; padding-block: .55rem; }
.sp-primary-nav .menu-item-has-children { padding-right: 15px; }
.sp-primary-nav .menu-item-has-children::after { content: ""; position: absolute; top: 1.05rem; right: .15rem; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.sp-primary-nav .sub-menu { display: none; min-width: 250px; width: max-content; max-width: min(360px, 90vw); background: white; color: var(--sp-deep); box-shadow: 0 8px 24px #11152229; }
.sp-primary-nav .sub-menu .menu-item { padding-inline: .85rem; border-bottom: 1px solid #e6e6e6; }
.sp-primary-nav .sub-menu .menu-item-has-children { padding-right: 1.8rem; }
.sp-primary-nav .sub-menu .menu-item-has-children::after { right: .8rem; }
.sp-primary-nav .sub-menu .menu-item > a { width: 100%; line-height: 1.35; color: var(--sp-deep); }
.sp-primary-nav .sub-menu .menu-item > a:hover { color: var(--sp-teal); }
.sp-submenu-toggle, .sp-menu-toggle, .sp-mobile-bar { display: none; }
@media (min-width: 1025px) {
	.sp-header-top { justify-content: flex-end; gap: 3.4rem; padding-right: 45px; }
	.sp-header-primary { justify-content: flex-end; padding-right: 45px; }
	.sp-brand { position: absolute; top: 25px; left: 35px; width: min(35vw, 500px); }
	.sp-header-contact { gap: 3.5rem; font-size: 18px; }
	.sp-primary-nav .sub-menu { position: absolute; top: 100%; left: 0; }
	.sp-primary-nav .sub-menu > .menu-item > .sub-menu { top: 0; right: 100%; left: auto; }
	.sp-primary-nav > .sp-menu > .menu-item:nth-last-child(-n+3) > .sub-menu { right: 0; left: auto; }
	.sp-primary-nav .menu-item:hover > .sub-menu, .sp-primary-nav .menu-item:focus-within > .sub-menu { display: block; }
	.sp-primary-nav .sub-menu > .menu-item > .sub-menu { max-height: min(27rem, calc(100dvh - var(--sp-header-height))); overflow-y: auto; }
}

.sp-banner { min-height: clamp(150px, 22vw, 405px); background: var(--sp-deep) var(--sp-image-page-banner) center / cover no-repeat; }
.sp-banner-contact { background-image: var(--sp-image-contact-banner); }
.sp-banner-archive { min-height: clamp(130px, 16vw, 360px); background-image: var(--sp-image-blog-banner); }
.sp-content { max-width: var(--sp-content-width); margin-inline: auto; padding: 3rem 20px 4rem; }
.sp-entry { min-width: 0; }
.sp-entry-header { margin-bottom: 1.65rem; }
.sp-entry-header time { color: #525c70; font-size: 15px; }
.entry-content > p { margin-block: 0 1.3em; }
.entry-content > blockquote { border-left: 4px solid var(--sp-teal); padding-left: 1.25rem; }
.entry-content :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .25rem 1rem .75rem 0; }
.entry-content .alignright { float: right; margin: .25rem 0 .75rem 1rem; }
.entry-content .wp-block-table, .entry-content .sp-table-scroll { max-width: 100%; overflow-x: auto; }
.entry-content .wp-block-table table, .entry-content .sp-table-scroll table { min-width: 100%; width: auto; }
.entry-content table { border-collapse: collapse; font-size: .95em; }
.entry-content :is(td, th) { border: 1px solid #d6dce4; padding: .65em .7em; vertical-align: top; overflow-wrap: normal; }
.entry-content th { background: var(--sp-pale); text-align: left; }
.entry-content .wp-block-columns { gap: 1.5rem; }
.entry-content .wp-block-gallery:not(.has-nested-images) { display: flex; flex-wrap: wrap; gap: 1rem; }
.sp-contact-form { max-width: 700px; margin-block: 2.5rem; }
.sp-archive-columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(175px, 1fr); gap: 2rem; }
.sp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sp-card { border: 1px solid #e6e8ed; background: white; }
.sp-card-image { display: block; aspect-ratio: 1.5; overflow: hidden; }
.sp-card-image img { width: 100%; height: 100%; object-fit: cover; }
.sp-card-text { padding: 1rem; }
.sp-card h2 { font-size: 19px; }
.sp-card h2 a { color: inherit; text-decoration: none; }
.sp-card h2 a:hover { text-decoration: underline; }
.sp-card time, .sp-categories { color: #50596a; font-size: 14px; }
.sp-card-excerpt { margin: 1em 0; overflow-wrap: anywhere; }
.sp-card-excerpt p:last-child { margin-bottom: 0; }
.sp-card-more { display: inline-block; margin-top: .65rem; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: .25rem; color: #1f2f5c; text-decoration: none; }
.sp-card-more:hover, .sp-card-more:focus-visible { color: #fff; background: #1f2f5c; }
.sp-categories { margin-bottom: .5em; }
.sp-sidebar h2 { font-size: 22px; margin-top: 1.3em; }
.sp-sidebar ul { padding-left: 0; list-style: none; font-size: 16px; }
.sp-sidebar li { margin-bottom: .45rem; }
.sp-sidebar a { color: var(--sp-deep); }
.sp-search { display: flex; align-items: stretch; max-width: 100%; }
.sp-search input { min-width: 0; flex: 1 1 auto; border: 1px solid #d6dce4; border-radius: 4px 0 0 4px; padding: .5rem; }
.sp-search button { border: 0; padding: 0 .7rem; background: var(--sp-navy); color: white; font-size: 1.2rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-block; padding: .25rem .5rem; }
.pagination .current { background: var(--sp-navy); color: white; }

.sp-button, a.ma-button, .entry-content a.wp-block-button__link {
	display: inline-block;
	border: 1px solid var(--sp-gold);
	border-radius: 6px;
	padding: .75rem 1.35rem;
	background: var(--sp-gold);
	color: var(--sp-deep);
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.35;
	text-align: center;
}
.sp-button:hover, a.ma-button:hover, .entry-content a.wp-block-button__link:hover { background: #ffcb4a; color: var(--sp-deep); }
.sp-consult { background: var(--sp-deep) var(--sp-image-consult) center / cover no-repeat; color: white; padding: clamp(2.5rem, 5vw, 5rem) 20px; }
.sp-consult-inner { max-width: var(--sp-content-width); margin: auto; }
.sp-consult h2, .sp-consult h3 { color: inherit; }
.sp-consult h2, .sp-consult-subtitle { text-align: center; }
.sp-consult-subtitle { margin-bottom: 2rem; }
.sp-consult-subtitle span { color: var(--sp-gold); }
.sp-consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 5vw, 4rem); }
.sp-consult-details h3, .sp-consult-form h3 { font-size: 20px; }
.sp-consult-details ol { padding-left: 1.5em; }
.sp-office-grid, .sp-consult-actions { display: flex; gap: 1rem; }
.sp-office-grid > * { flex: 1; }
.sp-consult-actions { align-items: center; flex-wrap: wrap; }
.sp-consult-actions > a:not(.sp-button) { color: white; text-transform: uppercase; }
.sp-consult-form { background: white; color: var(--sp-deep); padding: 1.5rem; border-radius: 6px; }
.sp-footer { background: var(--sp-deep); color: white; padding: 2rem 20px; text-align: center; font-size: 15px; }
.sp-footer .sp-menu, .sp-footer-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.3rem; }
.sp-footer p { margin-block: 1em .5em; }
.sp-footer-policies { font-size: .92em; }

@media (max-width: 1024px) {
	:root { --sp-header-height: 70px; }
	.sp-header-top { display: none; }
	.home .sp-header { background: var(--sp-deep); }
	.sp-header-primary { min-height: var(--sp-header-height); padding: .6rem 20px; }
	.sp-brand img { max-width: 300px; }
	.sp-menu-toggle { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: .15em .35em; color: white; background: transparent; border: 0; font-size: 25px; }
	.sp-primary-nav { position: absolute; inset: 100% 0 auto; display: none; max-height: calc(100dvh - var(--sp-header-height) - 60px); overflow-y: auto; background: var(--sp-deep); padding: .5rem 20px; }
	.sp-primary-nav.sp-open { display: block; }
	.sp-primary-nav > .sp-menu { display: block; }
	.sp-primary-nav li { border-bottom: 1px solid #ffffff28; }
	.sp-primary-nav .menu-item > a { display: block; padding-block: .55rem; }
	.sp-primary-nav .menu-item-has-children { padding-right: 0; }
	.sp-primary-nav .menu-item-has-children > a { padding-right: 50px; }
	.sp-primary-nav .menu-item-has-children::after { display: none; }
	.sp-primary-nav .sub-menu { position: static; width: 100%; max-width: none; min-width: 0; padding-left: .7rem; color: white; background: none; box-shadow: none; }
	.sp-primary-nav .sub-menu .menu-item { border: 0; padding-inline: 0; }
	.sp-primary-nav .sub-menu .menu-item > a { color: white; }
	.sp-primary-nav .sub-menu-open > .sub-menu { display: block; }
	.sp-submenu-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 42px; min-height: 39px; padding: 0; color: white; background: transparent; border: 0; }
	.sp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body { font-size: 16px; line-height: 1.75; padding-bottom: 54px; }
	.admin-bar .sp-header { top: 46px; }
	.sp-header { background: var(--sp-deep); }
	.sp-brand { min-width: 0; }
	.sp-brand img { max-width: 227px; }
	.sp-content { padding: 2rem 20px 3rem; }
	.sp-banner { min-height: max(135px, 32vw); }
	.sp-banner-archive { min-height: max(110px, 26vw); }
	.sp-archive-columns, .sp-consult-grid { grid-template-columns: minmax(0, 1fr); }
	.sp-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); }
	.sp-mobile-bar { display: flex; position: fixed; inset: auto 0 0; z-index: 9; min-height: 54px; padding: 5px 20px; align-items: center; justify-content: space-between; gap: .6rem; background: var(--sp-deep); }
	.sp-mobile-bar .sp-button { padding: .5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
