/* ======================================================
   CHALEX REALTY GLOBAL CSS
   Astra Child Theme
====================================================== */

/* ======================================================
   DESIGN TOKENS
====================================================== */

:root {
	--cr-navy: #122B3A;
	--cr-navy-dark: #0D2230;
	--cr-gold: #C59B4B;
	--cr-cream: #F6F1E8;
	--cr-soft: #ECE6DA;
	--cr-white: #FFFFFF;

	--cr-text: #172631;
	--cr-muted: #5F6B70;
	--cr-border: rgba(18, 43, 58, 0.12);

	--cr-font-serif: Georgia, "Times New Roman", serif;
	--cr-font-sans: Arial, Helvetica, sans-serif;

	--cr-h1: clamp(46px, 5.4vw, 72px);
	--cr-h2: clamp(32px, 4vw, 48px);
	--cr-h3: 24px;

	--cr-section-padding: 82px;
	--cr-container-padding: 48px;

	--cr-shadow-soft: 0 10px 30px rgba(0, 0, 0, .08);
	--cr-shadow-medium: 0 20px 50px rgba(0, 0, 0, .12);

	--cr-radius-small: 6px;
	--cr-radius-medium: 12px;
	--cr-radius-large: 24px;

	--cr-transition: all .25s ease;
}

/* ======================================================
   RESET / BASE
====================================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--cr-cream);
	color: var(--cr-text);
	font-family: var(--cr-font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: var(--cr-transition);
}

/* ======================================================
   ASTRA PAGE RESET
====================================================== */

.page .site-content .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

.page .entry-header {
	display: none;
}

.page .entry-content {
	margin: 0;
}

.page .entry-content > * {
	max-width: none;
}

.page .wp-block-shortcode {
	margin: 0;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	color: var(--cr-navy);
	line-height: 1.1;
	font-weight: 500;
}

h1,
h2,
h3 {
	font-family: var(--cr-font-serif);
}

h1,
h2 {
	letter-spacing: -0.02em;
}

h1 {
	font-size: var(--cr-h1);
}

h2 {
	font-size: var(--cr-h2);
}

h3 {
	font-size: var(--cr-h3);
}

p {
	margin-top: 0;
	margin-bottom: 1.2em;
	color: var(--cr-text);
}

/* ======================================================
   LAYOUT
====================================================== */

.cr-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: var(--cr-container-padding);
	padding-right: var(--cr-container-padding);
}

.cr-section {
	position: relative;
	padding-top: var(--cr-section-padding);
	padding-bottom: var(--cr-section-padding);
}

.cr-section-light {
	background: var(--cr-cream);
}

.cr-section-soft {
	background: var(--cr-soft);
}

.cr-section-white {
	background: var(--cr-white);
}

.cr-section-dark {
	background: var(--cr-navy-dark);
	color: var(--cr-white);
}

.cr-section-dark h1,
.cr-section-dark h2,
.cr-section-dark h3,
.cr-section-dark p {
	color: var(--cr-white);
}

/* ======================================================
   BUTTONS
====================================================== */

.cr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 26px;
	border-radius: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .7px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: var(--cr-transition);
}

.cr-btn-primary {
	background: var(--cr-navy);
	color: var(--cr-white);
	border-color: var(--cr-navy);
}

.cr-btn-primary:hover {
	background: var(--cr-navy-dark);
	border-color: var(--cr-navy-dark);
}

.cr-btn-gold {
	background: var(--cr-gold);
	color: var(--cr-white);
	border-color: var(--cr-gold);
}

.cr-btn-gold:hover {
	opacity: .92;
}

.cr-btn-outline {
	background: transparent;
	color: var(--cr-white);
	border-color: rgba(255, 255, 255, .45);
}

.cr-btn-outline:hover {
	background: rgba(255, 255, 255, .08);
}

/* ======================================================
   TEXT LINKS
====================================================== */

.cr-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--cr-gold);
}

.cr-text-link:hover {
	opacity: .82;
}

/* ======================================================
   ASTRA HEADER OVERRIDES
====================================================== */

