/* focusChrist unified site design system
   Shared visual primitives beneath site-header.css.
   Public brand casing: focusChrist (lowercase f, uppercase C).
   Visual direction: Harvest Sky — twilight blue, sunflower gold, sage, parchment,
   and restrained autumn warmth. Brown is a supporting earth tone, not the atmosphere. */

:root {
    --fc-bg: #142a35;
    --fc-bg-deep: #0f2029;
    --fc-bg-warm: #1c3743;
    --fc-surface: #203d49;
    --fc-surface-2: #294a57;
    --fc-surface-soft: rgba(134, 175, 200, 0.075);
    --fc-surface-hover: rgba(240, 195, 106, 0.105);
    --fc-sky: #86afc8;
    --fc-sky-deep: #527b96;
    --fc-gold: #e0aa3e;
    --fc-gold-light: #f0c36a;
    --fc-gold-deep: #b87d24;
    --fc-sage: #71805c;
    --fc-sage-light: #9eaa83;
    --fc-ember: #b76848;
    --fc-maple: #82483c;
    --fc-earth: #38251c;
    --fc-cream: #fff2dc;
    --fc-text: #e8e3d8;
    --fc-muted: #c3c8bd;
    --fc-faint: #92a6a8;
    --fc-line: rgba(134, 175, 200, 0.25);
    --fc-line-warm: rgba(224, 170, 62, 0.28);
    --fc-line-strong: rgba(240, 195, 106, 0.52);
    --fc-shadow: 0 22px 60px rgba(5, 17, 23, 0.35);
    --fc-radius-sm: 9px;
    --fc-radius: 14px;
    --fc-radius-lg: 20px;
    --fc-reading: 760px;
    --fc-standard: 1040px;
    --fc-wide: 1240px;
    --fc-gallery: 1440px;
    --fc-section-y: clamp(48px, 7vw, 82px);
    --fc-gap: clamp(18px, 3vw, 30px);
}

html { scroll-behavior: smooth; }

