/* Page sections (templates/sections/*.php). */

.section {
	padding: var(--section-space) 0;
}

.section--bg-white {
	background: var(--paper);
}

.section--bg-mist {
	background: var(--mist);
}

.section--bg-pine {
	background: var(--pine);
	color: #fff;
}

.section--bg-dark {
	background: radial-gradient(1000px 500px at 85% 0%, var(--pine-2), transparent 60%), var(--pine-ink);
	color: #fff;
}

/* Two sections on the same background read as one: the second drops its top padding
   (About Us → Stats, Our Services → Press in the design). */
.section--bg-white + .section--bg-white,
.section--bg-mist + .section--bg-mist {
	padding-top: 0;
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 32px;
	margin-bottom: 48px;
}

.sec-head .lead {
	max-width: 44ch;
}

@media (max-width: 860px) {
	:root {
		--section-space: 72px;
	}

	.sec-head {
		margin-bottom: 36px;
	}
}

/* Hero */

.section.hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	background: var(--pine-ink);
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
}

.hero__image,
.hero__bg .photo-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(2 22 35 / 0.96) 0%, rgb(2 22 35 / 0.82) 45%, rgb(2 22 35 / 0.35) 100%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	padding-top: 130px;
	padding-bottom: 130px;
}

.hero__title {
	max-width: 13ch;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 700;
	line-height: 1.05;
}

.hero__accent {
	display: block;
	color: var(--lime);
}

.hero__text {
	max-width: 52ch;
	margin: 24px 0 36px;
	color: var(--on-dark);
	font-size: 17px;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	color: var(--on-dark);
	font-size: 14px;
	list-style: none;
}

.hero__meta strong {
	display: block;
	color: #fff;
	font-family: var(--head);
	font-size: 15px;
	font-weight: 600;
}

/* Narrow screens: the text covers the whole photo, so the gradient darkens all of it. */
@media (max-width: 860px) {
	.hero__bg::after {
		background: linear-gradient(180deg, rgb(2 22 35 / 0.82) 0%, rgb(2 22 35 / 0.9) 60%, rgb(2 22 35 / 0.96) 100%);
	}
}

@media (max-width: 560px) {
	.hero__inner {
		padding-top: 90px;
		padding-bottom: 90px;
	}
}

/* About Us */

.about-us__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 64px;
}

.about-us__text {
	margin-top: 18px;
	color: var(--muted);
}

.about-us__text p + p {
	margin-top: 12px;
}

.checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 28px;
	margin-top: 28px;
	list-style: none;
}

.checks li {
	display: flex;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
}

.check-mark {
	flex: none;
	margin-top: 4px;
	color: var(--lime);
}

.about-us__photo {
	min-height: 380px;
}

/* Stats */

.stats__grid {
	display: grid;
	grid-template-columns: 1.1fr repeat(4, 1fr);
	gap: 20px;
}

.stats__grid:not(:has(.stats__photo)) {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stats__photo {
	min-height: 200px;
}

.stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	text-align: center;
}

.section--bg-mist .stat {
	background: #fff;
}

.stat__value {
	color: var(--pine);
	font-family: var(--head);
	font-size: 40px;
	line-height: 1;
}

.stat__title {
	margin: 12px 0 6px;
	font-size: 15px;
}

.stat__text {
	color: var(--muted);
	font-size: 13px;
}

/* About Us and Stats are one block in the design: 72px between them. */
.about-us.section--bg-white + .stats.section--bg-white,
.about-us.section--bg-mist + .stats.section--bg-mist {
	margin-top: calc(72px - var(--section-space));
}

/* Why Choose Us: the navy band */

.section.why-choose-us {
	padding: 44px 0;
}

.why-choose-us__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.why-choose-us__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.why-choose-us__item + .why-choose-us__item {
	padding-left: 32px;
	border-left: 1px solid rgb(255 255 255 / 0.12);
}

.icon-box {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--lime);
	color: var(--pine-ink);
}

.icon-box__icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.why-choose-us__title {
	margin-bottom: 6px;
	font-size: 18px;
}

.why-choose-us__text {
	color: var(--on-dark-muted);
	font-size: 14px;
}

/* Our Services, Related Services: practice area cards */

.services {
	--slider-per-view: 4;
	--slider-gap: 20px;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	transition: border-color 0.2s;
}

.card:hover,
.card:focus-within {
	border-color: var(--pine);
}

.card__title {
	font-size: 20px;
}

/* The whole card is the link. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.card__text {
	flex: 1;
	color: var(--muted);
	font-size: 15px;
}

.card__more,
.more-link {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Press */

.press__head {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	align-items: end;
	gap: 48px;
}

.press__head .lead {
	font-size: 15px;
}

.press__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
	color: #97a2ac;
	font-family: var(--head);
	font-size: 19px;
	font-weight: 700;
	list-style: none;
}

.press__logos a:hover {
	color: var(--pine);
}

.press__logo {
	width: auto;
	max-height: 36px;
	filter: grayscale(1);
	opacity: 0.7;
}

/* Highlights: the dark grid */

.highlights__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 56px 48px;
}

.highlights__intro {
	grid-row: span 3;
}

