/*
Theme Name: Ross Yang Law
Theme URI: https://example.com/
Author: Law Office of Ross Yang, APC
Description: Bilingual (English / 中文) theme for Law Office of Ross Yang, APC · 松睿律师事务所. Business immigration and advanced estate planning. Navy and gold.
Version: 1.5.6
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: rossyang-law
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Brand */
	/* Slate navy + sand gold (palette after the "Legal Edge" reference) */
	--navy-950: #1c222e;
	--navy-900: #222a38;
	--navy-800: #2b3446;
	--navy-700: #3a4458;
	--navy-600: #4a5464;
	--gold-300: #f6dcb4;
	--gold-400: #f2c98c;
	--gold-500: #edb96f;
	--gold-700: #8b5e1a; /* bronze: gold-family text/icons on light backgrounds (5.7:1) */
	--ivory: #f8f7f2;
	--stone: #e7e7e7;
	--steel: #4a5464;
	--diamond: #efede6;

	/* Semantic */
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-alt: var(--ivory);
	--text: #262626;
	--text-muted: #4a5464;
	--heading: #1c222e;
	--text-on-dark: #ffffff;
	--text-on-dark-muted: #cfd3db;
	--border: #e0e1e3;
	--border-soft: #ececec;
	--primary: var(--navy-800);
	--accent: var(--gold-500);
	--success: #166534;
	--success-bg: #ecfdf3;
	--error: #b42318;
	--error-bg: #fef3f2;
	--focus: var(--navy-800); /* gold is used on dark surfaces, see below */

	/* Type */
	--font-serif: "Sorts Mill Goudy", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
	--font-sans: "Montserrat", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ui: "Work Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-h4: 1.125rem;
	--fs-h3: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem);
	--fs-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
	--fs-h1: clamp(2.35rem, 1.6rem + 3vw, 4rem);

	/* Space (8pt) */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4rem;
	--s-9: 6rem;

	--radius-sm: 0;
	--radius: 0;
	--radius-lg: 0;
	--shadow-sm: none;
	--shadow: 0 14px 34px -18px rgba(28, 34, 46, 0.28);
	--shadow-lg: 0 24px 60px -24px rgba(28, 34, 46, 0.4);

	--container: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--header-h: 84px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-fast: 150ms;
	--dur: 240ms;
	--dur-slow: 600ms;

	--z-header: 100;
	--z-nav: 110;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.75;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

html[lang^="zh"] body {
	line-height: 1.85;
	letter-spacing: 0.01em;
}

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

a {
	color: var(--navy-600);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color var(--dur-fast) ease;
}

a:hover {
	color: var(--gold-700);
}

.topbar,
.site-header,
.hero,
.page-hero,
.section-navy,
.cta-band,
.site-footer,
.info-card:not(.info-card-ivory) {
	--focus: var(--gold-500);
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.18;
	color: var(--heading);
	margin: 0 0 var(--s-4);
	text-wrap: balance;
}

html[lang^="zh"] :is(h1, h2, h3, h4) {
	line-height: 1.35;
	letter-spacing: 0.03em;
	font-weight: 600;
}

/* Signature: thin gold bar beside section headings */
.section-head h2,
.split h2,
.bridge-grid h2,
.cta-band h2,
.attorney h2,
.form-card h2 {
	padding-left: 0.6em;
	border-left: 3px solid var(--gold-500);
}

