/*
Theme Name: Joel A. Gordon
Description: Theme for Joel A. Gordon & Associates.
Version: 1.5.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: blank
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base
---------------------------------------------------------------- */
:root {
	--navy: #003567;
	--navy-dark: #0b2740;
	--gold: #c8a24a;
	--pill: #1b2b4b;
	--pill-end: #1858b0;
	--ink: #1f2735;
	--white: #fff;
	--font: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-gap: 20px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

/* Page frame: header, content, footer; the footer stays at the bottom on short pages. */
body {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* wide content (carousels) never stretches the page */
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
	margin: 0;
	font-family: var(--font);
	color: #222;
	line-height: 1.6;
	background: var(--white);
}

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

.container {
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 var(--header-gap);
}

.site-main {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--white);
	color: var(--navy);
	font-weight: 600;
}

.skip-link:focus {
	top: 8px;
}

/* Header: top band
---------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 100;
	font-family: var(--font);
}

.site-header__top {
	background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 33%, var(--gold) 64%, var(--gold) 100%);
}

/* Logo on the left, phone on the right; the burger joins on small screens. */
.site-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo . call";
	align-items: center;
	column-gap: 16px;
	min-height: 72px;
}

.site-logo {
	grid-area: logo;
	line-height: 0;
}

.site-logo img {
	display: block;
	width: auto;
	max-width: 230px;
	max-height: 62px;
}

.site-logo__text {
	color: var(--white);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.header-call {
	grid-area: call;
	display: grid;
	grid-auto-flow: column;
	align-items: center;
	column-gap: 18px;
}

.header-call__label {
	color: var(--navy-dark);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.header-call__phone {
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	column-gap: 14px;
	padding: 4px 4px 4px 16px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pill) 0%, var(--pill) 60%, var(--pill-end) 100%);
	color: var(--white);
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.2s;
}

.header-call__phone:hover,
.header-call__phone:focus-visible {
	filter: brightness(1.15);
}

.header-call__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ink);
}

/* Header: menu
---------------------------------------------------------------- */
.main-nav {
	background: var(--navy);
}

.main-nav .menu,
.main-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .menu a {
	color: var(--white);
	text-decoration: none;
}

.main-nav .menu a:not([href]) {
	cursor: default;
}

.menu-toggle,
.submenu-toggle {
	display: none;
}

/* Desktop */
@media (min-width: 1025px) {
	.main-nav .menu {
		display: grid;
		grid-auto-flow: column;
		justify-content: end;
	}

	.main-nav .menu li {
		position: relative;
	}

	.main-nav .menu > li > a {
		position: relative;
		display: grid;
		grid-auto-flow: column;
		align-items: center;
		column-gap: 10px;
		height: 44px;
		padding: 0 18px;
		font-size: 15px;
		font-weight: 600;
	}

	/* Underline: grey for the current page, gold on hover. */
	.main-nav .menu > li > a::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 3px;
		background: transparent;
		transition: background-color 0.2s;
	}

	.main-nav .menu > .current-menu-item > a::before,
	.main-nav .menu > .current-menu-ancestor > a::before {
		background: rgba(255, 255, 255, 0.3);
	}

	.main-nav .menu > li:hover > a::before,
	.main-nav .menu > li > a:focus-visible::before {
		background: var(--gold);
	}

	/* Caret next to top-level items with a dropdown. */
	.main-nav .menu > .menu-item-has-children > a::after {
		content: "";
		border-top: 5px solid currentColor;
		border-right: 5px solid transparent;
		border-left: 5px solid transparent;
	}

	/* Dropdowns: white panels; hover and current item turn navy. */
	.main-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 255px;
		padding: 0;
		background: var(--white);
		box-shadow: 0 12px 28px rgba(11, 39, 64, 0.18);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
	}

	.main-nav li:hover > .sub-menu,
	.main-nav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	/* The menu sits on the right edge: open the last dropdowns leftwards. */
	.main-nav .menu > li:nth-last-child(-n+2) > .sub-menu {
		right: 0;
		left: auto;
	}

	/* Third level opens to the left by default (a hidden panel past the right edge would widen
	   the page); js/theme.js opens it to the right (.sub-menu--right) when there is room. */
	.main-nav .sub-menu .sub-menu {
		top: 0;
		right: 100%;
		left: auto;
	}

	.main-nav .sub-menu .sub-menu.sub-menu--right {
		right: auto;
		left: 100%;
	}

	.main-nav .sub-menu a {
		position: relative;
		display: block;
		padding: 15px 44px 15px 28px;
		color: var(--navy-dark);
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
		transition: background-color 0.15s, color 0.15s;
	}

	/* Arrow on the right of items that open a third level. */
	.main-nav .sub-menu .menu-item-has-children > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 20px;
		margin-top: -5px;
		border-top: 5px solid transparent;
		border-bottom: 5px solid transparent;
		border-left: 5px solid currentColor;
	}

	.main-nav .sub-menu li:hover > a,
	.main-nav .sub-menu a:focus-visible,
	.main-nav .sub-menu .current-menu-item > a,
	.main-nav .sub-menu .current-menu-ancestor > a {
		background: var(--navy);
		color: var(--white);
	}
}

