/* =========================================================
   Atlas Advisory Group — rebuilt static stylesheet
   Recreates the original Elementor/Hello-Elementor design
   (cream background, dark slate accents, Cormorant serif)
   using plain CSS custom properties + flexbox/grid.
   ========================================================= */

@font-face {
	font-family: "Cormorant";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("fonts/cormorant-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Cormorant";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("fonts/cormorant-latin-italic.woff2") format("woff2");
}

:root {
	--color-bg: #ebe4de;
	--color-text: #232320;
	--color-secondary: #505358;
	--color-border: rgba(80, 83, 88, 0.49);
	--color-border-soft: rgba(80, 83, 88, 0.32);
	--font-serif: "Cormorant", "Times New Roman", Georgia, serif;
	--container-max: 1180px;
	--container-max-tablet: 1024px;
	--container-max-mobile: 767px;
	--gutter: 40px;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.4;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 600;
	margin: 0;
	line-height: 1.15;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-secondary);
	color: var(--color-bg);
	padding: 12px 20px;
	z-index: 1000;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

/* ---------- shared container ---------- */

.hero-inner,
.services-inner,
.approach-inner,
.footer-inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

@media (max-width: 1024px) {
	.hero-inner,
	.services-inner,
	.approach-inner,
	.footer-inner {
		max-width: var(--container-max-tablet);
	}
}

@media (max-width: 767px) {
	.hero-inner,
	.services-inner,
	.approach-inner,
	.footer-inner {
		max-width: var(--container-max-mobile);
		padding: 0 24px;
	}
}

/* ---------- hero ---------- */

.hero {
	padding: 60px 0 20px;
}

.hero-inner {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 60px;
	flex-wrap: wrap;
}

.hero-image {
	flex: 0 0 auto;
}

.hero-image img {
	width: 420px;
	max-width: 100%;
	height: auto;
}

.hero-content {
	flex: 1 1 380px;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.brand-title {
	font-size: 65px;
	letter-spacing: 0.5px;
}

.tagline {
	font-size: 27px;
	font-weight: 400;
}

.lede {
	width: 79%;
	font-size: 18px;
	line-height: 23px;
}

.btn {
	align-self: flex-start;
	background-color: var(--color-secondary);
	color: var(--color-bg);
	border: none;
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 600;
	padding: 12px 28px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn:hover {
	opacity: 0.85;
}

@media (max-width: 767px) {
	.hero-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hero-image img {
		width: 88%;
		margin: 0 auto;
	}

	.hero-content {
		align-items: center;
		max-width: 100%;
	}

	.brand-title {
		font-size: 51px;
	}

	.tagline {
		font-size: 23px;
	}

	.lede {
		width: 100%;
	}

	.btn {
		align-self: center;
	}
}

/* ---------- services strip ---------- */

.services {
	padding: 40px 0;
}

.services-inner {
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: 26px var(--gutter);
}

.services-col {
	flex: 1 1 0;
	padding: 0 26px;
	border-right: 1px solid var(--color-border);
}

.services-col-last {
	border-right: none;
}

.services-col h4 {
	font-size: 28px;
	margin-bottom: 14px;
}

.services-col p {
	font-size: 18px;
	line-height: 23px;
}

@media (max-width: 767px) {
	.services-inner {
		flex-direction: column;
		border: none;
		padding: 0 24px;
	}

	.services-col {
		border-right: none;
		border-bottom: 1px solid var(--color-border);
		padding: 26px 0;
	}

	.services-col-last {
		border-bottom: none;
	}
}

/* ---------- approach section ---------- */

.approach {
	padding: 20px 0 60px;
}

.approach-inner {
	display: flex;
	align-items: flex-start;
	gap: 26px;
	flex-wrap: wrap;
}

.approach-col {
	flex: 1 1 320px;
	padding: 26px 26px 26px 0;
	border-right: 1px solid var(--color-border);
}

.approach-col h4 {
	font-size: 28px;
	margin-bottom: 16px;
}

.approach-photo {
	flex: 0 0 auto;
	width: 18%;
	min-width: 140px;
	padding: 26px 0;
}

.arrow-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.arrow-list li {
	position: relative;
	padding-left: 24px;
	font-size: 18px;
	line-height: 23px;
	color: var(--color-secondary);
}

.arrow-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--color-secondary);
	border-right: 2px solid var(--color-secondary);
	transform: rotate(45deg);
}

@media (max-width: 1024px) {
	.approach-photo {
		width: 25%;
	}
}

@media (max-width: 767px) {
	.approach-inner {
		flex-direction: column;
	}

	.approach-col {
		border-right: none;
		border-bottom: 1px solid var(--color-border);
		padding: 20px 0;
		width: 100%;
	}

	.approach-photo {
		width: 45%;
		margin: 0 auto;
		padding: 20px 0;
	}
}

/* ---------- footer ---------- */

.site-footer {
	padding: 40px 0 60px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding-top: 30px;
	border-top: 1px solid var(--color-border-soft);
}

.footer-brand h5 {
	font-size: 28px;
	margin-bottom: 8px;
}

.footer-links {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	text-align: right;
	font-size: 15px;
}

.link-btn {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	font-family: var(--font-serif);
	font-size: inherit;
	cursor: pointer;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer-brand,
	.footer-links {
		text-align: center;
		justify-content: center;
	}
}

/* ---------- modals ---------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.modal[hidden] {
	display: none;
}

.modal-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
	position: relative;
	background-color: var(--color-bg);
	border-radius: 5px;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	padding: 40px;
	max-width: 560px;
	width: 100%;
}

.modal-content-scroll {
	max-width: 720px;
	max-height: 85vh;
	overflow-y: auto;
}

.modal-content-scroll h2 {
	font-size: 32px;
	margin-bottom: 16px;
}

.modal-content-scroll h3 {
	font-size: 22px;
	margin-top: 26px;
	margin-bottom: 8px;
}

.modal-content-scroll h4 {
	font-size: 19px;
	margin-top: 18px;
	margin-bottom: 6px;
}

.modal-content-scroll p,
.modal-content-scroll li {
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 10px;
}

.modal-content-scroll ul {
	padding-left: 22px;
	margin: 0 0 10px;
}

.modal-content h2 {
	font-size: 42px;
	font-weight: 600;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--color-secondary);
}

/* ---------- contact form ---------- */

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
	font-family: var(--font-serif);
	font-size: 16px;
	color: var(--color-text);
	background-color: var(--color-bg);
	border: 1px solid var(--color-secondary);
	border-radius: 0;
	padding: 12px 14px;
	width: 100%;
}

.contact-form textarea {
	resize: vertical;
}

.btn-submit {
	align-self: stretch;
	text-align: center;
}

.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;
}
