/*
Theme Name: Seifer Journal
Theme URI: https://blog.viacheslavseifer.com
Author: Seifer
Author URI: https://viacheslavseifer.com
Description: A bespoke RTL editorial theme for the Seifer real-estate blog in Beer Sheva.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: seifer-journal
*/

:root {
	--navy: #0a2134;
	--navy-deep: #061824;
	--navy-soft: #102b40;
	--cream: #f7f3eb;
	--paper: #fffdf9;
	--gold: #bd9457;
	--gold-light: #d9b97f;
	--ink: #14212b;
	--muted: #61707a;
	--line: #ded8cc;
	--white: #ffffff;
	--shadow: 0 24px 65px rgba(18, 36, 49, 0.09);
	--header-height: 86px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Arial, "Noto Sans Hebrew", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

.shell {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.section {
	padding: 104px 0;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: -100px;
	right: 16px;
	z-index: 1000;
	background: var(--white);
	color: var(--navy);
	padding: 10px 16px;
	box-shadow: var(--shadow);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #f0b84c;
	outline-offset: 3px;
}

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-height);
	background: rgba(7, 25, 39, 0.94);
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
	color: var(--white);
	backdrop-filter: blur(14px);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
	background: rgba(6, 24, 36, 0.985);
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

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

.header-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 100%;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	padding: 5px;
	border-radius: 50%;
	background: var(--paper);
	flex: 0 0 auto;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.28;
}

.brand-copy strong {
	font-size: 17px;
}

.brand-copy small {
	color: #aebbc3;
	font-size: 10px;
}

.main-nav {
	margin-inline: auto;
}

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

.main-nav li {
	position: relative;
}

.main-nav a {
	color: #dce3e7;
	font-size: 14px;
	transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--gold-light);
}

.main-nav .sub-menu {
	position: absolute;
	top: calc(100% + 20px);
	right: -18px;
	display: none;
	min-width: 210px;
	padding: 12px;
	background: var(--navy-deep);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	display: flex;
	align-items: stretch;
	flex-direction: column;
	gap: 0;
}

.main-nav .sub-menu a {
	display: block;
	padding: 8px 10px;
}

.menu-main-site a {
	color: var(--gold-light);
}

.menu-button {
	display: none;
	width: 44px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--white);
	cursor: pointer;
}

.menu-button i {
	display: block;
	height: 2px;
	margin: 6px 3px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] i:nth-of-type(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] i:nth-of-type(2) {
	opacity: 0;
}