.highlights__intro .lead {
	margin-top: 18px;
	font-size: 15px;
}

.feat__icon {
	width: 34px;
	height: 34px;
	margin-bottom: 16px;
	color: var(--lime);
	object-fit: contain;
}

.feat__title {
	margin-bottom: 8px;
	font-size: 18px;
}

.feat__title a:hover {
	color: var(--lime);
}

.feat__text {
	color: var(--on-dark-muted);
	font-size: 14px;
}

/* FAQ */

.faq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 64px;
}

.faq__photo {
	position: sticky;
	top: calc(var(--header-height) + 24px);
	min-height: 520px;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 20px;
}

.tab {
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tab:hover {
	border-color: var(--pine);
}

.tab[aria-selected="true"] {
	border-color: var(--pine);
	background: var(--pine);
	color: #fff;
}

.sec-title + .faq__panel {
	margin-top: 20px;
}

.faq__item {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

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

.faq__item summary::after {
	content: "+";
	color: var(--pine);
	font-family: var(--head);
	font-size: 22px;
	line-height: 1;
}

.faq__item[open] summary::after {
	content: "\2212";
}

.faq__answer {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
}

.faq__answer > * + * {
	margin-top: 8px;
}

.faq__answer ul,
.faq__answer ol {
	padding-left: 20px;
}

.faq__actions {
	margin-top: 28px;
}

/* Our Team */

.team {
	--slider-per-view: 3;
	--slider-gap: 24px;
}

.member__link {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 420px;
	height: 100%;
	border-radius: var(--radius-lg);
	background: var(--pine-2);
}

.member__image,
.member__link .photo-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.member__link:hover .member__image {
	transform: scale(1.03);
}

.member__cap {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	display: grid;
	gap: 2px;
	padding: 16px;
	border-radius: var(--radius);
	background: rgb(2 22 35 / 0.88);
	color: #fff;
	text-align: center;
	backdrop-filter: blur(6px);
}

.member__name {
	font-family: var(--head);
	font-size: 17px;
	font-weight: 700;
}

.member__link:hover .member__name {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.member__role {
	color: var(--lime);
	font-size: 13px;
}

/* Articles */

.articles {
	--slider-per-view: 3;
	--slider-gap: 28px;
}

.post-card {
	display: flex;
	flex-direction: column;
}

.post-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 220px;
	margin-bottom: 18px;
	border-radius: var(--radius-lg);
	background: var(--pine-2);
	aspect-ratio: 3 / 2;
}

.post-card__image,
.post-card__media .photo-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.post-card:hover .post-card__image {
	transform: scale(1.03);
}

.post-card__date {
	color: var(--muted);
	font-size: 13px;
}

.post-card__title {
	margin: 8px 0 10px;
	font-size: 19px;
}

.post-card__title a:hover {
	color: var(--pine);
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-underline-offset: 4px;
}

.post-card__text {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 15px;
}

.post-card .more-link {
	margin-top: auto;
}

/* Contact */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
}

.contact__grid--single {
	grid-template-columns: minmax(0, 800px);
}

.contact__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	margin-top: 22px;
	font-size: 15px;
}

.contact__lines strong {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}

.contact__lines a:hover {
	color: var(--pine);
	text-decoration: underline;
	text-decoration-color: var(--lime);
}

.quote {
	position: relative;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	min-height: 520px;
	border-radius: var(--radius-lg);
	background: var(--pine-2);
}

.quote__image,
.quote > .photo-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% center;
}

/* The reviews plugin's widget sits in a navy box over the photo. */
.quote__box {
	position: relative;
	width: calc(100% - 40px);
	margin: 20px;
	padding: 26px;
	border-radius: var(--radius);
	background: rgb(2 22 35 / 0.92);
	color: #fff;
}

/* Text */

.text .sec-title {
	max-width: none;
	margin-bottom: 24px;
}

/* Responsive */

@media (max-width: 1024px) {
	.stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats__photo {
		grid-column: 1 / -1;
	}

	.services {
		--slider-per-view: 2;
	}

	.highlights__grid {
		grid-template-columns: 1fr 1fr;
	}

	.highlights__intro {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.team,
	.articles {
		--slider-per-view: 2;
	}
}

@media (max-width: 860px) {
	.about-us__grid,
	.faq__grid,
	.contact__grid,
	.press__head {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.press__head {
		gap: 16px;
	}

	.faq__photo {
		position: static;
		min-height: 300px;
	}

	.why-choose-us__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.why-choose-us__item + .why-choose-us__item {
		padding-top: 24px;
		padding-left: 0;
		border-top: 1px solid rgb(255 255 255 / 0.12);
		border-left: 0;
	}

	.quote {
		min-height: 440px;
	}
}

@media (max-width: 560px) {
	.stats__grid,
	.highlights__grid,
	.checks {
		grid-template-columns: 1fr;
	}

	.services,
	.team,
	.articles {
		--slider-per-view: 1.15;
		--slider-gap: 16px;
	}

	.member__link {
		min-height: 380px;
	}

	.press__logos {
		justify-content: flex-start;
		gap: 16px 28px;
		font-size: 17px;
	}
}
