/* =========================================================
   Light Rail UK
   Main Website Styles
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f7f6;
    color: #26352f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: #006b4f;
    text-decoration: none;
}

a:hover {
    color: #004f3b;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #dfe7e3;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: block;
    width: 500px;
    max-width: 55%;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: #30443b;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.main-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #006b4f;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #006b4f;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    transform: scaleX(1);
}


/* =========================================================
   GENERAL LAYOUT
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 75px 0;
}

.section-light {
    background: #ffffff;
}

.section-grey {
    background: #f5f7f6;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: #ffffff;
    border-bottom: 1px solid #dfe7e3;
    padding: 75px 0 80px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    margin: 0 0 20px;
    color: #004f3b;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
}

.hero h1 span {
    color: #006b4f;
}

.hero p {
    max-width: 760px;
    margin: 0 0 30px;
    color: #4b5c54;
    font-size: 20px;
    line-height: 1.7;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-block;
    padding: 13px 25px;
    border: 2px solid #006b4f;
    background: #006b4f;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
}

.button:hover {
    background: #004f3b;
    border-color: #004f3b;
    color: #ffffff;
}

.button-outline {
    background: transparent;
    color: #006b4f;
}

.button-outline:hover {
    background: #006b4f;
    color: #ffffff;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: #004f3b;
    font-size: 34px;
    line-height: 1.2;
}

.section-heading p {
    max-width: 750px;
    margin: 0;
    color: #5b6a63;
    font-size: 17px;
}

.section-heading:after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-top: 18px;
    background: #006b4f;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro p {
    margin: 0;
    color: #4b5c54;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   AREAS / FEATURE CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: #ffffff;
    border: 1px solid #dfe7e3;
    border-top: 4px solid #006b4f;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 79, 59, 0.08);
}

.card h3 {
    margin: 0 0 12px;
    color: #004f3b;
    font-size: 21px;
}

.card p {
    margin: 0;
    color: #596860;
    font-size: 15px;
}


/* =========================================================
   ARCHIVE FEATURE
   ========================================================= */

.archive-feature {
    background: #004f3b;
    color: #ffffff;
}

.archive-feature .section-heading h2 {
    color: #ffffff;
}

.archive-feature .section-heading p {
    color: #dcebe5;
}

.archive-feature .section-heading:after {
    background: #ffffff;
}

.archive-stat {
    background: #ffffff;
    color: #004f3b;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: inline-block;
    min-width: 200px;
}

.archive-stat strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.archive-stat span {
    display: block;
    margin-top: 7px;
    color: #596860;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =========================================================
   CATEGORY LINKS
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-link {
    display: block;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #dfe7e3;
    color: #004f3b;
    font-weight: bold;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: #e8f3ef;
    border-color: #006b4f;
    color: #004f3b;
}

.category-count {
    display: block;
    margin-top: 3px;
    color: #718078;
    font-size: 13px;
    font-weight: normal;
}


/* =========================================================
   RECENT DOCUMENTS
   ========================================================= */

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.document-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dfe7e3;
    padding: 25px;
}

.document-card .category {
    margin-bottom: 10px;
    color: #006b4f;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.document-card h3 {
    margin: 0 0 12px;
    color: #26352f;
    font-size: 19px;
    line-height: 1.35;
}

.document-card p {
    margin: 0 0 20px;
    color: #68766f;
    font-size: 14px;
    flex: 1;
}

.document-card .document-link {
    display: inline-block;
    color: #006b4f;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.document-card .document-link:hover {
    color: #004f3b;
}


/* =========================================================
   CTA
   ========================================================= */

.cta {
    padding: 65px 0;
    background: #e8f3ef;
    border-top: 1px solid #d4e5de;
    border-bottom: 1px solid #d4e5de;
}

.cta-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    margin: 0 0 15px;
    color: #004f3b;
    font-size: 32px;
}

.cta p {
    margin: 0 0 25px;
    color: #4e6057;
    font-size: 17px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #003f30;
    color: #dcebe5;
    padding: 45px 0 25px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 35px;
}

.site-footer h3 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 17px;
}

.site-footer p {
    margin: 0;
    color: #c5d8d0;
    font-size: 14px;
}

.site-footer a {
    color: #dcebe5;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #aac4ba;
    font-size: 12px;
}


/* =========================================================
   ARCHIVE PAGE
   ========================================================= */

.archive-header {
    background: #ffffff;
    border-bottom: 1px solid #dfe7e3;
    padding: 55px 0;
}

.archive-header h1 {
    margin: 0 0 10px;
    color: #004f3b;
    font-size: 40px;
}

.archive-header p {
    margin: 0;
    max-width: 750px;
    color: #5c6b64;
    font-size: 17px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.archive-search {
    background: #e8f3ef;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid #d4e5de;
}

.archive-search form {
    display: flex;
    gap: 10px;
}

.archive-search input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #c8d7d0;
    background: #ffffff;
    color: #26352f;
    font-size: 15px;
}

.archive-search input[type="text"]:focus {
    outline: none;
    border-color: #006b4f;
}

.archive-search button {
    padding: 13px 25px;
    border: 0;
    background: #006b4f;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.archive-search button:hover {
    background: #004f3b;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 500px;
        max-width: 100%;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 15px 25px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .document-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .header-inner {
        padding: 15px 20px;
    }

    .logo {
        width: 100%;
        max-width: 100%;
    }

    .main-nav {
        gap: 5px 18px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .container,
    .hero-inner,
    .footer-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 50px 0 55px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .card-grid,
    .document-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .archive-search form {
        flex-direction: column;
    }

    .archive-search button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}