.hero h1 .dot {
	color: var(--gold-500);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
	margin: 0 0 var(--s-4);
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	margin: 0;
	padding: 0;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

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

.skip-link {
	position: absolute;
	left: var(--s-4);
	top: -100px;
	z-index: 1000;
	padding: var(--s-3) var(--s-4);
	background: var(--gold-500);
	color: var(--navy-900);
	font-weight: 700;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.skip-link:focus {
	top: var(--s-4);
}

.site-main:focus {
	outline: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container.narrow {
	max-width: 860px;
}

/* ==========================================================================
   3. Utilities: eyebrow, buttons, links, lists
   ========================================================================== */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	margin: 0 0 var(--s-3);
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

html[lang^="zh"] .eyebrow {
	letter-spacing: 0.2em;
	font-size: var(--fs-sm);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: 0.75rem 1.4rem;
	border: 1.5px solid transparent;
	border-radius: 0;
	font-family: var(--font-ui);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn .icon {
	width: 1.1em;
	height: 1.1em;
	transition: transform var(--dur) var(--ease-out);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn-lg {
	min-height: 56px;
	padding: 1rem 2rem;
	font-size: 0.9375rem;
}

.btn-block {
	width: 100%;
}

.btn-gold {
	background: var(--gold-500);
	color: #000;
	border-color: var(--gold-500);
}

.btn-gold:hover {
	background: var(--gold-400);
	border-color: var(--gold-400);
	color: #000;
}

.btn-navy {
	background: var(--navy-800);
	color: #fff;
	border-color: var(--navy-800);
}

.btn-navy:hover {
	background: var(--navy-700);
	border-color: var(--navy-700);
	color: #fff;
}

.btn-outline {
	background: transparent;
	color: var(--navy-800);
	border-color: var(--navy-800);
}

.btn-outline:hover {
	background: var(--navy-800);
	color: #fff;
}

.btn-outline-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
	border-color: var(--gold-400);
	color: var(--gold-300);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}

.btn-row-center {
	justify-content: center;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--navy-800);
	text-decoration: none;
	border-bottom: 2px solid var(--gold-500);
	padding-bottom: 4px;
}

.text-link .icon {
	width: 1em;
	height: 1em;
	color: var(--gold-700);
	transition: transform var(--dur) var(--ease-out);
}

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

.check-list {
	display: grid;
	gap: var(--s-3);
	margin-bottom: var(--s-5);
}

.check-list li {
	display: flex;
	gap: var(--s-3);
	align-items: flex-start;
}

.check-list .icon {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.3em;
	color: var(--gold-700);
	stroke-width: 2.25;
}

.check-list-lg li {
	padding: var(--s-4) var(--s-5);
	background: var(--ivory);
	border-left: 3px solid var(--gold-500);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.icon-badge {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 0;
	background: var(--navy-800);
	color: var(--gold-500);
	border: 1px solid var(--navy-800);
}

.icon-badge .icon {
	width: 24px;
	height: 24px;
}

.icon-badge-navy {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: var(--gold-400);
}

.admin-hint {
	margin-top: var(--s-4);
	padding: var(--s-3) var(--s-4);
	font-size: var(--fs-sm);
	background: #fff8e6;
	border: 1px dashed var(--gold-500);
	border-radius: var(--radius-sm);
	color: #5c4511;
}

.fine-print {
	margin-top: var(--s-6);
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.muted-light {
	color: var(--text-on-dark-muted);
}

.h-small {
	font-size: 1.25rem;
	margin-bottom: var(--s-4);
}

/* ==========================================================================
   4. Top bar & header
   ========================================================================== */
.topbar {
	background: var(--navy-950);
	color: var(--text-on-dark-muted);
	font-size: var(--fs-xs);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	min-height: 38px;
}

.topbar-tagline {
	margin: 0;
	letter-spacing: 0.08em;
}

.topbar-contact {
	display: flex;
	gap: var(--s-5);
}

.topbar-contact a,
.topbar-contact span {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	color: var(--text-on-dark-muted);
	text-decoration: none;
}

.topbar-contact a:hover {
	color: var(--gold-300);
}

.topbar .icon {
	width: 14px;
	height: 14px;
	color: var(--gold-500);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--navy-800);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	transition: box-shadow var(--dur) ease, background-color var(--dur) ease;
}

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

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

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

.site-header.is-scrolled {
	background: rgba(43, 52, 70, 0.98);
	box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

@supports (backdrop-filter: blur(8px)) {
	.site-header.is-scrolled {
		background: rgba(43, 52, 70, 0.92);
		backdrop-filter: blur(10px);
	}
}

.header-inner {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	min-height: var(--header-h);
}

/* Brand */
.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	color: #fff;
	text-decoration: none;
	margin-right: auto;
	min-width: 0;
}

@media (min-width: 1200px) {
	.site-header .brand {
		flex-shrink: 0;
	}
}

.brand:hover {
	color: #fff;
}

.brand-logo {
	display: block;
	height: 40px;
	width: auto;
	aspect-ratio: 472 / 411;
	flex-shrink: 0;
	color: #957341; /* bar matches the triangle gold on the dark header and footer */
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.brand-en {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.brand-zh {
	font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
	font-size: 0.85rem;
	color: var(--gold-400);
	letter-spacing: 0.32em;
}

/* Primary nav */
.primary-nav ul {
	display: flex;
	align-items: center;
	gap: var(--s-1);
}

.primary-nav a:not(.btn) {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.65rem;
	color: var(--text-on-dark);
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav a:not(.btn)::after {
	content: "";
	position: absolute;
	left: 0.65rem;
	right: 0.65rem;
	bottom: 6px;
	height: 2px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease-out);
}

.primary-nav a:not(.btn):hover {
	color: var(--gold-300);
}

.primary-nav a:not(.btn):hover::after,
.primary-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
	color: var(--gold-400);
}

.nav-cta {
	display: none;
}

.header-cta {
	white-space: nowrap;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--s-3);
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 0.85rem;
	color: var(--gold-400);
	border: 1px solid rgba(237, 185, 111, 0.6);
	border-radius: 0;
	font-family: var(--font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--dur) ease, color var(--dur) ease;
}

.lang-switch:hover {
	background: var(--gold-500);
	color: var(--navy-900);
}

.lang-switch .icon {
	width: 16px;
	height: 16px;
}

.nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	place-items: center;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 0;
	color: #fff;
	cursor: pointer;
}

.nav-toggle .icon {
	width: 24px;
	height: 24px;
}

.nav-toggle-close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
	display: block;
}

@media (max-width: 1279px) {
	.header-cta {
		display: none;
	}
}

@media (max-width: 767px) {
	.topbar-tagline {
		display: none;
	}

	.topbar-empty {
		display: none;
	}

	.topbar-inner {
		justify-content: center;
	}
}

@media (max-width: 1199px) {
	.nav-toggle {
		display: grid;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100dvh - var(--header-h));
		z-index: var(--z-nav);
		display: flex;
		flex-direction: column;
		gap: var(--s-5);
		padding: var(--s-5) var(--gutter) var(--s-7);
		background: var(--navy-900);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
	}

	.primary-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

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

	.primary-nav a:not(.btn) {
		display: flex;
		min-height: 56px;
		padding: 0;
		font-family: var(--font-serif);
		font-size: 1.5rem;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.primary-nav a:not(.btn)::after {
		left: 0;
		right: auto;
		width: 40px;
	}

	.nav-cta {
		display: inline-flex;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (max-width: 479px) {
	.brand-en {
		font-size: 0.98rem;
	}

	.brand-zh {
		font-size: 0.78rem;
		letter-spacing: 0.22em;
	}

	.brand-logo {
		height: 34px;
	}

	.lang-switch .icon {
		display: none;
	}

	.lang-switch {
		padding: 0 0.7rem;
	}

	.header-inner {
		gap: var(--s-2);
	}

	.topbar-contact {
		gap: var(--s-4);
	}
}

@media (max-width: 380px) {
	.brand-en {
		white-space: normal;
	}
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero,
.page-hero,
.section-navy,
.cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--navy-800);
	color: var(--text-on-dark);
}

/* Optional hero photo (Customizer → Firm Details → Hero image) under a slate overlay */
.hero.has-image {
	background:
		linear-gradient(rgba(43, 52, 70, 0.86), rgba(43, 52, 70, 0.86)),
		var(--hero-img) center / cover no-repeat,
		var(--navy-800);
}

/* Looping hero video (assets/video/hero-loop.mp4).
   Stacking: video (-3) -> slate overlay -> content. The poster also sits
   behind the video as a background, for browsers that can't play it. */
.hero-media {
	position: absolute;
	inset: 0;
	z-index: -3;
	overflow: hidden;
	background: var(--hero-img, none) center / cover no-repeat, var(--navy-800);
}

.hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Darker behind the headline, lighter where the motion shows through. */
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(28, 34, 46, 0.78) 0%, rgba(43, 52, 70, 0.55) 55%, rgba(43, 52, 70, 0.3) 100%);
}

.hero-video-toggle {
	position: absolute;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #fff;
	background: rgba(28, 34, 46, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-video-toggle[hidden] {
	display: none;
}

.hero-video-toggle:hover {
	color: var(--navy-950);
	background: var(--gold-500);
	border-color: var(--gold-500);
}

.hero-video-toggle .icon {
	width: 18px;
	height: 18px;
}

.hero-video-toggle .icon-play,
.hero-video-toggle[aria-pressed="true"] .icon-pause {
	display: none;
}

.hero-video-toggle[aria-pressed="true"] .icon-play {
	display: block;
}

/* Large rotated-square "diamond" motif */
.hero-pattern {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.hero-pattern::before,
.hero-pattern::after {
	content: "";
	position: absolute;
	aspect-ratio: 1;
	transform: rotate(45deg);
}

.hero-pattern::before {
	width: min(56vw, 680px);
	right: -14%;
	top: -40%;
	background: rgba(255, 255, 255, 0.035);
}

.hero-pattern::after {
	width: min(32vw, 400px);
	right: 12%;
	bottom: -34%;
	border: 1px solid rgba(237, 185, 111, 0.22);
}

.hero :is(h1, h2),
.page-hero :is(h1, h2),
.section-navy :is(h2, h3),
.cta-band h2 {
	color: #fff;
}

.hero {
	padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}

/* Two-column layout: same hero height in English and Chinese (the Chinese copy
   is shorter). 880px is just above the tallest English hero, content centered. */
@media (min-width: 900px) {
	.hero {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 880px;
	}
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.hero h1 {
	margin-bottom: var(--s-5);
	max-width: 15ch;
}

html[lang^="zh"] .hero h1 {
	max-width: none;
	font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}

.hero h1 em,
.page-hero h1 em {
	font-style: italic;
	color: var(--gold-500);
}

html[lang^="zh"] .hero h1 em {
	font-style: normal;
}

.lead {
	font-size: var(--fs-lg);
	color: var(--text-on-dark-muted);
	max-width: 60ch;
	margin-bottom: var(--s-6);
}

.hero-paths {
	padding: var(--s-6);
	background: rgba(28, 34, 46, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-top: 3px solid var(--gold-500);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.hero-paths-title {
	font-family: var(--font-serif);
	font-size: 1.4rem;
	color: #fff;
	margin-bottom: var(--s-4);
}

.path-link {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	padding: var(--s-4);
	margin-bottom: var(--s-3);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	color: var(--text-on-dark);
	text-decoration: none;
	transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

.path-link:hover {
	color: var(--text-on-dark);
	border-color: var(--gold-500);
	background: rgba(255, 255, 255, 0.08);
}

.path-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 0;
	background: var(--gold-500);
	color: var(--navy-900);
}

.path-icon .icon {
	width: 22px;
	height: 22px;
}

.path-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.path-text strong {
	font-size: var(--fs-base);
	line-height: 1.35;
}

.path-text span {
	font-size: var(--fs-sm);
	color: var(--text-on-dark-muted);
}

.path-arrow {
	margin-left: auto;
	color: var(--gold-500);
	transition: transform var(--dur) var(--ease-out);
}

.path-link:hover .path-arrow {
	transform: translateX(4px);
}

.hero-paths-note {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	margin: var(--s-4) 0 0;
	font-size: var(--fs-sm);
	color: var(--text-on-dark-muted);
}

.hero-paths-note .icon {
	color: var(--gold-500);
	width: 18px;
	height: 18px;
}

@media (max-width: 899px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 479px) {
	.hero-paths {
		padding: var(--s-5) var(--s-4);
	}

	.btn-row .btn {
		width: 100%;
	}
}

/* Inner page hero */
.page-hero {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
}

.page-hero h1 {
	font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
	max-width: 22ch;
}

html[lang^="zh"] .page-hero h1 {
	max-width: none;
}

.page-hero .lead {
	margin-bottom: 0;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-bottom: var(--s-5);
	font-size: var(--fs-sm);
	color: var(--text-on-dark-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: var(--s-2);
	color: var(--gold-500);
}

.breadcrumbs a {
	color: var(--text-on-dark-muted);
}

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

/* ==========================================================================
   6. Trust strip
   ========================================================================== */
.trust-strip {
	background: var(--ivory);
	border-bottom: 1px solid var(--border-soft);
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
	display: flex;
	align-items: flex-start;
	gap: var(--s-3);
	padding: var(--s-5) var(--s-4);
}

.trust-item + .trust-item {
	border-left: 1px solid var(--border);
}

.trust-item .icon {
	width: 28px;
	height: 28px;
	color: var(--gold-700);
}

.trust-item strong {
	display: block;
	color: var(--navy-800);
	font-size: var(--fs-base);
}

.trust-item span {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

@media (max-width: 899px) {
	.trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trust-item:nth-child(3) {
		border-left: 0;
	}

	.trust-item:nth-child(n + 3) {
		border-top: 1px solid var(--border);
	}
}

@media (max-width: 479px) {
	.trust-grid {
		grid-template-columns: 1fr;
	}

	.trust-item + .trust-item {
		border-left: 0;
		border-top: 1px solid var(--border);
	}
}

/* ==========================================================================
   7. Sections & shared layouts
   ========================================================================== */
.section {
	padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-ivory {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ivory);
}

.section-ivory::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -220px;
	top: 60px;
	width: 440px;
	aspect-ratio: 1;
	background: var(--diamond);
	transform: rotate(45deg);
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head p:not(.eyebrow) {
	font-size: var(--fs-lg);
	color: var(--text-muted);
}

.section-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-4);
	max-width: none;
	flex-wrap: wrap;
}

.section-head-row h2 {
	margin-bottom: 0;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.split-wide {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
}

@media (max-width: 899px) {
	.split,
	.split-wide {
		grid-template-columns: 1fr;
	}
}

/* Practice cards */
.practice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-6);
}

.practice-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 3px solid var(--navy-800);
	border-radius: 0;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}

.practice-card:hover {
	box-shadow: var(--shadow);
	border-top-color: var(--gold-500);
}

.practice-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--s-5);
}

.practice-num {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 3rem;
	line-height: 1;
	color: var(--stone);
	font-weight: 400;
}

.practice-card > p {
	color: var(--text-muted);
}

.practice-card .check-list {
	grid-template-columns: 1fr; /* one column: two narrow columns made every item wrap */
	padding-top: var(--s-5);
	margin-top: var(--s-2);
	border-top: 1px solid var(--border-soft);
	font-size: var(--fs-sm);
}

/* Keep a gap between the last bullet and the card's link. */
.practice-card .check-list {
	margin-bottom: var(--s-5);
}

.practice-card .text-link {
	margin-top: auto;
	align-self: flex-start;
}

@media (max-width: 899px) {
	.practice-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 479px) {
	.practice-card .check-list {
		grid-template-columns: 1fr;
	}
}

/* Bridge band */
.section-navy p {
	color: var(--text-on-dark-muted);
}

.bridge-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.bridge-list {
	display: grid;
	gap: var(--s-3);
}

.bridge-list li {
	display: flex;
	gap: var(--s-4);
	padding: var(--s-4) var(--s-5);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
}

.bridge-list strong {
	display: block;
	color: #fff;
	margin-bottom: 2px;
}

.bridge-list span:not(.bridge-icon) {
	font-size: var(--fs-sm);
	color: var(--text-on-dark-muted);
}

.bridge-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 0;
	border: 1px solid rgba(237, 185, 111, 0.6);
	color: var(--gold-500);
}

.bridge-icon .icon {
	width: 20px;
	height: 20px;
}

@media (max-width: 899px) {
	.bridge-grid {
		grid-template-columns: 1fr;
	}
}

/* Process */
.process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-5);
	counter-reset: step;
}

