/**
 * New Realm Transportation Theme Main Stylesheet
 *
 * @package NewRealm
 * @since   1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
	/* Colors */
	--color-maroon: #800020;         /* Primary Maroon */
	--color-maroon-dark: #5c0017;    /* Dark Maroon for hover states */
	--color-maroon-light: #fdf2f4;   /* Very light maroon tint */
	--color-gold: #c5a059;           /* Secondary Gold */
	--color-gold-hover: #b38f48;     /* Gold hover */
	--color-dark: #1e1e24;           /* Deep dark charcoal */
	--color-dark-bg: #15151a;        /* Dark background for footer */
	--color-light: #f8f9fa;          /* Off-white */
	--color-white: #ffffff;
	--color-border: #e9ecef;
	--color-text: #495057;           /* Body text color */
	--color-text-dark: #212529;      /* Heading/bold text color */
	--color-text-muted: #868e96;     /* Secondary/muted text */

	/* Typography */
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	
	/* Layout & Spacing */
	--container-width: 1200px;
	--header-height: 80px;
	--top-bar-height: 40px;
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--border-radius: 6px;
	--box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--color-white);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-dark);
	font-weight: 700;
	line-height: 1.25;
	margin-top: 0;
	margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

a {
	color: var(--color-maroon);
	text-decoration: none;
	transition: var(--transition-smooth);
}

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

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

ul, ol {
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-right: auto;
	margin-left: auto;
	padding-right: 1.5rem;
	padding-left: 1.5rem;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex-grow: 1;
}

/* Screen reader text accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-light);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text-dark);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	top: 5px;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--border-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: var(--transition-smooth);
	gap: 0.5rem;
}

.btn--primary {
	background-color: var(--color-maroon);
	color: var(--color-white);
}

.btn--primary:hover {
	background-color: var(--color-maroon-dark);
	color: var(--color-white);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(128, 0, 32, 0.2);
}

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

.btn--secondary:hover {
	background-color: var(--color-gold-hover);
	color: var(--color-white);
	transform: translateY(-2px);
}

.btn--outline {
	background-color: transparent;
	border-color: var(--color-maroon);
	color: var(--color-maroon);
}

.btn--outline:hover {
	background-color: var(--color-maroon);
	color: var(--color-white);
}

.btn--full {
	width: 100%;
}

.btn__arrow {
	transition: var(--transition-smooth);
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   Top Bar Styles
   ========================================================================== */
.top-bar {
	background-color: var(--color-dark);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	height: var(--top-bar-height);
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.top-bar__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	height: 100%;
}

.top-bar__item {
	display: flex;
	align-items: center;
	height: 100%;
}

.top-bar__item--divider {
	width: 1px;
	height: 14px;
	background-color: rgba(255, 255, 255, 0.2);
	margin: 0 1rem;
}

.top-bar__icon {
	display: inline-flex;
	color: var(--color-gold);
	margin-right: 0.5rem;
}

.top-bar__link {
	color: rgba(255, 255, 255, 0.85);
}

.top-bar__link:hover {
	color: var(--color-gold);
}

.top-bar__info {
	display: flex;
	align-items: center;
	color: var(--color-gold);
	font-weight: 500;
}

.top-bar__text {
	color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Main Header Styles
   ========================================================================== */
.site-header {
	background-color: var(--color-white);
	height: var(--header-height);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: var(--transition-smooth);
}

.site-header.is-sticky {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.site-header__logo img,
.site-header__logo .custom-logo {
	max-height: 70px;
	width: auto;
	height: auto;
	display: block;
}

.site-header__logo .site-title-link {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-maroon);
	letter-spacing: -0.5px;
}

/* Header Navigation */
.site-header__nav {
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
	height: 100%;
}

.nav-menu li {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-menu a {
	color: var(--color-text-dark);
	font-weight: 600;
	font-size: 0.95rem;
	position: relative;
	padding: 0.5rem 0;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-maroon);
	transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--color-maroon);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
	width: 100%;
}

