:root {
	--navy: #13294b;
	--navy-deep: #0d1d36;
	--gold: #b58500;
	--gold-text: #8a6500; /* gold darkened for AA contrast on light backgrounds */
	--cream: #f8f5ee;
	--ink: #1f2733;
	--muted: #5b6472;
	--line: #e4ddcc;
	--white: #fff;

	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

	--container: 68rem;
	--gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--navy);
	text-underline-offset: 0.2em;
}

a:focus-visible,
.button:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy);
}

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

.section {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* Hero */
.hero {
	background: var(--cream);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3.5rem, 8vw, 6rem);
	text-align: center;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 46rem;
}

.hero__logo {
	margin: 0;
}

.hero__logo img {
	width: min(100%, 22rem);
}

.hero__division {
	margin: 1.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-text);
}

.hero__lede {
	margin: 2rem 0 2.5rem;
	font-size: clamp(1.125rem, 2.2vw, 1.3rem);
	color: var(--ink);
}

.button {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	border: 2px solid var(--navy);
	border-radius: 2px;
	background: var(--navy);
	color: var(--white);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

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

/* Vision & mission */
.statements {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 800px) {
	.statements {
		grid-template-columns: 1fr 1fr;
	}
}

.statement {
	border-top: 3px solid var(--gold);
	padding-top: 1.5rem;
}

.statement__label {
	margin: 0 0 1rem;
	font-size: clamp(1.9rem, 3.5vw, 2.4rem);
}

.statement p {
	margin: 0;
	color: var(--muted);
}

/* Divisions */
.section__heading {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	font-size: clamp(1.9rem, 3.5vw, 2.4rem);
	text-align: center;
}

.divisions {
	display: grid;
	gap: clamp(2.5rem, 5vw, 3rem);
}

@media (min-width: 900px) {
	.divisions {
		grid-template-columns: repeat(3, 1fr);
	}
}

.division {
	display: flex;
	flex-direction: column;
	border-top: 3px solid var(--gold);
	padding-top: 1.5rem;
}

.division__logo {
	margin: 0 0 1.25rem;
}

.division__logo img {
	width: min(100%, 17rem);
}

.division p {
	flex: 1;
	margin: 0 0 1.5rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.division__link {
	align-self: flex-start;
	color: var(--gold-text);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.division__link:hover {
	color: var(--navy);
	text-decoration: underline;
}

/* Tax Financial family */
.family {
	background: var(--navy);
	color: var(--white);
	padding-block: clamp(3.5rem, 8vw, 5.5rem);
	text-align: center;
}

.family__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 46rem;
}

.family__logo {
	width: min(100%, 20rem);
	margin-bottom: 2rem;
}

.family p {
	margin: 0;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.88);
}

.family .family__contact {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 1rem;
}

.family a {
	color: var(--white);
	font-weight: 600;
}

.family a:hover {
	color: #e0b84a;
}

/* Footer */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	padding-block: 2.5rem 1.5rem;
}

.network {
	text-align: center;
	padding-bottom: 2rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.network__heading {
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #e0b84a;
}

.network__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

.site-footer .network a {
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.site-footer .network a:hover {
	color: #e0b84a;
	text-decoration: underline;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: inherit;
}

.site-footer a:hover {
	color: var(--white);
}

@media (max-width: 600px) {
	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Fallback template */
.prose {
	max-width: 46rem;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
