/*
Theme Name: Red Line Courier Framework
Theme URI: https://www.redlinecourier.com/
Author: Red Line Courier Service
Description: A fast, reusable WordPress theme framework for Red Line Courier service, city, medical, freight, route, legal, AOG and landing pages. Designed to coexist with the Red Line React Homepage plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: redline-courier
*/

:root {
  --rl-red: #e31b23;
  --rl-red-bright: #ff2b2b;
  --rl-black: #050505;
  --rl-panel: #0c0c0e;
  --rl-panel-2: #131316;
  --rl-border: rgba(255,255,255,.12);
  --rl-text: #f6f6f7;
  --rl-muted: #a8a8b0;
  --rl-max: 1240px;
  --rl-radius: 18px;
  --rl-shadow: 0 18px 60px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rl-text);
  background:
    radial-gradient(circle at 80% 10%, rgba(227,27,35,.12), transparent 34%),
    linear-gradient(180deg, #050505 0%, #09090b 55%, #050505 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rl-red-bright); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.rl-container { width: min(calc(100% - 40px), var(--rl-max)); margin-inline: auto; }
.rl-section { padding: 76px 0; }
.rl-section--tight { padding: 48px 0; }
.rl-kicker { color: var(--rl-red-bright); font-weight: 800; text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; }
.rl-title, h1, h2, h3 { font-family: Syne, Inter, sans-serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.45rem, 6vw, 5.4rem); margin: 0 0 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
p { color: #d1d1d6; }

.rl-topbar { background: #000; border-bottom: 1px solid var(--rl-border); font-size: .86rem; }
.rl-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #b7b7bd; }
.rl-topbar strong { color: #fff; }
.rl-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(5,5,5,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--rl-border); }
.admin-bar .rl-site-header { top: 32px; }
.rl-header__inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.rl-brand { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.rl-brand img { width: 185px; max-height: 58px; object-fit: contain; }
.rl-brand__text { font-family: Syne, sans-serif; font-weight: 800; font-style: italic; color: #fff; }
.rl-nav { margin-left: auto; }
.rl-nav ul { list-style: none; display: flex; gap: 26px; align-items: center; margin: 0; padding: 0; }
.rl-nav a { font-weight: 700; font-size: .92rem; color: #e8e8eb; }
.rl-nav .current-menu-item > a, .rl-nav a:hover { color: var(--rl-red-bright); }
.rl-header-actions { display: flex; align-items: center; gap: 12px; }
.rl-btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; transition: .25s ease; cursor: pointer; }
.rl-btn--primary { color: #fff; background: linear-gradient(135deg, var(--rl-red), #ff3b31); box-shadow: 0 0 28px rgba(227,27,35,.28); }
.rl-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 42px rgba(227,27,35,.42); }
.rl-btn--ghost { border-color: rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.03); }
.rl-btn--ghost:hover { border-color: var(--rl-red); color: #fff; }
.rl-menu-toggle { display: none; margin-left: auto; background: none; color: #fff; border: 1px solid var(--rl-border); border-radius: 10px; padding: 10px 12px; }

.rl-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rl-border); }
.rl-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.66) 54%, rgba(0,0,0,.45)); z-index: 1; }
.rl-hero::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; z-index: 1; }
.rl-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-hero__inner { position: relative; z-index: 2; min-height: 580px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: 58px; padding: 84px 0; }
.rl-hero__copy { max-width: 780px; }
.rl-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 760px; color: #d6d6dc; }
.rl-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rl-hero-card { background: rgba(13,13,15,.76); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 30px; box-shadow: var(--rl-shadow); backdrop-filter: blur(16px); }
.rl-hero-card__stat { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rl-border); padding: 15px 0; }
.rl-hero-card__stat:last-child { border-bottom: 0; }
.rl-hero-card__stat strong { color: var(--rl-red-bright); font-size: 1.2rem; }

