/* Elan Valley Past & Present - Aviation Archive */

:root {
    --site-primary: #173e35;
    --site-dark: #132e2b;
    --site-bg: #f6f3eb;
    --site-card: #fffdf8;
    --site-muted: #627168;
    --aviation-gold: #d6af72;
}

body {
    background: var(--site-bg) !important;
    color: #243a33;
    line-height: 1.7;
}

body > .container {
    max-width: 1250px;
}

/* Main page headings */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #102b26 0%,
        #1f483d 60%,
        #345b48 100%
    ) !important;
    color: #ffffff;
    border: 1px solid rgba(214,175,114,.5);
    border-radius: 15px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 12px 32px rgba(18,48,40,.14);
}

.hero-section::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(214,175,114,.23);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    position: relative;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff;
}

.hero-text {
    position: relative;
    color: #edf1e9 !important;
    font-size: 1.1rem;
    max-width: 850px;
}

/* Article and archive cards */

.content-card,
.crash-card,
.intro-card,
.note-card {
    background: var(--site-card);
    border: 1px solid #e5dfd1;
    border-radius: 13px;
    box-shadow: 0 8px 27px rgba(27,56,44,.07);
    overflow: hidden;
}

.crash-card {
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.crash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 17px 36px rgba(27,56,44,.14);
}

.crash-card img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}

.aircraft-photo,
.memorial-photo {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    background: #e8e9e2;
}

figcaption {
    padding: 12px 18px;
    font-size: .9rem;
    color: #66756b;
    background: #f5f2ea;
}

/* Headings and text */

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    color: #173e35 !important;
    border-left: 4px solid var(--aviation-gold);
    padding-left: 16px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card p,
.intro-card p,
.crash-card p,
.note-card p {
    line-height: 1.8;
}

.small-muted,
.page-footer {
    color: #627168;
}

/* Aircraft information badges */

.info-badge {
    display: inline-block;
    background: #f0eadc;
    border: 1px solid #dfd1b3;
    color: #24483d;
    padding: .4rem .8rem;
    margin: .2rem;
    border-radius: 100px;
    font-size: .87rem;
}

/* Buttons */

.btn-site {
    background: #173e35;
    border: 1px solid #173e35;
    color: #fff;
    border-radius: 6px;
    padding: .7rem 1.2rem;
    font-weight: 600;
}

.btn-site:hover,
.btn-site:focus {
    background: #285849;
    border-color: #285849;
    color: #fff;
}

/* Historical notes and quotations */

.quote-box {
    background: #f0eee6;
    border-left: 4px solid var(--aviation-gold);
    color: #354c42;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    font-family: Georgia, serif;
    font-style: italic;
}

.note-box {
    background: #f8f1df;
    border-left: 4px solid var(--aviation-gold);
    color: #354c42;
    padding: 1.25rem;
    border-radius: 6px;
}

/* Crew tables */

.table {
    --bs-table-bg: #fffdf8;
    --bs-table-striped-bg: #f2f0e8;
    border-color: #dfdfd5;
}

.table thead.table-dark {
    --bs-table-bg: #173e35;
    --bs-table-color: #ffffff;
    background: #173e35;
}

.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
}

/* Page counters */

.hit-counter {
    display: inline-block;
    background: #f0eadc;
    border: 1px solid #dfd1b3;
    color: #173e35;
    padding: .8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Mobile phones */

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 1.25rem;
        border-radius: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .crash-card img {
        height: 210px;
    }

    .content-card > .p-4,
    .content-card > .p-md-5 {
        padding: 1.25rem !important;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .info-badge {
        font-size: .8rem;
    }
}
