/**
 * Unfiltered Wisdom - Template Design System CSS
 * White/Gold/Navy Design with Inter + Crimson Text fonts
 */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #fff;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* ===== Crisis Banner ===== */
.crisis-banner {
    background: #dc3545;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.crisis-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.crisis-icon { margin-right: 8px; }

/* ===== Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
}

.logo:hover { color: #2c5282; }

.primary-nav .nav-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.primary-nav .nav-list a {
    color: #2d3748;
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.primary-nav .nav-list a:hover {
    color: #1a365d;
    background: #f7fafc;
}

/* CTA Button */
.cta, .cta-button {
    background: #c9a227 !important;
    color: #1a202c !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none !important;
    display: inline-block;
}

.cta:hover, .cta-button:hover {
    background: #d4af37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2d3748 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    color: white;
}

.hero h1 span {
    color: #e2c069;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem 0;
    opacity: 0.95;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

.hero .lead {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 56ch;
    color: rgba(255,255,255,0.9);
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-media {
    text-align: center;
    position: relative;
}

.hero-media::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-30%);
    width: 240px;
    height: 360px;
    background: rgba(0,0,0,0.3);
    filter: blur(20px);
    border-radius: 4px;
}

.hero-media img {
    max-width: 100%;
    width: 320px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.hero-media img:hover {
    transform: perspective(1000px) rotateY(-2deg);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #c9a227;
    color: #1a202c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: white;
    color: #1a365d;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-secondary:hover {
    border-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f7fafc;
}

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.tile-teal { border-left: 4px solid #0ea5a4; }
.tile-purple { border-left: 4px solid #7c3aed; }
.tile-orange { border-left: 4px solid #f97316; }
.tile-cyan { border-left: 4px solid #06b6d4; }

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

/* Quick Help Sidebar */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.sidebar-card p {
    color: #4a5568;
    margin: 0.5rem 0;
}

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

.chapter-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chapter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chapter-number {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #2c5282, #1a365d);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.chapter-card h3 {
    margin: 0.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.chapter-card h3 a {
    color: #1a365d;
    text-decoration: none;
}

.chapter-card h3 a:hover {
    color: #c9a227;
}

.chapter-card p {
    color: #4a5568;
    margin: 0;
    font-size: 0.95rem;
}

/* ===== Questions/Articles Grid ===== */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.question-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.question-card h3 a {
    color: #1a365d;
    text-decoration: none;
}

.question-card h3 a:hover {
    color: #c9a227;
}

.question-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0;
}

/* ===== Footer ===== */
footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 60px 0 30px;
}

footer h3, footer h4, footer h5 {
    font-family: 'Crimson Text', serif;
    color: white;
    margin-bottom: 1rem;
}

footer p, footer a {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.7;
}

footer a:hover {
    color: #c9a227;
}

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

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* ===== Back to Top ===== */
#backToTop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    border-radius: 8px;
    background: #1a365d;
    color: white;
    padding: 0.6rem 1rem;
    display: none;
    z-index: 100;
    cursor: pointer;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#backToTop:hover {
    background: #2c5282;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .lead {
        max-width: 100%;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-media img {
        width: 260px;
        transform: none;
    }
    .hero-media::before {
        width: 190px;
        height: 285px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .primary-nav .nav-list {
        gap: 0.25rem;
    }
    .primary-nav .nav-list a {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    .primary-nav {
        width: 100%;
    }
    .primary-nav .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    .questions-grid {
        grid-template-columns: 1fr;
    }
}
