/* TRex Expedited Delivery - brand layer on top of Hestia */
:root {
	--trex-orange: #f26a1b;
	--trex-orange-deep: #d9530c;
	--trex-amber: #ffb02e;
	--trex-ink: #141518;
	--trex-ink-2: #1f2126;
	--trex-steel: #3a4150;
	--trex-paper: #f6f3ee;
	--trex-text: #2a2c31;
	--trex-muted: #6b6f78;
	--trex-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--trex-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--trex-radius: 14px;
}

/* ---------- Global type ---------- */
body,
.main,
p, li, input, textarea, select, button {
	font-family: var(--trex-body);
	color: var(--trex-text);
}
body { background: var(--trex-paper); font-size: 17px; }
h1, h2, h3, h4, h5, h6,
.title, .card-title, .info-title, .hestia-title {
	font-family: var(--trex-display) !important;
	font-weight: 800 !important;
	letter-spacing: 0.01em;
	color: var(--trex-ink);
}
a { color: var(--trex-orange-deep); }
a:hover, a:focus { color: var(--trex-orange); }

/* ---------- Header / nav (solid, everywhere) ---------- */
.navbar,
.navbar.navbar-default,
.navbar.navbar-transparent,
.navbar.navbar-color-on-scroll {
	background: var(--trex-ink) !important;
	box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25) !important;
	padding-top: 6px; padding-bottom: 6px;
}
.navbar .navbar-brand, .navbar .navbar-brand p, .navbar .title-logo-wrapper .hestia-hide-if-transparent {
	color: #fff !important;
	font-family: var(--trex-display) !important;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > a:visited {
	color: #e9e7e3 !important;
	font-family: var(--trex-body) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	position: relative;
}
.navbar .navbar-nav > li > a::after {
	content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 3px;
	background: var(--trex-orange); transform: scaleX(0); transform-origin: left;
	transition: transform .25s ease;
}
.navbar .navbar-nav > li > a:hover::after,
.navbar .navbar-nav > li.current-menu-item > a::after { transform: scaleX(1); }
.navbar .navbar-nav > li > a:hover { color: #fff !important; }
.navbar .navbar-toggle .icon-bar { background: #fff !important; }
@media (max-width: 991px) {
	.navbar .navbar-collapse, .navbar .navbar-collapse.in { background: var(--trex-ink) !important; }
	.navbar .navbar-nav > li > a { color: #fff !important; }
}

/* ---------- Buttons (Hestia + core blocks) ---------- */
.btn, .btn.btn-primary, button.btn, input[type="submit"],
.wp-block-button__link, .wp-element-button,
.wpforms-container button[type="submit"] {
	background: var(--trex-orange) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--trex-body) !important;
	font-weight: 700 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 14px 28px !important;
	box-shadow: 0 8px 22px rgba(242,106,27,.32) !important;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover,
.wpforms-container button[type="submit"]:hover {
	background: var(--trex-orange-deep) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(242,106,27,.4) !important;
}

/* ---------- Inner page header (featured image banner) ---------- */
.page-header.header-small,
.page-header {
	min-height: 46vh !important;
}
.page-header .header-filter::before,
.page-header.header-filter::before {
	background: linear-gradient(115deg, rgba(20,21,24,.9) 0%, rgba(20,21,24,.55) 55%, rgba(242,106,27,.35) 100%) !important;
}
.page-header .hestia-title,
.page-header h1 {
	color: #fff !important;
	font-size: clamp(44px, 7vw, 84px) !important;
	text-transform: uppercase;
	line-height: .95 !important;
}
.main.main-raised {
	border-radius: var(--trex-radius) var(--trex-radius) 0 0 !important;
	box-shadow: 0 -10px 40px rgba(0,0,0,.08) !important;
}
.blog-post .section-text, .page .entry-content, .single-page .page-content-wrap {
	font-size: 18px; line-height: 1.7;
}
.page-content-wrap h2, .entry-content h2 {
	font-size: clamp(30px, 4vw, 42px) !important;
	text-transform: uppercase;
	margin-top: 1.6em;
	position: relative;
	padding-bottom: 12px;
}
.page-content-wrap h2::after, .entry-content h2::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px;
	background: var(--trex-orange); border-radius: 2px;
}
.page-content-wrap img, .entry-content img { border-radius: var(--trex-radius); }
.page-content-wrap ul li::marker, .entry-content ul li::marker { color: var(--trex-orange); }

/* ---------- Footer ---------- */
footer.footer, .footer, .footer.footer-black {
	background: var(--trex-ink) !important;
	color: #bdbab4 !important;
}
.footer a, .footer .footer-menu li a { color: #e9e7e3 !important; }
.footer a:hover { color: var(--trex-orange) !important; }
.footer .copyright, .footer .copyright a { color: #8b8a87 !important; }

/* ==========================================================
   FRONT PAGE
   ========================================================== */
.home .main, .home .main-raised { margin-top: 0 !important; }
.trex-home { background: var(--trex-paper); overflow: hidden; }
.trex-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.trex-eyebrow {
	font-family: var(--trex-body) !important;
	font-size: 13px !important; font-weight: 700;
	letter-spacing: .22em; text-transform: uppercase;
	color: var(--trex-amber) !important;
	margin: 0 0 18px;
	display: inline-flex; align-items: center; gap: 12px;
}
.trex-eyebrow::before { content: ""; width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.trex-eyebrow--dark { color: var(--trex-orange-deep) !important; }

/* Hero */
.trex-hero {
	position: relative; min-height: min(92vh, 860px);
	display: flex; align-items: flex-end;
	padding: 160px 0 120px;
	color: #fff; isolation: isolate;
}
.trex-hero__media { position: absolute; inset: 0; z-index: -2; }
.trex-hero__img {
	width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%;
	animation: trex-drift 18s ease-out both;
}
.trex-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(20,21,24,.94) 0%, rgba(20,21,24,.78) 38%, rgba(20,21,24,.15) 75%),
		linear-gradient(0deg, rgba(20,21,24,.85) 0%, rgba(20,21,24,0) 45%);
}
.trex-hero__inner { max-width: 1180px; }
.trex-hero__title {
	font-size: clamp(56px, 10vw, 132px) !important;
	line-height: .86 !important;
	text-transform: uppercase;
	color: #fff !important;
	margin: 0 0 26px;
	max-width: 11ch;
}
.trex-hero__title span {
	color: var(--trex-orange);
	-webkit-text-stroke: 0;
	position: relative; white-space: nowrap;
}
.trex-hero__lede {
	color: #dcd9d3 !important; font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6; max-width: 54ch; margin: 0 0 36px;
}
.trex-lane {
	position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
	background:
		repeating-linear-gradient(90deg, var(--trex-amber) 0 56px, transparent 56px 96px) center / auto 4px no-repeat,
		var(--trex-ink);
	background-size: 200% 4px, auto;
	animation: trex-lane 6s linear infinite;
}

/* Buttons on custom page */
.trex-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trex-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 30px; border-radius: 999px;
	font-family: var(--trex-body); font-weight: 700; font-size: 15px;
	letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important;
	transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.trex-btn--solid { background: var(--trex-orange); color: #fff !important; box-shadow: 0 10px 26px rgba(242,106,27,.4); }
.trex-btn--solid:hover { background: var(--trex-orange-deep); transform: translateY(-2px); }
.trex-btn--ghost { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.trex-btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* Stats */
.trex-stats { background: var(--trex-orange); color: #fff; position: relative; }
.trex-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trex-stat {
	padding: 34px 22px; display: flex; flex-direction: column; gap: 6px;
	border-left: 1px solid rgba(255,255,255,.28);
}
.trex-stat:first-child { border-left: 0; padding-left: 0; }
.trex-stat strong {
	font-family: var(--trex-display); font-weight: 800;
	font-size: clamp(34px, 4vw, 52px); line-height: 1; color: #fff;
}
.trex-stat strong small { font-size: .45em; font-weight: 700; margin-left: 2px; }
.trex-stat span { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.88); }

/* About split */
.trex-about { padding: clamp(80px, 11vw, 140px) 0; }
.trex-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.trex-split__media { margin: 0; position: relative; }
.trex-split__media::before {
	content: ""; position: absolute; inset: 22px -22px -22px 22px;
	border: 3px solid var(--trex-orange); border-radius: var(--trex-radius); z-index: 0;
}
.trex-photo {
	position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--trex-radius); box-shadow: 0 30px 60px rgba(20,21,24,.22);
}
.trex-split__media figcaption {
	position: relative; z-index: 1; margin-top: 36px;
	font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--trex-muted);
}
.trex-h2 {
	font-size: clamp(40px, 5.4vw, 68px) !important; line-height: .95 !important;
	text-transform: uppercase; margin: 0 0 24px;
}
.trex-h2--light { color: #fff !important; }
.trex-split__copy p { font-size: 18px; line-height: 1.7; color: var(--trex-text); margin: 0 0 18px; }
.trex-link {
	display: inline-flex; gap: 10px; margin-top: 10px;
	font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
	color: var(--trex-ink) !important; text-decoration: none !important;
	border-bottom: 3px solid var(--trex-orange); padding-bottom: 4px;
}
.trex-link span { transition: transform .2s ease; }
.trex-link:hover span { transform: translateX(5px); }

/* Careers */
.trex-careers {
	position: relative; isolation: isolate; color: #fff;
	padding: clamp(90px, 12vw, 150px) 0;
	background: var(--trex-ink);
}
.trex-careers__bg { position: absolute; inset: 0; z-index: -1; opacity: .22; }
.trex-careers__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.trex-careers::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, var(--trex-ink) 0%, rgba(20,21,24,.6) 50%, var(--trex-ink) 100%);
}
.trex-cards { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 20px; margin: 46px 0 22px; }
.trex-card {
	background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.12); border-radius: var(--trex-radius);
	padding: 28px; display: flex; flex-direction: column; gap: 6px;
	transition: transform .25s ease, border-color .25s ease;
}
.trex-card:hover { transform: translateY(-4px); border-color: rgba(242,106,27,.7); }
.trex-card--hot { background: var(--trex-orange); border-color: var(--trex-orange); }
.trex-card__label { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.trex-card__pay { font-family: var(--trex-display); font-weight: 800; font-size: clamp(48px, 5vw, 64px); line-height: 1; color: #fff; }
.trex-card__pay small { font-size: .4em; }
.trex-card__note { color: rgba(255,255,255,.75); font-size: 15px; }
.trex-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.trex-card li { color: #fff !important; font-size: 17px; font-weight: 600; padding-left: 26px; position: relative; }
.trex-card li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px;
	border-left: 3px solid var(--trex-amber); border-bottom: 3px solid var(--trex-amber); transform: rotate(-45deg);
}
.trex-fine { color: #bdbab4 !important; margin: 0 0 30px; font-size: 15px; }

/* Contact */
.trex-contact { padding: clamp(70px, 9vw, 110px) 0; background: var(--trex-paper); }
.trex-contact__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.trex-contact .trex-h2 { margin: 0; max-width: 14ch; }
.trex-contact__mail {
	font-family: var(--trex-display); font-weight: 800; text-transform: lowercase;
	font-size: clamp(28px, 4vw, 48px); color: var(--trex-ink) !important; text-decoration: none !important;
	border-bottom: 4px solid var(--trex-orange); padding-bottom: 6px;
	transition: color .2s ease;
}
.trex-contact__mail:hover { color: var(--trex-orange-deep) !important; }

/* Contact page + WPForms */
.trex-contact-intro { font-size: 20px !important; line-height: 1.6; max-width: 60ch; }
.trex-form-card {
	background: #fff; border-radius: var(--trex-radius);
	border-top: 6px solid var(--trex-orange);
	box-shadow: 0 24px 60px rgba(20,21,24,.12);
	padding: clamp(24px, 4vw, 44px); margin: 30px 0 50px;
}
.wpforms-container .wpforms-field { padding: 10px 0 !important; }
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel {
	font-family: var(--trex-body) !important; color: var(--trex-ink) !important;
}
.wpforms-container .wpforms-field-label {
	font-weight: 700 !important; font-size: 13px !important;
	letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px !important;
}
.wpforms-container .wpforms-required-label { color: var(--trex-orange) !important; }
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container select,
.wpforms-container textarea {
	width: 100% !important; max-width: 100% !important;
	background: var(--trex-paper) !important; color: var(--trex-text) !important;
	border: 2px solid transparent !important; border-radius: 10px !important;
	padding: 14px 16px !important; font-size: 17px !important; height: auto !important;
	font-family: var(--trex-body) !important; box-shadow: none !important;
	background-image: none !important;
	transition: border-color .2s ease, background .2s ease;
}
.wpforms-container textarea { min-height: 160px !important; }
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
	border-color: var(--trex-orange) !important; background: #fff !important; outline: none !important;
}
.wpforms-container .wpforms-submit-container { padding-top: 18px !important; }
.wpforms-container label.wpforms-error, .wpforms-container em.wpforms-error { color: #c0392b !important; }
.wpforms-confirmation-container-full {
	background: #fff4ec !important; border: 2px solid var(--trex-orange) !important;
	color: var(--trex-ink) !important; border-radius: 10px !important; font-size: 18px;
}

/* Motion */
.trex-rise { opacity: 0; transform: translateY(24px); animation: trex-rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes trex-rise { to { opacity: 1; transform: none; } }
@keyframes trex-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes trex-lane { from { background-position: 0 center, 0 0; } to { background-position: -192px center, 0 0; } }
@media (prefers-reduced-motion: reduce) {
	.trex-rise, .trex-hero__img, .trex-lane { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
	.trex-split { grid-template-columns: 1fr; }
	.trex-split__media::before { inset: 14px -10px -14px 10px; }
	.trex-cards { grid-template-columns: 1fr; }
	.trex-stats__grid { grid-template-columns: 1fr 1fr; }
	.trex-stat { padding: 24px 16px; }
	.trex-stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.trex-stat:nth-child(odd) { padding-left: 0; }
	.trex-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.28); }
}
@media (max-width: 600px) {
	.trex-wrap { width: calc(100% - 32px); }
	.trex-hero { padding: 130px 0 90px; min-height: 88vh; }
	.trex-hero__shade { background: linear-gradient(0deg, rgba(20,21,24,.95) 0%, rgba(20,21,24,.7) 60%, rgba(20,21,24,.35) 100%); }
	.trex-btn { width: 100%; }
}
