/* Aging Grace Advisors — theme styles from Figma wireframes */

:root {
	--aga-cream: #fffef8;
	--aga-text: #3c3f43;
	--aga-text-dark: #23262e;
	--aga-accent: #9f6a39;
	--aga-rule: rgba(35, 38, 46, 0.18);
	--aga-font: "Newsreader", Georgia, "Times New Roman", serif;
	--aga-font-script: "Caveat", "Segoe Script", "Apple Chancery", cursive;
	--aga-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
	background-color: var(--aga-cream);
	max-width: 100vw;
	overflow-x: hidden;
}

body {
	background-color: var(--aga-cream);
	color: var(--aga-text);
	font-family: var(--aga-font);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	width: 100%;
	max-width: 100vw;
	overflow-x: hidden;
}

a {
	color: var(--aga-text-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--aga-accent);
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--aga-font);
	color: var(--aga-text-dark);
	font-weight: 400;
	line-height: 1.2;
}

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

.container {
	max-width: 1200px;
}

/* ——— Header ——— */
.aga-header {
	padding: 18px 0 12px;
	background: var(--aga-cream);
}

.aga-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.aga-logo img {
	display: block;
	width: 107px;
	height: auto;
	mix-blend-mode: multiply;
}

.aga-nav.navbar {
	background: transparent;
	border: 0;
	margin: 0;
	min-height: 0;
	float: none;
	flex: 1;
}

.aga-nav .navbar-collapse {
	padding: 0;
	border: 0;
	box-shadow: none;
}

.aga-nav .navbar-nav {
	float: right;
	margin: 0;
}

.aga-nav .navbar-nav > li {
	float: left;
}

.aga-nav .navbar-nav > li > a {
	padding: 8px 0;
	margin-left: 48px;
	color: var(--aga-text) !important;
	font-size: 18px;
	line-height: 1;
	background: transparent !important;
}

.aga-nav .navbar-nav > li:first-child > a {
	margin-left: 0;
}

.aga-nav .navbar-nav > li > a:hover,
.aga-nav .navbar-nav > li > a:focus,
.aga-nav .navbar-nav > .active > a {
	color: var(--aga-accent) !important;
	background: transparent !important;
}

/* Contact menu item — italic + underline + arrow */
.aga-nav .navbar-nav > li:last-child > a,
.aga-nav .menu-item-contact > a,
.aga-nav .navbar-nav > li > a[href*="contact"] {
	font-style: italic;
	border-bottom: 1.5px solid var(--aga-text);
	padding-bottom: 4px;
}

.aga-nav .navbar-nav > li:last-child > a::after,
.aga-nav .menu-item-contact > a::after,
.aga-nav .navbar-nav > li > a[href*="contact"]::after {
	content: " →";
	font-style: normal;
}

.aga-nav .navbar-toggle {
	border-color: var(--aga-text);
	margin-right: 0;
}

.aga-nav .navbar-toggle .icon-bar {
	background: var(--aga-text);
}

@media (max-width: 767px) {
	.aga-header-inner {
		display: block;
		position: relative;
	}

	.aga-nav .navbar-nav {
		float: none;
		margin-top: 12px;
	}

	.aga-nav .navbar-nav > li {
		float: none;
	}

	.aga-nav .navbar-nav > li > a {
		margin-left: 0;
		padding: 12px 0;
		border-bottom: 1px solid var(--aga-rule);
	}
}

/* ——— Buttons & text links ——— */
.aga-btn,
.fitem-btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: var(--aga-accent);
	color: #fff !important;
	font-family: var(--aga-font-sans);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 16px 28px 15px 34px;
	border-radius: 2px;
	border: 0;
	text-decoration: none !important;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.aga-btn:hover,
.aga-btn:focus,
.fitem-btn:hover,
.fitem-btn:focus {
	background: #86572e;
	color: #fff !important;
}

.aga-text-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--aga-text-dark);
	font-size: 16px;
	line-height: 1.3;
	border-bottom: 1px solid var(--aga-text-dark);
	padding-bottom: 2px;
}

.aga-text-link:hover {
	color: var(--aga-accent);
	border-bottom-color: var(--aga-accent);
}

.aga-arrow {
	font-style: normal;
}

/* ——— Flexible content ——— */
.fitem {
	padding: 64px 0;
}

.fitem + .fitem {
	padding-top: 48px;
}

.fitem-subheader {
	font-family: var(--aga-font-script);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--aga-accent);
	opacity: 0.85;
	margin: 0 0 18px;
}

.fitem-header-wrap {
	margin: 0 0 28px;
}