.menu-button[aria-expanded="true"] i:nth-of-type(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Shared components */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 23px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button-gold {
	background: var(--gold);
	color: var(--navy);
}

.button-gold:hover {
	background: #d1ad72;
}

.button-dark {
	background: var(--navy);
	color: var(--white);
}

.button-dark:hover {
	background: #153b57;
}

.button-outline {
	border-color: rgba(255, 255, 255, 0.56);
	background: rgba(255, 255, 255, 0.04);
	color: var(--white);
}

.button-outline:hover {
	border-color: var(--white);
	background: rgba(255, 255, 255, 0.1);
}

.button-outline-dark {
	border-color: rgba(10, 33, 52, 0.35);
	color: var(--navy);
}

.header-phone {
	flex-direction: column;
	gap: 0;
	min-width: 154px;
	min-height: 50px;
	padding: 6px 16px;
}

.header-phone span {
	font-size: 10px;
	font-weight: 400;
}

.header-phone strong {
	font-size: 13px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	color: #8b6c3e;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.eyebrow span,
.eyebrow i {
	display: inline-block;
	width: 38px;
	height: 1px;
	background: var(--gold);
}

.eyebrow.light {
	color: var(--gold-light);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #7b5d32;
	font-size: 13px;
	font-weight: 700;
}

.text-link span {
	color: var(--gold);
	transition: transform 0.2s ease;
}

.text-link:hover span {
	transform: translateX(-4px);
}

.text-link.light {
	color: var(--gold-light);
}

/* Blog hero */
.blog-hero {
	position: relative;
	min-height: 760px;
	background: var(--navy);
	color: var(--white);
	overflow: hidden;
}

.blog-hero-image,
.blog-hero-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.blog-hero-image {
	object-fit: cover;
	object-position: center;
}

.blog-hero-overlay {
	background:
		linear-gradient(90deg, rgba(5, 20, 31, 0.25), rgba(5, 20, 31, 0.76) 58%, rgba(5, 20, 31, 0.97)),
		linear-gradient(180deg, transparent 55%, rgba(4, 16, 25, 0.6));
}

.blog-hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 270px;
	align-items: center;
	gap: 70px;
	min-height: 760px;
	padding-top: var(--header-height);
}

.blog-hero-copy {
	max-width: 780px;
}

.blog-hero h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(50px, 6vw, 84px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.035em;
}

.blog-hero h1 em {
	color: var(--gold-light);
	font-style: normal;
}

.hero-lead {
	max-width: 680px;
	margin: 28px 0 34px;
	color: #d6e0e5;
	font-size: 19px;
	line-height: 1.85;
}

.hero-actions {
	display: flex;
	gap: 12px;
}

.trust-line {
	display: flex;
	gap: 0;
	margin-top: 42px;
	color: #bdc9cf;
	font-size: 13px;
}

.trust-line span {
	padding: 0 18px;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.trust-line span:first-child {
	padding-right: 0;
}

.trust-line span:last-child {
	border-left: 0;
}

.hero-note {
	display: flex;
	flex-direction: column;
	align-self: end;
	margin-bottom: 100px;
	padding: 22px;
	border-right: 2px solid var(--gold);
	background: rgba(9, 34, 52, 0.62);
	backdrop-filter: blur(8px);
}

.hero-note-icon {
	color: var(--gold-light);
	font-size: 24px;
}

.hero-note small {
	margin-top: 12px;
	color: #b6c2c9;
}

.hero-note strong {
	font-size: 19px;
}

.hero-note a {
	align-self: flex-start;
	margin-top: 14px;
	border-bottom: 1px solid rgba(217, 185, 127, 0.5);
	color: var(--gold-light);
	font-size: 14px;
}

/* Home article listing */
.articles-section {
	background: var(--paper);
}

.section-heading {
	margin-bottom: 46px;
}

.section-heading.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	gap: 80px;
}

.section-heading h2,
.topics-intro h2,
.contact-band h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(40px, 5vw, 62px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.03em;
}

.section-heading > p:last-child {
	max-width: 650px;
	margin: 0;
	color: var(--muted);
}

.featured-article {
	display: grid;
	grid-template-columns: 1.18fr 0.82fr;
	min-height: 510px;
	margin-bottom: 34px;
	background: var(--white);
	border: 1px solid #e8e1d6;
	box-shadow: var(--shadow);
}

.featured-image {
	display: block;
	min-height: 510px;
	overflow: hidden;
}

.featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.featured-article:hover .featured-image img {
	transform: scale(1.025);
}

.featured-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 50px 44px;
}

.category-label {
	align-self: flex-start;
	margin-bottom: 24px;
	color: #8b6c3e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.035em;
}

.category-label::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 1px;
	margin-left: 9px;
	vertical-align: middle;
	background: var(--gold);
}

.featured-copy h2 {
	margin: 0 0 18px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3.3vw, 47px);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.featured-copy > p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.featured-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: auto;
	padding-top: 34px;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #7a858c;
	font-size: 12px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--white);
	border: 1px solid #e8e1d6;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
	transform: translateY(-7px);
	border-color: #d4bd98;
	box-shadow: 0 20px 55px rgba(20, 33, 43, 0.1);
}

.post-card-image {
	position: relative;
	display: block;
	height: 245px;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.04);
}

.post-card-image span {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 6px 11px;
	background: var(--gold);
	color: var(--navy);
	font-size: 11px;
	font-weight: 700;
}

.post-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 27px;
}

.post-card h2 {
	margin: 14px 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: 500;
	line-height: 1.3;
}

.post-card h2 a:hover {
	color: #795a2d;
}

.post-card p {
	margin: 0 0 26px;
	color: var(--muted);
	font-size: 14px;
}

.post-card .text-link {
	margin-top: auto;
	padding-top: 19px;
	border-top: 1px solid var(--line);
}

.navigation.pagination {
	margin-top: 48px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 7px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--navy);
	font-size: 13px;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

.empty-state {
	padding: 70px 30px;
	background: var(--cream);
	text-align: center;
}

.empty-state h2 {
	margin: 0 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 38px;
	font-weight: 500;
}

.empty-state p {
	color: var(--muted);
}

/* Topic band */
.topics-section {
	background: var(--navy);
	color: var(--white);
}

.topics-layout {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 90px;
}

.topics-intro {
	align-self: start;
}

.topics-intro > p:not(.eyebrow) {
	color: #b8c4ca;
}

