:root{
    --theme-charcoal: #1F2A44;
    --theme-blue: #243654;
    --theme-cream: #E0E0Dc;
	--theme-highlight: #9C7A2E;

    --holder: #F0F;

    --transition-stndrd: 200ms ease;
	
	--acc-scroll-offset: 110px;
}

/* ======================== CORE ======================== */

/* --- Global reset / sanity --- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html, body {
    width: 100%;
	height: 100%;
	margin: 0;
}

/* --- Sticky footer layout --- */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--theme-charcoal);
	background: var(--theme-cream);
	font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
    font-size: 16px;
    line-height: 1.5em;
}

body.nav-open::before {
	content: "";
	position: fixed;
	inset: 0;
	background:var(--theme-blue);
    opacity: 0.5;
	z-index: 99;
}

main {
	flex: 1;
}

main#content {
	height: auto;
}

main > * {
	max-width: 1400px;
	margin: 0 auto;
}

/* ======================== ./END CORE ======================== */



/* ======================== ./MISC ======================== */

h1, h2, h3, h4, h5, h6 {
	font-family: "Libre Baskerville", serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4em;
	color: var(--theme-blue);
}

h1 {
	margin: 0 0 0.65em 0;
	font-size: 2.35em;
}

@media (orientation: portrait) and (max-width: 640px) {
	h1 {
		font-size: 1.5em;
	}

	h2 {
		font-size: 1.25em;
	}
}

strong, b {
	font-weight: 600;
}

a {
	color: var(--theme-highlight);
	text-decoration: none;
	white-space: nowrap;
	transition: var(--transition-stndrd);
}

@media (orientation: portrait) and (max-width: 640px) {
	a {
		white-space: normal;
	}
}
	

a:hover {
	color: var(--theme-blue);
}

figure {
	margin: 0;
}

/* ======================== ./END MISC ======================== */



/* ======================== HEADER/NAV ======================== */

header {
	position: relative;
	z-index: 100;
	background: linear-gradient(
	to bottom,
		#bfc3c6 0%,
		#d6d7d3 65%,
		#E0E0Dc 100%
	);

}

header.mobile {

}

#mobile-menu {
    position: fixed;
    display: none;
    top: 31px;
    right: 30px;
	font-size: 1.5em;
    justify-content: center;
    align-items: center;
	color: var(--theme-highlight);
    z-index: 9999;  
}

header.mobile #mobile-menu {
    display: flex;
}

header .inner {
    width: calc(100% - 100px);
    display: flex;
    justify-content: space-between;
    margin: 40px auto 20px;
}

@media (orientation: portrait) and (max-width: 640px) {
	header .inner {
		width: calc(100% - 40px);
	}
}

.logo {
    position: relative;
    width: 270px;
    height: 40px;
    flex-shrink: 0;
}

.logo a {
	border-bottom: 1px solid var(--theme-highlight);
}

#main-nav {
	margin-top: 16px;
}

/* Prevent slide animation during JS measurements / resize */
#main-nav.no-trans {
	transition: none !important;
}
#main-nav.no-trans * {
	transition: none !important;
}

#main-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 24px;
	align-items: center;
	font-weight: 400;
}

#main-nav li {
	position: relative;
	white-space: nowrap;
	text-transform: capitalize;
}

#main-nav li a {
	text-decoration: none;
	color: var(--theme-charcoal);
}

#main-nav li a:hover {
	text-decoration: underline;
	color: var(--theme-highlight);
}

#main-nav li.current-menu-item a,
#main-nav li.current-menu-parent {
	color: var(--theme-highlight);
}

/* Dropdown */
#main-nav > ul > li > a[href="#"] {
	pointer-events: none;
	cursor: default;
}

#main-nav .drop-down {
	position: absolute;
	width: 150%;
	top: 100%;
	left: 0;

	display: none;
	flex-direction: column;

	min-width: 200px;

	/* was: margin-top: 8px; */
	margin-top: 0;

	/* create the visual gap without breaking hover */
	padding: 12px 0;
	transform: translateY(8px);

	gap: 5px;
	font-size: 0.85em;

	background: var(--theme-cream);
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