.rl-breadcrumbs { padding: 18px 0; border-bottom: 1px solid var(--rl-border); color: var(--rl-muted); font-size: .85rem; }
.rl-breadcrumbs a { color: #fff; }
.rl-content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.rl-content { min-width: 0; }
.rl-content > *:first-child { margin-top: 0; }
.rl-content h2 { margin-top: 52px; }
.rl-content h3 { margin-top: 36px; }
.rl-content ul, .rl-content ol { color: #d4d4d9; padding-left: 1.35rem; }
.rl-content blockquote { margin: 34px 0; padding: 24px 28px; border-left: 4px solid var(--rl-red); background: rgba(255,255,255,.04); border-radius: 0 14px 14px 0; }
.rl-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rl-content th, .rl-content td { border: 1px solid var(--rl-border); padding: 13px; }

.rl-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rl-card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid var(--rl-border); border-radius: var(--rl-radius); padding: 28px; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.rl-card:hover { border-color: rgba(227,27,35,.6); transform: translateY(-3px); transition: .22s ease; }
.rl-card p { color: var(--rl-muted); }
.rl-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(227,27,35,.13); color: var(--rl-red-bright); font-weight: 900; }

.rl-sidebar { position: sticky; top: 122px; }
.rl-sidebar__box { background: var(--rl-panel); border: 1px solid var(--rl-border); border-radius: var(--rl-radius); padding: 26px; margin-bottom: 22px; }
.rl-sidebar__box h3 { margin-top: 0; }
.rl-sidebar ul { list-style: none; margin: 0; padding: 0; }
.rl-sidebar li { border-bottom: 1px solid var(--rl-border); }
.rl-sidebar li:last-child { border-bottom: 0; }
.rl-sidebar li a { display: block; padding: 11px 0; }

.rl-cta { padding: 50px; border: 1px solid rgba(227,27,35,.38); border-radius: 26px; background: radial-gradient(circle at 90% 20%, rgba(227,27,35,.26), transparent 35%), linear-gradient(135deg, #111114, #070708); box-shadow: var(--rl-shadow); }
.rl-cta__inner { display: flex; justify-content: space-between; gap: 36px; align-items: center; }
.rl-cta h2 { margin: 0 0 10px; }
.rl-cta p { margin-bottom: 0; }

.rl-site-footer { border-top: 1px solid var(--rl-border); background: #030303; }
.rl-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; padding: 66px 0 46px; }
.rl-footer-title { color: #fff; font-weight: 800; font-family: Syne, sans-serif; }
.rl-footer-menu, .rl-footer-menu ul { list-style: none; padding: 0; margin: 0; }
.rl-footer-menu li { margin: 9px 0; color: #a9a9b0; }
.rl-footer-bottom { border-top: 1px solid var(--rl-border); padding: 22px 0; color: #85858e; font-size: .84rem; }
.rl-footer-bottom__inner { display: flex; justify-content: space-between; gap: 20px; }

.rl-page-header { padding: 82px 0 60px; border-bottom: 1px solid var(--rl-border); background: radial-gradient(circle at 75% 20%, rgba(227,27,35,.16), transparent 34%); }
.rl-page-header h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
.rl-page-header p { max-width: 780px; font-size: 1.12rem; }
.rl-featured { border-radius: 22px; margin: 0 0 38px; width: 100%; max-height: 520px; object-fit: cover; }

.alignwide { width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.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; }

@media (max-width: 1040px) {
  .rl-nav { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 1px); background: #080808; border: 1px solid var(--rl-border); border-radius: 16px; padding: 18px; }
  .rl-nav.is-open { display: block; }
  .rl-nav ul { display: block; }
  .rl-nav li a { display: block; padding: 12px 4px; }
  .rl-menu-toggle { display: block; }
  .rl-header-actions { display: none; }
  .rl-hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .rl-hero-card { max-width: 620px; }
  .rl-content-wrap { grid-template-columns: 1fr; }
  .rl-sidebar { position: static; }
  .rl-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rl-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .admin-bar .rl-site-header { top: 46px; }
  .rl-container { width: min(calc(100% - 28px), var(--rl-max)); }
  .rl-topbar__inner { justify-content: center; text-align: center; }
  .rl-topbar__inner span:last-child { display: none; }
  .rl-brand { min-width: 0; }
  .rl-brand img { width: 150px; }
  .rl-hero__inner { padding: 64px 0; gap: 30px; }
  .rl-card-grid, .rl-footer-grid { grid-template-columns: 1fr; }
  .rl-section { padding: 56px 0; }
  .rl-cta { padding: 30px 24px; }
  .rl-cta__inner { display: block; }
  .rl-cta .rl-actions { margin-top: 22px; }
  .rl-footer-bottom__inner { display: block; text-align: center; }
}
