/* Home page */

/* ---------- Hero (wide banner; its own layout, not the shared .hero) ---------- */

.home-hero {
	aspect-ratio: 3/1;
	min-height: 320px;
	color: var(--offwhite);
	border-bottom: 1px solid var(--border-brown);
	background: #080e12 url("/images/home-hero.jpg") center/cover no-repeat;
	overflow: hidden;
}

.home-hero-inner {
	width: min(1224px, calc(100% - 72px));
	min-height: 320px;
	aspect-ratio: 3/1;
	margin: auto;
	position: relative;
	display: flex;
	align-items: center;
}

.home-hero-copy {
	z-index: 1;
	position: relative;
	max-width: 650px;
	width: 55%;
	padding: 24px 0;
	text-shadow: 0 2px 16px #000;
}

.home-hero h1 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 49px;
	letter-spacing: 1.4px;
	line-height: 1.08;
	margin: 14px 0 13px;
	font-weight: 500;
}

.home-hero h1 span {
	color: var(--gold);
}

.home-hero p {
	font-size: 14px;
	color: #c8c7c6;
	max-width: 660px;
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 1000px) {
	.home-hero,
	.home-hero-inner {
		aspect-ratio: auto;
	}
	.home-hero-inner {
		width: calc(100% - 72px);
	}
	.home-hero-copy {
		width: 65%;
	}
	.home-hero h1 {
		font-size: 42px;
	}
}

@media (max-width: 760px) {
	.home-hero {
		min-height: 0;
		height: 360px;
		background-image: linear-gradient(0deg, #000d 0%, #0008 40%, #0000 70%), url("/images/home-hero.jpg");
		background-position: center, 88% center;
	}
	.home-hero-inner {
		min-height: 0;
		height: 100%;
		width: calc(100% - 32px);
		align-items: flex-end;
	}
	.home-hero-copy {
		width: 100%;
		padding: 0 0 28px;
	}
	.home-hero h1 {
		font-size: 36px;
		margin-bottom: 0;
	}
}

/* ---------- Footer: no top rule on the home page ---------- */

.site-foot {
	border-top: 0;
}

/* ---------- Services grid ---------- */

.services-section {
	width: min(1224px, calc(100% - 48px));
	margin: auto;
	padding: 48px 0 64px;
}

.section-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 29px;
}

.section-top h2 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 34px;
	font-weight: 500;
	letter-spacing: 0.7px;
	margin: 0 0 9px;
}

.section-top p {
	color: #b1b0ac;
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}

.section-top .hint {
	color: #818385;
	font-size: 12px;
	white-space: nowrap;
	padding-bottom: 8px;
}

/* Services are grouped in rows of three, each with a small label above it */
.service-group + .service-group {
	margin-top: 34px;
}

.group-label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--gold);
}

/* Thin line running from the label to the right edge */
.group-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.service-card {
	background: var(--card-gradient);
	border: 1px solid var(--border);
	min-width: 0;
	cursor: pointer;
	transition: transform 0.18s, border-color 0.18s, background 0.18s;
	overflow: hidden;
	outline-offset: 3px;
}

.service-card:hover,
.service-card:focus-visible {
	transform: translateY(-4px);
	border-color: #a98a5f;
	background: #19191a;
}

.service-art {
	height: 210px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px 12px 0;
	background: radial-gradient(ellipse at 50% 35%, #16191b 0%, #0d0e0f 68%);
	overflow: hidden;
}

.service-art img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.service-body {
	padding: 13px 21px 18px;
	min-height: 164px;
}

.service-body h4 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.15px;
	margin: 0 0 9px;
}

.icon-underline {
	height: 2px;
	width: 30px;
	background: var(--blue);
	margin-bottom: 8px;
}

.tagline {
	font-size: 9.5px;
	color: #b8b7b5;
	letter-spacing: 2.1px;
	font-weight: 700;
	margin: 0 0 10px;
	min-height: 12px;
}

.service-description {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--text-dim);
	margin: 0;
	min-height: 40px;
}

.service-more {
	font-size: 11.5px;
	margin-top: 12px;
	letter-spacing: 0.6px;
	font-weight: 700;
	color: var(--gold-pale);
}

.service-more span {
	font-size: 15px;
	margin-left: 6px;
}

/* ---------- Recent Recoveries (card styles in css/story-cards.css) ---------- */

.recent-section {
	width: min(1224px, calc(100% - 48px));
	margin: auto;
	padding: 0 0 64px;
}

.recent-section[hidden] {
	display: none;
}

.section-top .recent-all {
	padding-bottom: 8px;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--gold);
}

.section-top .recent-all:hover {
	text-decoration: underline;
}

.recent-section .story-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.contact-bar {
	background: #161616;
	border-top: 1px solid var(--border-brown);
	border-bottom: 1px solid #292222;
	padding: 25px 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 33px;
}