#main-nav li:hover > .drop-down,
#main-nav li:focus-within > .drop-down {
	display: flex;
}


#main-nav .drop-down li {
	width: 100%;
	padding: 0;
}

#main-nav .drop-down a {
	padding: 8px 16px;
	display: block;
	white-space: normal;
}

#main-nav li {
	position: relative;
}

#main-nav li > .drop-down::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;      /* hover buffer height */
	height: 10px;
}


/* ---------------------------------------
   Mobile slide-in panel nav
---------------------------------------- */

/* Prevent transitions while measuring */
header.no-trans *,
header.no-trans {
	transition: none !important;
}

/* Base */
#main-nav {
	position: relative;
}

/* MOBILE MODE (panel closed by default) */
header.mobile #main-nav {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: min(84vw, 360px);

	margin: 0;
	padding: 90px 22px 24px;

	background: var(--theme-cream);
	box-shadow: -12px 0 30px rgba(0,0,0,0.14);
	z-index: 999;

	transform: translateX(100%);
	opacity: 0;
	pointer-events: none;

	transition:
		transform 280ms ease,
		opacity 220ms ease;
}

@media (orientation: landscape) and (max-height: 500px) {
	header.mobile #main-nav {
		height: 100%;
		padding: 40px 22px 24px;
		overflow-y: scroll;
	}
}

/* Open state */
header.mobile #main-nav.is-open {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

header.mobile #main-nav > ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

header.mobile #main-nav a {
	display: block;
	width: 100%;
	padding: 5px 0;
}

header.mobile #main-nav .drop-down {
	position: static;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0 0 15px 0;
	padding: 0 0 10px 0;
	border: none;
	border-left: 1px solid var(--theme-blue);
	box-shadow: none;
	background: transparent;
}

header.mobile #main-nav .drop-down a {
	padding: 8px 0px 0px 25px;
	opacity: 0.9;
}

header.mobile #main-nav li .menu-label {
	margin: 5px 0 0 0;
    display: block;
}

/* ======================== ./END HEADER/NAV ======================== */



/* ======================== FOOTER ======================== */

footer {
	background: var(--theme-blue);
	color: var(--theme-cream);
	padding: 60px 40px;
	font-size: 12px;
	z-index: 999;
}

/* PHONE PORTRAIT */
@media (orientation: portrait) and (max-width: 640px) {
	footer {
		padding: 40px 20px 20px;
		font-size: 9px;
	}
}

/* PHONE LANDSCAPE (short viewport) */
@media (orientation: landscape) and (max-height: 500px) {
	footer {
		padding: 28px 20px;
		font-size: 10px;
	}
}

footer a {
	color: var(--theme-cream);
	text-decoration: none;
}

footer a:hover {
	color: var(--theme-highlight);
	text-decoration: none;
}

footer .inner {
	position: relative;
	width: calc(100% - 80px);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	line-height: 2em;
	gap: 30px;
}

/* PHONE PORTRAIT */
@media (orientation: portrait) and (max-width: 640px) {
	footer .inner {
		flex-direction: column-reverse;
		width: 95%;
		line-height: 1.65em;
		gap: 18px;
	}
}

/* PHONE LANDSCAPE */
@media (orientation: landscape) and (max-height: 500px) {
	footer .inner {
		width: calc(100% - 40px);
		line-height: 1.6em;
		gap: 18px;
	}
}

footer .inner .info {
	position: relative;
	display: flex;
	flex-direction: column;
}

/* PHONE PORTRAIT */
@media (orientation: portrait) and (max-width: 640px) {
	footer .inner .info {
		width: 100%;
		padding: 10px 0 0 0;
		border-top: 1px solid var(--theme-highlight);
		text-align: center;
		justify-content: center;
	}
}