.process-step {
	position: relative;
	padding: var(--s-6) var(--s-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.process-step::after {
	content: "";
	position: absolute;
	top: 46px;
	right: calc(-1 * var(--s-5));
	width: var(--s-5);
	height: 1px;
	background: var(--gold-500);
}

.process-step:last-child::after {
	display: none;
}

.process-num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--s-4);
	border-radius: 0;
	background: var(--gold-500);
	color: #000;
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 400;
}

.process-step h3 {
	font-size: 1.3rem;
}

.process-step p {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

@media (max-width: 1023px) {
	.process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.process-step::after {
		display: none;
	}
}

@media (max-width: 559px) {
	.process {
		grid-template-columns: 1fr;
	}
}

/* Features */
.feature-grid {
	display: grid;
	gap: var(--s-5);
}

.feature-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
	padding: var(--s-6) var(--s-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.section-ivory .feature {
	border-color: var(--border-soft);
}

.feature:hover {
	box-shadow: var(--shadow);
}

.feature .icon-badge {
	margin-bottom: var(--s-4);
}

.feature h3 {
	font-size: 1.3rem;
}

.feature p {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

@media (max-width: 1023px) {
	.feature-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.feature-grid-3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 559px) {
	.feature-grid-4 {
		grid-template-columns: 1fr;
	}
}

/* Service groups (immigration) */
.service-groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
	align-items: start;
}

.service-group {
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
}

.service-group-head {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding: var(--s-5);
	background: var(--navy-800);
	border-bottom: 2px solid var(--gold-500);
}

.service-group-head h3 {
	margin: 0;
	font-size: 1.25rem;
	color: #fff;
}

.service-group-head .icon {
	width: 26px;
	height: 26px;
	color: var(--gold-400);
}

.service-list li {
	padding: var(--s-4) var(--s-5);
	border-bottom: 1px solid var(--border-soft);
}

.service-list li:last-child {
	border-bottom: 0;
}

.service-list h4 {
	margin-bottom: var(--s-1);
	font-size: 1.1rem;
}

.service-list p {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

@media (max-width: 1023px) {
	.service-groups {
		grid-template-columns: 1fr;
		max-width: 720px;
	}
}

/* Estate: documents */
.doc-stack {
	display: grid;
	gap: var(--s-3);
}

.doc-item {
	display: flex;
	gap: var(--s-4);
	padding: var(--s-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.doc-item h3 {
	font-size: 1.2rem;
	margin-bottom: var(--s-1);
}

.doc-item p {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

/* Estate: trust cards */
.trust-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
}

.trust-card {
	display: flex;
	flex-direction: column;
	padding: var(--s-6) var(--s-5);
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}

.trust-card:hover {
	border-color: var(--gold-500);
	box-shadow: var(--shadow);
}

.trust-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--s-5);
}

.trust-abbr {
	font-family: var(--font-serif);
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--gold-700);
	letter-spacing: 0.04em;
}

.trust-card h3 {
	font-size: 1.3rem;
	margin-bottom: var(--s-1);
}

.trust-alt {
	font-size: var(--fs-sm);
	color: var(--steel);
	margin-bottom: var(--s-4);
}

.trust-card > p:not(.trust-alt):not(.trust-fit) {
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.trust-fit {
	margin: auto 0 0;
	padding-top: var(--s-4);
	border-top: 1px solid var(--border-soft);
	font-size: var(--fs-sm);
	color: var(--text);
}

.trust-fit strong {
	color: var(--navy-700);
}

@media (max-width: 1023px) {
	.trust-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.trust-cards {
		grid-template-columns: 1fr;
	}
}

/* Comparison table */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.compare-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.compare-table th,
.compare-table td {
	padding: var(--s-4) var(--s-5);
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--border-soft);
}

.compare-table thead th {
	background: var(--navy-800);
	color: #fff;
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 400;
	border-bottom: 2px solid var(--gold-500);
}

.compare-table tbody th {
	color: var(--navy-800);
	font-weight: 700;
	width: 30%;
	background: var(--ivory);
}

.compare-table tbody tr:last-child > * {
	border-bottom: 0;
}

/* FAQ */
.faq {
	display: grid;
	gap: var(--s-3);
}

.faq details {
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	transition: border-color var(--dur) ease;
}

.faq details[open] {
	border-color: var(--gold-500);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	min-height: 56px;
	padding: var(--s-4) var(--s-5);
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--heading);
	cursor: pointer;
	list-style: none;
}

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

.faq summary .icon {
	color: var(--gold-700);
	transition: transform var(--dur) var(--ease-out);
}

.faq details[open] summary .icon {
	transform: rotate(45deg);
}

.faq details p {
	margin: 0;
	padding: 0 var(--s-5) var(--s-5);
	color: var(--text-muted);
}

/* About */
.name-seal {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	width: min(280px, 100%);
	aspect-ratio: 3 / 4;
	margin-inline: auto;
	background: var(--navy-800);
	border: 2px solid var(--gold-500);
	outline: 1px solid var(--gold-500);
	outline-offset: 8px;
	border-radius: var(--radius-sm);
}

.seal-char {
	font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
	font-size: clamp(4rem, 9vw, 6rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--gold-400);
}

.attorney {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.attorney-photo img,
.attorney-placeholder {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.attorney-placeholder {
	display: grid;
	place-items: center;
	background: radial-gradient(120% 90% at 85% 0%, var(--navy-600) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
	border: 1px solid var(--gold-500);
}

.attorney-placeholder span {
	font-family: var(--font-serif);
	font-size: 5rem;
	color: var(--gold-400);
	letter-spacing: 0.05em;
}

.lang-pills {
	display: flex;
	gap: var(--s-2);
	margin-top: var(--s-5);
}

.lang-pills li {
	padding: var(--s-1) var(--s-4);
	background: var(--ivory);
	border: 1px solid var(--border);
	border-radius: 0;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--navy-700);
}

.prose > * + * {
	margin-top: var(--s-4);
}

.prose h2 {
	margin-top: var(--s-7);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
}

.prose h3 {
	margin-top: var(--s-6);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: var(--s-2);
}

.prose blockquote {
	margin: var(--s-6) 0;
	padding: var(--s-2) 0 var(--s-2) var(--s-5);
	border-left: 3px solid var(--gold-500);
	font-family: var(--font-serif);
	font-size: 1.3rem;
	color: var(--navy-700);
}

@media (max-width: 899px) {
	.attorney {
		grid-template-columns: 1fr;
	}

	.attorney-photo {
		max-width: 360px;
	}
}

/* ==========================================================================
   8. Insights
   ========================================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--s-5);
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}

.post-card:hover {
	box-shadow: var(--shadow);
	border-color: var(--gold-500);
}

.post-card-media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--s-5);
}

.post-card-body p:not(.post-meta) {
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.post-card-title {
	font-size: 1.35rem;
}

.post-card-title a {
	color: inherit;
	text-decoration: none;
}

.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card .text-link {
	margin-top: auto;
	align-self: flex-start;
}

.post-meta {
	margin-bottom: var(--s-2);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold-700);
}

.post-meta-light {
	color: var(--gold-400);
}

.pagination {
	margin-top: var(--s-7);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-2);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--s-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: 700;
}

.pagination .page-numbers.current {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: #fff;
}

.empty-state {
	max-width: 520px;
	margin-inline: auto;
	text-align: center;
	padding: var(--s-7) var(--s-5);
	border: 1px dashed var(--border);
	border-radius: var(--radius-lg);
}

.empty-state > .icon {
	width: 40px;
	height: 40px;
	margin: 0 auto var(--s-4);
	color: var(--gold-700);
}

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

.article-media {
	margin: 0 0 var(--s-6);
}

.article-media img {
	border-radius: var(--radius);
}

/* Insights listing: title + excerpt rows */
.post-list {
	max-width: 880px;
	margin-inline: auto;
	border-top: 1px solid var(--border);
}

.post-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s-6);
	align-items: center;
	padding-block: var(--s-6);
	border-bottom: 1px solid var(--border);
}

.post-row-title {
	font-size: var(--fs-h3);
	margin-bottom: var(--s-3);
}

.post-row-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur) ease;
}

