/*
 * christianetwork.net -- site stylesheet
 * TS1.2.1-FF1 styling pass (2026-08-27)
 *
 * Design language adapted from the owner-approved mockup
 * (CR-004, cn_net_mockup.html) -- same brand colors, same three
 * Google Fonts, same hero-backdrop-behind-text technique, same
 * card/doc/entity-box treatments -- rebuilt here as real CSS
 * classes against the real Blade markup, not copied verbatim
 * (the mockup embedded its dove image as base64 for artifact
 * portability; this stylesheet references the real file path
 * public/images/banner-dove-cloudscape.jpg instead).
 *
 * CONTRACT AC 4's binding --brand-red / --brand-headings /
 * --brand-body custom properties stay declared verbatim in
 * layouts/app.blade.php's own inline <style> block, not here --
 * this file only *uses* var(--brand-red) etc., it does not
 * redeclare them, so that AC4's grep target keeps working
 * untouched.
 */

:root {
    --cn-red-deep: #a80000;
    --cn-bg-alt: #f7f5f1;
    --cn-border: #e7e1d6;
    --cn-cloud-1: #eaf1fa;
    --cn-cloud-2: #d9e6f4;
    --cn-sky: #cfe0f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--brand-body);
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-headings);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: var(--brand-red);
}

.eyebrow, .tag {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---- site nav ---- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--cn-border);
    background: #fff;
}

.site-header .brandmark {
    display: flex;
    align-items: center;
}

.site-header img.logo {
    height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-nav a {
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    color: var(--brand-body);
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.current {
    color: var(--brand-red);
}

/* ---- page shell ---- */

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

/* ---- hero / dove banner backdrop ---- */

.hero {
    position: relative;
    overflow: hidden;
    margin: 0 -2rem 3rem;
    padding: 4.5rem 2rem;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 12px 12px;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, var(--cn-cloud-1), transparent 70%),
        radial-gradient(ellipse 55% 45% at 80% 15%, var(--cn-cloud-2), transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 100%, var(--cn-cloud-1), transparent 70%),
        linear-gradient(180deg, var(--cn-sky) 0%, #ffffff 100%);
}

.dove-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.dove-wrap .hero-dove {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 78%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 40%, transparent 78%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.hero-content h1 {
    font-style: italic;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0 0 0.9rem;
}

.hero-content p.mission {
    color: var(--brand-body);
    font-family: 'Mulish', sans-serif;
    font-size: 1rem;
    margin: 0 auto;
}

.hero-content p.verse {
    margin-top: 1.25rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--cn-red-deep);
    opacity: 0.85;
}

/* ---- content sections / cards ---- */

.section {
    margin: 0 -2rem;
    padding: 2.75rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}

.ministry-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cn-border);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.ministry-card.founder-card {
    align-items: center;
}

.ministry-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.ministry-card p {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

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

.ministry-card .card-link {
    display: inline-block;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    color: var(--brand-red);
    background: rgba(226, 0, 0, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.founder-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .ministry-card.founder-card {
        flex-direction: column;
        text-align: center;
    }
    .founder-photo {
        margin: 0 auto;
    }
}

.founder-title {
    color: var(--cn-red-deep);
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0 0.6rem;
}

.learn-more-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 420px;
}

.learn-more-list li {
    border-bottom: 1px solid var(--cn-border);
}

.learn-more-list li:last-child {
    border-bottom: none;
}

.learn-more-list a {
    display: block;
    padding: 0.85rem 0.25rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-headings);
}

.learn-more-list a::after {
    content: '\2192';
    float: right;
    color: var(--brand-red);
}

.learn-more-list a:hover {
    color: var(--brand-red);
}

/* ---- footer ---- */

.site-footer {
    border-top: 1px solid var(--cn-border);
    padding: 2rem;
    text-align: center;
}

.site-footer .fnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.site-footer .fnav a {
    font-size: 0.8rem;
    color: var(--brand-body);
    text-decoration: none;
}

.site-footer .fnav a:hover {
    color: var(--brand-red);
}

.site-footer .copy {
    margin: 0.15rem 0;
    font-size: 0.8rem;
    color: #9aa4ad;
}

/* ---- document-style pages (compliance / business info) ---- */

.doc h1.doctitle {
    font-size: 1.9rem;
    margin: 0 0 0.25rem;
}

.doc .doc-updated {
    font-size: 0.8rem;
    color: #9aa4ad;
    margin: 0 0 1.75rem;
    font-style: normal;
}

.doc h2 {
    font-size: 0.9rem;
    font-family: 'Mulish', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cn-red-deep);
    margin: 1.75rem 0 0.5rem;
}

.doc p, .doc li {
    font-size: 0.95rem;
    color: var(--brand-body);
    line-height: 1.7;
}

.doc .doc-footer-note {
    margin-top: 1.75rem;
    color: var(--brand-body);
}

.entity-box {
    background: var(--cn-bg-alt);
    border: 1px solid var(--cn-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin: 1.1rem 0 1.75rem;
}

.entity-box .row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--cn-border);
}

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

.entity-box .row span:first-child {
    color: var(--brand-body);
}

.entity-box .row span:last-child {
    color: var(--brand-headings);
    font-weight: 700;
    text-align: right;
}

/* ---- contact page ---- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form label {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-headings);
    margin: 1rem 0 0.35rem;
}

.contact-form label:first-child {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: 'Mulish', sans-serif;
    font-size: 0.95rem;
    border: 1px solid var(--cn-border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: var(--brand-headings);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--brand-red);
    outline-offset: 1px;
}

.contact-form button {
    margin-top: 1.1rem;
    appearance: none;
    border: none;
    cursor: pointer;
    background: var(--brand-red);
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
}

.contact-form button:hover {
    background: var(--cn-red-deep);
}

.field-optional {
    font-weight: 400;
    text-transform: none;
    color: var(--brand-body);
}

.sms-opt-in {
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    background: #f7f5f2;
    border: 1px solid var(--cn-border);
    border-radius: 8px;
}

.sms-opt-in__label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 !important;
    font-family: 'Mulish', sans-serif;
    font-size: 0.85rem;
    font-weight: 400 !important;
    text-transform: none;
    color: var(--brand-headings);
    cursor: pointer;
}

.sms-opt-in__label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--brand-red);
}

.sms-opt-in__terms {
    margin: 0.5rem 0 0 1.75rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--brand-body);
}

.sms-opt-in__terms a {
    color: var(--brand-red);
    text-decoration: underline;
}

.contact-info h2 {
    font-size: 0.9rem;
    font-family: 'Mulish', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cn-red-deep);
    margin: 0 0 0.65rem;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--brand-body);
}

/* ---- shared status / error messaging ---- */

.status-message {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1e4620;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.status-message--error {
    background: #fce8e6;
    border-color: var(--brand-red);
    color: #611a15;
}

.status-message ul {
    margin: 0;
    padding-left: 1.25rem;
}
