/*
Theme Name: RealtorX
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: RealtorX is a lightweight, reusable WordPress starter theme built with Bootstrap, Font Awesome and AOS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.9
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: realtorx
Tags: custom-logo, custom-menu, featured-images, responsive-layout, bootstrap
*/

/* =========================================================
   1. CSS VARIABLES
   ========================================================= */

:root {

	/* Brand */
	--rx-primary: #882120;
	--rx-primary-dark: #600000;
	--rx-secondary: #6c757d;

	/* Text */
	--rx-heading: #111827;
	--rx-text: #4b5563;
	--rx-muted: #6b7280;

	/* Background */
	--rx-white: #ffffff;
	--rx-light: #f8fafc;
	--rx-dark: #111;

	/* Borders */
	--rx-border: #e5e7eb;

	/* Radius */
	--rx-radius-sm: 6px;
	--rx-radius-md: 10px;
	--rx-radius-lg: 16px;

	/* Shadows */
	--rx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--rx-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
	--rx-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

	/* Typography */
	--rx-font-body: "Inter", sans-serif;
	--rx-font-heading: "Plus Jakarta Sans", sans-serif;

	/* Transition */
	--rx-transition: all 0.3s ease;

}


/* =========================================================
   2. RESET / GLOBAL
   ========================================================= */

html {
	scroll-behavior: smooth;
}

body {

	margin: 0;
	padding: 0;

	background: var(--rx-white);

	color: var(--rx-text);

	font-family: var(--rx-font-body);

	font-size: 16px;
	font-weight: 400;

	line-height: 1.7;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

}

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

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

iframe {
	max-width: 100%;
}

a {

	color: var(--rx-primary);

	text-decoration: none;

	transition: var(--rx-transition);

}

a:hover {
	color: var(--rx-primary-dark);
}

button,
input,
textarea,
select {
	font-family: inherit;
}

button {
	cursor: pointer;
}


/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

	margin-top: 0;

	color: var(--rx-heading);

	font-family: var(--rx-font-heading);

	font-weight: 700;

	line-height: 1.25;

}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin-bottom: 1rem;
}

.text-muted {
	color: var(--rx-muted) !important;
}


/* =========================================================
   4. WORDPRESS CORE
   ========================================================= */

.alignleft {

	float: left;

	margin-right: 1.5rem;
	margin-bottom: 1rem;

}

.alignright {

	float: right;

	margin-left: 1.5rem;
	margin-bottom: 1rem;

}

.aligncenter {

	display: block;

	margin-left: auto;
	margin-right: auto;

}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 14px;
	color: var(--rx-muted);
}

.screen-reader-text {

	position: absolute;

	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;

	clip: rect(0, 0, 0, 0);

	white-space: nowrap;

	border: 0;

}


/* =========================================================
   5. GLOBAL LAYOUT
   ========================================================= */

.site {
	width: 100%;
	overflow: hidden;
}

.site-main {
	width: 100%;
}

.section {

	position: relative;

	padding-top: 100px;
	padding-bottom: 100px;

}

.section-sm {

	padding-top: 60px;
	padding-bottom: 60px;

}

.section-lg {

	padding-top: 140px;
	padding-bottom: 140px;

}


/* =========================================================
   6. CONTAINER
   ========================================================= */

.container {

	width: 100%;

}

.container-wide {

	max-width: 1440px;

	margin-left: auto;
	margin-right: auto;

	padding-left: 20px;
	padding-right: 20px;

}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.btn {

	border-radius: var(--rx-radius-sm);

	font-weight: 600;

	padding: 12px 24px;

	transition: var(--rx-transition);

}

.btn-primary {

	background-color: var(--rx-primary);

	border-color: var(--rx-primary);

}

.btn-primary:hover {

	background-color: var(--rx-primary-dark);

	border-color: var(--rx-primary-dark);

	transform: translateY(-2px);

}