.post-row-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

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

.post-row:hover .text-link .icon {
	transform: translateX(4px);
}

.post-row-excerpt {
	color: var(--text-muted);
	margin-bottom: var(--s-4);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Insights listing: full articles, one after another */
.post-stream {
	max-width: 760px;
	margin-inline: auto;
}

.post-full + .post-full {
	margin-top: var(--s-8);
	padding-top: var(--s-8);
	border-top: 1px solid var(--border);
}

.post-full-title {
	font-size: var(--fs-h2);
	margin-bottom: var(--s-5);
}

.post-full-title a {
	color: inherit;
	text-decoration: none;
}

.post-full-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--gold-500);
	text-underline-offset: 0.15em;
}

.post-card-body p:not(.post-meta) {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 1023px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 639px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   9. Contact
   ========================================================================== */
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.form-card {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 4px solid var(--gold-500);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.form-card h2 {
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
	margin-bottom: var(--s-2);
}

.form-intro {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	margin-bottom: var(--s-5);
}

.consult-form {
	display: grid;
	gap: var(--s-5);
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-5);
}

.field {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field label,
.field legend {
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--navy-800);
	padding: 0;
}

.field legend {
	margin-bottom: var(--s-2);
}

.req {
	color: var(--error);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: var(--text);
	background: #fff;
	border: 1px solid #b9b2a3;
	border-radius: var(--radius-sm);
	transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.field textarea {
	resize: vertical;
	min-height: 140px;
}

.field :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--navy-700);
	box-shadow: 0 0 0 3px rgba(237, 185, 111, 0.55);
}

