/* Mobile-first tweaks for gloved-thumb, in-the-truck usage:
   big tap targets, big type, generous spacing. */

:root {
    --tap: 3.25rem; /* minimum comfortable tap height */
}

body {
    font-size: 1.05rem;
    -webkit-text-size-adjust: 100%;
}

/* Keep content clear of the fixed bottom nav */
.pb-nav {
    padding-bottom: 5.5rem;
}

/* Brand / logo in the top bar */
.app-logo {
    height: 34px;
    width: auto;
    display: block;
}
.brand-sub {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 2px solid #dee2e6;
    padding-left: 0.5rem;
    line-height: 1;
}

/* Large, unmissable action buttons */
.btn-touch {
    min-height: var(--tap);
    font-size: 1.15rem;
    font-weight: 600;
}
.btn-lg,
.btn-touch {
    border-radius: 0.75rem;
}

/* Day-of-week section headers — sticky under the top navbar so the
   current day stays visible while scrolling a long week. */
.day-header {
    position: sticky;
    top: 3.25rem;
    z-index: 5;
    background: var(--bs-body-bg);
    padding: 0.4rem 0.6rem;
    border-left: 4px solid var(--bs-primary);
    border-radius: 0.25rem;
}
.day-header.is-today {
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    border-left-width: 6px;
}

/* Job cards */
.job-card {
    border-radius: 1rem;
}
.job-card .job-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Status pills */
.status-pill {
    font-size: 0.8rem;
    padding: 0.35em 0.7em;
    border-radius: 999px;
}

/* Bottom navigation */
.bottom-nav {
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
    color: #6c757d;
    text-decoration: none;
}
.bottom-nav-item.active {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Big, legible key/value rows on the job detail page */
.detail-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}
.detail-row .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}
.detail-row .value {
    font-size: 1.15rem;
    font-weight: 500;
    word-break: break-word;
}

/* ══════════════ Express Thermos branding ══════════════ */
:root {
    --bs-primary: #fc7942;
    --bs-primary-rgb: 252, 121, 66;
    --brand-ink: #131313;
}

/* Type: headings in Arboria (Adobe Fonts), body in Inter — as on the site */
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--brand-ink);
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .job-title {
    font-family: "arboria", "Inter", system-ui, sans-serif;
    font-weight: 700;
}

/* Brand orange on Bootstrap's "primary" surfaces */
.bg-primary { background-color: #fc7942 !important; }
.text-primary { color: #d9591f !important; }   /* darkened so it stays legible on white */
.bottom-nav-item.active { color: #d9591f; }
.day-header.is-today { background: #ffe6d8; }

/* Primary button = orange fill, ink border/text (best contrast on orange) */
.btn-primary {
    --bs-btn-bg: #fc7942;           --bs-btn-border-color: #131313;
    --bs-btn-hover-bg: #ec6a30;     --bs-btn-hover-border-color: #131313;
    --bs-btn-active-bg: #e0631f;    --bs-btn-active-border-color: #131313;
    --bs-btn-disabled-bg: #fc7942;  --bs-btn-disabled-border-color: #131313;
    --bs-btn-color: #131313;        --bs-btn-hover-color: #131313;  --bs-btn-active-color: #131313;
}

/* Orange top bar */
.navbar-brandbar { background-color: #fc7942; }
.navbar-brandbar .brand-sub {
    color: rgba(255, 255, 255, 0.92);
    border-left-color: rgba(255, 255, 255, 0.45);
}

/* Squared, blocky buttons with a hard offset shadow and press-down feel */
.btn {
    --bs-btn-border-width: 2px;
    border-radius: 0;
    font-weight: 600;
    box-shadow: 3px 3px 0 0 var(--brand-ink);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
    box-shadow: 4px 4px 0 0 var(--brand-ink);
    transform: translate(-1px, -1px);
}
.btn:active {                       /* press INTO the shadow */
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 0 var(--brand-ink);
}
.btn:disabled, .btn.disabled {
    box-shadow: 2px 2px 0 0 rgba(19, 19, 19, 0.25) !important;
    transform: none !important;
}
/* Grouped buttons (filters) sit edge-to-edge — drop the offset shadow so
   they don't cast onto each other; keep a subtle press. */
.btn-group .btn { box-shadow: none; }
.btn-group .btn:hover { transform: none; box-shadow: none; }
.btn-group .btn:active { transform: translateY(1px); }

/* Link-style buttons ("Back", "All weeks", etc.) stay plain text — no box. */
.btn-link {
    --bs-btn-border-width: 0;
    box-shadow: none !important;
    text-transform: none;
}
.btn-link:hover, .btn-link:active {
    box-shadow: none !important;
    transform: none;
}

/* The PWA install prompt (banner + pill) is created and fully styled in
   assets/js/install.js, so it never depends on this stylesheet loading. */
