﻿/* NZCEL Website - Complete Styles */

:root {
    --navy: #0A2540;
    --navy-light: #1E3A5F;
    --gold: #F2A900;
    --gold-hover: #D99700;
    --white: #FFFFFF;
    --bg: #F8F9FA;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* NAVIGATION */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-badge {
    background: var(--navy);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.logo-text span {
    color: #94A3B8;
    font-weight: 400;
    font-size: 15px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
}

.nav-cta {
    background: var(--navy);
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 12px;
    transition: background 0.2s !important;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--navy-light);
}

.nav-cta::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 20px;
        gap: 10px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

/* Shared Footer */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 20px 24px 12px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 8px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 20px;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
    opacity: 0.7;
}

.footer-col h4 {
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.5;
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    max-width: 500px;
    text-align: right;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-disclaimer {
        text-align: center;
    }
}

/* Shared Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 8px 0;
    margin-bottom: 0 !important;
}

/* Reduce spacing between sections */
section + section {
    margin-top: 0 !important;
}

/* Eliminate all gaps between elements */
* {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Compact sections */
.section {
    padding: 10px 0 !important;
    margin: 0 !important;
}

/* Compact main content */
main {
    padding: 8px 0 !important;
}

/* Compact hero */
.hero {
    padding: 6px 0 !important;
}

/* Tighter spacing for all elements */
.mb-4, .mb-5, .mb-6 {
    margin-bottom: 6px !important;
}

.mb-8, .mb-10, .mb-12 {
    margin-bottom: 8px !important;
}

/* Compact spacing for progression path */
.progression-path {
    padding: 8px 0 !important;
}

.progression-path + section,
.progression-path ~ section {
    margin-top: 0 !important;
}

/* Reduce spacing in main content */
main {
    padding: 6px 0 !important;
}

/* Compact hero sections */
.hero {
    padding: 6px 0 !important;
}

/* Tighter card spacing */
.card, .programme-card, .level-card {
    margin-bottom: 8px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px;
}

.section-tag {
    display: inline-block;
    background: #EFF6FF;
    color: #1D40AF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Shared Button Styles */
.btn-gold {
    background: var(--gold);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242,169,0,0.3);
}

.btn-outline {
    background: white;
    color: #374151;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #D1D5DB;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* Shared Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10,37,64,0.08);
    border-color: transparent;
}

/* Shared Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-blue {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-green {
    background: #D1FAE5;
    color: #065F46;
}

.badge-amber {
    background: #FEF3C7;
    color: #92400E;
}

.badge-purple {
    background: #EDE9FE;
    color: #7C3AED;
}

/* Hero Visual */
.hero-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Focus Styles */
a:focus-visible, button:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .nav, .mobile-toggle {
        display: none !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Accessible keyboard bypass, clear focus, and small-screen reflow */
.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 0.375rem;
    transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}
#programme-level-1f,
#programme-level-1,
#programme-level-2,
#programme-level-3g,
#programme-level-3ap,
#programme-level-3ac,
#programme-level-4g,
#programme-level-4e,
#programme-level-4ac,
#programme-level-5g,
#programme-level-5e,
#programme-level-5ac { scroll-margin-top: 5rem; }
#programme-level-6 { scroll-margin-top: 5rem; }
.mobile-toggle:focus-visible,
.nav-links a:focus-visible { outline-color: #1d4ed8; }
@media (max-width: 600px) {
    .overview-grid { grid-template-columns: 1fr; }
}

.footer-provider {
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 1.25rem 0;
    margin: 0 0 1rem;
}
.footer-provider h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.footer-provider p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.35rem;
}
.footer-provider a {
    color: #fcd34d;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.footer-provider a:focus-visible {
    outline-color: #fcd34d;
}