.field :is(input, textarea):user-invalid {
	border-color: var(--error);
}

.help {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

.choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
}

.choice {
	position: relative;
	cursor: pointer;
}

.choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.choice span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--s-4);
	border: 1px solid #b9b2a3;
	border-radius: 0;
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--navy-700);
	transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.choice:hover span {
	border-color: var(--navy-700);
}

.choice input:checked + span {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: #fff;
}

.choice input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.field-check {
	flex-direction: row;
	align-items: flex-start;
	gap: var(--s-3);
}

.field-check input {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--navy-800);
}

.field-check label {
	font-weight: 400;
	color: var(--text);
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.consult-form button[aria-busy="true"] {
	opacity: 0.7;
	cursor: progress;
}

.notice {
	display: flex;
	gap: var(--s-3);
	align-items: flex-start;
	padding: var(--s-4);
	margin-bottom: var(--s-5);
	border-radius: var(--radius-sm);
	border: 1px solid;
}

.notice p {
	margin: 0;
}

.notice-success {
	background: var(--success-bg);
	border-color: #a6e3bd;
	color: var(--success);
}

.notice-error {
	background: var(--error-bg);
	border-color: #fecdca;
	color: var(--error);
}

.contact-aside {
	display: grid;
	gap: var(--s-5);
}

.info-card {
	padding: var(--s-6) var(--s-5);
	background: var(--navy-800);
	color: var(--text-on-dark);
	border-radius: var(--radius);
}

.info-card h2 {
	color: #fff;
}

.info-card .admin-hint {
	color: #5c4511;
}

.info-card-ivory {
	background: var(--ivory);
	color: var(--text);
	border: 1px solid var(--border-soft);
}

.info-card-ivory h2 {
	color: var(--navy-800);
}

.info-list {
	display: grid;
	gap: var(--s-4);
	margin-bottom: var(--s-5);
}

.info-list li {
	display: flex;
	gap: var(--s-3);
}

.info-list .icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--gold-400);
}

