/* ============================================
   CONTAGIOUS JOY — GLOBAL THEME STYLES
   Gentle Grace color scheme
   ============================================ */

:root {
    --bg:          #FDF8F0;
    --surface:     #FFFFFF;
    --primary:     #B5646A;
    --primary-dk:  #9A5258;
    --secondary:   #8FA68A;
    --secondary-dk:#7A9175;
    --accent:      #A89080;
    --text:        #2C2321;
    --muted:       #8C7E76;
    --border:      #E8E0D8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--text);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 8px;
    padding: 6px 8px;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: var(--bg);
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    opacity: 1;
    color: var(--secondary);
}

.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

/* Hamburger (CSS-only) */
.nav-toggle { display: none; }
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bg);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #B5646A 0%, #d4939a 25%, #A89080 50%, #c4b0a4 75%, #8FA68A 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

@media (min-width: 1500px) {
    .hero-image img {
        object-position: center top;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(44, 35, 33, 0.45) 0%,
        rgba(44, 35, 33, 0.55) 60%,
        rgba(44, 35, 33, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 720px;
}

.hero-logo {
    max-width: 360px;
    width: 80%;
    height: auto;
    margin-bottom: 16px;
    background: rgba(253, 248, 240, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 400;
    color: var(--bg);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-content .hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(253, 248, 240, 0.9);
    margin-bottom: 36px;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* SVG wave at bottom of hero */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 12px 28px;
    border-radius: 24px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dk);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--secondary-dk);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: var(--bg);
    border-color: var(--bg);
}
.btn-outline-light:hover {
    background: var(--bg);
    color: var(--text);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: #968070;
}

/* ============================================
   CONTENT BODY (overlaps hero)
   ============================================ */
.content-body {
    position: relative;
    z-index: 4;
    max-width: 1100px;
    margin: -180px auto 0;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(44, 35, 33, 0.08);
    padding: 64px 56px 48px;
}

/* ============================================
   SCRIPTURE / QUOTE BLOCK
   ============================================ */
.scripture-block {
    margin-bottom: 56px;
}

.scripture-block blockquote {
    border-left: 3px solid var(--secondary);
    padding: 28px 36px;
    background: var(--bg);
    border-radius: 0 12px 12px 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.5;
}

.scripture-block blockquote cite {
    display: block;
    margin-top: 12px;
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text);
    color: var(--bg);
    padding: 56px 32px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg);
    margin-bottom: 16px;
}

.footer p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact-item {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 240, 0.1);
    text-align: center;
    padding: 20px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--muted);
}

/* wp_nav_menu resets for footer */
.footer .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .menu li {
    margin-bottom: 8px;
}

