/* ===================================
   World Stories Digest - Main Stylesheet
   Clean, Responsive, Accessible Design
   =================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header & Navigation === */
header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.logo-text {
    display: inline-block;
}

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

.nav-menu a {
    color: #555;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    text-decoration: none;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* === Buttons === */
.cta-button,
.cta-button-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.cta-button {
    background-color: #fff;
    color: #667eea;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.cta-button-secondary {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cta-button-secondary:hover {
    background-color: #667eea;
    color: #fff;
    text-decoration: none;
}

/* === Sections === */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

/* === Content Sections === */
.content-section {
    background-color: #fff;
}

.content-box {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-box h2 {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-box h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-box h4 {
    color: #34495e;
    margin-top: 1rem;
}

.content-box ul,
.content-box ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Legal Content Specific Styles */
.legal-content .content-box {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2rem;
}

.legal-content h3 {
    font-size: 1.35rem;
}

.legal-content h4 {
    font-size: 1.15rem;
}

/* === Feature Grid === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* === Values Grid === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.value-item h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* === Lists === */
.approach-list,
.commitment-list,
.sources-list {
    list-style: none;
    margin-left: 0;
}

.approach-list li,
.commitment-list li,
.sources-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.approach-list li::before,
.commitment-list li::before,
.sources-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.25rem;
}

/* === Mission Section === */
.mission {
    background-color: #fff;
    text-align: center;
}

.mission h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #555;
}

/* === Commitment Section === */
.commitment {
    background-color: #f8f9fa;
}

/* === Disclaimer Box === */
.disclaimer-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.disclaimer-box h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 1rem;
}

.disclaimer-box p {
    color: #856404;
    margin-bottom: 0.75rem;
}

.disclaimer-box ul {
    color: #856404;
    margin-left: 2rem;
}

.disclaimer-box strong {
    font-weight: 700;
}

/* === Contact Form === */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-actions {
    text-align: center;
}

.form-note {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* === Contact Info === */
.contact-info {
    margin-top: 4rem;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
}

.info-card p {
    margin-bottom: 0.5rem;
}

.info-note {
    font-size: 0.875rem;
    color: #666;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* === Footer === */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.875rem;
}

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

/* Tablets and below */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid,
    .values-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 2rem 0;
    }

    .hero {
        padding: 2rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .content-box {
        padding: 1rem;
    }

    .contact-form-container {
        padding: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* === Print Styles === */
@media print {
    header,
    footer,
    .cta-button,
    .cta-button-secondary {
        display: none;
    }

    body {
        background-color: #fff;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .content-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === Accessibility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background-color: #fff;
        color: #000;
    }

    .hero,
    .page-header {
        background: #000;
        color: #fff;
    }
}

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