.site-header {
	background: #fbf8f1;
	border-bottom: 1px solid var(--cr-border);
}

.main-header-bar,
.ast-primary-header-bar {
	min-height: 76px;
	padding-top: 8px;
	padding-bottom: 8px;
	border-bottom: none;
}

.site-branding,
.ast-site-identity {
	padding: 0;
}

.custom-logo,
.site-logo-img img {
	max-width: 165px;
	height: auto;
}

.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .55px;
	color: var(--cr-navy);
	padding-left: 14px;
	padding-right: 14px;
	line-height: 76px;
}

.main-header-menu .menu-link:hover,
.ast-builder-menu-1 .menu-item > .menu-link:hover {
	color: var(--cr-gold);
}

/* ======================================================
   HOMEPAGE HERO
====================================================== */

.cr-hero {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--cr-navy-dark);
}

.cr-hero-background {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	filter: saturate(.92) brightness(.88);
	z-index: 1;
}

.cr-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(13, 34, 48, .96) 0%,
			rgba(13, 34, 48, .88) 34%,
			rgba(13, 34, 48, .46) 62%,
			rgba(13, 34, 48, .16) 100%
		);
	z-index: 2;
}

.cr-hero-content {
	position: relative;
	z-index: 3;
	max-width: 620px;
	color: var(--cr-white);
}

.cr-hero-content h1 {
	max-width: 680px;
	margin-bottom: 24px;
	color: var(--cr-white);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.cr-hero-highlight {
	color: var(--cr-gold);
}

.cr-hero-content p {
	max-width: 500px;
	margin-bottom: 34px;
	font-size: 18px;
	line-height: 1.8;
	color: rgba(255, 255, 255, .92);
}

.cr-hero-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 42px;
	flex-wrap: wrap;
}

.cr-trust-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 28px;
	font-size: 13px;
	color: rgba(255, 255, 255, .9);
}

.cr-trust-row span::before {
	content: "✓";
	color: var(--cr-gold);
	margin-right: 8px;
}

/* ======================================================
   STRUCTURED INTERIOR PAGE HERO
====================================================== */

.cr-page-hero {
	background:
		linear-gradient(
			90deg,
			rgba(13, 34, 48, .98) 0%,
			rgba(13, 34, 48, .94) 48%,
			rgba(13, 34, 48, .88) 100%
		);
	padding-top: 92px;
	padding-bottom: 92px;
}

.cr-page-hero-content {
	max-width: 780px;
}

.cr-page-hero-content h1 {
	color: var(--cr-white);
	font-size: clamp(42px, 4.8vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-bottom: 24px;
}

.cr-page-hero-content p {
	max-width: 720px;
	font-size: 18px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 30px;
}

.cr-eyebrow {
	margin-bottom: 18px;
	font-size: 12px !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--cr-gold) !important;
}

/* ======================================================
   SECTION HEADERS
====================================================== */

.cr-section-header {
	max-width: 820px;
	margin: 0 auto 52px;
	text-align: center;
}

.cr-section-header h2 {
	margin-bottom: 18px;
}

.cr-section-header p {
	font-size: 17px;
	color: var(--cr-muted);
}

.cr-gold-line {
	width: 70px;
	height: 2px;
	background: var(--cr-gold);
	margin: 0 auto 26px;
}

/* ======================================================
   GRID SYSTEM
====================================================== */

.cr-grid {
	display: grid;
	gap: 32px;
}

.cr-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

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

/* ======================================================
   CARDS
====================================================== */

.cr-card {
	min-height: 100%;
	background: var(--cr-white);
	padding: 32px;
	box-shadow: var(--cr-shadow-soft);
	border-radius: var(--cr-radius-medium);
	border: 1px solid rgba(0, 0, 0, .04);
}

.cr-card h3 {
	margin-bottom: 14px;
	line-height: 1.18;
}

.cr-card p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--cr-text);
}

.cr-card p:last-child {
	margin-bottom: 0;
}

/* ======================================================
   PROCESS SECTION
====================================================== */