/* PHONE LANDSCAPE */
@media (orientation: landscape) and (max-height: 500px) {
	footer .inner .info {
		/* keep it tight but readable */
	}
}

footer .inner .addresses {
	position: relative;
	display: flex;
	column-gap: 60px;
}

/* PHONE PORTRAIT */
@media (orientation: portrait) and (max-width: 640px) {
	footer .inner .addresses {
		margin: 0 auto;
		column-gap: 15px;
	}
	footer .inner .address + .address {
		padding: 0 0 0 15px;
		border-left: 1px solid var(--theme-cream);
	}
}

/* PHONE LANDSCAPE */
@media (orientation: landscape) and (max-height: 500px) {
	footer .inner .addresses {
		column-gap: 24px;
	}
	footer .inner .address + .address {
		padding-left: 24px;
		border-left: 1px solid var(--theme-cream);
	}
}


/* ======================== ./END FOOTER ======================== */




/* ======================== FRONTPAGE ======================== */

.frontpage-imagewrap {
	position: relative;
	width: 100%;
	max-width: none;
	min-height: calc(100vh - 130px);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	overflow-x: hidden;
}

.frontpage-imagewrap figure {
	position: fixed;
	width: 100%;
	height: 100%;
	inset: 0;
	margin: 0;
}

.frontpage-imagewrap figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.2;
}

.frontpage-imagewrap .inner {
	position: relative;
	width: min(80%, 1500px);
	max-width: 1500px;
	min-height: 40vh;
	padding: 40px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 2;
}

.frontpage-headline{
	max-width: 800px;
	font-size: 24px;
	line-height: 1.4;
	margin-bottom: 48px;
}

.frontpage-subhead{
	font-size: 18px;
	letter-spacing: 0.02em;
}

@media (orientation: portrait) and (max-width: 640px) {
	.frontpage-imagewrap{
		min-height: calc(100vh - 160px);
	}

	.frontpage-imagewrap figure img {
		width: 120%;
		height: 120%;
		left: -10%;
		top: -10%;
	}

	.frontpage-imagewrap h2 {
		font-size: 0.9em;
		color: var(--theme-highlight);
	}
}

/* ======================== ./END FRONTPAGE ======================== */



/* ======================== ./ACCORDION ======================== */

.accordion {
	width: 100%;
	margin: 50px auto;
}

.accordion * {
	box-sizing: border-box;
}

/* --------------------------------
   Accordion item shell
-------------------------------- */

.accordion-item {
	position: relative;
	border-top: 1px solid;
}

.accordion-item:last-of-type {
	border-bottom: 1px solid;
}

/* --------------------------------
   Trigger / title
-------------------------------- */

.accordion-title {
	margin: 0.5em 0;
	font-size: 1.2em;
	color: var(--theme-blue);
	transition: var(--transition-stndrd);
}

@media (orientation: portrait) and (max-width: 640px) {
	.accordion-title {
		margin: 0;
		font-size: 1em;
	}
}

.accordion-item.active .accordion-title {
	color: var(--theme-highlight);
}

.accordion-trigger {
	position: relative; /* anchor for absolute icon */
	width: 100%;
	text-align: left;
	padding: 12px 14px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
}

@media (orientation: portrait) and (max-width: 640px) {
	.accordion-trigger {
		font-size: 1em;
		color: var(--theme-blue);
	}
}

.accordion-label {
	display: block;
	padding: 0 30px 0 0;
	font-size: 1.2em;
	color: var(--theme-blue);
}

.active .accordion-label {
	color: var(--theme-highlight);
}

/* --------------------------------
   Icon
-------------------------------- */

.accordion-item .icon {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--theme-blue);
}

@media (orientation: portrait) and (max-width: 640px) {
	.accordion-item .icon {
		top: 18%;
		transform: none;
	}
}

.accordion-item.active .icon {
	top: 16%;
	color: var(--theme-highlight);
}