.info-list a,
.info-list span {
	color: var(--text-on-dark);
}

.info-list a:hover {
	color: var(--gold-300);
}

.info-label {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-400) !important;
}

.mini-steps {
	display: grid;
	gap: var(--s-4);
	font-size: var(--fs-sm);
}

.mini-steps li {
	display: flex;
	gap: var(--s-3);
}

.mini-steps span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 0;
	background: var(--gold-500);
	color: #000;
	font-weight: 700;
	font-size: var(--fs-xs);
}

@media (max-width: 899px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 559px) {
	.field-row {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   10. CTA band & footer
   ========================================================================== */
.cta-band {
	padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-band::before {
	content: "";
	position: absolute;
	right: -120px;
	top: 50%;
	z-index: -1;
	width: 420px;
	height: 420px;
	border: 1px solid rgba(237, 185, 111, 0.25);
	transform: translateY(-50%) rotate(45deg);
	box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025), 0 0 0 80px rgba(255, 255, 255, 0.02);
}

.cta-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--s-6);
	align-items: center;
}

.cta-band h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.cta-band p:not(.eyebrow) {
	color: var(--text-on-dark-muted);
	margin: 0;
	max-width: 58ch;
}

.cta-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--s-4);
	justify-self: end;
}

.cta-phone {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: 44px;
	color: var(--gold-300);
	font-weight: 700;
	text-decoration: none;
}

