/*
Theme Name: Coastal Praise Divi Child
Theme URI: https://coastalpraise.com
Description: Divi child theme for the Coastal Praise worship initiative.
Author: Coastal Praise
Template: Divi
Version: 1.4.0
Text Domain: coastalpraise
*/

:root {
    --cp-ink: #14252b;
    --cp-water: #087a86;
    --cp-sea: #68a99c;
    --cp-sun: #d6a23a;
    --cp-clay: #b85f49;
    --cp-cloud: #edf6f2;
    --cp-shell: #fff7ea;
    --cp-white: #ffffff;
    --cp-line: rgba(20, 37, 43, 0.12);
}

body {
    color: var(--cp-ink);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--cp-ink);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

a {
    color: var(--cp-water);
}

.cp-wrap {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 clamp(20px, 4vw, 56px);
}

.cp-hero {
    background:
        linear-gradient(95deg, rgba(20, 37, 43, 0.92), rgba(8, 122, 134, 0.68)),
        url("assets/coastal-hero.svg") center/cover;
    color: #ffffff;
    min-height: 88vh;
    padding: clamp(92px, 12vw, 166px) 0 clamp(58px, 8vw, 98px);
}

.cp-hero__kicker,
.cp-kicker {
    color: var(--cp-sun);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.cp-hero h1 {
    color: #ffffff;
    font-size: clamp(2.85rem, 7.3vw, 6.6rem);
    line-height: 0.96;
    margin: 0;
    max-width: 1040px;
}

.cp-hero__copy {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.72;
    margin: 28px 0 34px;
    max-width: 760px;
}

.cp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cp-button {
    align-items: center;
    background: var(--cp-sun);
    border: 2px solid var(--cp-sun);
    border-radius: 999px;
    color: var(--cp-ink);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    text-decoration: none;
}

.cp-button:hover {
    color: var(--cp-ink);
    transform: translateY(-1px);
}

.cp-button--ghost {
    background: transparent;
    color: #ffffff;
}

.cp-button--ghost:hover {
    color: #ffffff;
}

.cp-band {
    padding: clamp(58px, 8vw, 104px) 0;
}

.cp-band--cloud {
    background: var(--cp-cloud);
}

.cp-band--shell {
    background: var(--cp-shell);
}

.cp-band--join {
    background:
        linear-gradient(110deg, rgba(20, 37, 43, 0.94), rgba(8, 122, 134, 0.84)),
        url("assets/coastal-hero.svg") center/cover;
}

.cp-band--join .cp-section-title,
.cp-band--join .cp-lede {
    color: #ffffff;
}

.cp-section-title {
    font-size: clamp(2.1rem, 4vw, 4.15rem);
    line-height: 1;
    margin: 0 0 18px;
}

.cp-lede {
    color: #465962;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 22px;
}

.cp-split {
    align-items: center;
    display: grid;
    gap: clamp(30px, 5vw, 72px);
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.cp-command-panel,
.cp-map-panel {
    background: #ffffff;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(20, 37, 43, 0.1);
    padding: clamp(28px, 4vw, 46px);
}

.cp-command-panel {
    display: grid;
    gap: 18px;
}

.cp-command-panel__row {
    align-items: start;
    border-bottom: 1px solid var(--cp-line);
    display: grid;
    gap: 16px;
    grid-template-columns: 54px 1fr;
    padding-bottom: 18px;
}

.cp-command-panel__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cp-command-panel__row span {
    color: var(--cp-clay);
    font-weight: 900;
}

.cp-command-panel__row strong {
    color: var(--cp-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1.18;
}

.cp-map-panel__stat {
    border-bottom: 1px solid rgba(16, 40, 50, 0.1);
    padding: 18px 0;
}

.cp-map-panel__stat:first-child {
    padding-top: 0;
}

.cp-map-panel__stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cp-map-panel strong {
    color: var(--cp-water);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.cp-map-panel span {
    color: #50616a;
    display: block;
    font-weight: 800;
    margin-top: 6px;
}

.cp-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-grid--four {
    margin-top: 28px;
}

.cp-feature {
    background: #ffffff;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    padding: 26px;
}

.cp-feature h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    margin: 0 0 10px;
}

.cp-feature p {
    color: #4c5f68;
    line-height: 1.65;
    margin: 0;
}

.cp-sister-link {
    background: var(--cp-ink);
    color: #ffffff;
    padding: clamp(44px, 7vw, 78px) 0;
}

.cp-sister-link h2,
.cp-sister-link p {
    color: #ffffff;
}

.cp-text-link {
    color: var(--cp-water);
    display: inline-flex;
    font-weight: 900;
    margin-top: 12px;
    text-decoration: none;
}

.cp-text-link--spaced {
    margin-left: 18px;
}

.cp-join-strip {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr auto;
}

.cp-page-hero {
    background:
        linear-gradient(105deg, rgba(20, 37, 43, 0.94), rgba(8, 122, 134, 0.72)),
        url("assets/coastal-hero.svg") center/cover;
    color: #ffffff;
    padding: clamp(88px, 12vw, 150px) 0 clamp(54px, 8vw, 88px);
}

.cp-page-hero h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    line-height: 1;
    margin: 0;
    max-width: 980px;
}

.cp-page-hero .cp-lede {
    color: rgba(255, 255, 255, 0.9);
    max-width: 780px;
}

.cp-page-hero__inner {
    display: grid;
    gap: 18px;
}

.cp-join-layout {
    align-items: start;
    display: grid;
    gap: clamp(28px, 5vw, 70px);
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.cp-join-main,
.cp-checklist,
.cp-form-placeholder,
.cp-process-grid article {
    background: #ffffff;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(20, 37, 43, 0.08);
}

.cp-join-main,
.cp-checklist {
    padding: clamp(26px, 4vw, 44px);
}

.cp-form-placeholder {
    background: var(--cp-cloud);
    border-style: dashed;
    margin-top: 28px;
    padding: 26px;
}

.cp-form-placeholder h3 {
    font-size: 1.55rem;
    margin: 0 0 8px;
}

.cp-form-placeholder p {
    color: #4c5f68;
    margin: 0;
}

.cp-join-fallback {
    margin-top: 18px;
}

.cp-join-fallback p {
    margin: 0 0 16px;
}

.cp-checklist h2 {
    font-size: clamp(1.55rem, 2.3vw, 2.1rem);
    margin: 0 0 18px;
}

.cp-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cp-checklist li {
    border-top: 1px solid var(--cp-line);
    color: #42545d;
    font-weight: 700;
    line-height: 1.5;
    padding: 14px 0;
}

.cp-checklist li:first-child {
    border-top: 0;
    padding-top: 0;
}

.cp-process-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-process-grid article {
    padding: 28px;
}

.cp-process-grid span {
    color: var(--cp-clay);
    display: block;
    font-weight: 900;
    margin-bottom: 16px;
}

.cp-process-grid h2 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.15;
    margin: 0 0 12px;
}

.cp-process-grid p {
    color: #4c5f68;
    line-height: 1.65;
    margin: 0;
}

.cp-single__body {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.cp-single__image {
    border-radius: 8px;
    overflow: hidden;
}

.cp-single__image img {
    display: block;
    height: auto;
    width: 100%;
}

.cp-content {
    background: #ffffff;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    line-height: 1.75;
    padding: clamp(24px, 4vw, 42px);
}

.cp-profile-layout {
    align-items: stretch;
    display: grid;
    gap: clamp(28px, 5vw, 70px);
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
}

.cp-profile-card,
.cp-profile-story {
    background: #ffffff;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(20, 37, 43, 0.08);
    padding: clamp(28px, 4vw, 48px);
}

.cp-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cp-profile-card__photo {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    height: auto;
    margin-bottom: 24px;
    object-fit: cover;
    width: 96px;
}

.cp-profile-card h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    margin: 0 0 16px;
}

.cp-profile-card p {
    color: #42545d;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 24px;
}

.cp-profile-story {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 242, 0.96)),
        url("assets/coastal-hero.svg") center/cover;
}

@media (max-width: 1000px) {
    .cp-grid,
    .cp-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-join-layout,
    .cp-profile-layout,
    .cp-single__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cp-split,
    .cp-grid,
    .cp-process-grid,
    .cp-join-strip {
        grid-template-columns: 1fr;
    }

    .cp-hero {
        min-height: auto;
    }

    .cp-button {
        width: 100%;
    }

    .cp-text-link--spaced {
        margin-left: 0;
    }
}