.footer .menu a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer .menu a:hover {
    color: var(--secondary);
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome {
    text-align: center;
    margin-bottom: 56px;
}

.welcome h2 {
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.welcome p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================
   FANNED ARC CARD ROW
   ============================================ */
.card-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 56px;
    padding: 20px 0 40px;
    perspective: 800px;
}

.card {
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    width: 300px;
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: bottom center;
}

.card:nth-child(1) {
    transform: rotate(-8deg);
    margin-right: -16px;
    z-index: 1;
    box-shadow: -4px 6px 24px rgba(181, 100, 106, 0.15),
                0 4px 16px rgba(44, 35, 33, 0.08);
}

.card:nth-child(2) {
    transform: rotate(0deg);
    z-index: 2;
    box-shadow: 0 8px 28px rgba(143, 166, 138, 0.15),
                0 4px 16px rgba(44, 35, 33, 0.08);
}

.card:nth-child(3) {
    transform: rotate(8deg);
    margin-left: -16px;
    z-index: 1;
    box-shadow: 4px 6px 24px rgba(168, 144, 128, 0.15),
                0 4px 16px rgba(44, 35, 33, 0.08);
}

.card:hover {
    transform: rotate(0deg) scale(1.05) translateZ(20px);
    z-index: 3;
    box-shadow: 0 16px 48px rgba(44, 35, 33, 0.18);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='white' opacity='0.15'/%3E%3C/svg%3E");
}

.card-image--spark {
    background: linear-gradient(135deg, var(--primary) 0%, #d4939a 60%, var(--accent) 100%);
}
.card-image--spread {
    background: linear-gradient(135deg, var(--secondary) 0%, #B8CCAF 60%, #a8c4a0 100%);
}
.card-image--receive {
    background: linear-gradient(135deg, var(--accent) 0%, #c4b0a4 60%, var(--primary) 100%);
}

.card-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.4);
    z-index: 1;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-body .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg);
    border-radius: 16px;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.cta-section .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION CLOSING (note variant of welcome)
   ============================================ */
.section-closing {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin-top: -24px;
    margin-bottom: 56px;
}

/* ============================================
   INLINE QUOTE (inline variant of scripture)
   ============================================ */
.inline-quote {
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--primary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.inline-quote cite {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ============================================
   CHECKLIST (What CJ Groups Do)
   ============================================ */
.what-cj-does {
    background: var(--bg);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
}

.what-cj-does h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.what-cj-does ul {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
}

.what-cj-does li {
    color: var(--text);
    line-height: 1.8;
    padding: 6px 0 6px 28px;
    position: relative;
    font-size: 0.95rem;
}

.what-cj-does li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   KEY QUOTE
   ============================================ */
.key-quote {
    background: var(--bg);
    border-radius: 12px;
    padding: 36px;
    margin: 40px 0;
    text-align: center;
}

.key-quote blockquote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.key-quote cite {
    display: block;
    margin-top: 12px;
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ============================================
   CTA NOTE
   ============================================ */
.cta-section .cta-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
}

/* ============================================
   CALLOUT NOTE
   ============================================ */
.callout-note {
    background: var(--bg);
    border-left: 4px solid var(--secondary);
    border-radius: 0 12px 12px 0;
    padding: 20px 28px;
    margin-bottom: 48px;
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE — SHARED
   ============================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-body {
        margin-top: -270px;
        padding: 48px 32px 36px;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .card-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        perspective: none;
        padding-bottom: 20px;
    }

    .card {
        width: 100%;
        max-width: 340px;
    }

    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3) {
        transform: none;
        margin: 0;
        z-index: auto;
        box-shadow: 0 4px 24px rgba(44, 35, 33, 0.08);
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(44, 35, 33, 0.12);
    }
}

@media (max-width: 768px) {
    /* Mobile floating pill nav */
    .nav {
        position: fixed;
        top: 12px;
        left: 12px;
        right: 12px;
        border-radius: 50px;
        background: var(--bg);
        height: 72px;
        padding: 0 24px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    }

    .nav-logo {
        background: none;
        padding: 0;
    }

    .nav-logo img {
        height: 56px;
    }

    /* Dark hamburger bars on cream background */
    .nav-hamburger {
        display: flex;
    }

    .nav-hamburger span {
        background: var(--text);
    }

    /* Floating dropdown panel */
    .nav-links {
        position: fixed;
        top: 92px;
        left: 12px;
        right: 12px;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav-links.is-open {
        max-height: 320px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(44,35,33,0.08);
    }

    .nav-links a {
        display: block;
        padding: 16px 32px;
        opacity: 1;
        color: var(--text);
    }

    .nav-links a:hover,
    .nav-links .current-menu-item > a,
    .nav-links .current_page_item > a {
        color: var(--accent);
    }

    .nav-links .current-menu-item > a::after,
    .nav-links .current_page_item > a::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image img {
        object-position: 40% 30%;
    }

    .content-body {
        margin: -230px 12px 0;
        padding: 36px 20px 28px;
        border-radius: 16px;
    }

    .scripture-block blockquote {
        padding: 20px 24px;
        font-size: 1.2rem;
    }

    .welcome h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   SECTION LABELS (dev tool — activate via ?labels)
   ============================================ */
body.show-section-labels [data-section-label] {
    position: relative;
}

body.show-section-labels [data-section-label]::before {
    content: attr(data-section-label);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 9999;
    background: rgba(44, 35, 33, 0.85);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    pointer-events: none;
    line-height: 1.4;
    white-space: nowrap;
}

/* Nudge Navigation label below the bar since it's fixed */
body.show-section-labels .nav[data-section-label]::before {
    top: auto;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
}

/* Toggle button */
.section-label-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 10000;
    background: rgba(44, 35, 33, 0.85);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.section-label-toggle:hover {
    background: rgba(44, 35, 33, 1);
}
