/* ===================================
   RNIB-Approved Color Scheme
   ===================================
   Primary: #003A70 (Dark Blue) - Main brand color
   Secondary: #FFB81C (Yellow) - Accent and highlights
   Text: #000000 (Black) on #FFFFFF (White) - High contrast
   Background: #F5F5F5 (Light Gray)
   Success: #00703C (Green)
   
   All color combinations meet WCAG AAA standards (7:1+ contrast ratio)
   =================================== */

:root {
    --primary-color: #003A70;
    --secondary-color: #FFB81C;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-gray: #F5F5F5;
    --success-color: #00703C;
    --border-color: #CCCCCC;
    --shadow: rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
}

/* ===================================
   Reset and Base Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 18px; /* Larger base font for accessibility */
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

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

a:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===================================
   Layout
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* ===================================
   Header and Navigation
   =================================== */

.header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--text-light);
}

.tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.nav-menu li a:focus {
    outline: 3px solid var(--text-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: 2px solid var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #005A9C 100%);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--background-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.btn:focus {
    outline: 3px solid var(--text-dark);
    outline-offset: 3px;
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footnote {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.quote {
    background-color: var(--background-gray);
    border-left: 5px solid var(--secondary-color);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
}

.quote-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.quote-image {
    width: 100%;
}

.quote-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    border: 3px solid var(--secondary-color);
}

.quote-text p {
    margin-bottom: 1rem;
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: 6rem 2rem;
    background-color: var(--background-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-image {
    background-color: var(--background-light);
    padding: 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 380px;
}

.service-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ===================================
   Listen Section
   =================================== */

.listen-section {
    padding: 6rem 2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.listen-section .section-title {
    color: var(--text-light);
}

.listen-content {
    max-width: 700px;
    margin: 0 auto;
}

.listen-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===================================
   Support Section
   =================================== */

.support {
    padding: 6rem 2rem;
    background-color: var(--background-light);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.support-card, .support-impact {
    background-color: var(--background-gray);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 3px solid var(--primary-color);
}

.support-card h3, .support-impact h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.support-highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 2rem 0;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: 6rem 2rem;
    background-color: var(--background-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* ===================================
   Contact Form
   =================================== */

.contact-form-wrapper {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.privacy-note {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    flex: 1;
    cursor: pointer;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.back-to-top:hover {
    color: var(--text-light);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .about-content,
    .contact-content,
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .quote-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quote-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .about, .services, .contact, .support, .listen-section {
        padding: 4rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1rem;
    }
    
    .support-card, .support-impact {
        padding: 2rem 1rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   Accessibility Enhancements
   =================================== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@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 mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 4px;
    }
    
    .service-card {
        border-width: 3px;
        border-color: var(--text-dark);
    }
}

/* Print styles */
@media print {
    .header, .footer, .hero-buttons, .btn {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}