/* Submenu dropdowns */
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--color-white);
	box-shadow: var(--box-shadow-lg);
	border-top: 3px solid var(--color-maroon);
	list-style: none;
	margin: 0;
	padding: 1rem 0;
	min-width: 220px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: var(--transition-smooth);
}

.nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu li {
	width: 100%;
	height: auto;
	display: block;
}

.nav-menu .sub-menu a {
	padding: 0.6rem 1.5rem;
	display: block;
	font-weight: 500;
	font-size: 0.9rem;
	color: var(--color-text);
}

.nav-menu .sub-menu a::after {
	display: none;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu .current-menu-item > a {
	color: var(--color-maroon);
	background-color: var(--color-light);
	padding-left: 1.75rem;
}

/* Hamburger toggle for mobile */
.site-header__toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001;
}

.hamburger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
}

.hamburger__line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-dark);
	transition: var(--transition-smooth);
}

/* ==========================================================================
   Mobile Navigation Overlay
   ========================================================================== */
.mobile-nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition-smooth);
}

.mobile-nav-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.mobile-nav {
	position: fixed;
	top: 0;
	right: -320px;
	width: 320px;
	height: 100%;
	background-color: var(--color-white);
	z-index: 2001;
	box-shadow: -5px 0 25px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	padding: 2rem;
	transition: var(--transition-smooth);
}

.mobile-nav-overlay.is-active .mobile-nav {
	right: 0;
}

.mobile-nav__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.mobile-nav__logo .site-title-link {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--color-maroon);
}

.mobile-nav__logo img,
.mobile-nav__logo .custom-logo {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
}

.mobile-nav__close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-dark);
	padding: 0.25rem;
}

.mobile-nav__menu {
	flex-grow: 1;
	overflow-y: auto;
	margin-bottom: 2rem;
}

.mobile-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu li {
	margin-bottom: 1.25rem;
}

.mobile-menu a {
	color: var(--color-text-dark);
	font-weight: 600;
	font-size: 1.1rem;
	display: block;
}

.mobile-menu a:hover,
.mobile-menu .current-menu-item > a {
	color: var(--color-maroon);
}

.mobile-menu .sub-menu {
	list-style: none;
	padding-left: 1rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.mobile-menu .sub-menu li {
	margin-bottom: 0.75rem;
}

.mobile-menu .sub-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-text);
}

/* Ensure mobile nav links stack vertically (even for fallback nav-menu layout) */
.mobile-nav__menu ul {
	display: flex !important;
	flex-direction: column !important;
	gap: 1.25rem !important;
	height: auto !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mobile-nav__menu li {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin-bottom: 0 !important;
}

.mobile-nav__menu a {
	display: block !important;
	width: 100% !important;
	padding: 0.5rem 0 !important;
}

.mobile-nav__contact {
	margin-bottom: 1.5rem;
	border-top: 1px solid var(--color-border);
	padding-top: 1.5rem;
}

.mobile-nav__contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-text);
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.mobile-nav__contact-item:hover {
	color: var(--color-maroon);
}

.mobile-nav__contact-item svg {
	color: var(--color-gold);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
	background-color: var(--color-dark-bg);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
}

.footer-main {
	padding: 5rem 0 4rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 3rem;
}

.footer-col__logo {
	margin-bottom: 1.5rem;
}

.footer-col__logo .site-title-link {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--color-white);
}

.footer-col__logo img,
.footer-col__logo .custom-logo {
	max-height: 50px;
	width: auto;
	height: auto;
	display: block;
}

.footer-col__description {
	line-height: 1.7;
	margin-bottom: 2rem;
}

.footer-col__social {
	display: flex;
	gap: 1rem;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--color-white);
	transition: var(--transition-smooth);
}

.social-link:hover {
	background-color: var(--color-maroon);
	color: var(--color-white);
	transform: translateY(-3px);
}