.cta-phone:hover {
	color: #fff;
}

@media (max-width: 899px) {
	.cta-inner {
		grid-template-columns: 1fr;
	}

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

.site-footer {
	background: var(--navy-950);
	color: var(--text-on-dark-muted);
	font-size: var(--fs-sm);
	padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: var(--s-6);
	padding-bottom: var(--s-7);
}

.footer-brand p {
	margin-top: var(--s-4);
	max-width: 36ch;
}

.brand-footer {
	margin-right: 0;
}

.footer-heading {
	margin-bottom: var(--s-4);
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-500);
}

.footer-col ul {
	display: grid;
	gap: var(--s-2);
}

.footer-col a {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	color: var(--text-on-dark-muted);
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--gold-300);
}

.footer-contact li {
	display: flex;
	gap: var(--s-3);
	align-items: flex-start;
}

.footer-contact .icon {
	width: 16px;
	height: 16px;
	margin-top: 8px;
	color: var(--gold-500);
}

.footer-contact span {
	padding-top: 4px;
}

.footer-legal {
	padding-block: var(--s-5) var(--s-6);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: var(--fs-xs);
	line-height: 1.7;
}

.footer-legal strong {
	color: var(--text-on-dark);
}

.disclaimer {
	max-width: 110ch;
}

.copyright {
	margin: 0;
	color: #aab1bd;
}

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

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

@media (max-width: 639px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-grid .footer-col:last-child {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   11. Motion
   ========================================================================== */
.js .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   12. Print
   ========================================================================== */
@media print {
	.topbar,
	.site-header,
	.cta-band,
	.hero-pattern,
	.hero-media,
	.hero-video-toggle {
		display: none;
	}

	.hero,
	.page-hero,
	.section-navy {
		background: none;
		color: #000;
	}
}