/* Tablet and mobile */
@media (max-width: 1024px) {
	.site-header__top {
		background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, var(--gold) 85%, var(--gold) 100%);
	}

	.site-header__bar {
		grid-template-columns: auto 1fr auto auto;
		grid-template-areas: "logo . call toggle";
		min-height: 64px;
	}

	.site-logo img {
		max-width: 180px;
	}

	.header-call__label {
		display: none;
	}

	.menu-toggle {
		grid-area: toggle;
		position: relative;
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 6px;
		background: var(--navy);
		color: var(--white);
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		transition: transform 0.2s, background-color 0.2s;
	}

	.menu-toggle__bars {
		position: relative;
	}

	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__bars::before {
		top: -7px;
	}

	.menu-toggle__bars::after {
		top: 7px;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
		background: transparent;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.main-nav {
		display: none;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav .container {
		padding: 0;
	}

	.main-nav li {
		position: relative;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.main-nav .menu a {
		display: block;
		padding: 13px 64px 13px var(--header-gap);
		font-size: 15px;
		font-weight: 600;
	}

	.main-nav .sub-menu {
		display: none;
		background: rgba(0, 0, 0, 0.18);
	}

	.main-nav li.is-open > .sub-menu {
		display: block;
	}

	.main-nav .sub-menu a {
		padding-left: calc(var(--header-gap) + 16px);
		font-weight: 500;
	}

	.main-nav .sub-menu .sub-menu a {
		padding-left: calc(var(--header-gap) + 32px);
	}

	.main-nav .current-menu-item > a {
		color: var(--gold);
	}

	.submenu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		display: grid;
		place-items: center;
		width: 56px;
		height: 50px;
		padding: 0;
		border: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.1);
		background: transparent;
		color: var(--white);
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: "";
		border-top: 6px solid currentColor;
		border-right: 6px solid transparent;
		border-left: 6px solid transparent;
		transition: transform 0.2s;
	}

	.submenu-toggle[aria-expanded="true"]::before {
		transform: rotate(180deg);
	}
}

/* Footer
---------------------------------------------------------------- */
.site-footer {
	background: var(--navy-dark);
	color: var(--white);
}

/* Icons on the first row, text on the second, both centred. */
.site-footer__inner {
	display: grid;
	justify-items: center;
	row-gap: 22px;
	padding-top: 36px;
	padding-bottom: 40px;
	text-align: center;
}

.social-links {
	display: grid;
	grid-auto-flow: column;
	column-gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--white);
	color: var(--navy-dark);
	transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover,
.social-links a:focus-visible {
	background: var(--gold);
	color: var(--white);
}

.site-footer__text {
	max-width: 1080px;
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
}

