/*
Theme Name: Shell Litigation
Theme URI: https://shelllitigation.com/
Author: Shell Litigation
Description: A custom Gutenberg block theme for Michael L. Shell Litigation.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: shell-litigation
*/

:root {
	--shell-header-height: 100px;
	--shell-content-width: 1100px;
	--shell-page-gutter: 30px;
	--shell-background: #f6f6f6;
	--shell-section-background: #eeeeee;
	--shell-accordion-background: #e3e3e3;
	--shell-heading: #303030;
	--shell-text: #818181;
	--shell-footer: #1b1b1b;
}

html {
	scroll-behavior: auto;
}

body {
	min-width: 320px;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body,
.wp-site-blocks,
.site-footer,
.site-footer-shell {
	border-radius: 0 !important;
}

body,
button,
input,
select,
textarea {
	font-family: "Raleway", sans-serif;
}

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

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--shell-header-height);
	background: #fff;
}

.site-header-shell,
.site-header-inner {
	height: 100%;
}

.site-header-inner {
	position: relative;
	width: min(var(--shell-content-width), calc(100% - (2 * var(--shell-page-gutter))));
	margin: 0 auto;
}

.site-header .wp-block-site-logo,
.site-header .wp-block-navigation {
	margin: 0;
}

.site-header .custom-logo-link,
.site-header .wp-block-site-logo a {
	display: block;
	line-height: 0;
}

.site-header .custom-logo {
	display: block;
	width: 255px;
	height: 53px;
	object-fit: contain;
}

.site-header .wp-block-navigation {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 100px;
	text-transform: uppercase;
}

.site-header .wp-block-navigation-item__content {
	color: #9d9d9d;
	padding: 0 18px;
	text-decoration: none;
}

.site-header .wp-block-navigation-item:first-child .wp-block-navigation-item__content {
	padding-left: 0;
}

.site-header .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
	padding-right: 0;
}

.site-header .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation-item__content:focus-visible,
.site-header .wp-block-navigation-item__content[aria-current="location"],
.site-header .wp-block-navigation-item__content.is-current {
	color: #000;
}

.site-header .wp-block-navigation__responsive-container-open {
	color: #9d9d9d;
}

.site-main,
.site-main > .wp-block-post-content {
	margin: 0;
}

body .home-hero {
	position: relative;
	z-index: 0;
	margin-top: calc(-1 * var(--shell-header-height)) !important;
}

.home-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.screen-reader-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.shell-section {
	margin: 0;
}

.shell-container {
	width: min(var(--shell-content-width), calc(100% - (2 * var(--shell-page-gutter))));
	margin: 0 auto;
}

.section-rule {
	height: 110px;
	margin: 0;
	padding: 50px 0;
	box-sizing: border-box;
}

.section-rule::before {
	display: block;
	height: 10px;
	border-top: 1px solid #efefef;
	border-bottom: 1px solid #efefef;
	box-sizing: border-box;
	content: "";
}

.about-content {
	display: grid;
	grid-template-columns: calc(33.333333% - 20px) calc(66.666667% - 10px);
	gap: 30px;
	min-height: 390px;
}

.about-profile h2 {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 22.17px;
}

.about-profile .wp-block-image {
	margin: 0 0 20px;
}

.about-profile img {
	display: block;
	width: 271px;
	max-width: 100%;
	height: auto !important;
	object-fit: contain;
}

.about-copy p,
.expertise-section p {
	margin: 0 0 20px;
}

.about-copy p:last-child,
.expertise-section p:last-child {
	margin-bottom: 0;
}

.about-gap {
	height: 20px;
}

.expertise-section {
	background: var(--shell-section-background);
}

.expertise-inner {
	padding: 0 0 58px;
}

.expertise-inner h2 {
	margin: 0 0 20px;
}

.expertise-inner .section-rule {
	height: 96px;
	padding-block: 43px;
}