body.fc-site {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(circle at 84% 4%, rgba(134,175,200,.14), transparent 30rem),
        radial-gradient(circle at 14% 34%, rgba(224,170,62,.055), transparent 28rem),
        linear-gradient(180deg, #17323f 0%, var(--fc-bg) 42%, #11252f 100%);
    color: var(--fc-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.fc-site *,
body.fc-site *::before,
body.fc-site *::after { box-sizing: border-box; }

body.fc-site a { color: var(--fc-gold-light); }
body.fc-site a:hover { color: var(--fc-cream); }
body.fc-site img { max-width: 100%; }

.fc-main-landmark { min-width: 0; }

.fc-container,
.fc-container--reading,
.fc-container--standard,
.fc-container--wide,
.fc-container--gallery {
    width: calc(100% - 36px);
    margin-inline: auto;
}

.fc-container--reading { max-width: var(--fc-reading); }
.fc-container,
.fc-container--standard { max-width: var(--fc-standard); }
.fc-container--wide { max-width: var(--fc-wide); }
.fc-container--gallery { max-width: var(--fc-gallery); }

.fc-section {
    position: relative;
    padding-block: var(--fc-section-y);
    background:
        radial-gradient(circle at 90% 10%, rgba(134,175,200,.045), transparent 22rem);
}
.fc-section--compact { padding-block: clamp(34px, 5vw, 56px); }
.fc-section--flush-top { padding-top: 0; }
.fc-section--dark {
    background:
        radial-gradient(circle at 82% 0%, rgba(82,123,150,.10), transparent 28rem),
        linear-gradient(180deg, #10232d, #0d1d25);
}
.fc-section--warm {
    background:
        radial-gradient(circle at 78% 0%, rgba(240,195,106,.10), transparent 26rem),
        radial-gradient(circle at 12% 100%, rgba(113,128,92,.10), transparent 25rem),
        linear-gradient(145deg, #213f48 0%, #2d453f 52%, #263842 100%);
    border-block: 1px solid rgba(240,195,106,.08);
}

.fc-eyebrow {
    margin: 0 0 12px;
    color: var(--fc-gold-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.3;
    text-transform: uppercase;
}

.fc-display,
.fc-section-heading,
.fc-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.fc-display {
    margin: 0;
    color: var(--fc-cream);
    font-size: clamp(2.35rem, 5.4vw, 4.25rem);
    letter-spacing: 1.5px;
    line-height: 1.07;
    text-wrap: balance;
}

.fc-section-heading {
    margin: 0;
    color: var(--fc-gold-light);
    font-size: clamp(1.8rem, 3.8vw, 2.55rem);
    line-height: 1.18;
    text-wrap: balance;
}

.fc-section-heading--center,
.fc-section-intro--center { text-align: center; }

.fc-section-intro {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--fc-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.fc-section-intro--center { margin-inline: auto; }

/* Image-first hero system.
   Sacred imagery stays visually open; major page titles and descriptive copy live
   below the image in .fc-page-intro. The lower fade blends the photograph into
   twilight blue rather than a brown/black surface. */
.fc-visual-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(350px, 27vw, 440px);
    overflow: hidden;
    background: var(--fc-bg-warm);
}

.fc-visual-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: -2;
}

.fc-visual-hero::before,
.fc-visual-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fc-visual-hero::before {
    background-position: center 40%;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.004);
}

.fc-visual-hero::after {
    background:
        radial-gradient(circle at 78% 22%, rgba(134,175,200,.08), transparent 36%),
        radial-gradient(circle at 45% 76%, rgba(240,195,106,.06), transparent 32%),
        linear-gradient(
            180deg,
            rgba(10,24,31,0.30) 0%,
            rgba(10,24,31,0.07) 30%,
            rgba(10,24,31,0.00) 64%,
            rgba(20,42,53,0.16) 82%,
            rgba(28,55,67,0.66) 94%,
            var(--fc-bg-warm) 100%
        );
}

.fc-visual-hero--christ::before { background-image: url('assets/heroes/home.webp'); }
.fc-visual-hero--history::after {
    background:
        linear-gradient(
            180deg,
            rgba(12,29,36,0.28) 0%,
            rgba(12,29,36,0.04) 52%,
            rgba(45,56,50,0.22) 82%,
            var(--fc-bg-warm) 100%
        );
}

.fc-page-intro {
    margin-top: -1px;
    padding: clamp(24px, 3.2vw, 38px) 0 clamp(30px, 4vw, 46px);
    background:
        radial-gradient(circle at 50% 0%, rgba(240,195,106,.085), transparent 24rem),
        radial-gradient(circle at 92% 40%, rgba(134,175,200,.09), transparent 25rem),
        linear-gradient(180deg, #1c3743 0%, #19323e 100%);
    text-align: center;
    border-bottom: 1px solid rgba(134,175,200,.10);
}

.fc-page-intro .fc-display {
    max-width: 940px;
    margin-inline: auto;
    color: var(--fc-cream);
}

.fc-page-intro-copy {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--fc-text);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.76;
}

.fc-page-intro-scripture {
    display: inline-block;
    margin-top: 14px;
    color: var(--fc-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.94rem;
    font-style: italic;
    line-height: 1.6;
}

.fc-page-intro .fc-actions { margin-top: 22px; }

.fc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--fc-gap);
}
.fc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fc-card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(134,175,200,.085), transparent 15rem),
        linear-gradient(145deg, rgba(34,66,78,0.90), rgba(24,49,60,0.94));
    color: var(--fc-text);
    box-shadow: 0 10px 32px rgba(5,17,23,0.18);
}

.fc-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--fc-sky), var(--fc-gold));
    opacity: .72;
}

.fc-card--interactive {
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.fc-card--interactive:hover,
.fc-card--interactive:focus-visible {
    transform: translateY(-3px);
    border-color: var(--fc-line-strong);
    background:
        radial-gradient(circle at 100% 0%, rgba(240,195,106,.11), transparent 15rem),
        linear-gradient(145deg, rgba(40,75,87,0.96), rgba(27,55,66,0.98));
    box-shadow: 0 16px 40px rgba(5,17,23,0.28);
    outline: none;
}

.fc-card-title {
    margin: 0 0 10px;
    color: var(--fc-gold-light);
    font-size: 1.35rem;
    line-height: 1.28;
}
.fc-card p { margin: 0; color: var(--fc-muted); line-height: 1.7; }

.fc-notice {
    padding: 18px 20px;
    border-left: 3px solid var(--fc-sage-light);
    background:
        linear-gradient(90deg, rgba(113,128,92,.14), rgba(134,175,200,.055));
    color: #d8ddd0;
    line-height: 1.68;
}

.fc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
}
.fc-actions--center { justify-content: center; }

.fc-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 21px;
    border: 1px solid var(--fc-sky);
    border-radius: 999px;
    background: rgba(134,175,200,.045);
    color: #dcebf2 !important;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.fc-button:hover,