.cr-process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 42px;
}

.cr-process-item {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 20px;
	align-items: start;
}

.cr-process-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--cr-navy);
	color: var(--cr-white);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	font-size: 22px;
	font-weight: 700;
}

.cr-process-number {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--cr-gold);
	color: var(--cr-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

/* ======================================================
   FINAL CTA SECTION
====================================================== */

.cr-final-cta {
	position: relative;
	overflow: hidden;
}

.cr-final-cta-inner {
	display: grid;
	grid-template-columns: 35% 65%;
	min-height: 320px;
}

.cr-final-cta-image {
	background-size: cover;
	background-position: center;
}

.cr-final-cta-content {
	background: var(--cr-navy-dark);
	color: var(--cr-white);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 60px;
	gap: 40px;
}

.cr-final-cta-content h2 {
	color: var(--cr-white);
	margin-bottom: 18px;
}

.cr-final-cta-content p {
	max-width: 540px;
	color: rgba(255, 255, 255, .88);
}

/* ======================================================
   INTERIOR PAGE CTA
====================================================== */

.cr-page-cta {
	max-width: 780px;
	text-align: center;
	margin: 0 auto;
}

.cr-page-cta h2 {
	color: var(--cr-white);
	margin-bottom: 18px;
}

.cr-page-cta p {
	color: rgba(255, 255, 255, .88);
	font-size: 17px;
	line-height: 1.75;
	margin-bottom: 28px;
}

/* ======================================================
   TRUST BAR - FUTURE COMPONENT
====================================================== */

.cr-trust-bar {
	background: var(--cr-white);
	border-top: 1px solid var(--cr-border);
	border-bottom: 1px solid var(--cr-border);
}

.cr-trust-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	flex-wrap: wrap;
}

/* ======================================================
   RESOURCE GRID - FUTURE COMPONENT
====================================================== */

.cr-resource-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.cr-resource-card {
	background: var(--cr-white);
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius-medium);
	padding: 30px;
}

/* ======================================================
   FAQ - FUTURE COMPONENT
====================================================== */

.cr-faq {
	max-width: 900px;
	margin: 0 auto;
}

.cr-faq-item {
	border-bottom: 1px solid var(--cr-border);
	padding: 24px 0;
}

.cr-faq-item h3 {
	margin-bottom: 10px;
}

/* ======================================================
   CONTACT BLOCK - FUTURE COMPONENT
====================================================== */

.cr-contact-block {
	background: var(--cr-white);
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius-medium);
	padding: 40px;
	box-shadow: var(--cr-shadow-soft);
}

/* ======================================================
   INTERNAL LINKS - FUTURE COMPONENT
====================================================== */

.cr-internal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.cr-internal-links a {
	display: inline-flex;
	padding: 10px 14px;
	border: 1px solid var(--cr-border);
	font-size: 13px;
	color: var(--cr-navy);
}

/* ======================================================
   DISCLAIMER
====================================================== */

.cr-disclaimer {
	padding: 18px 32px;
	background: #0B1A25;
	text-align: center;
}

.cr-disclaimer p {
	margin: 0;
	font-size: 12px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .62);
}

/* ======================================================
   FOOTER
====================================================== */

.site-footer {
	background: var(--cr-navy-dark);
	color: rgba(255, 255, 255, .78);
	padding: 60px 0;
}

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

/* ======================================================
   TABLET RESPONSIVE
====================================================== */

@media (max-width: 1100px) {
	:root {
		--cr-container-padding: 36px;
	}

	.cr-grid-3,
	.cr-grid-4,
	.cr-process-grid,
	.cr-resource-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cr-final-cta-inner {
		grid-template-columns: 1fr;
	}

	.cr-final-cta-image {
		min-height: 260px;
	}
}

/* ======================================================
   MOBILE RESPONSIVE
====================================================== */