.services-image-band {
	position: relative;
	height: 200px;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	background-color: var(--wp--preset--color--pillars-background, #d8d8d8);
	background-position: 50% 0;
	background-repeat: no-repeat;
	background-size: auto;
}

.services-image-band.has-shell-parallax {
	background-attachment: fixed;
}

.services-image-band.has-shell-parallax .wp-block-image {
	opacity: 0;
	pointer-events: none;
}

.services-image-band .wp-block-image {
	height: 100%;
	margin: 0;
}

.services-image-band img {
	position: absolute;
	top: -19px;
	left: calc(50% - 3px);
	display: block;
	width: 2000px !important;
	max-width: none !important;
	height: 1333px !important;
	transform: translateX(-50%);
}

.services-section {
	padding-right: 0 !important;
	padding-left: 0 !important;
	background: var(--shell-background);
}

.services-heading {
	height: 109px;
	box-sizing: border-box;
	padding-top: 50px;
}

.services-heading h2 {
	margin: 0;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	min-height: 350px;
	align-content: start;
}

.services-column {
	min-width: 0;
}

.service-item {
	margin: 0 0 5px;
	padding: 0;
	border: 0;
	background: transparent;
}

.service-item summary {
	position: relative;
	display: flex;
	min-height: 45px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 8px 14px;
	background: var(--shell-accordion-background);
	color: var(--shell-heading);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 28px;
	list-style: none;
	text-align: center;
	text-transform: uppercase;
}

.service-item summary::-webkit-details-marker {
	display: none;
}

.service-item summary::before,
.service-item summary::after {
	display: none;
}

.service-item summary::after {
	transform: translateY(-50%) rotate(90deg);
	transition: transform 160ms ease;
}

.service-item[open] summary::after {
	transform: translateY(-50%) rotate(0deg);
}

.service-item summary:hover,
.service-item summary:focus-visible {
	color: #000;
}

.service-item summary:focus-visible {
	outline: 2px solid #303030;
	outline-offset: 2px;
}

.service-item > :not(summary) {
	margin-inline: 0;
}

.service-item:not([open]) > .service-body {
	display: none;
}

.service-item .service-body {
	box-sizing: border-box;
	padding: 26px 0 25px 26px;
	background: transparent;
}

.service-item.is-animating .service-body {
	will-change: height;
}

.service-item .service-body p {
	margin: 0 0 26px;
}

.service-item .service-body p:last-child,
.service-item .service-body ul:last-child {
	margin-bottom: 0;
}

.service-item .service-body ul {
	margin-top: 0;
	padding-left: 22px;
}

.services-end-rule {
	height: 110px;
	margin-top: 0;
}

.site-footer {
	margin: 0;
	background: var(--shell-footer);
	color: #fff;
}

.site-footer-shell {
	min-height: 288px;
	box-sizing: border-box;
	padding: 44px 20px 30px;
}

.footer-logo {
	margin: 0 auto 28px;
}

.footer-logo img {
	display: block;
	width: 300px;
	height: 62px;
	object-fit: contain;
}

.footer-contact {
	margin: 0;
	color: #fff;
	font-size: 16px;
	line-height: 22px;
	text-align: center;
}

.footer-contact a {
	color: #fff;
	text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 1000px) {
	body .home-hero {
		margin-top: 0 !important;
	}

	.site-header-inner {
		width: 600px;
		max-width: calc(100% - 40px);
	}

	.shell-container {
		width: 600px;
		max-width: calc(100% - 90px);
	}

	.site-header-inner {
		justify-content: center !important;
	}

	.site-header .wp-block-site-logo {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.site-header .wp-block-navigation {
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		line-height: normal;
	}

	.site-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
		height: 100%;
		align-items: center;
		padding: 0;
	}

	.site-header .wp-block-navigation__container {
		display: none !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex !important;
	}

	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
		padding: 35px;
		background: #fff;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		padding: 10px 0;
	}

	.about-content {
		min-height: 650px;
	}

	.services-image-band {
		height: 400px;
	}

	/* Render the real Gutenberg image on phones and tablets. Do not depend on
	 * the JavaScript-generated parallax background for mobile rendering. */
	.services-image-band.has-shell-parallax {
		background-image: none !important;
		background-attachment: scroll;
	}

	.services-image-band.has-shell-parallax .wp-block-image {
		opacity: 1;
		pointer-events: auto;
	}

	.services-image-band.has-shell-parallax img {
		top: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
		object-position: 50% 50%;
		transform: none;
	}

	.services-image-band img {
		left: 50%;
		top: -117px;
	}

	.services-grid {
		min-height: 410px;
	}

	.service-item summary {
		min-height: 45px;
		padding-inline: 14px;
		font-size: 12px;
		line-height: 18px;
	}

}

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