.acc-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	transition: var(--transition-stndrd);
}

@media (orientation: portrait) and (max-width: 640px) {
	.acc-icon {
		width: 20px;
		height: 20px;
	}
}

.acc-icon line {
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
}

/* Animate the vertical stroke away */
.acc-icon__v {
	transform-origin: 50% 50%;
	transform: scaleY(1);
	transition: var(--transition-stndrd);
}

.accordion-item.active .acc-icon__v {
	transform: scaleY(0);
}

.accordion-item.active .acc-icon {
	transform: rotate(180deg);
}

/* --------------------------------
   Panel animation
-------------------------------- */

.accordion-panel {
	margin: 0;
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 500ms;
}

.accordion-panel > div {
	overflow: hidden;
}

.accordion-item .accordion-inner {
	margin: 0 10px 0 20px;
	transition: var(--transition-stndrd);
}

.accordion-item.active .accordion-inner {
	margin: 0 10px 40px 20px;
}

.accordion-item.active .accordion-panel {
	grid-template-rows: 1fr;
}

.accordion-item {
  scroll-margin-top: var(--acc-scroll-offset);
}


/* ======================== ./END ACCORDION ======================== */



/* ======================== .PAGE ITEMS ======================== */

.innerwrap {
    position: relative;
    width: 85%;
    margin: clamp(40px, 10vw, 160px) auto;
}

@media (orientation: portrait) and (max-width: 640px) {
	.innerwrap {
		margin: 10px auto 60px;
	}
}

.two-column {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: clamp(30px, 4.5vw, 80px);
}

.main__image {
    flex: 0 0 40%;
}

@media (max-width: 800px) {
    .main__image {
        display: none;
    }
}

.main__image img {
    width: 100%;
    height: auto;
} 

.main__content {
    flex: 1;
    min-width: 0;;
}

.main__content img {
		width: 50%;
		height: auto;
        position: relative;
        float: left;
        margin: 0 15px 10px 0;
        display: none;
    }

@media (max-width: 800px) {
    .main__content img {
        display: block;
    }
}

/* pic-info grid */
.pic-info {
	margin: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	gap: 0;
	align-items: stretch;
	letter-spacing: 0.05em;
}

.pic-info.mobile-block {
	display: none;
}

.pic-info a:hover {
	color: var(--theme-blue);
	transition: var(--transition-stndrd);
}

/* stacked text items */
.pic-info a:nth-child(1),
.pic-info a:nth-child(2) {
	padding: 6px 0;
}

/* divider between stacked items */
.pic-info a:nth-child(2) {
  	border-top: 1px solid currentColor;
}

/* linkedin box */
.pic-info a:nth-child(3) {
	grid-column: 2;
	grid-row: 1 / span 2;

	display: flex;
	align-items: center;
	justify-content: center;

	aspect-ratio: 1 / 1;
	padding: 10px;

	border-left: 1px solid currentColor;
}

.pic-info i {
    padding: 0.4rem;
    font-size: 1.75em;
    border-radius: 4px;
	display: inline-block;
	line-height: 1;
	color: var(--theme-cream);
	background: var(--theme-blue);
	transition: var(--transition-stndrd);
}

.pic-info i:hover {
	color: var(--theme-blue);
	background: var(--theme-highlight);
	text-decoration: none;
}

.pic-info a:hover {
	text-decoration: none;
}

/* mobile-only block */
@media (max-width: 800px) {
	.pic-info.mobile-block {
		display: grid;
		border: 1px solid var(--theme-highlight);
	}
	.pic-info.mobile-block a {
		padding: 5px 10px;
	}
}

/* ======================== ./END PAGE ITEMS ======================== */



/* ======================== LAW LIBRARY ======================== */

.law-library-parent-content {
	position: relative;
	margin: 0 0 40px 0;
	padding: 0 0 20px 0;
	border-bottom: 1px solid var(--theme-blue);
}

/* ======================== /.END LAW LIBRARY ======================== */