/* ==========================================================================
   RVC Logistics — Design System
   Premium corporate logistics UI. Deep navy + gold accent.
   ========================================================================== */

:root {
    --navy: #0B1220;
    --navy-2: #101B2D;
    --navy-3: #16233a;
    --gold: #F2A900;
    --gold-bright: #FFC44D;
    --white: #FFFFFF;
    --off-white: #F6F8FA;
    --text: #18202B;
    --muted: #697386;
    --border: #E4E8EE;
    --success: #20A66A;
    --warning: #E59B25;
    --danger: #D94B4B;
    --info: #2878D8;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(16, 27, 45, 0.06);
    --shadow: 0 6px 24px rgba(16, 27, 45, 0.08);
    --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.18);

    --container: 1200px;
    --header-h: 76px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Spacing scale: 4 8 12 16 20 24 32 40 48 64 80 */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: #cdd6e4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--offwhite { background: var(--off-white); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--navy .section-head p { color: #9fb0c9; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(242,169,0,.5); outline-offset: 2px; }

.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-bright); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

/* Forms */
.field { margin-bottom: 20px; }
.label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.input, .select, .textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242,169,0,.18);
}
.textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.83rem; margin-top: 6px; }
.field-hint { color: var(--muted); font-size: 0.83rem; margin-top: 6px; }
.input.is-invalid { border-color: var(--danger); }

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card__body { padding: 24px; }

/* Badges & status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--off-white);
    color: var(--muted);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert--success { background: #e7f6ee; color: #14603c; border-color: #bde5cd; }
.alert--error { background: #fbe9e9; color: #8f2b2b; border-color: #f0c6c6; }
.alert--info { background: #e8f1fc; color: #1b4c86; border-color: #c5ddf7; }

/* Brand (shared by public + admin). Renders uploaded logo image or monogram mark. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { text-decoration: none; color: #fff; }
.brand__mark { border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); display: grid; place-items: center; color: var(--navy); font-weight: 900; flex: 0 0 auto; }
.brand__logo { display: inline-flex; align-items: center; }
.brand__logo img { max-height: 100%; width: auto; object-fit: contain; }