.btn-outline-primary:hover {
	transform: translateY(-2px);
}


/* =========================================================
   8. HEADER / SITE BRANDING
   ========================================================= */

.site-header {

	position: relative;

	width: 100%;

	background: var(--rx-white);

	z-index: 1000;

}


/* =========================================================
   SITE BRANDING
   ========================================================= */

.site-branding {

	display: flex;

	align-items: center;

}

.site-branding .custom-logo-link {

	display: inline-flex;

	align-items: center;

}

.site-branding .custom-logo {

	display: block;

	width: auto;

	max-width: 180px;

	max-height: 60px;

}

.site-title {

	display: inline-block;

	color: var(--rx-heading);

	font-family: var(--rx-font-heading);

	font-size: 1.5rem;

	font-weight: 700;

	line-height: 1;

}

.site-title:hover {

	color: var(--rx-primary);

}


/* =========================================================
   NAVBAR
   ========================================================= */

.site-header .navbar {

	min-height: 80px;

	padding-top: 15px;
	padding-bottom: 15px;

}

.site-header .navbar-brand {

	margin-right: 40px;

	padding: 0;

}

.site-header .navbar-toggler {

	border: 0;

	padding: 8px;

	box-shadow: none;

}

.site-header .navbar-toggler:focus {

	box-shadow: none;

}


/* =========================================================
   9. PRIMARY NAVIGATION
   ========================================================= */

#primary-menu {

	align-items: center;

	gap: 5px;

}

#primary-menu .nav-item {

	position: relative;

}

#primary-menu .nav-link {

	padding: 10px 15px;

	color: var(--rx-heading);

	font-size: 15px;

	font-weight: 500;

}

#primary-menu .nav-link:hover,
#primary-menu .current-menu-item > .nav-link,
#primary-menu .current-menu-ancestor > .nav-link {

	color: var(--rx-primary);

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 991.98px) {

	.site-header .navbar {

		min-height: 70px;

	}

	.site-header .navbar-collapse {

		margin-top: 15px;

		padding-top: 10px;

		border-top: 1px solid var(--rx-border);

	}

	#primary-menu {

		align-items: stretch;

		gap: 0;

	}

	#primary-menu .nav-link {

		padding: 12px 5px;

	}

	.site-branding .custom-logo {

		max-width: 150px;

		max-height: 50px;

	}

}


/* =========================================================
   10. HERO
   ========================================================= */

.hero-section {

	position: relative;

	min-height: 700px;

	display: flex;

	align-items: center;

	background-color: var(--rx-light);

}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero-title {

	margin-bottom: 25px;

	font-weight: 800;

}

.hero-description {

	max-width: 700px;

	margin-bottom: 35px;

	color: var(--rx-text);

	font-size: 18px;

}


/* =========================================================
   11. SECTION HEADER
   ========================================================= */

.section-header {

	max-width: 800px;

	margin: 0 auto 60px;

	text-align: center;

}

.section-subtitle {

	display: inline-block;

	margin-bottom: 12px;

	color: var(--rx-primary);

	font-size: 14px;

	font-weight: 700;

	letter-spacing: 1.5px;

	text-transform: uppercase;

}

.section-title {
	margin-bottom: 20px;
}

.section-description {
	color: var(--rx-muted);
}


/* =========================================================
   12. CARDS
   ========================================================= */

.realtorx-card {

	background: var(--rx-white);

	border: 1px solid var(--rx-border);

	border-radius: var(--rx-radius-md);

	box-shadow: var(--rx-shadow-sm);

	overflow: hidden;

	transition: var(--rx-transition);

}

.realtorx-card:hover {

	transform: translateY(-5px);

	box-shadow: var(--rx-shadow-md);

}


/* =========================================================
   13. PROPERTY CARD
   ========================================================= */

