/* Baverstock Defence — Heritage Institutional Style */
/* Cream, gunmetal and crimson — no blue, to sit alongside the navy/red logo */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    font-size: 16px;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #0b0c0c;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============ TOP BANNER ============ */
.top-banner {
    background: #0b0c0c;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid #8b0000;
}

.top-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-banner-text {
    letter-spacing: 0.02em;
}

.top-banner a {
    color: #ffffff;
    text-decoration: underline;
}

/* ============ HEADER ============ */
header {
    background: #f8f5f0;
    color: #1a1a1a;
    padding: 22px 0 20px 0;
    border-bottom: 4px solid #d40000;
}

header .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

header .brand {
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
    text-decoration: none;
}

header .brand a {
    color: #1a1a1a;
    text-decoration: none;
}

header .brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

header .brand-tagline {
    font-size: 0.85rem;
    color: #4a4a4a;
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

header .brand-established {
    font-size: 0.75rem;
    color: #6b6b6b;
    margin-top: 3px;
    font-style: italic;
}

header .service-info {
    text-align: right;
    font-size: 0.85rem;
    color: #4a4a4a;
    line-height: 1.6;
}

header .service-info strong {
    color: #1a1a1a;
    font-size: 1rem;
    display: block;
}

/* ============ NAVIGATION ============ */
nav.main-nav {
    background: #2a3439;
    border-bottom: 1px solid #1c2327;
}

nav.main-nav .container {
    padding: 0 20px;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    display: block;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background 0.1s;
}

nav.main-nav a:hover {
    background: #8b0000;
    color: #ffffff;
    text-decoration: underline;
}

nav.main-nav a.current {
    background: #8b0000;
    font-weight: 700;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background: #f3f2f1;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #505a5f;
    border-bottom: 1px solid #b1b4b6;
}

.breadcrumb a {
    color: #8b0000;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #b1b4b6;
    margin: 0 6px;
}

/* ============ MAIN CONTENT ============ */
main {
    padding: 30px 0 50px 0;
    min-height: 400px;
}

/* Headings */
h1 {
    font-family: Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b0c0c;
    line-height: 1.15;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #b1b4b6;
}

h1 + .subtitle {
    color: #505a5f;
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

h2 {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b0c0c;
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.2;
}

h3 {
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b0c0c;
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    max-width: 780px;
}

strong {
    font-weight: 700;
}

/* Links */
a {
    color: #8b0000;
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

a:hover {
    color: #5c0000;
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

a:visited {
    color: #6b3a3a;
}

/* Lists */
ul, ol {
    margin: 0 0 20px 20px;
    max-width: 780px;
}

ul li, ol li {
    margin-bottom: 6px;
}

/* ============ HERO IMAGE ============ */
.hero {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #b1b4b6;
    background: #f3f2f1;
    position: relative;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-placeholder {
    padding: 100px 20px;
    text-align: center;
    color: #505a5f;
    font-style: italic;
    background: repeating-linear-gradient(
        45deg,
        #f3f2f1,
        #f3f2f1 10px,
        #e8e6e2 10px,
        #e8e6e2 20px
    );
    font-size: 1rem;
}

.hero-caption {
    background: #2a3439;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-style: italic;
}

/* ============ CALLOUT BOXES ============ */
.notice {
    background: #f3f2f1;
    border-left: 6px solid #8b0000;
    padding: 15px 20px;
    margin: 25px 0;
    max-width: 780px;
}

.notice.warning {
    border-left-color: #d40000;
}

.notice h3 {
    margin-top: 0;
    color: #0b0c0c;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.credentials {
    background: #f3f2f1;
    border: 1px solid #b1b4b6;
    padding: 18px 22px;
    margin: 25px 0;
    max-width: 780px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.credentials strong {
    color: #2a3439;
    display: inline-block;
    min-width: 220px;
}

/* ============ TABLES ============ */
table {
    width: 100%;
    max-width: 780px;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    border: 1px solid #b1b4b6;
}

table th {
    text-align: left;
    padding: 10px 12px;
    background: #2a3439;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255,255,255,0.2);
}

table th:last-child {
    border-right: none;
}

table td {
    padding: 10px 12px;
    border-bottom: 1px solid #b1b4b6;
    border-right: 1px solid #b1b4b6;
    vertical-align: top;
    background: #ffffff;
}

table td:last-child {
    border-right: none;
}

table tr:nth-child(even) td {
    background: #f8f8f8;
}

table tr:last-child td {
    border-bottom: none;
}

/* ============ TWO COLUMN LAYOUT ============ */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 100%;
    margin-top: 20px;
}

.sidebar {
    background: #f3f2f1;
    padding: 20px;
    border-top: 4px solid #8b0000;
    font-size: 0.95rem;
}

.sidebar h3 {
    margin-top: 0;
    color: #0b0c0c;
    padding-bottom: 8px;
    border-bottom: 1px solid #b1b4b6;
}

.sidebar ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.sidebar li {
    padding: 6px 0;
    border-bottom: 1px solid #d5d3cf;
}

.sidebar li:last-child {
    border-bottom: none;
}

/* ============ IMAGE PLACEHOLDER ============ */
.image-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #f3f2f1,
        #f3f2f1 10px,
        #e8e6e2 10px,
        #e8e6e2 20px
    );
    border: 1px solid #b1b4b6;
    padding: 60px 20px;
    margin: 20px 0;
    text-align: center;
    color: #505a5f;
    font-style: italic;
    max-width: 780px;
}

img.inline-photo {
    max-width: 780px;
    width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid #b1b4b6;
}

.caption {
    font-size: 0.85rem;
    color: #505a5f;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
    max-width: 780px;
}

/* ============ FOOTER ============ */
footer {
    background: #2a3439;
    color: #ffffff;
    padding: 30px 0 20px 0;
    margin-top: 40px;
    border-top: 4px solid #d40000;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 20px;
}

footer h4 {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    padding: 4px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

footer .footer-brand {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

footer .footer-info {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #cccccc;
}

footer .footer-info strong {
    color: #ffffff;
}

footer .footer-legal {
    text-align: center;
    font-size: 0.8rem;
    color: #aaaaaa;
    padding-top: 10px;
}

/* ============ CTA BUTTON ============ */
.button {
    display: inline-block;
    background: #00703c;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    box-shadow: 0 2px 0 #002d18;
    margin-right: 10px;
}

.button:hover {
    background: #005a30;
    color: #ffffff;
    text-decoration: none;
}

.button.secondary {
    background: #ffffff;
    color: #8b0000;
    border: 2px solid #8b0000;
    box-shadow: 0 2px 0 #5c0000;
}

.button.secondary:hover {
    background: #f3f2f1;
    color: #8b0000;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    header .brand-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    header .service-info {
        text-align: left;
    }

    header .brand-logo {
        height: 40px;
    }

    nav.main-nav ul {
        flex-direction: column;
    }

    nav.main-nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .credentials strong {
        display: block;
        min-width: 0;
    }

    table {
        font-size: 0.85rem;
    }
}

/* ============ PRINT ============ */
@media print {
    nav, footer, .top-banner {
        display: none;
    }

    header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    header .brand-tagline {
        color: black;
    }

    body {
        color: black;
    }
}