@media (max-width: 600px) {
	:root {
		--shell-header-height: 72px;
		--shell-page-gutter: 20px;
	}

	.site-header {
		box-sizing: border-box;
		border-bottom: 1px solid rgba(48, 48, 48, 0.08);
		box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	}

	.site-header-inner {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		padding: 0 16px;
	}

	.site-header .custom-logo {
		width: 205px;
		max-width: calc(100vw - 128px);
		height: auto;
	}

	.site-header .wp-block-navigation {
		left: 16px;
	}

	.site-header .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: var(--shell-header-height);
		justify-content: flex-start;
	}

	.site-header .wp-block-navigation__responsive-container-open svg {
		width: 25px;
		height: 25px;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		align-items: flex-start;
		box-sizing: border-box;
		padding: 0 !important;
		background: rgba(20, 20, 20, 0.46) !important;
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
		animation: shell-menu-backdrop 180ms ease-out both;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative;
		width: 100%;
		min-height: 344px;
		box-sizing: border-box;
		padding: 20px 20px 28px;
		background: #fff;
		box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
		animation: shell-menu-panel 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.site-header .wp-block-navigation__responsive-container-close {
		top: 14px;
		right: 14px;
		display: grid;
		width: 44px;
		height: 44px;
		place-items: center;
		padding: 0;
		color: var(--shell-heading);
	}

	.site-header .wp-block-navigation__responsive-container-close svg {
		width: 25px;
		height: 25px;
	}

	.site-header .wp-block-navigation__responsive-container-content {
		width: 100%;
		box-sizing: border-box;
		padding-top: 58px;
		align-items: stretch;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		position: static !important;
		inset: auto !important;
		width: 100%;
		height: auto;
		align-items: stretch;
		gap: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
		border-top: 1px solid #e7e7e7;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
		border-bottom: 1px solid #e7e7e7;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex;
		width: 100%;
		min-height: 52px;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 0 4px !important;
		color: var(--shell-heading);
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 1.4px;
		line-height: 1.3;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
		display: block;
		width: 8px;
		height: 8px;
		border-top: 1px solid currentColor;
		border-right: 1px solid currentColor;
		content: "";
		transform: rotate(45deg);
	}

	.home-hero img {
		width: 100%;
		height: 140px;
		object-fit: cover;
	}

	.shell-container,
	.about-content,
	.expertise-inner,
	.services-heading,
	.services-grid {
		width: calc(100% - (2 * var(--shell-page-gutter))) !important;
		max-width: none !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	.about-section {
		padding: 0 !important;
	}

	.about-content {
		display: block;
		min-height: 0;
		box-sizing: border-box;
		padding: 34px 0 38px;
	}

	.about-profile h2 {
		margin-bottom: 18px;
		font-size: 19px;
		line-height: 1.35;
	}

	.about-profile img {
		width: 210px;
		max-width: 100%;
		height: auto;
		margin: 0 auto;
	}

	.about-profile .wp-block-image {
		width: 210px !important;
		margin-bottom: 24px;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.about-copy p,
	.expertise-section p {
		margin-bottom: 16px;
		color: #686868;
		font-size: 14px;
		line-height: 1.72;
	}

	.about-copy {
		padding-bottom: 0;
	}

	.about-gap {
		height: 12px;
	}

	.expertise-section > p:empty {
		display: none;
	}

	.expertise-inner {
		box-sizing: border-box;
		padding-bottom: 28px;
	}

	.expertise-inner:first-child {
		padding-top: 34px;
	}

	.expertise-inner:last-child {
		padding-bottom: 38px;
	}

	.expertise-inner h2,
	.services-heading h2 {
		margin-bottom: 14px;
		font-size: 21px;
		line-height: 1.3;
	}

	.services-image-band {
		height: 230px;
	}

	.services-image-band img {
		top: -212px;
	}

	.services-heading {
		height: auto;
		box-sizing: border-box;
		padding: 32px 0 22px;
	}

	.services-grid {
		display: block;
		min-height: 0;
	}

	.services-column,
	.service-item {
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.service-item {
		margin-bottom: 6px;
	}

	.service-item summary {
		min-height: 48px;
		justify-content: flex-start;
		padding: 10px 44px 10px 14px;
		font-size: 11px;
		line-height: 15px;
		text-align: left;
		transition: background-color 180ms ease, color 180ms ease;
	}

	.service-item summary::before,
	.service-item summary::after {
		position: absolute;
		top: 50%;
		right: 16px;
		display: block;
		width: 12px;
		height: 1px;
		background: currentColor;
		content: "";
		transform: translateY(-50%);
		transition: transform 180ms ease, opacity 180ms ease;
	}

	.service-item summary::after {
		transform: translateY(-50%) rotate(90deg);
	}

	.service-item[open] summary {
		background: var(--shell-heading);
		color: #fff;
	}

	.service-item[open] summary::after {
		opacity: 0;
		transform: translateY(-50%) rotate(0deg);
	}

	.service-item .service-body {
		padding: 18px 14px 20px;
		background: rgba(255, 255, 255, 0.55);
	}

	.service-item .service-body p,
	.service-item .service-body li {
		font-size: 14px;
		line-height: 1.65;
	}

	.service-item .service-body p {
		margin-bottom: 16px;
	}

	.services-end-rule {
		height: 62px;
		padding-block: 25px;
	}

	.site-footer-shell {
		min-height: 0;
		padding: 38px 20px 34px;
	}

	.footer-logo {
		margin-bottom: 28px;
	}

	.footer-logo img {
		width: min(235px, calc(100vw - 56px));
		height: auto;
	}

	.footer-contact {
		font-size: 14px;
		line-height: 28px;
	}
}

@keyframes shell-menu-backdrop {
	from { background-color: rgba(20, 20, 20, 0); }
	to { background-color: rgba(20, 20, 20, 0.46); }
}

@keyframes shell-menu-panel {
	from {
		opacity: 0;
		transform: translateY(-18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.shell-scroll-top {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: grid;
	width: 86px;
	height: calc(104px + env(safe-area-inset-bottom, 0px));
	place-items: start center;
	box-sizing: border-box;
	padding: 28px 0 env(safe-area-inset-bottom, 0px);
	border: 0;
	background: transparent;
	color: #aaa;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 320ms ease, visibility 0s linear 320ms;
	visibility: hidden;
}

.shell-scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s, 0s;
	visibility: visible;
}

.shell-scroll-top__icon {
	display: grid;
	width: 56px;
	height: 56px;
	place-items: center;
	box-sizing: border-box;
	border: 2px solid #f4f4f4;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.shell-scroll-top svg {
	width: 29px;
	height: 29px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3.2;
}

.shell-scroll-top:hover,
.shell-scroll-top:focus-visible {
	background: transparent;
	color: #fff;
}

.shell-scroll-top:hover .shell-scroll-top__icon,
.shell-scroll-top:focus-visible .shell-scroll-top__icon {
	border-color: #fff;
	transform: translateY(-2px);
}

.shell-scroll-top:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -5px;
}

@media (max-width: 600px) {
	.shell-scroll-top {
		width: 64px;
		height: calc(76px + env(safe-area-inset-bottom, 0px));
		padding-top: 16px;
	}

	.shell-scroll-top__icon {
		width: 44px;
		height: 44px;
	}

	.shell-scroll-top svg {
		width: 23px;
		height: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.services-image-band.has-shell-parallax {
		background-attachment: scroll;
		background-position: 50% 0 !important;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

.editor-styles-wrapper .services-image-band {
	height: auto;
	overflow: visible;
}

.editor-styles-wrapper .services-image-band .wp-block-image {
	height: auto;
	opacity: 1;
	pointer-events: auto;
}

.editor-styles-wrapper .services-image-band img {
	position: static;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	transform: none;
}

.editor-styles-wrapper .service-item:not([open]) > .service-body {
	display: block;
}