.property-card {

	position: relative;

	background: var(--rx-white);

	border-radius: var(--rx-radius-md);

	overflow: hidden;

	box-shadow: var(--rx-shadow-sm);

	transition: var(--rx-transition);

}

.property-card:hover {

	transform: translateY(-5px);

	box-shadow: var(--rx-shadow-lg);

}

.property-card-image {

	position: relative;

	overflow: hidden;

	aspect-ratio: 16 / 10;

}

.property-card-image img {

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.5s ease;

}

.property-card:hover .property-card-image img {
	transform: scale(1.05);
}

.property-card-content {
	padding: 25px;
}

.property-card-title {
	margin-bottom: 10px;
}


/* =========================================================
   14. FORMS
   ========================================================= */

.form-control,
.form-select {

	min-height: 50px;

	border: 1px solid var(--rx-border);

	border-radius: var(--rx-radius-sm);

	padding: 12px 15px;

}

.form-control:focus,
.form-select:focus {

	border-color: var(--rx-primary);

	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);

}


/* =========================================================
   15. FOOTER
   ========================================================= */

.site-footer {

	padding-top: 70px;
	padding-bottom: 30px;

	background: var(--rx-dark);

	color: #d1d5db;

}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {

	color: var(--rx-white);

}

.site-footer a {
	color: #d1d5db;
}

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


/* =========================================================
   16. SOCIAL ICONS
   ========================================================= */

.social-links {

	display: flex;

	align-items: center;

	gap: 10px;

}

.social-links a {

	width: 42px;
	height: 42px;

	display: inline-flex;

	align-items: center;
	justify-content: center;

	border: 1px solid rgba(255, 255, 255, 0.15);

	border-radius: 50%;

	color: var(--rx-white);

}

.social-links a:hover {

	background: var(--rx-primary);

	border-color: var(--rx-primary);

	transform: translateY(-3px);

}


/* =========================================================
   17. BACK TO TOP
   ========================================================= */

.back-to-top {

	position: fixed;

	right: 25px;
	bottom: 25px;

	width: 45px;
	height: 45px;

	display: flex;

	align-items: center;
	justify-content: center;

	background: var(--rx-primary);

	color: var(--rx-white);

	border-radius: 50%;

	opacity: 0;
	visibility: hidden;

	z-index: 999;

	transition: var(--rx-transition);

}

.back-to-top.active {

	opacity: 1;
	visibility: visible;

}

.back-to-top:hover {

	background: var(--rx-primary-dark);

	color: var(--rx-white);

	transform: translateY(-3px);

}


/* =========================================================
   18. WORDPRESS ADMIN BAR
   ========================================================= */

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


/* =========================================================
   19. RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

	.section {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.section-lg {
		padding-top: 110px;
		padding-bottom: 110px;
	}

}


@media (max-width: 991.98px) {

	.hero-section {
		min-height: 600px;
	}

	.main-navigation .navbar-nav {
		padding-top: 15px;
		padding-bottom: 15px;
	}

}


@media (max-width: 767.98px) {

	body {
		font-size: 15px;
	}

	.section,
	.section-lg {

		padding-top: 70px;
		padding-bottom: 70px;

	}

	.section-sm {

		padding-top: 45px;
		padding-bottom: 45px;

	}

	.hero-section {
		min-height: 550px;
	}

	.hero-description {
		font-size: 16px;
	}

	.section-header {
		margin-bottom: 40px;
	}

}


@media (max-width: 575.98px) {

	.section,
	.section-lg {

		padding-top: 55px;
		padding-bottom: 55px;

	}

	.hero-section {
		min-height: 500px;
	}

	.btn {

		padding: 11px 20px;

	}

}


/* =========================================================
   20. ACCESSIBILITY
   ========================================================= */

:focus-visible {

	outline: 3px solid rgba(13, 110, 253, 0.4);

	outline-offset: 3px;

}


/* =========================================================
   21. REDUCED MOTION
   ========================================================= */

@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;

	}

}