.footer-col__title {
	color: var(--color-white);
	font-size: 1.2rem;
	font-weight: 700;
	position: relative;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.footer-col__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--color-gold);
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-menu li {
	margin-bottom: 0.85rem;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.7);
	display: inline-block;
}

.footer-menu a:hover {
	color: var(--color-gold);
	transform: translateX(3px);
}

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.2rem;
}

.footer-contact__icon {
	color: var(--color-gold);
	display: inline-flex;
	margin-top: 0.2rem;
}

.footer-contact a {
	color: rgba(255, 255, 255, 0.7);
}

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

/* Footer Bottom */
.footer-bottom {
	padding: 2rem 0;
	background-color: rgba(0, 0, 0, 0.2);
	font-size: 0.875rem;
}

.footer-bottom__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-bottom__copyright {
	margin: 0;
}

.footer-bottom__copyright strong {
	color: var(--color-white);
}

.footer-bottom__usdot {
	margin: 0;
	background-color: rgba(197, 160, 89, 0.15);
	color: var(--color-gold);
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
	font-weight: 600;
	border: 1px solid rgba(197, 160, 89, 0.3);
}

/* ==========================================================================
   Placeholder Section (Front Page)
   ========================================================================== */
.placeholder-section {
	padding: 10rem 0;
	background-color: var(--color-light);
	text-align: center;
}

.placeholder-content {
	max-width: 600px;
	margin: 0 auto;
}

.placeholder-content__title {
	font-size: 3rem;
	color: var(--color-maroon);
	margin-bottom: 1.5rem;
}

.placeholder-content__text {
	font-size: 1.25rem;
	color: var(--color-text);
}

/* ==========================================================================
   Inner Page Layout Styles (Common)
   ========================================================================== */
.page-header {
	background-color: var(--color-light);
	padding: 4rem 0;
	border-bottom: 1px solid var(--color-border);
}

.page-header__title {
	margin-bottom: 0.75rem;
}

.page-header__breadcrumb {
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.page-header__separator {
	margin: 0 0.5rem;
}

.page-header__current {
	color: var(--color-text-dark);
	font-weight: 500;
}

.page-content, .single-content, .content-area {
	padding: 5rem 0;
}

.entry__content {
	line-height: 1.8;
}

/* 404 Styles */
.error-404 {
	padding: 8rem 0;
	text-align: center;
}

.error-404__content {
	max-width: 600px;
	margin: 0 auto;
}

.error-404__code {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-size: 6rem;
	font-weight: 900;
	color: var(--color-maroon);
	line-height: 1;
	margin-bottom: 2rem;
}

.error-404__icon {
	color: var(--color-gold);
}

.error-404__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.error-404__text {
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
}

.error-404__actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

/* ==========================================================================
   Elementor Page Builder Compatibility Overrides
   ========================================================================== */
/* ignoring loop detection */
/* Force New Realm widgets to take 100% width and discard outer spacing */
.elementor-widget-newrealm_hero,
.elementor-widget-newrealm_stats_bar,
.elementor-widget-newrealm_about,
.elementor-widget-newrealm_capabilities,
.elementor-widget-newrealm_requirements,
.elementor-widget-newrealm_equipment,
.elementor-widget-newrealm_process,
.elementor-widget-newrealm_map,
.elementor-widget-newrealm_why,
.elementor-widget-newrealm_testimonials,
.elementor-widget-newrealm_faq,
.elementor-widget-newrealm_cta_form {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

/* Override Elementor's column wrapper padding inside full-width sections to avoid boxed constraints */
.elementor-section.elementor-section-full_width > .elementor-container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.elementor-section.elementor-section-full_width > .elementor-container > .elementor-column > .elementor-widget-wrap,
.elementor-section.elementor-section-full_width > .elementor-container > .elementor-column > .elementor-column-wrap {
	padding: 0 !important;
	margin: 0 !important;
}

/* Eliminate top/bottom gaps between Elementor sections */
.elementor-section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

