/* ==========================================
   Shared Page Styles
   Used by: the_problem.html, openangus.html, 
   get_involved.html, about.html
   ========================================== */

/* ==========================================
   Page Heroes
   ========================================== */

.page-hero {
    padding: 80px 20px 70px;
    text-align: center;
    color: var(--white);
}

.page-hero-red {
    background: linear-gradient(135deg, var(--ohio-red) 0%, #8a0e2d 100%);
}

.page-hero-green {
    background: linear-gradient(135deg, var(--forest-green) 0%, #1a3a0e 100%);
}

.page-hero-blue {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #001845 100%);
}

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

.page-hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ==========================================
   Content Sections
   ========================================== */

.content-section {
    padding: 80px 20px;
    background: var(--white);
}

.section-alt {
    background: var(--cream);
}

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

.prose p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.prose p:last-child {
    margin-bottom: 0;
}

.lead-text {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    color: var(--charcoal);
}

/* ==========================================
   Section Headings
   ========================================== */

.section-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.heading-red { color: var(--ohio-red); }
.heading-green { color: var(--forest-green); }
.heading-blue { color: var(--deep-blue); }

/* ==========================================
   Numbers Grid (3-column variant)
   ========================================== */

.numbers-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #001845 100%);
    border-radius: 10px;
    padding: 50px 30px;
    color: var(--white);
}

/* When nested inside .the-numbers, remove the background (already has one) */
.the-numbers .numbers-grid-3 {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

/* ==========================================
   Cost Breakdown Table (The Problem page)
   ========================================== */

.cost-breakdown {
    max-width: 700px;
    margin: 40px auto 0;
}

.cost-table {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-alt .cost-table {
    background: var(--white);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-item {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.cost-amount {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    white-space: nowrap;
    margin-left: 20px;
}

.cost-total-row {
    background: #fef2f2;
    border-top: 2px solid var(--ohio-red);
}

.cost-total-row .cost-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.cost-total {
    color: var(--ohio-red) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* ==========================================
   Impact Cards (The Problem page)
   ========================================== */

.impact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.impact-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--cream);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.impact-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--ohio-red);
    margin-bottom: 15px;
}

.impact-card:last-child .impact-number {
    color: var(--forest-green);
}

.impact-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
}

/* ==========================================
   Feature Grid (OpenAngus page)
   ========================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 50px auto 0;
}

.feature-card {
    padding: 35px 30px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--forest-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    color: var(--forest-green);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--forest-green);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
}

/* ==========================================
   How It Works Steps (OpenAngus page)
   ========================================== */

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.how-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--forest-green);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.how-step h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--forest-green);
}

.how-step p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--charcoal);
}

/* ==========================================
   Tech Details (OpenAngus page)
   ========================================== */

.tech-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 40px auto 0;
}

.tech-item {
    padding: 30px 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-alt .tech-item {
    background: var(--white);
}

.tech-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--deep-blue);
    margin-bottom: 10px;
}

.tech-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--charcoal);
}

/* ==========================================
   Developer Info (OpenAngus page)
   ========================================== */

.dev-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
}

.dev-card {
    padding: 35px 30px;
    background: var(--cream);
    border-radius: 8px;
    border-top: 4px solid var(--forest-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dev-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--forest-green);
    margin-bottom: 12px;
}

.dev-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
}

/* ==========================================
   Knowledge Grid (OpenAngus page)
   ========================================== */

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.knowledge-card {
    padding: 35px 28px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.knowledge-icon {
    color: var(--sage-green);
    margin-bottom: 18px;
}

.knowledge-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--forest-green);
}

.knowledge-card p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--charcoal);
    text-align: left;
}

/* ==========================================
   Additional Button Styles
   ========================================== */

.btn-primary-blue {
    background: var(--white);
    color: var(--deep-blue);
    border: 2px solid var(--white);
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary-blue:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-green {
    background: var(--forest-green);
    color: var(--white);
    border: 2px solid var(--forest-green);
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.btn-green:hover {
    background: #1a3a0e;
    border-color: #1a3a0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

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

@media (max-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 20px 50px;
    }

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

    .numbers-grid-3 {
        grid-template-columns: 1fr;
        padding: 35px 20px;
    }

    .impact-cards {
        grid-template-columns: 1fr;
    }

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

    .how-it-works-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .tech-details {
        grid-template-columns: 1fr;
    }

    .dev-info {
        grid-template-columns: 1fr;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cost-amount {
        margin-left: 0;
    }

    .content-section {
        padding: 60px 20px;
    }

    .section-heading {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 45px 15px 40px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .page-hero-subtitle {
        font-size: 1.05rem;
    }

    .content-section {
        padding: 50px 15px;
    }

    .impact-number {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px 20px;
    }
}