.site-footer__link {
	margin-left: 4px;
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
	color: var(--white);
}

.to-top {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 2px;
	background: var(--gold);
	color: var(--white);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s, filter 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.to-top:hover,
.to-top:focus-visible {
	filter: brightness(1.1);
}

@media (max-width: 600px) {
	:root {
		--header-gap: 16px;
	}

	.site-footer__inner {
		padding-top: 28px;
		padding-bottom: 32px;
	}

	.site-footer__text {
		font-size: 14px;
	}

	.to-top {
		right: 16px;
		bottom: 16px;
	}

	.site-logo img {
		max-width: 150px;
	}

	.header-call__number {
		display: none;
	}

	.header-call__phone {
		padding: 4px;
		background: var(--pill);
	}
}

/* About page
---------------------------------------------------------------- */
.page-template-about .site-main {
	max-width: none;
	padding: 0;
}

.about-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Banner: photo with a light navy tint, title on the left. */
.about-banner {
	display: grid;
	align-items: center;
	min-height: 210px;
	padding: 40px 0;
	background: linear-gradient(rgba(0, 53, 103, 0.45), rgba(0, 53, 103, 0.45)), var(--bg, none) center / cover no-repeat, var(--navy-dark);
}

.about-banner__title {
	margin: 0;
	color: var(--white);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.1;
}

/* Content: one column of sections; all spacing comes from grid gaps. */
.about-content {
	display: grid;
	gap: 36px;
	padding-top: 80px;
	padding-bottom: 80px;
}

.about-section {
	display: grid;
	gap: 16px;
}

.about-section__title,
.about-section__subtitle {
	margin: 0;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	line-height: 1.25;
}

.about-section__title {
	font-size: clamp(28px, 3vw, 38px);
}

.about-section__subtitle {
	font-size: clamp(22px, 2.4vw, 30px);
}

.about-section__text {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* wide images in the text never widen the column */
	gap: 16px;
	color: #4a4f57;
	font-size: 15px;
	line-height: 1.75;
}

.about-section__text > * {
	margin: 0;
}

.about-section__text a {
	color: var(--gold);
	text-decoration: none;
}

.about-section__text a:hover,
.about-section__text a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.about-banner {
		min-height: 150px;
	}

	.about-content {
		gap: 28px;
		padding-top: 48px;
		padding-bottom: 48px;
	}
}

/* Attorney profile (template-attorney.php)
---------------------------------------------------------------- */
.page-template-template-attorney .site-main {
	max-width: none;
	padding: 0;
}

/* Photo and info card on the left, biography on the right. */
.profile {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
	gap: 40px;
	align-items: start;
	padding-top: 60px;
	padding-bottom: 80px;
}

.profile__aside {
	display: grid;
	gap: 20px;
}

.profile__photo {
	margin: 0;
	padding: 14px;
	border: 1px solid var(--gold);
	background: var(--white);
}

.profile__photo img {
	display: block;
	width: 100%;
}

.profile-card {
	display: grid;
	gap: 14px;
	padding: 30px 24px;
	background: #f4f6f8;
}

.profile-card__title {
	margin: 6px 0 0;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
}

.profile-card__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0 0 0 20px;
	color: #333;
	font-size: 16px;
}

.profile-card__list li::marker {
	color: #111;
}

.profile-card__details {
	color: #4a4f57;
	font-size: 14px;
	line-height: 1.6;
}

.profile-card__details p {
	margin: 0;
}

.profile-card__details strong {
	color: var(--ink);
}

.profile__main {
	display: grid;
	gap: 36px;
}

/* Headings typed in the biography editor. */
.profile__bio h2,
.profile__bio h3,
.profile__contact h3 {
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 400;
	line-height: 1.25;
}

.profile__bio h2 strong,
.profile__bio h3 strong,
.profile__contact h3 strong {
	font-weight: 400;
}

.profile__awards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 20px;
	align-items: center;
	justify-items: center;
	max-width: 520px;
}

