/* ============================================
   North Lancashire DAB — Main Stylesheet
   Purple/dark purple colour scheme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --navy-900: #0f0a1e;
    --navy-800: #170f2e;
    --navy-700: #221640;
    --navy-600: #2e1d56;
    --navy-500: #3d2872;
    --blue-400: #8b5cf6;
    --blue-300: #a78bfa;
    --blue-200: #c4b5fd;
    --cyan-400: #c084fc;
    --cyan-300: #d8b4fe;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --text-primary: var(--white);
    --text-secondary: var(--gray-300);
    --text-muted: var(--gray-400);
    --bg-primary: var(--navy-900);
    --bg-secondary: var(--navy-800);
    --bg-card: var(--navy-700);
    --accent: var(--blue-400);
    --accent-light: var(--blue-300);
    --accent-glow: rgba(139, 92, 246, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
    --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-300); }

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.btn-lg { padding: 14px 36px; font-size: 1rem; }

.btn-nav {
    padding: 8px 22px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
}
.btn-nav:hover {
    background: var(--accent-light);
    color: var(--white) !important;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--white); }
.nav-logo strong { font-weight: 800; }

.logo-icon { display: flex; align-items: center; }

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

.nav-links a {
    color: var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 100%);
    background-size: 200% 200%;
    animation: hero-gradient 12s ease infinite;
}

@keyframes hero-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 45%;
    opacity: 0.07;
    animation: wave-rotate 25s linear infinite;
}
.wave-1 { top: -80%; left: -50%; background: var(--blue-400); animation-duration: 20s; }
.wave-2 { top: -75%; left: -40%; background: var(--cyan-400); animation-duration: 28s; animation-direction: reverse; }
.wave-3 { top: -85%; left: -60%; background: var(--blue-200); animation-duration: 35s; opacity: 0.05; }

@keyframes wave-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fade-up 1s ease-out;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-300);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    color: var(--gray-400);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    padding: 60px 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: cta-glow 6s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--gray-300);
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
    background: var(--navy-800);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.82rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-800);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -4px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.open { right: 0; }
    .nav-links a { padding: 12px 16px; width: 100%; }

    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 1.4rem; }

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

    .cta-card { padding: 40px 24px; }
}

/* --- Launch Banner --- */
.launch-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 50px;
    margin-bottom: 28px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.launch-icon { font-size: 1.2rem; }

.launch-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyan-300);
    letter-spacing: 0.02em;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
    50% { box-shadow: 0 0 20px 2px rgba(192, 132, 252, 0.1); }
}

/* --- Stations Section --- */
.stations-section {
    background: var(--navy-800);
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.station-logo {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    aspect-ratio: 1;
    transition: all var(--transition);
}
.station-logo:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.station-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.station-logo span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-300);
    text-align: center;
    line-height: 1.3;
}

.stations-placeholder {
    color: var(--gray-500);
    font-size: 0.95rem;
    text-align: center;
    padding: 40px 0;
}
.stations-placeholder a {
    color: var(--accent-light);
}

/* --- Station Logos Image --- */
.stations-logos-img {
    max-width: 800px;
    margin: 0 auto 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.stations-logos-img img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}
.stations-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* --- Footer Admin Link --- */
.footer-admin {
    margin-top: 8px;
}
.footer-admin a {
    color: var(--gray-600);
    font-size: 0.75rem;
    transition: color var(--transition);
}
.footer-admin a:hover {
    color: var(--gray-400);
}