.fitem-header,
.aga-page-title {
	font-family: var(--aga-font);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--aga-text);
	margin: 0;
}

.aga-page-title {
	font-size: 42px;
	letter-spacing: -0.02em;
	text-align: center;
	display: block;
	max-width: 691px;
	margin-left: auto;
	margin-right: auto;
}

/* Brush stroke behind each line (Figma Vectors 1/2 / header highlight)
   Stroke extends past glyphs L/R and sits through the lower half of the letters. */
.aga-mark {
	display: inline;
	padding: 0 0.28em;
	background-image: url("../img/heading-stroke.svg");
	background-repeat: no-repeat;
	background-size: 100% 12px;
	/* ~0.52em ≈ Figma visual top (vector y minus half stroke height) */
	background-position: left 0.52em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.fitem-page-title .aga-mark,
.fitem-centered .aga-mark {
	background-position: center 0.52em;
}

.fitem-page-title {
	padding: 48px 0 24px;
	text-align: center;
}

.fitem-page-title .col-sm-12 {
	text-align: center;
}

.fitem-body {
	font-size: 18px;
	line-height: 1.5;
	color: var(--aga-text);
}

.fitem-body p:last-child {
	margin-bottom: 0;
}

/* List / FAQ */
.fitem-list .fitem-list-intro {
	padding-right: 24px;
}

.fitem-list-item {
	padding: 27px 0;
	border-top: 1px solid var(--aga-rule);
}

.fitem-list-item:last-child {
	border-bottom: 1px solid var(--aga-rule);
}

.fitem-list-item h3 {
	font-family: var(--aga-font);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--aga-text);
	opacity: 0.9;
	margin: 0 0 7px;
}

.fitem-list-item .fitem-body {
	margin-bottom: 24px;
	font-size: 18px;
	line-height: 1.3;
	color: var(--aga-text);
	opacity: 0.85;
}

.fitem-list-item .aga-text-link {
	font-family: var(--aga-font);
	font-size: 16px;
	line-height: 1.3;
	opacity: 0.85;
	color: var(--aga-text);
}

/* Full-width image */
.fitem-fw-image {
	padding-left: 0;
	padding-right: 0;
}

.fitem-fw-image .fitem-fw-image-wrap {
	width: 100%;
	overflow: hidden;
}

.fitem-fw-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

/* Centered text + illustration */
.fitem-centered {
	text-align: center;
}

.fitem-centered .fitem-subheader {
	text-align: center;
}

.fitem-centered .fitem-header-wrap {
	text-align: center;
	max-width: 691px;
	margin-left: auto;
	margin-right: auto;
}

/* Interior / subsequent blocks: 28px H2 */
.fitem-centered .fitem-header {
	font-size: 28px;
	letter-spacing: -0.02em;
}

/* Home page: only the first centered_text instance is the large H1 */
.fitem-centered--hero .fitem-header {
	font-size: 42px;
}

.fitem-centered .fitem-body {
	max-width: 435px;
	margin: 0 auto 28px;
}

.fitem-centered .fitem-illustration {
	margin: 12px auto 36px;
	max-width: 520px;
}

.fitem-centered .fitem-illustration img {
	display: block;
	margin: 0 auto;
}

/* Video */
.fitem-video {
	overflow-x: clip;
	max-width: 100vw;
}

.fitem-video .fitem-subheader {
	margin-bottom: 24px;
}

.fitem-video .fitem-header-wrap {
	margin-bottom: 43px;
}

.fitem-video .fitem-body {
	line-height: 1.3;
	opacity: 0.85;
}

@media (min-width: 768px) {
	/* Figma gap between text and video ≈ 110px */
	.fitem-video .row {
		margin-left: -55px;
		margin-right: -55px;
	}

	.fitem-video .col-sm-5,
	.fitem-video .col-sm-7 {
		padding-left: 55px;
		padding-right: 55px;
	}
}

.fitem-video .fitem-video-embed {
	position: relative;
	background: #d9d9d9;
	border-radius: 13px;
	overflow: hidden;
	aspect-ratio: 575 / 358;
	min-height: 0;
}

.fitem-video .fitem-video-embed iframe,
.fitem-video .fitem-video-embed embed,
.fitem-video .fitem-video-embed object,
.fitem-video .fitem-video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	border: 0;
	display: block;
	border-radius: 13px;
}

.fitem-video .aga-btn {
	margin-top: 28px;
}

/* #5 Basic Text — full-width body, centered H2 */
.fitem-basic-text .fitem-header-wrap {
	text-align: center;
	margin-bottom: 28px;
}