.profile__awards img {
	width: auto;
	max-height: 80px;
}

.profile__contact {
	display: grid;
	gap: 16px;
}

@media (max-width: 900px) {
	.profile {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 40px;
		padding-bottom: 56px;
	}

	.profile__photo {
		max-width: 360px;
	}

	.profile__awards {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: none;
	}
}

@media (max-width: 480px) {
	.profile__awards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Content with sidebar (template-sidebar.php)
---------------------------------------------------------------- */
.page-template-template-sidebar .site-main {
	max-width: none;
	padding: 0;
}

/* Text on the left, menu on the right. */
.with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	gap: 60px;
	align-items: start;
	padding-top: 60px;
	padding-bottom: 80px;
}

.with-sidebar--none {
	grid-template-columns: minmax(0, 1fr);
}

/* Headings typed in the text editor. */
.with-sidebar__content h2,
.with-sidebar__content h3,
.with-sidebar__title {
	margin: 0;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	line-height: 1.25;
}

.with-sidebar__content h2,
.with-sidebar__title {
	font-size: clamp(26px, 3vw, 34px);
}

.with-sidebar__content h3 {
	font-size: clamp(22px, 2.4vw, 28px);
}

.with-sidebar__content strong {
	color: var(--ink);
}

/* Bold text inside a link keeps the link colour. */
.with-sidebar__content :is(h1, h2, h3, h4, h5, h6) strong,
.with-sidebar__content a strong,
.contact-page__text a strong {
	color: inherit;
}

.with-sidebar__aside {
	display: grid;
	gap: 18px;
}

.side-menu ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 18px;
	list-style: disc;
}

.side-menu .sub-menu {
	margin-top: 4px;
	padding-left: 16px;
}

.side-menu li::marker {
	color: var(--ink);
}

.side-menu a {
	color: var(--navy);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

.side-menu a:hover,
.side-menu a:focus-visible,
.side-menu .current-menu-item > a {
	color: var(--gold);
}

@media (max-width: 900px) {
	.with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		padding-top: 40px;
		padding-bottom: 56px;
	}
}

/* Contact (template-contact.php)
---------------------------------------------------------------- */
.page-template-template-contact .site-main {
	max-width: none;
	padding: 0;
}

/* Details and form side by side, then map and text across the full width. */
.contact-page {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-areas:
		"info form"
		"map  map"
		"text text";
	gap: 60px 50px;
	align-items: start;
	padding-top: 60px;
	padding-bottom: 80px;
}

.contact-page__info {
	grid-area: info;
	display: grid;
	gap: 16px;
}

.contact-page__title,
.contact-page__subtitle,
.contact-page__text h2,
.contact-page__text h3 {
	margin: 0;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	line-height: 1.25;
}

.contact-page__title {
	font-size: clamp(28px, 3vw, 36px);
}

.contact-page__subtitle,
.contact-page__text h2,
.contact-page__text h3 {
	font-size: clamp(22px, 2.4vw, 28px);
}

.contact-page__details {
	display: grid;
	color: #4a4f57;
	font-size: 14px;
	line-height: 1.75;
}

.contact-page__details address,
.contact-page__details p {
	margin: 0;
	font-style: normal;
}

.contact-page__details strong {
	color: var(--ink);
}

.contact-page__details a {
	color: var(--gold);
	text-decoration: none;
}

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

/* Form on a navy card. */
.contact-page__form {
	grid-area: form;
	padding: 30px;
	background: var(--navy);
}

.contact-page__form iframe {
	display: block;
	width: 100%;
	min-height: 550px;
	border: 0;
}

.contact-page__form .form-empty {
	margin: 0;
	color: var(--white);
}

.contact-page__map {
	grid-area: map;
	line-height: 0;
}

.contact-page__map iframe {
	width: 100%;
	border: 0;
}

.contact-page__text {
	grid-area: text;
}

