/* ============================================================
   Jesus Le R.O.C. / Jesus The R.O.C.
   Modern ministry design — warm cream, serif + sans, soft cards
   ============================================================ */

:root {
    /* Warm neutral palette */
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --surface-soft: #F5F1EA;
    --border: #E8E2D6;
    --border-soft: #F0ECE3;

    /* Text */
    --text: #1F1A15;
    --text-secondary: #4A4238;
    --text-muted: #7A7268;
    --text-light: #9A9288;

    /* Accent: warm amber/gold */
    --amber: #B08030;
    --amber-hover: #92651F;
    --amber-soft: #FDF7E8;
    --amber-soft-border: #F2E5C2;
    --amber-text: #6B4618;

    /* Dark card */
    --dark: #1F1A15;
    --dark-soft: #2D2820;
    --dark-text-secondary: #B5ADA0;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container: 1120px;
    --container-narrow: 760px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.005em;
}

::selection { background: rgba(176, 128, 48, 0.2); }

.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--dark); color: #fff;
    padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
    z-index: 1000; font-size: 0.85rem;
}
.skip-link:focus { top: 0; color: #fff; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container--narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Eyebrow label */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.75rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--dark-text-secondary); }

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo { display: block; color: var(--text); }
.site-logo:hover { color: var(--text); }
.logo-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
}
.site-nav .nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
    align-items: center;
}
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link--lang { color: var(--amber); font-weight: 500; }
.nav-link--lang:hover { color: var(--amber-hover); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(31,26,21,0.08);
    border: 1px solid var(--border);
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    max-width: 520px;
}
.hero-body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 460px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn--small { font-size: 0.85rem; padding: 0.5rem 1rem; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-soft); color: #fff; transform: translateY(-1px); }
.btn--light {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}
.btn--light:hover { background: var(--surface-soft); color: var(--text); transform: translateY(-1px); }
.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--outline:hover { background: var(--surface-soft); color: var(--text); }
.btn--amber { background: var(--amber-soft); color: var(--amber-text); }
.btn--amber:hover { background: #F2E5C2; color: var(--amber-text); }
.btn--white { background: #fff; color: var(--dark); }
.btn--white:hover { background: var(--surface-soft); color: var(--dark); transform: translateY(-1px); }

/* ============================================================
   MISSION
   ============================================================ */
.mission {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    text-align: center;
}
.mission-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 720px;
    margin: 1.25rem auto 0;
}

/* ============================================================
   QUICK LINK CARDS
   ============================================================ */
.quick-links {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.link-card {
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}
/* Pastel backgrounds — each card has its own hue */
.link-card--devotions {
    background: #E3E9D9; /* soft sage */
    --card-icon-color: #6B7953;
}
.link-card--prayer {
    background: #F2DDD3; /* soft peach */
    --card-icon-color: #B8674A;
}
.link-card--youth {
    background: #DCE5EA; /* soft dusty blue */
    --card-icon-color: #4D6B80;
}
.link-card-icon {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--card-icon-color, var(--amber));
    margin-bottom: 1rem;
}
.link-card-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.link-card-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
/* Push button to the bottom of the card */
.link-card-btn {
    margin-top: auto;
    align-self: flex-start;
    background: rgba(255,255,255,0.6);
    border-color: transparent;
}
.link-card-btn:hover {
    background: #fff;
    color: var(--text);
}

/* ============================================================
   LATEST REFLECTIONS
   ============================================================ */
.latest {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}
.latest-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.reflection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.reflection-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(31,26,21,0.03);
    display: flex;
    flex-direction: column;
}
.reflection-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.reflection-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}
.reflection-title a { color: var(--text); }
.reflection-title a:hover { color: var(--amber); }
.reflection-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ============================================================
   PRAYER CTA
   ============================================================ */
.prayer-cta {
    margin: 1rem 1.5rem 3rem;
    padding: 2.5rem 1.75rem;
    background: var(--dark);
    color: #fff;
    border-radius: 32px;
}
@media (min-width: 640px) {
    .prayer-cta {
        padding: 3rem 2.75rem;
        margin-left: auto;
        margin-right: auto;
        max-width: calc(var(--container) - 3rem);
    }
}
.prayer-cta .eyebrow { color: var(--dark-text-secondary); }
.prayer-cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.15;
    max-width: 560px;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
