/* ==========================================================================
   NSCTC — Next Steps Certification Training Centre
   Shared stylesheet
   ========================================================================== */

:root {
    /* Palette — warm, professional, human */
    --cream: #F5F0E8;
    --warm-white: #FAF8F4;
    --off-white: #FFFFFF;
    --atlantic: #3B5F7A;
    --atlantic-deep: #2A4458;
    --atlantic-darker: #1E3345;
    --gold: #C4985A;
    --gold-light: #D4AE72;
    --gold-bright: #FFD782;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --charcoal-soft: #6B6B6B;
    --grey-soft: #B8B0A4;
    --grey-rule: #D5CFC5;
    --accent-red: #A14240;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: var(--charcoal);
    background-color: var(--cream);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Arial Narrow', Helvetica, sans-serif;
    font-weight: 400;
    color: var(--atlantic-deep);
    line-height: 1.2;
}

a {
    color: var(--atlantic);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

em {
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Construction Banner
   ========================================================================== */
.site-banner {
    background: var(--gold);
    color: var(--warm-white);
    text-align: center;
    padding: 10px 32px;
    font-family: 'Lora', serif;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 101;
}

.site-banner strong {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.site-banner + .main-nav {
    top: 0;
}

body:has(.site-banner) .hero,
body:has(.site-banner) .page-hero {
    padding-top: 180px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(245, 240, 232, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--grey-rule);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-logo .nav-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--atlantic-deep);
    line-height: 1;
}

.nav-logo .nav-brand-sub {
    font-family: 'Lora', serif;
    font-size: 11px;
    font-style: italic;
    color: var(--charcoal-soft);
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--atlantic-deep);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.nav-members {
    font-family: 'Oswald', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 22px !important;
    background: var(--atlantic-deep);
    color: var(--warm-white) !important;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav-members:hover {
    background: var(--atlantic) !important;
    color: var(--warm-white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--atlantic-deep);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
section {
    padding: 100px 32px;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

h1.display {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.05;
}

h2.section-heading {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 300;
    margin-bottom: 28px;
    letter-spacing: -0.005em;
}

h3.card-heading {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: 18px;
    color: var(--charcoal-light);
}

p:last-child {
    margin-bottom: 0;
}

p.lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--charcoal);
}

.rule {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 40px 0;
    border: none;
}

.rule-centered {
    margin: 40px auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 34px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--atlantic-deep);
    color: var(--warm-white) !important;
}

.btn-primary:hover {
    background: var(--atlantic);
    color: var(--warm-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 68, 88, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--atlantic-deep) !important;
    border: 1.5px solid var(--atlantic-deep);
}

.btn-outline:hover {
    background: var(--atlantic-deep);
    color: var(--warm-white) !important;
}

.btn-gold {
    background: var(--gold);
    color: var(--warm-white) !important;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--warm-white) !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 140px 32px 80px;
    background:
        linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(196, 152, 90, 0.10) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 85%, rgba(42, 68, 88, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-content .hero-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-content p.lead {
    margin-top: 28px;
    max-width: 620px;
}

.hero-actions {
    margin-top: 42px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Pillars (three-column service breakdown)
   ========================================================================== */
.pillars {
    background: var(--warm-white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.pillar {
    text-align: left;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: var(--gold);
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.pillar h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--atlantic-deep);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.pillar p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal-light);
}

/* ==========================================================================
   Partner callouts (Moodle + Soldiers in Tech)
   ========================================================================== */
.partners {
    background: var(--cream);
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.partner-card {
    background: var(--warm-white);
    border: 1px solid var(--grey-rule);
    padding: 40px 36px;
    transition: border-color 0.25s, transform 0.25s;
}

.partner-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.partner-card .partner-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.partner-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 14px;
    color: var(--atlantic-deep);
}

.partner-card p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.partner-card a.partner-link {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--atlantic-deep);
    border-bottom: 1.5px solid var(--atlantic-deep);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.partner-card a.partner-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
    background: var(--atlantic-deep);
    color: var(--warm-white);
    padding: 70px 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 54px;
    font-weight: 300;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: rgba(250, 248, 244, 0.75);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
    background: var(--cream);
    text-align: center;
    padding: 80px 32px;
}

.cta-band h2 {
    margin-bottom: 20px;
}

.cta-band p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 18px;
}

/* ==========================================================================
   Page hero (for non-home pages)
   ========================================================================== */
.page-hero {
    padding: 160px 32px 80px;
    background:
        linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(196, 152, 90, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-hero p.lead {
    font-size: 20px;
    max-width: 640px;
}

/* ==========================================================================
   Books grid
   ========================================================================== */
.books-category {
    padding: 80px 32px;
}

.books-category:nth-of-type(even) {
    background: var(--warm-white);
}

.category-header {
    margin-bottom: 50px;
    max-width: 720px;
}

.category-header .section-label {
    color: var(--gold);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.book-card {
    background: var(--warm-white);
    border: 1px solid var(--grey-rule);
    padding: 28px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.books-category:nth-of-type(even) .book-card {
    background: var(--cream);
}

.book-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(42, 68, 88, 0.1);
}

.book-cover {
    margin-bottom: 22px;
    text-align: center;
}

.book-cover img {
    max-height: 280px;
    width: auto;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.book-card h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--atlantic-deep);
    line-height: 1.25;
}

.book-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.book-card .book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.book-card .book-link {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--atlantic-deep);
    border-bottom: 1.5px solid var(--atlantic-deep);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.book-card .book-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ==========================================================================
   Team cards (About page)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.team-card {
    text-align: left;
}

.team-photo {
    margin-bottom: 24px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    filter: saturate(0.92);
}

.team-card h3 {
    font-size: 28px;
    font-weight: 400;
    color: var(--atlantic-deep);
    margin-bottom: 6px;
}

.team-card .team-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.team-card .team-credentials {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--charcoal-soft);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.team-card .team-email {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--atlantic-deep);
    border-bottom: 1.5px solid var(--atlantic-deep);
    padding-bottom: 2px;
    display: inline-block;
    letter-spacing: 0.04em;
}

.team-card .team-email:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--atlantic-darker);
    color: rgba(245, 240, 232, 0.75);
    padding: 70px 32px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.footer-brand p.tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--gold-bright);
    margin-bottom: 20px;
}

.footer-brand p.privacy {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(245, 240, 232, 0.55);
    max-width: 360px;
}

.footer-col h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 18px;
    font-weight: 500;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(245, 240, 232, 0.75);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--gold-bright);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 240, 232, 0.12);
    font-size: 12px;
    color: rgba(245, 240, 232, 0.45);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    section {
        padding: 70px 24px;
    }

    .pillars-grid,
    .stats-grid,
    .partner-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero {
        padding: 120px 24px 60px;
    }

    .page-hero {
        padding: 130px 24px 60px;
    }
}

/* ==========================================================================
   Scroll animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