@media (max-width: 900px) {
	.contact-page {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"info"
			"form"
			"map"
			"text";
		gap: 40px;
		padding-top: 40px;
		padding-bottom: 56px;
	}

	.contact-page__form {
		padding: 20px 16px;
	}
}

/* Two menus in the sidebar (template-sidebar.php) */
.with-sidebar__aside {
	gap: 40px;
}

.with-sidebar__block {
	display: grid;
	gap: 18px;
}

/* CTA box: [cta] shortcode in page text
---------------------------------------------------------------- */
.cta-box {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 24px;
	align-items: center;
	padding: 22px 24px;
	border-radius: 6px;
	background: linear-gradient(120deg, #0a1f33, #12395c);
	color: var(--white);
}

.cta-box__text {
	display: grid;
	gap: 4px;
}

.cta-box p {
	margin: 0;
	font-size: 14px;
}

.cta-box .cta-box__title {
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(22px, 2.4vw, 26px);
	line-height: 1.2;
}

.about-section__text .cta-box__button,
.cta-box__button {
	padding: 12px 22px;
	border-radius: 4px;
	background: var(--gold);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.about-section__text .cta-box__button:hover,
.about-section__text .cta-box__button:focus-visible {
	background: var(--white);
	color: var(--navy);
	text-decoration: none;
}

@media (max-width: 600px) {
	.cta-box {
		grid-template-columns: minmax(0, 1fr);
	}

	.cta-box__button {
		justify-self: start;
	}
}

/* Sidebar menus as cards ("Show menus as cards") */
.with-sidebar--cards .with-sidebar__aside {
	gap: 24px;
}

.with-sidebar--cards .with-sidebar__block {
	gap: 0;
	overflow: hidden;
	border: 1px solid #e3e6ea;
	border-radius: 6px;
	background: var(--white);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.with-sidebar--cards .with-sidebar__title {
	padding: 14px 18px;
	background: #1e2a3a;
	color: var(--white);
	font-size: 18px;
}

.with-sidebar--cards .side-menu {
	padding: 16px 18px 20px;
}

/* No text: the menus stand side by side across the full width. */
.with-sidebar--menus-only {
	grid-template-columns: minmax(0, 1fr);
}

.with-sidebar--menus-only .with-sidebar__aside {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
}

/* Videos inside page text: full width, 16:9. */
.about-section__text iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Resources: FAQ, Case results, Testimonials
---------------------------------------------------------------- */
.page-template-template-faq .site-main,
.page-template-template-cases .site-main,
.page-template-template-testimonials .site-main {
	max-width: none;
	padding: 0;
}

/* Light band behind cards and the accordion. */
.page-band {
	padding: 60px 0 80px;
	background: #f4f6f8;
}

/* Two equal columns of cards; rows take the height of the tallest card. */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

/* Case result card: amount on a navy bar, details below. */
.case-card {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	background: var(--white);
	box-shadow: 0 6px 22px rgba(11, 39, 64, 0.08);
}

.case-card__amount {
	margin: 0;
	padding: 18px 24px;
	background: var(--navy);
	color: var(--white);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(24px, 2.4vw, 28px);
	line-height: 1.2;
}

.case-card__body {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 22px 24px 26px;
	color: #4a4f57;
	font-size: 14px;
	line-height: 1.7;
}

.case-card__body p {
	margin: 0;
}

.case-card__title {
	margin: 0 0 4px;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
}

.case-card .case-card__label {
	color: var(--ink);
	font-weight: 700;
}

/* Testimonial card: gold quote mark, text, name. */
.quote-card {
	display: grid;
	align-content: start;
	gap: 16px;
	margin: 0;
	padding: 28px 26px;
	background: var(--white);
	box-shadow: 0 6px 22px rgba(11, 39, 64, 0.08);
}

.quote-card__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2px solid var(--gold);
	border-radius: 3px;
	color: var(--gold);
}

.quote-card p {
	margin: 0;
	color: #4a4f57;
	font-size: 14px;
	line-height: 1.7;
}

.quote-card cite {
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 16px;
	font-style: normal;
}

/* FAQ accordion. */
.faq-list {
	display: grid;
	gap: 16px;
}

.faq-item {
	background: var(--white);
	box-shadow: 0 6px 22px rgba(11, 39, 64, 0.06);
}

.faq-item__question {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 20px 24px;
	color: var(--navy-dark);
	font-size: 15px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question::after {
	content: "+";
	color: var(--navy);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
}

.faq-item[open] .faq-item__question {
	color: var(--gold);
}

.faq-item[open] .faq-item__question::after {
	content: "\2212";
	color: var(--gold);
}

.faq-item__question:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: -2px;
}

.faq-item__answer {
	padding: 0 24px 24px;
	font-size: 14px;
}

@media (max-width: 767px) {
	.page-band {
		padding: 40px 0 56px;
	}

	.cards-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.faq-item__question {
		padding: 16px 18px;
	}

	.faq-item__answer {
		padding: 0 18px 20px;
	}
}

/* Blog: list page (template-blog.php) and single post (single.php)
---------------------------------------------------------------- */
.page-template-template-blog .site-main,
.single-post .site-main {
	max-width: none;
	padding: 0;
}

/* List: white cards in two equal columns; cards in a row share the same height. */
.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 35px 30px;
	padding-top: 80px;
	padding-bottom: 80px;
}

/* Title, date, excerpt and link stacked; the link keeps its own width. */
.post-row__text {
	display: grid;
	align-content: start;
	justify-items: start;
}

/* Intro text and pagination span both columns. */
.post-list__intro,
.post-list > .pagination,
.post-list > p {
	grid-column: 1 / -1;
}

.post-row {
	display: grid;
	align-content: start;
	padding: 30px 30px 32px;
	border-radius: 3px;
	background: var(--white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.post-row__title {
	margin: 0 0 24px;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
}

.post-row__title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s linear;
}

.post-row__title a:hover,
.post-row__title a:focus-visible {
	color: var(--gold);
}

.post-row__excerpt {
	margin: 0 0 30px;
	color: #334155;
	font-size: 14px;
	line-height: 1.5;
}

.post-row__more {
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.65;
	text-decoration: none;
	text-transform: uppercase;
}

.post-row__more:hover,
.post-row__more:focus-visible {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.post-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.post-row {
		padding: 24px 22px 26px;
	}

	.post-row__title {
		margin-bottom: 16px;
		font-size: 20px;
	}

	.post-row__excerpt {
		margin-bottom: 22px;
	}
}

/* Pagination: plain centred links; current page and unavailable arrows in grey. */
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
	color: #334155;
	font-size: 16px;
	line-height: 1.6;
}

.pagination .page-numbers {
	color: #334155;
	text-decoration: none;
}

.pagination a.page-numbers {
	color: var(--gold);
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	text-decoration: underline;
}

.pagination .page-numbers.current {
	font-weight: 600;
}

/* Single post: navy band with breadcrumbs and title. */
.post-hero {
	padding: 40px 0 48px;
	background: var(--navy);
	color: var(--white);
}

.post-hero__title {
	margin: 10px 0 0;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 400;
	line-height: 1.2;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.breadcrumbs li + li::before {
	content: "\00bb";
	margin: 0 8px;
	color: var(--white);
}

.breadcrumbs a {
	color: var(--gold);
	text-decoration: none;
}

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

.post-single__article {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* wide content never stretches the column */
	gap: 30px;
}

/* Images with captions ([caption] / figure) have a fixed width in the text: keep them inside the column. */
.about-section__text .wp-caption,
.about-section__text figure {
	max-width: 100% !important;
	margin: 0;
}

.about-section__text .wp-caption img,
.about-section__text figure img {
	display: block;
	max-width: 100%;
	height: auto;
}

.about-section__text .wp-caption-text,
.about-section__text figcaption {
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
}

.post-single__article .about-section__text h2,
.post-single__article .about-section__text h3 {
	margin: 0;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 400;
	line-height: 1.25;
}

.post-single__article .about-section__text h2 {
	font-size: clamp(24px, 2.8vw, 32px);
}

.post-single__article .about-section__text h3 {
	font-size: clamp(20px, 2.2vw, 24px);
}

.post-single__article .about-section__text img {
	max-width: 100%;
	height: auto;
}

/* "Recent Posts" card stays in view while the text scrolls; a tall card with a form scrolls normally. */
.post-single__aside:has(.recent-posts) {
	position: sticky;
	top: 24px;
}

.recent-posts {
	display: grid;
	gap: 16px;
	padding: 24px 24px 28px;
	border-radius: 6px;
	background: var(--navy);
	color: var(--white);
}

.recent-posts__title {
	margin: 0;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 22px;
	font-weight: 400;
}

.recent-posts ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.recent-posts a {
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.recent-posts a:hover,
.recent-posts a:focus-visible,
.recent-posts a[aria-current="page"] {
	color: var(--gold);
}

/* Share links under the post. */
.share-buttons {
	display: grid;
	grid-auto-flow: column;
	justify-content: start;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid #dfe3e8;
}

.share-buttons__link {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 3px;
	color: var(--white);
	transition: filter 0.2s;
}

.share-buttons__link:hover,
.share-buttons__link:focus-visible {
	filter: brightness(1.15);
}

.share-buttons__link--facebook {
	background: #3b5998;
}

.share-buttons__link--email {
	background: #ea4335;
}

.share-buttons__link--x {
	background: #000;
}

.share-buttons__link--linkedin {
	background: #0077b5;
}

@media (max-width: 900px) {
	.post-single__aside:has(.recent-posts) {
		position: static;
	}
}

/* Post list layouts (Blog template, archive.php)
---------------------------------------------------------------- */
.archive .site-main {
	max-width: none;
	padding: 0;
}

/* Posts and the "Archives" card side by side (about 2.7 : 1, like the old site). */
.posts-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 763fr) minmax(250px, 285fr);
	gap: 70px;
	align-items: start;
}

/* List layout: rows of text with the featured image on the right. */
.post-list--list {
	grid-template-columns: minmax(0, 1fr);
	gap: 50px;
}

.post-list--list .post-row {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px 28px;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.post-list--list .post-row.has-thumb {
	grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
}

.post-row__image {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.post-row__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 23 / 16;
	object-fit: cover;
	transition: transform 0.3s;
}

.post-row__image:hover img {
	transform: scale(1.03);
}

.post-list--list .post-row__title {
	margin-bottom: 8px;
	font-size: 22px;
	line-height: 1.25;
}

.post-list--list .post-row__title a {
	color: var(--navy);
}

.post-list--list .post-row__title a:hover,
.post-list--list .post-row__title a:focus-visible {
	color: var(--gold);
}

.post-row__date {
	margin: 0 0 12px;
	color: var(--gold);
	font-size: 15px;
}

.post-list--list .post-row__excerpt {
	margin-bottom: 16px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.45;
}

.post-list--list .post-row__more {
	color: var(--navy);
	font-size: 14px;
	letter-spacing: normal;
	text-transform: none;
}

.posts-layout--sidebar .posts-layout__aside {
	padding-top: 80px;
}

/* Side card: dark title bar, list below (Archives). */
.side-card {
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: var(--white);
}

.side-card__title {
	margin: 0;
	padding: 20px 22px;
	background: #1e293b;
	color: var(--white);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.1;
}

.side-card__body {
	padding: 22px 22px 26px 36px;
}

.side-card__body ul {
	gap: 6px;
}

.side-card__body a {
	color: var(--navy);
	font-size: 15px;
}

/* Date under the post title (categories with "Show date on posts"). */
.post-hero__date {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: center;
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
}

.post-hero__date svg {
	color: var(--gold);
}

@media (max-width: 900px) {
	.posts-layout--sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.post-list--list .post-row.has-thumb {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-list--list .post-row__image {
		order: -1;
	}

	.posts-layout--sidebar .posts-layout__aside {
		padding-top: 0;
		padding-bottom: 56px;
	}
}

/* News post blocks (single.php, set per category)
---------------------------------------------------------------- */

/* Navy card with a form on the right ("Request a Police Report"). */
.form-side-card {
	display: grid;
	gap: 14px;
	padding: 24px 20px 12px;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	background: var(--navy);
	color: var(--white);
}

.form-side-card__title {
	margin: 0;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
}

.form-side-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

.form-side-card iframe {
	display: block;
	width: 100%;
	border: 0;
}

.form-side-card .form-empty {
	color: var(--white);
}

/* Grey box with a gold edge: text and a gold button that opens the form. */
.removal-box {
	display: grid;
	gap: 16px;
	padding: 22px 22px 18px;
	border-left: 5px solid var(--gold);
	border-radius: 10px;
	background: #f4f6f9;
}

.removal-box .about-section__text {
	font-size: 13px;
	line-height: 1.6;
}

.removal-box__form summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	padding: 10px 14px;
	background: var(--gold);
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

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

.removal-box__form summary::after {
	content: "+";
	font-size: 18px;
	line-height: 1;
}

.removal-box__form[open] summary::after {
	content: "\2212";
}

.removal-box__form summary:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

.removal-box__form > div {
	padding-top: 12px;
}

.removal-box__form iframe {
	display: block;
	width: 100%;
	min-height: 360px;
	border: 0;
}

/* Navy gradient box ("Funeral Cost") with a call to action. */
.help-box {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: 26px 30px 30px;
	border-radius: 10px;
	background: linear-gradient(120deg, #0a1f33, #12395c);
	color: var(--white);
	text-align: center;
}

.help-box__title {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	font-size: 16px;
	letter-spacing: 0.06em;
}

.help-box__text {
	margin: 0;
	font-size: 13px;
	font-style: italic;
	line-height: 1.7;
}

.help-box__link {
	color: var(--white);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(18px, 2vw, 22px);
	text-decoration: none;
	text-transform: uppercase;
}

.help-box__link:hover,
.help-box__link:focus-visible {
	color: var(--gold);
}

/* Related posts band: three cards with the date at the bottom. */
.related-posts {
	padding: 56px 0 70px;
	background: #f6f8fa;
	text-align: center;
}

.related-posts__eyebrow {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.related-posts__title {
	margin: 0 0 32px;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 400;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	text-align: left;
}

.related-card {
	display: grid;
	grid-template-rows: 1fr auto;
	border-radius: 3px;
	background: var(--white);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

.related-card__body {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 14px;
	padding: 22px 22px 20px;
}

.related-card__title {
	margin: 0;
	font-family: "DM Serif Display", Georgia, serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
}

.related-card__title a {
	color: #1e293b;
	text-decoration: none;
}

.related-card__title a:hover,
.related-card__title a:focus-visible {
	color: var(--gold);
}

.related-card__body p {
	margin: 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.6;
}

.related-card__more {
	color: var(--gold);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.related-card__meta {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 14px 22px;
	border-top: 1px solid #eef0f3;
	color: #6b7280;
	font-size: 12px;
}

@media (max-width: 900px) {
	.related-posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Thank You page
---------------------------------------------------------------- */
.thanks {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	align-content: start;
	min-height: 480px;
	padding: 32px 20px 60px;
	color: var(--navy);
	font-family: "DM Serif Display", Georgia, serif;
	text-align: center;
}

.thanks__title {
	margin: 0;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.1;
}

.thanks__text {
	margin: 0;
	font-size: clamp(22px, 3vw, 36px);
	line-height: 1.3;
}

@media (max-width: 767px) {
	.thanks {
		min-height: 320px;
	}
}

.site-main:has(> .thanks) {
	max-width: none;
	padding: 0;
}
