/* ============================================================
   rentiqa.com — site shell
   ============================================================
   What the app gets from Bootstrap + rq-tokens/rq-theme/rq-shell, the
   site gets from this one file: the token primitives editorial.css
   reads, a grid and button subset that the ported markup uses, the
   fixed topbar with the wordmark, the mobile drawer and the footer.
   Hand-written, no build step.
   ----------------------------------------------------------------- */

/* ---------- tokens (values copied from the app's rq-tokens.css /
   rq-theme.css dark block, 2026-09-16) ---------- */
:root {
    --rq-navy-950: #070b18;
    --rq-navy-900: #0b1024;
    --rq-navy-850: #0d1430;
    --rq-navy-800: #141c3a;
    --rq-navy-700: #1d2950;
    --rq-navy-600: #2b3a68;
    --rq-paper-100: #ffffff;
    --rq-paper-300: #f6f3ec;
    --rq-blue-500: #3b6cf5;
    --rq-blue-400: #7aa0ff;
    --rq-blue-300: #a8c0ff;
    --rq-blue-200: #d0dcff;
    --rq-blue-a14: rgba(122,160,255,.14);
    --rq-gold-400: #e9c98a;
    --rq-gold-300: #f2ddb4;
    --rq-mint-400: #5dd39e;
    --rq-mint-a18: rgba(93,211,158,.18);
    --rq-on-dark-12: rgba(255,255,255,.12);
    --rq-on-dark-52: rgba(255,255,255,.52);
    --rq-on-dark-72: rgba(255,255,255,.72);
    --rq-on-dark-92: rgba(255,255,255,.92);
    --rq-on-light-12: rgba(11,16,36,.12);
    --rq-on-light-66: rgba(11,16,36,.66);

    --rq-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --rq-font-ui: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rq-radius-md: 10px;

    /* semantic roles, dark theme */
    --rq-page: var(--rq-navy-950);
    --rq-text: var(--rq-on-dark-92);
    --rq-sub: var(--rq-on-dark-72);
    --rq-faint: var(--rq-on-dark-52);
    --rq-line: var(--rq-on-dark-12);
    --rq-accent: var(--rq-blue-400);
    --rq-accent-hover: var(--rq-blue-300);
    --rq-accent-soft: var(--rq-blue-a14);
    --rq-money: var(--rq-gold-400);
    --rq-money-strong: var(--rq-gold-300);
    --rq-primary: var(--rq-blue-500);
    --rq-primary-hover: #2f59d6;

    --topbar-h: 70px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* overflow-x: the closed drawer sits translated off the right edge; without
   this clip it widens the scrollable area on phones and the whole page
   scrolls sideways. */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--rq-font-ui);
    font-size: 14px;
    line-height: 1.5;
    color: var(--rq-text);
    background: var(--rq-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: var(--topbar-h);
    min-height: 100vh;
    display: flex; flex-direction: column;
}
a { color: var(--rq-accent); text-decoration: none; }
a:hover { color: var(--rq-accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }
.body-wrapper { flex: 1; }

/* ---------- grid subset (Bootstrap 5 semantics) ---------- */
.container, .container-fluid { width: 100%; margin: 0 auto; padding: 0 24px; }
.container { max-width: 100%; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
.row {
    --gx: 1.5rem; --gy: 0;
    display: flex; flex-wrap: wrap;
    margin: calc(-1 * var(--gy)) calc(-.5 * var(--gx)) 0;
}
.row > * { width: 100%; padding: 0 calc(.5 * var(--gx)); margin-top: var(--gy); }
.g-3 { --gx: 1rem; --gy: 1rem; }
.g-4 { --gx: 1.5rem; --gy: 1.5rem; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
    .col-md-4 { width: 33.3333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.6667%; }
}
@media (min-width: 992px) {
    .col-lg-4 { width: 33.3333%; }
    .col-lg-8 { width: 66.6667%; }
}
.mb-5 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- buttons (Bootstrap shape, rq colours) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: .5rem 1rem;
    font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5;
    border-radius: var(--rq-radius-md);
    border: 1px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--rq-primary); color: #fff; }
.btn-primary:hover { background: var(--rq-primary-hover); color: #fff; }
.btn-outline-primary { color: var(--rq-accent); border-color: var(--rq-accent); background: transparent; }
.btn-outline-primary:hover { background: var(--rq-accent-soft); color: var(--rq-accent-hover); }
.btn-light { background: var(--rq-paper-100); color: var(--rq-navy-900); }
.btn-light:hover { background: var(--rq-paper-300); color: var(--rq-navy-900); }
.btn-link { background: none; border: 0; color: var(--rq-text); padding: .5rem; }

/* ---------- wordmark (the app's .rq-brand) ---------- */
.rq-brand {
    display: inline-block;
    font-family: var(--rq-font-display);
    font-variation-settings: "opsz" 144;
    font-weight: 500;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--rq-text);
    white-space: nowrap;
    text-decoration: none;
}
.rq-brand-mark { color: var(--rq-money); font-weight: 600; }
a:hover > .rq-brand, a:focus-visible > .rq-brand { color: var(--rq-text); }
a:hover > .rq-brand .rq-brand-mark { color: var(--rq-money-strong); }

/* ---------- topbar ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9;
    background: var(--rq-page);
    padding: 0 25px;
}
.topbar .navbar {
    min-height: var(--topbar-h);
    display: flex; align-items: center; gap: 4px;
}
.topbar .nav-brand { display: flex; align-items: center; padding: 0 15px 0 0; }
.topbar .nav-links { display: none; align-items: center; gap: 0; }
.topbar .nav-links a {
    display: flex; align-items: center; height: 36px; padding: 0 15px;
    font-size: 14px; color: var(--rq-sub); border-radius: 8px;
}
.topbar .nav-links a:hover { color: var(--rq-accent); }
.topbar .nav-links a[aria-current="page"] { color: var(--rq-accent); font-weight: 600; }
.topbar .nav-auth { margin-left: auto; display: none; align-items: center; gap: 8px; }
.topbar .nav-menu-btn { margin-left: auto; display: inline-flex; font-size: 22px; color: var(--rq-text); }
@media (min-width: 992px) {
    .topbar .nav-links, .topbar .nav-auth { display: flex; }
    .topbar .nav-menu-btn { display: none; }
}

/* ---------- mobile drawer (Bootstrap offcanvas-end, hand-rolled) ---------- */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.5);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
    width: min(320px, 85vw);
    background: var(--rq-navy-900);
    border-left: 1px solid var(--rq-line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
body.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--rq-line);
}
.drawer-header h5 { font-size: 18px; font-weight: 600; }
.drawer-close { background: none; border: 0; color: var(--rq-sub); font-size: 22px; cursor: pointer; padding: 4px; }
.drawer-body { padding: 20px; display: flex; flex-direction: column; }
.drawer-body .d-grid { display: grid; gap: 8px; }
.drawer-body hr { border: 0; border-top: 1px solid var(--rq-line); margin: 16px 0; width: 100%; }
.drawer-heading { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rq-faint); margin-bottom: 8px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: 8px; color: var(--rq-text); font-size: 15px;
}
.drawer-nav a i { font-size: 20px; color: var(--rq-sub); }
.drawer-nav a:hover { background: rgba(255,255,255,.05); }
.drawer-nav a[aria-current="page"] { background: var(--rq-accent-soft); color: var(--rq-accent); font-weight: 600; }
.drawer-nav a[aria-current="page"] i { color: var(--rq-accent); }

/* ---------- hero extras (site-only) ---------- */
.editorial-page .hero-note {
    margin: 22px 0 0; font-size: 12.5px; color: var(--rq-faint-d);
}
.editorial-page .hero-note strong { color: var(--rq-sub-d); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rq-line); }
.site-footer .inner {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 28px 0;
    color: var(--rq-sub); font-size: 14px;
}
.site-footer .credit { display: flex; align-items: center; gap: 12px; }
.site-footer .credit img { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer nav a { color: var(--rq-sub); }
.site-footer nav a:hover { color: var(--rq-text); }
.site-footer .sep { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}