.topic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.topic-grid article {
	min-height: 220px;
	padding: 34px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topic-grid article:nth-child(odd) {
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.topic-grid article > span {
	color: var(--gold);
	font-family: Georgia, "Times New Roman", serif;
}

.topic-grid h3 {
	margin: 18px 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 500;
}

.topic-grid p {
	margin: 0;
	color: #b8c4ca;
	font-size: 14px;
}

/* Single post */
.article-hero,
.listing-hero {
	position: relative;
	padding: calc(var(--header-height) + 88px) 0 92px;
	background: var(--navy);
	color: var(--white);
	overflow: hidden;
}

.article-hero-pattern {
	position: absolute;
	inset: -50%;
	opacity: 0.16;
	background: repeating-radial-gradient(at 58% 45%, transparent 0 45px, #d9b97f 46px 47px, transparent 48px 75px);
	transform: rotate(-12deg);
}

.article-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 38px;
	color: #aebbc3;
	font-size: 12px;
}

.breadcrumbs a:hover {
	color: var(--gold-light);
}

.light-label {
	color: var(--gold-light);
}

.article-hero h1 {
	max-width: 940px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(43px, 6.2vw, 76px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.article-intro {
	max-width: 800px;
	margin: 28px 0 0;
	color: #c9d4da;
	font-size: 18px;
	line-height: 1.8;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	color: #aebbc3;
	font-size: 13px;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 70px;
	padding-top: 72px;
	padding-bottom: 105px;
}

.article-main {
	min-width: 0;
}

.article-featured-image {
	margin: 0 0 58px;
}

.article-featured-image img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

.article-content {
	color: #293945;
	font-size: 18px;
	line-height: 1.92;
}

.article-content > *:first-child {
	margin-top: 0;
}

.article-content p {
	margin: 0 0 1.45em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	line-height: 1.27;
}

.article-content h2 {
	margin: 2em 0 0.72em;
	font-size: clamp(31px, 4vw, 43px);
	letter-spacing: -0.02em;
}

.article-content h3 {
	margin: 1.8em 0 0.7em;
	font-size: 29px;
}

.article-content h4 {
	margin: 1.6em 0 0.65em;
	font-size: 23px;
}

.article-content a {
	color: #76572b;
	text-decoration: underline;
	text-decoration-color: rgba(189, 148, 87, 0.6);
	text-underline-offset: 4px;
}

.article-content a:hover {
	color: var(--navy);
	text-decoration-color: var(--navy);
}

.article-content ul,
.article-content ol {
	margin: 0 0 1.6em;
	padding-right: 1.35em;
}

.article-content li {
	margin: 0.55em 0;
	padding-right: 0.25em;
}

.article-content li::marker {
	color: var(--gold);
	font-weight: 700;
}

.article-content blockquote {
	margin: 2.2em 0;
	padding: 26px 30px;
	border: 0;
	border-right: 4px solid var(--gold);
	background: var(--cream);
	color: var(--navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
}

.article-content img {
	width: 100%;
	margin: 34px 0;
}

.article-content figure {
	margin: 40px 0;
}

.article-content figcaption,
.wp-caption-text {
	margin-top: -24px;
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}

.article-content table {
	display: table;
	width: 100%;
	margin: 38px 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.65;
}

.article-content th,
.article-content td {
	padding: 14px 16px;
	border: 1px solid var(--line);
	text-align: right;
	vertical-align: top;
}

.article-content th {
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
}

.article-content tbody tr:nth-child(even) {
	background: var(--cream);
}

.article-content hr {
	margin: 46px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.article-content .alignwide {
	width: min(100vw - 40px, 1040px);
	max-width: none;
	margin-right: 50%;
	transform: translateX(50%);
}

.article-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-right: 50%;
	transform: translateX(50%);
}

.article-disclaimer {
	margin-top: 58px;
	padding: 23px 26px;
	border-right: 3px solid var(--gold);
	background: var(--cream);
}

.article-disclaimer strong {
	color: var(--navy);
}

.article-disclaimer p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.article-tags {
	margin-top: 28px;
	color: var(--muted);
	font-size: 13px;
}

.article-tags a {
	display: inline-block;
	margin: 4px;
	padding: 5px 10px;
	background: var(--cream);
}

.post-navigation-custom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 45px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.post-navigation-custom div:last-child {
	text-align: left;
}

.post-navigation-custom a {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.post-navigation-custom small {
	color: var(--muted);
}

.post-navigation-custom strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 500;
}

.sticky-card {
	position: sticky;
	top: calc(var(--header-height) + 30px);
}

.sidebar-card {
	padding: 30px;
	border-top: 4px solid var(--gold);
	background: var(--navy);
	color: var(--white);
	box-shadow: var(--shadow);
}

.sidebar-card h2 {
	margin: 0 0 14px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 31px;
	font-weight: 500;
	line-height: 1.2;
}

.sidebar-card > p:not(.eyebrow) {
	color: #b8c4ca;
	font-size: 14px;
}

.sidebar-card .button {
	width: 100%;
	margin: 15px 0;
}

.sidebar-link {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	color: #dce4e7;
	font-size: 12px;
}

.sidebar-link:hover {
	color: var(--gold-light);
}

.related-section {
	background: var(--cream);
}

/* Listing, pages and search */
.listing-hero {
	min-height: 390px;
}

.listing-hero h1 {
	max-width: 920px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 500;
	line-height: 1.1;
}

.listing-description {
	max-width: 680px;
	margin-top: 20px;
	color: #c3cfd5;
}

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

.search-form {
	display: flex;
	max-width: 650px;
	margin-top: 30px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
}

.search-field::placeholder {
	color: #b7c3c9;
}

.search-submit {
	min-width: 110px;
	border: 0;
	background: var(--gold);
	color: var(--navy);
	font-weight: 700;
	cursor: pointer;
}

.page-content {
	max-width: 820px;
	padding-top: 76px;
	padding-bottom: 100px;
}

.error-page {
	min-height: 720px;
	padding-top: var(--header-height);
	background: var(--cream);
}

.error-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 630px;
}

.error-inner > span {
	color: rgba(189, 148, 87, 0.3);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(100px, 18vw, 230px);
	line-height: 0.8;
}

.error-inner h1 {
	max-width: 760px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 6vw, 68px);
	font-weight: 500;
	line-height: 1.1;
}

.error-inner > p:not(.eyebrow) {
	max-width: 620px;
	color: var(--muted);
}

.error-inner > div {
	display: flex;
	gap: 12px;
	margin-top: 15px;
}

/* Footer and CTA */
.contact-band {
	padding: 72px 0;
	background: var(--navy-soft);
	color: var(--white);
}

.contact-band-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 65px;
}

.contact-band h2 {
	max-width: 760px;
	font-size: clamp(34px, 4.4vw, 54px);
}

.contact-band p:last-child {
	max-width: 680px;
	margin-bottom: 0;
	color: #b8c4ca;
}

.contact-band-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 230px;
}

.site-footer {
	padding: 72px 0 24px;
	background: var(--navy-deep);
	color: #d8e1e5;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 55px;
}

.footer-brand .brand-mark {
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
	padding: 7px;
}

.footer-brand h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
}

