/* ============================================
   LANGLEY URBANIST SOCIETY - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #364B6D;
    --primary-dark: #1E2A3D;
    --primary-darker: #141C2A;
    --background: #0F1419;
    --surface: #1A2332;
    --surface-elevated: #243044;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #6B7D94;
    --accent: #5A7BA8;
    --accent-light: #7B9CC4;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --glow-color: rgba(90, 123, 168, 0.4);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(90, 123, 168, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--text-primary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--background) 0%, transparent 100%);
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-container {
    width: 120px;
    height: 120px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(90, 123, 168, 0.25),
        0 0 40px rgba(90, 123, 168, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.logo-container:hover {
    box-shadow: 
        0 0 30px rgba(90, 123, 168, 0.4),
        0 0 60px rgba(90, 123, 168, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 6px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--surface);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-subtle);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(54, 75, 109, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(90, 123, 168, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: 24px;
    box-shadow: 
        0 0 50px rgba(90, 123, 168, 0.3),
        0 0 100px rgba(90, 123, 168, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 20px 60px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 19px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(54, 75, 109, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(54, 75, 109, 0.5);
    color: var(--text-primary);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* Initiatives Grid */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.initiative-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-medium);
}

.initiative-image {
    height: 200px;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.initiative-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(90, 123, 168, 0.1) 0%, transparent 70%);
}

.initiative-image img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.initiative-card:hover .initiative-image img {
    transform: scale(1.05);
}

.initiative-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.initiative-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.initiative-content p {
    flex: 1;
    margin-bottom: 1.5rem;
}

.initiative-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-light);
}

.initiative-link svg {
    transition: var(--transition-smooth);
}

.initiative-link:hover svg {
    transform: translateX(4px);
}

/* About Section */
.about-section {
    background: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-light);
}

.feature-item h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-muted);
}

/* Directors Section */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5rem;
    width: 50%;
    margin: auto;
}

.director-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.director-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-soft);
}

.director-image {
    height: 280px;
    background: var(--surface-elevated);
    position: relative;
    overflow: hidden;
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.director-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--surface-elevated) 100%);
}

.director-image .placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    opacity: 0.5;
}

.director-info {
    padding: 2rem;
}

.director-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.director-role {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.director-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.director-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 1rem;
}

.director-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.director-contact a:hover {
    color: var(--accent-light);
}

/* Documents Section */
.documents-section {
    background: var(--surface);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.document-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.document-icon {
    width: 56px;
    height: 56px;
    background: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.document-card h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.document-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.document-card .btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--primary-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-logo {
        justify-content: center;
    }
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-logo span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 350px;
}

@media (max-width: 768px) {
    .footer-brand p {
        max-width: 100%;
    }
}

.footer-links h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--text-primary);
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    background: var(--surface);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(54, 75, 109, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    margin-bottom: 1.5rem;
}

.content-section h3 {
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.content-section ul, .content-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-section blockquote {
    background: var(--surface);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.content-section blockquote p {
    font-style: italic;
    margin: 0;
}

/* Coming Soon Badge */
.coming-soon {
    display: inline-block;
    background: var(--primary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