@media (max-width: 768px) {
	:root {
		--cr-section-padding: 64px;
		--cr-container-padding: 24px;
		--cr-h1: clamp(40px, 12vw, 54px);
		--cr-h2: clamp(30px, 9vw, 40px);
	}

	.main-header-bar,
	.ast-primary-header-bar {
		min-height: 68px;
	}

	.custom-logo,
	.site-logo-img img {
		max-width: 145px;
	}

	.main-header-menu .menu-link,
	.ast-builder-menu-1 .menu-item > .menu-link {
		line-height: 68px;
	}

	.cr-hero {
		min-height: auto;
		padding-top: 90px;
		padding-bottom: 90px;
	}

	.cr-hero-background {
		background-position: center;
	}

	.cr-hero-overlay {
		background:
			linear-gradient(
				180deg,
				rgba(13, 34, 48, .92) 0%,
				rgba(13, 34, 48, .84) 100%
			);
	}

	.cr-hero-content h1 {
		max-width: 100%;
		line-height: 1.04;
	}

	.cr-hero-content p {
		font-size: 16px;
	}

	.cr-hero-actions,
	.cr-trust-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.cr-page-hero {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.cr-page-hero-content h1 {
		font-size: clamp(36px, 10vw, 48px);
	}

	.cr-page-hero-content p {
		font-size: 16px;
	}

	.cr-grid-2,
	.cr-grid-3,
	.cr-grid-4,
	.cr-process-grid,
	.cr-resource-grid {
		grid-template-columns: 1fr;
	}

	.cr-process-item {
		grid-template-columns: 64px 1fr;
	}

	.cr-process-icon {
		width: 60px;
		height: 60px;
	}

	.cr-final-cta-content {
		padding: 42px 28px;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ======================================================
   ASTRA SPACING / FOOTER CLEANUP
====================================================== */

.site-content,
.ast-container,
.content-area,
.site-main,
.entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	padding: 0 !important;
}

footer.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap {
	margin-top: 0 !important;
}

/* ======================================================
   INTERIOR PAGE HERO IMAGE SUPPORT
====================================================== */

.cr-page-hero {
	position: relative;
	overflow: hidden;
	background: var(--cr-navy-dark);
	padding-top: 92px;
	padding-bottom: 92px;
}

.cr-page-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	filter: saturate(.9) brightness(.82);
	z-index: 1;
}

.cr-page-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(13, 34, 48, .98) 0%,
			rgba(13, 34, 48, .92) 42%,
			rgba(13, 34, 48, .62) 70%,
			rgba(13, 34, 48, .22) 100%
		);
	z-index: 2;
}

.cr-page-hero .cr-container {
	position: relative;
	z-index: 3;
}

@media (max-width: 768px) {
	.cr-page-hero-bg {
		background-position: center;
	}

	.cr-page-hero-overlay {
		background:
			linear-gradient(
				180deg,
				rgba(13, 34, 48, .94) 0%,
				rgba(13, 34, 48, .86) 100%
			);
	}
}

/* ======================================================
   ASTRA SPACING / FOOTER CLEANUP
====================================================== */

.site-content,
.ast-container,
.content-area,
.site-main,
.entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	padding: 0 !important;
}

footer.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap {
	margin-top: 0 !important;
}

/* ======================================================
   INTERIOR PAGE HERO IMAGE SUPPORT
====================================================== */

.cr-page-hero {
	position: relative;
	overflow: hidden;
	background: var(--cr-navy-dark);
	padding-top: 92px;
	padding-bottom: 92px;
}

.cr-page-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	filter: saturate(.9) brightness(.82);
	z-index: 1;
}

.cr-page-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(13, 34, 48, .98) 0%,
			rgba(13, 34, 48, .92) 42%,
			rgba(13, 34, 48, .62) 70%,
			rgba(13, 34, 48, .22) 100%
		);
	z-index: 2;
}

.cr-page-hero .cr-container {
	position: relative;
	z-index: 3;
}

@media (max-width: 768px) {
	.cr-page-hero-bg {
		background-position: center;
	}

	.cr-page-hero-overlay {
		background:
			linear-gradient(
				180deg,
				rgba(13, 34, 48, .94) 0%,
				rgba(13, 34, 48, .86) 100%
			);
	}
}