.site-footer p {
	margin: 6px 0;
	color: #899da8;
	font-size: 12px;
}

.footer-grid h3 {
	margin: 0 0 17px;
	color: var(--gold-light);
	font-size: 13px;
}

.footer-grid > div:not(:first-child) {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
}

.footer-grid a:hover {
	text-decoration: underline;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	color: #78909c;
	font-size: 11px;
}

.mobile-contact {
	display: none;
}

@media (max-width: 1080px) {
	.main-nav ul {
		gap: 14px;
	}

	.main-nav a {
		font-size: 12px;
	}

	.header-phone {
		display: none;
	}

	.topics-layout {
		grid-template-columns: 300px 1fr;
		gap: 50px;
	}

	.article-layout {
		gap: 45px;
	}
}

@media (max-width: 860px) {
	:root {
		--header-height: 72px;
	}

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

	.admin-bar .main-nav {
		top: calc(var(--header-height) + 46px);
	}

	.shell {
		width: min(680px, calc(100% - 28px));
	}

	.section {
		padding: 76px 0;
	}

	.header-inner {
		justify-content: space-between;
	}

	.brand-mark {
		width: 48px;
		height: 48px;
		padding: 4px;
	}

	.brand-copy strong {
		font-size: 15px;
	}

	.brand-copy small {
		font-size: 9px;
	}

	.menu-button {
		display: block;
	}

	.main-nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--header-height));
		margin: 0;
		padding: 18px 24px 28px;
		background: var(--navy-deep);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		overflow: auto;
	}

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

	.main-nav ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.main-nav a {
		display: block;
		padding: 10px;
		font-size: 15px;
	}

	.main-nav .sub-menu {
		position: static;
		display: flex;
		padding: 0 18px;
		box-shadow: none;
	}

	.blog-hero,
	.blog-hero-inner {
		min-height: 740px;
	}

	.blog-hero-inner {
		grid-template-columns: 1fr;
		padding-top: calc(var(--header-height) + 60px);
		padding-bottom: 80px;
	}

	.blog-hero-overlay {
		background: linear-gradient(90deg, rgba(5, 20, 31, 0.58), rgba(5, 20, 31, 0.9));
	}

	.blog-hero h1 {
		font-size: 52px;
	}

	.hero-lead {
		font-size: 17px;
	}

	.hero-note {
		display: none;
	}

	.section-heading.split,
	.featured-article,
	.topics-layout,
	.article-layout,
	.contact-band-inner {
		grid-template-columns: 1fr;
	}

	.section-heading.split {
		gap: 14px;
	}

	.featured-image {
		min-height: 400px;
		height: 400px;
	}

	.featured-copy {
		padding: 38px 32px;
	}

	.featured-footer {
		margin-top: 28px;
	}

	.article-layout {
		gap: 55px;
		padding-top: 55px;
	}

	.article-sidebar {
		order: -1;
	}

	.sticky-card {
		position: static;
	}

	.sidebar-card {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px 24px;
		align-items: center;
	}

	.sidebar-card .eyebrow,
	.sidebar-card h2,
	.sidebar-card > p {
		grid-column: 1 / -1;
	}

	.sidebar-card .button {
		margin: 6px 0;
	}

	.sidebar-link {
		text-align: center;
	}

	.contact-band-inner {
		gap: 30px;
	}

	.contact-band-actions {
		align-items: stretch;
		flex-direction: row;
	}

	.contact-band-actions .button {
		flex: 1;
	}

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

	.footer-brand {
		grid-column: 1 / -1;
	}

	.mobile-contact {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 90;
		display: grid;
		grid-template-columns: 1fr 1fr;
		box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
	}

	.mobile-contact a {
		padding: 12px;
		background: var(--gold);
		color: var(--navy);
		font-weight: 700;
		text-align: center;
	}

	.mobile-contact a:last-child {
		background: #1f8f5f;
		color: var(--white);
	}

	.site-footer {
		padding-bottom: 78px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}

	.admin-bar .main-nav {
		top: var(--header-height);
	}

	#wpadminbar {
		display: none;
	}

	.section {
		padding: 62px 0;
	}

	.blog-hero,
	.blog-hero-inner {
		min-height: 700px;
	}

	.blog-hero h1 {
		font-size: 43px;
	}

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

	.hero-actions,
	.contact-band-actions,
	.error-inner > div {
		align-items: stretch;
		flex-direction: column;
	}

	.trust-line {
		flex-wrap: wrap;
		gap: 6px 14px;
		font-size: 11px;
	}

	.trust-line span {
		padding: 0;
		border: 0;
	}

	.section-heading h2,
	.topics-intro h2 {
		font-size: 40px;
	}

	.featured-image {
		min-height: 285px;
		height: 285px;
	}

	.featured-copy {
		padding: 30px 23px;
	}

	.featured-copy h2 {
		font-size: 31px;
	}

	.featured-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.post-card-image {
		height: 235px;
	}

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

	.topic-grid article:nth-child(odd) {
		border-left: 0;
	}

	.topic-grid article {
		min-height: auto;
		padding: 28px 12px;
	}

	.article-hero,
	.listing-hero {
		padding-top: calc(var(--header-height) + 62px);
		padding-bottom: 68px;
	}

	.article-hero h1,
	.listing-hero h1 {
		font-size: 42px;
	}

	.article-intro {
		font-size: 16px;
	}

	.article-meta {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.article-featured-image {
		margin-bottom: 38px;
	}

	.article-content {
		font-size: 17px;
	}

	.article-content h2 {
		font-size: 31px;
	}

	.article-content table {
		display: block;
		overflow-x: auto;
		white-space: normal;
	}

	.sidebar-card {
		display: block;
	}

	.sidebar-link {
		text-align: right;
	}

	.post-navigation-custom {
		grid-template-columns: 1fr;
	}

	.post-navigation-custom div:last-child {
		text-align: right;
	}

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

	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		flex-direction: column;
	}

	.search-form {
		flex-direction: column;
		gap: 8px;
	}

	.search-submit {
		height: 48px;
	}
}

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

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