/*
 * public.css - styling for the public-facing Birmingham Courier Services website.
 * Theme: professional black and red. Used by templates under templates/public/.
 */

:root {
    --bcs-black: #111111;
    --bcs-dark: #1d1d1d;
    --bcs-red: #e10600;        /* primary red accent */
    --bcs-red-dark: #b00500;   /* darker red for hover states */
    --bcs-grey: #f4f4f4;
    --bcs-text: #222222;
}

body.public {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--bcs-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main.public-main {
    flex: 1 0 auto;
}

/* ---------- Header / navigation ---------- */
.public-navbar {
    background-color: var(--bcs-black);
    border-bottom: 3px solid var(--bcs-red);
}

.public-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.public-navbar .navbar-brand .brand-mark {
    background-color: var(--bcs-red);
    color: #fff;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    font-weight: 800;
}

.public-navbar .nav-link {
    color: #e9e9e9 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.15s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--bcs-red) !important;
}

.public-navbar .btn-login {
    background-color: var(--bcs-red);
    border-color: var(--bcs-red);
    color: #fff;
    font-weight: 600;
}

.public-navbar .btn-login:hover {
    background-color: var(--bcs-red-dark);
    border-color: var(--bcs-red-dark);
    color: #fff;
}

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item {
    height: 70vh;
    min-height: 380px;
    background-color: var(--bcs-black);
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55; /* darken so overlaid text is readable */
}

.hero-carousel .carousel-caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    left: 8%;
    right: 8%;
}

.hero-carousel .carousel-caption h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-carousel .carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 640px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Fallback hero used when no banners have been uploaded yet */
.hero-fallback {
    height: 60vh;
    min-height: 340px;
    background: linear-gradient(135deg, #000 0%, #2a0000 100%);
    color: #fff;
    display: flex;
    align-items: center;
}

/* ---------- Buttons ---------- */
.btn-bcs {
    background-color: var(--bcs-red);
    border-color: var(--bcs-red);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-bcs:hover {
    background-color: var(--bcs-red-dark);
    border-color: var(--bcs-red-dark);
    color: #fff;
}

.btn-outline-bcs {
    border-color: #fff;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-outline-bcs:hover {
    background-color: #fff;
    color: var(--bcs-black);
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section-grey {
    background-color: var(--bcs-grey);
}

.section-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title .accent {
    color: var(--bcs-red);
}

.section-divider {
    width: 70px;
    height: 4px;
    background-color: var(--bcs-red);
    border: none;
    opacity: 1;
    margin: 0.75rem 0 1.5rem;
}

/* ---------- Feature / service cards ---------- */
.feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.6rem;
    padding: 2rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bcs-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.public-footer {
    background-color: var(--bcs-black);
    border-top: 3px solid var(--bcs-red);
    color: #cfcfcf;
    padding: 2.5rem 0 1.5rem;
    flex-shrink: 0;
}

.public-footer a {
    color: #cfcfcf;
    text-decoration: none;
}

.public-footer a:hover {
    color: var(--bcs-red);
}

.public-footer h5 {
    color: #fff;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #999;
}

/* ---------- Tracking status badges ---------- */
.track-status {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}
