/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colour Palette */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --secondary-teal: #0d9488;
    --secondary-teal-dark: #0f766e;
    --accent-yellow: #f59e0b;
    --accent-yellow-dark: #d97706;
    
    /* Neutral Colours */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-4);
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: var(--space-4);
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

.logo h1 {
    font-size: var(--font-size-xl);
    color: var(--primary-blue);
    font-weight: 700;
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: var(--font-size-2xl);
    }
}

/* Navigation Toggle (Mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: 30px;
    height: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
    }
}

.nav-list {
    list-style: none;
    padding: var(--space-4);
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
        align-items: center;
        gap: var(--space-6);
        padding: 0;
    }
}

.nav-link {
    display: block;
    padding: var(--space-3) var(--space-2);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: var(--radius);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-blue);
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .nav-link {
        padding: var(--space-2) var(--space-3);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    padding: var(--space-16) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--gray-900);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-yellow-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: var(--space-16) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

/* About Section */
.about-content {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.about-text p {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
    color: var(--gray-700);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Help Section */
.help {
    background: var(--gray-50);
}

.help-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.help-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.help-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.help-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.help-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Apply Section */
.apply-content {
    display: grid;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 768px) {
    .apply-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.apply-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: var(--space-6) 0 var(--space-3) 0;
    color: var(--gray-900);
}

.apply-info h3:first-child {
    margin-top: 0;
}

.apply-info p {
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

.apply-contact {
    background: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.email-link {
    display: inline-block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    margin: var(--space-2) 0;
    padding: var(--space-2) 0;
}

.email-link:hover,
.email-link:focus {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.apply-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    padding: var(--space-4);
    border-radius: var(--radius);
    margin-top: var(--space-6);
}

.apply-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Support Section */
.support {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.support-options {
    display: grid;
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

@media (min-width: 768px) {
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.support-option {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-yellow);
}

.support-option h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.support-option p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-support {
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

/* Stories Section */
.stories {
    background: var(--gray-50);
}

.stories-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.story-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.story-content p {
    color: var(--gray-600);
    line-height: 1.6;
    font-style: italic;
}

/* Contact Section */
.contact-content {
    display: grid;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.contact-details h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.contact-details address {
    font-style: normal;
    margin-bottom: var(--space-6);
    color: var(--gray-700);
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: var(--space-6);
}

.contact-methods p {
    margin-bottom: var(--space-3);
    color: var(--gray-700);
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-8) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-info p {
    margin-bottom: var(--space-2);
}

.design-credit {
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
}

.design-credit a {
    color: var(--gray-300);
    text-decoration: none;
}

.design-credit a:hover,
.design-credit a:focus {
    color: var(--white);
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
.nav-link:focus,
.btn:focus,
.email-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --secondary-teal: #008080;
        --accent-yellow: #ffff00;
        --gray-50: #ffffff;
        --gray-100: #f0f0f0;
        --gray-800: #000000;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-actions,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}
