/* SPEAR Project - Site Styles */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
    --navy: #162233;
    --navy-light: #1e3048;
    --forest: #1b7a5a;
    --forest-dark: #145c43;
    --forest-light: #23a374;
    --gold: #c9982e;
    --gold-light: #e8bf5a;
    --cream: #f7f4ee;
    --off-white: #fafaf8;
    --text-dark: #2c2c2c;
    --text-muted: #636870;
    --border-soft: #ddd8cf;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--navy);
    font-weight: 700;
}

/* Top navigation */
.site-nav {
    background: var(--navy);
    padding: 0;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.site-nav .navbar-brand {
    padding: 8px 0;
    margin-right: 2rem;
}

.site-nav .navbar-brand img {
    height: 42px;
    width: auto;
}

.site-nav .nav-link {
    color: rgba(255,255,255,.78) !important;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .3px;
    padding: .85rem 1rem !important;
    text-transform: uppercase;
    transition: color .2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--gold-light) !important;
}

.site-nav .navbar-toggler {
    border-color: rgba(255,255,255,.3);
}

.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero section */
.hero-block {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--forest-dark) 100%);
    color: #fff;
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero-block::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27,122,90,.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-block h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.hero-block .lead {
    font-size: 1.15rem;
    opacity: .88;
    max-width: 620px;
    line-height: 1.75;
}

.gold-accent {
    color: var(--gold-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    font-weight: 700;
    padding: .65rem 1.75rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .5px;
    transition: background .2s, transform .15s;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
}

.btn-outline-light-custom {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: 3px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .2s;
    background: transparent;
}

.btn-outline-light-custom:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* Section headings */
.section-label {
    text-transform: uppercase;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: 2.5px;
    color: var(--forest);
    margin-bottom: .75rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--gold);
    border: none;
    opacity: 1;
    margin-bottom: 2rem;
}

.content-section {
    padding: 4.5rem 0;
}

.content-section.bg-cream {
    background: var(--cream);
}

/* About / intro cards */
.info-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.info-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

.info-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.icon-wrap.bg-forest {
    background: rgba(27,122,90,.1);
    color: var(--forest);
}

.icon-wrap.bg-gold {
    background: rgba(201,152,46,.12);
    color: var(--gold);
}

.icon-wrap.bg-navy {
    background: rgba(22,34,51,.1);
    color: var(--navy);
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.info-card p {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Work packages overview */
.wp-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.wp-item .wp-num {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .85rem;
}

.wp-item h5 {
    font-size: .95rem;
    margin-bottom: .5rem;
}

.wp-item p {
    font-size: .85rem;
    color: var(--text-muted);
}

/* Stats / numbers */
.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box .stat-num {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.1;
}

.stat-box .stat-label {
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: .4rem;
}

/* Partners grid */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-height: 90px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    transition: box-shadow .2s;
}

.partner-logo:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.partner-logo span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: .82rem;
    text-align: center;
}

/* Dissemination table */
.pub-table thead {
    background: var(--navy);
    color: #fff;
}

.pub-table thead th {
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .85rem 1rem;
    border: none;
}

.pub-table tbody td {
    font-size: .9rem;
    padding: .75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-soft);
}

.pub-table tbody tr:hover {
    background: rgba(27,122,90,.03);
}

.badge-pub {
    background: rgba(27,122,90,.1);
    color: var(--forest-dark);
    font-weight: 600;
    font-size: .75rem;
    padding: .3rem .65rem;
    border-radius: 3px;
}

/* Call-to-action band */
.cta-band {
    background: var(--forest);
    color: #fff;
    padding: 3.5rem 0;
}

.cta-band h3 {
    color: #fff;
    margin-bottom: .75rem;
}

.cta-band p {
    opacity: .85;
    max-width: 550px;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding: 3rem 0 1.5rem;
    font-size: .88rem;
}

.site-footer h6 {
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .2s;
}

.site-footer a:hover {
    color: var(--gold-light);
}

.site-footer .footer-links li {
    margin-bottom: .4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: .8rem;
}

/* Cookie notice */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy);
    color: rgba(255,255,255,.85);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,.2);
    font-size: .88rem;
    display: none;
}

.cookie-bar.visible {
    display: block;
}

.cookie-bar a {
    color: var(--gold-light);
}

.cookie-bar .btn-sm {
    font-size: .8rem;
    padding: .35rem 1rem;
}

/* Blogroll section placeholder styles */
.blog-preview-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 5px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: box-shadow .2s;
}

.blog-preview-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
}

.blog-preview-item .meta-date {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.blog-preview-item h4 a {
    color: var(--navy);
    text-decoration: none;
}

.blog-preview-item h4 a:hover {
    color: var(--forest);
}

.blog-preview-item .excerpt {
    color: var(--text-muted);
    font-size: .93rem;
}

.blog-preview-item .read-more {
    color: var(--forest);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
}

.blog-preview-item .read-more:hover {
    color: var(--forest-dark);
}

/* Page header (for subpages) */
.page-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.page-banner h1 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: .5rem;
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: .85rem;
}

.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
}

.page-banner .breadcrumb-item.active {
    color: var(--gold-light);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.35);
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .hero-block {
        padding: 3.5rem 0 3rem;
    }
    .hero-block h1 {
        font-size: 2rem;
    }
    .content-section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .hero-block h1 {
        font-size: 1.65rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .stat-box .stat-num {
        font-size: 2.2rem;
    }
    .site-nav .nav-link {
        padding: .5rem 1rem !important;
    }
}