.fitem-basic-text .fitem-header {
	font-size: 28px;
	letter-spacing: -0.02em;
}

.fitem-basic-text .aga-mark {
	background-position: center 0.52em;
}

.fitem-basic-text .fitem-body {
	text-align: left;
	font-size: 18px;
	line-height: 1.3;
	opacity: 0.85;
	max-width: none;
}

/* ——— Footer ——— */
.aga-footer {
	background: var(--aga-cream);
	padding: 48px 0 28px;
	color: var(--aga-text-dark);
	font-size: 14px;
}

.aga-footer a {
	color: var(--aga-text-dark);
	opacity: 0.85;
}

.aga-footer a:hover {
	opacity: 1;
	color: var(--aga-accent);
}

.aga-footer-logo-col .aga-logo img,
.aga-logo-footer img {
	width: 107px;
}

.aga-footer-menu,
.aga-footer-social {
	margin: 0;
	padding: 0;
}

.aga-footer-menu li,
.aga-footer-social li {
	margin-bottom: 14px;
}

.aga-footer-service-area {
	font-size: 12px;
	line-height: 1.54;
	letter-spacing: 0.02em;
	opacity: 0.55;
	max-width: 220px;
	margin: 0;
}

.aga-footer-cta-col {
	text-align: right;
}

.aga-footer-contact {
	font-size: 16px;
	opacity: 0.85;
}

.aga-footer-bottom {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--aga-rule);
}

.aga-copyright {
	font-size: 12px;
	letter-spacing: 0.02em;
	opacity: 0.65;
	margin: 0;
}

.aga-footer-legal {
	text-align: right;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.aga-footer-legal a {
	opacity: 0.65;
}

.aga-footer-legal a:hover {
	opacity: 1;
}

@media (max-width: 767px) {
	.aga-footer-cta-col {
		text-align: left;
		margin-top: 24px;
	}

	.aga-footer-service-area {
		margin-top: 8px;
		max-width: none;
	}

	.aga-footer-logo-col {
		margin-bottom: 24px;
	}

	.aga-footer-legal {
		text-align: left;
		margin-top: 8px;
	}
}

/* ——— Blog / news grid ——— */
.fitem-newsgrid {
	padding: 24px 0 72px;
}

.aga-news-col {
	margin-bottom: 30px;
}

.aga-news-card {
	border: 1px solid rgba(60, 63, 67, 0.2);
	background: var(--aga-cream);
	height: 100%;
	min-height: 369px;
	display: flex;
	flex-direction: column;
}

.aga-news-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: var(--aga-text);
	text-decoration: none !important;
	height: 100%;
}

.aga-news-card-link:hover,
.aga-news-card-link:focus {
	color: var(--aga-text);
}

.aga-news-thumb {
	height: 166px;
	width: 100%;
	background: #e8e6df center / cover no-repeat;
	flex-shrink: 0;
}

.aga-news-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 25px 25px;
}

.aga-news-title {
	font-family: var(--aga-font);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--aga-text);
	opacity: 0.9;
	margin: 0;
}

.aga-news-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 40px;
	align-self: flex-start;
	font-family: var(--aga-font);
	font-size: 16px;
	line-height: 1.3;
	color: var(--aga-text);
	opacity: 0.85;
	border-bottom: 1px solid var(--aga-text);
	padding-bottom: 2px;
}

.aga-news-card-link:hover .aga-news-more {
	color: var(--aga-accent);
	border-bottom-color: var(--aga-accent);
	opacity: 1;
}

.aga-news-card-link:hover .aga-news-title {
	color: var(--aga-accent);
	opacity: 1;
}

.fitem-pag {
	text-align: center;
	margin-top: 24px;
	padding-top: 8px;
}

.fitem-pag .aga-pagination {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 16px;
	letter-spacing: 0.04em;
}

.fitem-pag .aga-pagination a,
.fitem-pag .aga-pagination span {
	color: var(--aga-text-dark);
	text-decoration: none;
}

.fitem-pag .aga-pagination .current {
	font-weight: 600;
	border-bottom: 1px solid var(--aga-text-dark);
}

.fitem-pag .aga-pagination .disabled {
	opacity: 0.35;
	pointer-events: none;
}

.fitem-newsheader {
	padding: 48px 0 0;
}

.fitem-newsheader h2 {
	margin-top: 0;
}

.news-meta {
	opacity: 0.7;
	font-size: 16px;
}

.fitem-news-imp {
	padding-top: 24px;
}

/* Hide Underscores search in header if present */
.aga-header .search-form {
	display: none;
}