.contact-bar p {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.contact-bar strong {
	color: var(--gold-light);
	font-weight: 700;
}

.contact-bar a {
	background: var(--light-gold-mid);
	color: var(--on-gold);
	padding: 13px 25px;
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 1px;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.contact-bar a.ghost {
	background: transparent;
	border: 1px solid #947854;
	color: var(--gold-pale);
	text-transform: none;
	letter-spacing: 0.4px;
}

.why-section {
	background: #0f1011;
	border-top: 1px solid #1f2023;
}

.why-inner {
	width: min(1224px, calc(100% - 48px));
	margin: auto;
	padding: 56px 0 60px;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.why-item {
	border-top: 2px solid var(--gold);
	padding-top: 18px;
}

.why-item h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
}

.why-item p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-dim);
	margin: 0;
}

.cred {
	margin-top: 40px;
}

.modal-shade {
	display: none;
	position: fixed;
	inset: 0;
	background: #000b;
	z-index: 10;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.modal-shade.open {
	display: flex;
}

.modal {
	max-width: 510px;
	width: 100%;
	background: #18191b;
	border: 1px solid #826c4d;
	padding: 28px;
	box-shadow: 0 20px 85px #000c;
	position: relative;
}

.modal h2 {
	font-family: Georgia, serif;
	font-weight: 500;
	font-size: 32px;
	margin: 4px 20px 12px 0;
}

.modal p {
	color: #c5c2be;
	line-height: 1.65;
	font-size: 15px;
}

.modal small {
	color: #d9bc83;
	letter-spacing: 2px;
}

.modal-close {
	position: absolute;
	right: 14px;
	top: 12px;
	background: transparent;
	border: 0;
	color: white;
	font-size: 26px;
	cursor: pointer;
}

.modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.modal-actions a {
	border: 1px solid #947854;
	padding: 11px 15px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-pale);
}

.modal-actions a.primary {
	background: var(--light-gold-mid);
	border-color: var(--light-gold-mid);
	color: var(--on-gold);
}

.modal-actions a.primary:hover {
	background: var(--gold-pale);
}

@media (max-width: 760px) {
	.services-section {
		width: calc(100% - 32px);
		padding: 32px 0 44px;
	}
	.section-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
	.section-top h2 {
		font-size: 28px;
	}
	.section-top .hint,
	.section-top .recent-all {
		white-space: normal;
		padding-bottom: 0;
	}
	.services-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.recent-section {
		width: calc(100% - 32px);
		padding-bottom: 44px;
	}
	.recent-section .story-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.service-art {
		height: 190px;
	}
	.service-body {
		min-height: 0;
	}
	.contact-bar {
		flex-direction: column;
		text-align: center;
		gap: 16px;
		padding: 24px 16px;
	}
	.why-inner {
		width: calc(100% - 32px);
		padding: 40px 0 44px;
	}
	.why-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.modal-shade {
		padding: 16px;
	}
	.modal {
		padding: 24px 20px;
	}
	.modal h2 {
		font-size: 26px;
	}
}

body.light-mode .kicker,
body.light-mode .service-more,
body.light-mode .contact-bar strong,
body.light-mode .cred strong,
body.light-mode .foot-cols h4,
body.light-mode .modal small {
	color: var(--light-gold);
}

body.light-mode .section-top p,
body.light-mode .service-description,
body.light-mode .why-item p,
body.light-mode .cred p,
body.light-mode .modal p {
	color: var(--light-text-soft);
}

body.light-mode .section-top .recent-all {
	color: var(--light-gold);
}

body.light-mode .section-top .hint,
body.light-mode .tagline,
body.light-mode .foot-tag,
body.light-mode .foot-bottom {
	color: var(--light-text-muted);
}

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

body.light-mode .group-label::after {
	background: var(--light-border);
}

body.light-mode .service-card {
	background: #fff;
	border-color: var(--light-border);
}

body.light-mode .service-card:hover,
body.light-mode .service-card:focus-visible {
	background: #fffdf9;
	border-color: var(--light-gold-border);
}

body.light-mode .why-section {
	background: #eee8de;
	border-top-color: var(--light-border);
}

body.light-mode .cred {
	background: var(--light-card);
	border-color: var(--light-border-gold);
}

body.light-mode .contact-bar {
	background: #e9e2d6;
	border-color: var(--light-border-gold) var(--light-border);
}

body.light-mode .contact-bar a.ghost {
	color: var(--light-gold-dark);
	border-color: var(--light-gold-border);
}

body.light-mode .modal {
	background: #fff;
	border-color: #c9b48f;
	box-shadow: 0 20px 85px #0005;
}

body.light-mode .modal-close {
	color: #333;
}

body.light-mode .modal-actions a {
	color: var(--light-gold-dark);
	border-color: var(--light-gold-border);
}

body.light-mode .modal-actions a.primary {
	color: var(--on-gold);
	border-color: var(--light-gold-mid);
}