.fc-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(134,175,200,.14);
    border-color: #b8d1df;
    color: var(--fc-cream) !important;
    outline: none;
}
.fc-button--primary {
    border-color: var(--fc-gold);
    background: var(--fc-gold);
    color: #1d2a2e !important;
}
.fc-button--primary:hover,
.fc-button--primary:focus-visible {
    border-color: var(--fc-gold-light);
    background: var(--fc-gold-light);
    color: #18262b !important;
}

.fc-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(134,175,200,0.28);
    border-radius: 999px;
    background: rgba(134,175,200,.04);
    color: #c9d6d8;
    font-size: 0.79rem;
    line-height: 1.25;
}

.fc-divider {
    height: 1px;
    margin: clamp(28px, 5vw, 48px) 0;
    background: linear-gradient(90deg, transparent, rgba(240,195,106,.34), rgba(134,175,200,.28), transparent);
}

.fc-quote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--fc-gold);
    color: #e5ddcf;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    line-height: 1.8;
}

.fc-footer,
footer[data-focuschrist-footer="standard"] {
    padding: 38px 20px;
    border-top: 1px solid rgba(134,175,200,.16);
    background:
        radial-gradient(circle at 50% 0%, rgba(82,123,150,.10), transparent 28rem),
        #0d1d25;
    color: var(--fc-faint);
    font-size: 0.82rem;
    line-height: 1.65;
    text-align: center;
}
.fc-footer p,
footer[data-focuschrist-footer="standard"] p {
    max-width: 920px;
    margin: 8px auto;
}
.fc-footer a,
footer[data-focuschrist-footer="standard"] a { color: var(--fc-gold-light); }

/* About-page light interval: warm parchment creates visual breathing room without
   changing the page structure or independence wording. */
section[data-focuschrist-independence="about"] {
    background:
        radial-gradient(circle at 90% 0%, rgba(224,170,62,.16), transparent 22rem),
        radial-gradient(circle at 10% 100%, rgba(134,175,200,.12), transparent 24rem),
        linear-gradient(145deg, #fff2dc 0%, #f5e4c8 100%);
    color: #19313f;
    border-block: 1px solid rgba(56,37,28,.10);
}
section[data-focuschrist-independence="about"] .fc-container--standard {
    color: #19313f;
}
section[data-focuschrist-independence="about"] .fc-notice {
    border-left-color: #71805c;
    background: rgba(113,128,92,.10);
    color: #2b3b36;
}
section[data-focuschrist-independence="about"] .fc-notice strong {
    color: #19313f;
}
section[data-focuschrist-independence="about"] .fc-button {
    border-color: #527b96;
    background: rgba(82,123,150,.06);
    color: #234b61 !important;
}
section[data-focuschrist-independence="about"] .fc-button:hover,
section[data-focuschrist-independence="about"] .fc-button:focus-visible {
    border-color: #19313f;
    background: rgba(82,123,150,.13);
    color: #19313f !important;
}
section[data-focuschrist-independence="about"] .fc-button--primary {
    border-color: #e0aa3e;
    background: #e0aa3e;
    color: #1d2a2e !important;
}
section[data-focuschrist-independence="about"] .fc-button--primary:hover,
section[data-focuschrist-independence="about"] .fc-button--primary:focus-visible {
    border-color: #b87d24;
    background: #f0c36a;
    color: #1d2a2e !important;
}

/* Shared study-journey controls. */
#ask-question { scroll-margin-top: 105px; }
.ask-conversation-reset {
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid rgba(134,175,200,.46);
    border-radius: 999px;
    background: rgba(134,175,200,.06);
    color: #d8e9f1;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.ask-conversation-reset:hover,
.ask-conversation-reset:focus-visible {
    transform: translateY(-1px);
    border-color: var(--fc-gold-light);
    background: rgba(240,195,106,.12);
    color: var(--fc-cream);
    outline: none;
}
.ask-conversation-reset--fallback {
    display: block;
    margin: 0 auto 14px;
}
.ask-followup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 9px;
}

.fc-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .fc-grid,
    .fc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .fc-container,
    .fc-container--reading,
    .fc-container--standard,
    .fc-container--wide,
    .fc-container--gallery { width: calc(100% - 28px); }

    .fc-visual-hero { min-height: 300px; }
    .fc-visual-hero::before { background-position: center 40%; }
    .fc-page-intro { padding: 24px 0 30px; }
    .fc-display { font-size: clamp(2rem, 11vw, 3.05rem); }
    .fc-grid,
    .fc-grid--2,
    .fc-grid--4 { grid-template-columns: 1fr; }
    .fc-actions { align-items: stretch; }
    .fc-button { width: 100%; }
    .ask-followup-actions { justify-content: stretch; }
    .ask-followup-actions .ask-conversation-reset { width: 100%; }
}

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