.prayer-cta-body {
    color: var(--dark-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 1.75rem;
}

/* ============================================================
   SPLIT (Gospel/Gifts)
   ============================================================ */
.split {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.split-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(31,26,21,0.03);
}
.split-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.split-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================================
   SECTION / ARTICLE PAGES
   ============================================================ */
.section-page-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    margin-bottom: 2rem;
    padding-top: 2rem;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.section-featured {
    max-width: var(--container-narrow);
    margin: 0 auto 2rem;
    padding: 0 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
}
.section-featured .article-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.3rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}
.section-featured .article-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.section-all-list {
    max-width: var(--container-narrow);
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}
.section-all-count {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: normal;
    text-transform: none;
    margin-left: 0.5rem;
}

.article-list { display: flex; flex-direction: column; }
.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--amber); }
.card-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--amber); }

/* Article detail */
.article-page { padding: 2rem 0 0; }
.article-header {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.article-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.article-body {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.prose {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
.prose p { margin: 0; }
.prose h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: var(--text);
}
.prose h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    color: var(--text);
}
.prose strong { font-weight: 600; color: var(--text); }
.prose blockquote {
    border-left: 3px solid var(--amber);
    padding: 0.75rem 1.25rem;
    margin: 1.5em 0;
    background: var(--amber-soft);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: 8px; margin: 1.5em 0; }
.prose a {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--amber-hover); }

.prose .ql-size-huge { font-size: 1.8em; }
.prose .ql-size-large { font-size: 1.4em; }
.prose .ql-size-small { font-size: 0.85em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 3em; }
.prose .ql-indent-2 { padding-left: 6em; }

.article-nav {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.article-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s;
}
.article-nav-link:hover { border-color: var(--amber); color: var(--text); }
.article-nav-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber);
    margin-bottom: 0.3rem;
}
.article-nav-title {
    display: block;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.3;
}
.article-nav-next { text-align: right; }

/* Prayer request CTA (on prayers section + articles) */
.prayer-request-cta {
    max-width: var(--container-narrow);
    margin: 2rem auto;
    padding: 2rem;
    background: var(--amber-soft);
    border: 1px solid var(--amber-soft-border);
    border-radius: 24px;
    text-align: center;
}
.prayer-request-cta .eyebrow {
    margin-bottom: 0.5rem;
    color: var(--amber-hover);
}
.prayer-request-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}
@media (max-width: 640px) {
    .prayer-request-cta {
        margin: 2rem 1.5rem;
        padding: 1.5rem;
    }
}

.breadcrumb {
    max-width: var(--container-narrow);
    margin: 1rem auto 2rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { margin: 0 0.4rem; opacity: 0.5; }
.breadcrumb-current { color: var(--text-muted); opacity: 0.7; }
.section-hero, .section-hero-title, .section-hero-count { display: none; }

.home-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.pagination-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.pagination-link:hover { background: var(--surface-soft); }
.pagination-link.disabled {
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.5;
}
.pagination-info {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.not-found-page { padding: 5rem 1.5rem; text-align: center; }
.not-found-code {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 500;
    color: var(--border);
    line-height: 1;
}
.not-found-title { font-size: 1.4rem; margin-top: 0.8rem; }
.not-found-message { color: var(--text-muted); margin: 0.8rem 0 2rem; }
.btn-primary {
    background: var(--dark);
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    display: inline-block;
}
.btn-primary:hover { background: var(--dark-soft); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--amber);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 360px;
}
.footer-heading {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 0;
    text-transform: none;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--amber); }
.footer-address p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-address a { color: var(--text-secondary); }
.footer-address a:hover { color: var(--amber); }

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    .hero-actions .btn { min-width: 190px; text-align: center; }
    .article-nav-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.15fr 1fr;
        padding: 4rem 1.5rem 5rem;
        gap: 3.5rem;
    }
    .mission { padding: 3rem 1.5rem 4rem; }
    .quick-links { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .link-card { padding: 2rem; }
    .latest-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    .reflection-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .reflection-card { padding: 2rem; }
    .footer-inner { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 1024px) {
    .hero { padding: 5rem 1.5rem 6rem; gap: 4rem; }
    .prose { font-size: 1.1rem; }
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 1rem;
    font-style: italic;
}
