/**
 * Cedar Creek – Process Steps Widget
 * Front-end styles — mirrors the "From Vision to Reality" mockup.
 *
 * BEM class convention: .cc-process__*
 * All colours that are editable via Elementor controls use CSS custom properties
 * or are overridden directly by Elementor's generated selectors.
 */

/* ── FONTS (loaded only if not already in the theme) ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@600;700&display=swap');

/* ── SECTION WRAPPER ─────────────────────────────────────────────────── */
.cc-process {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #0d1f35; /* overridden by Elementor colour control */
}

/* Watermark / background image overlay */
.cc-process__bg-img {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ── INNER CONTAINER ─────────────────────────────────────────────────── */
.cc-process__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ── HEADER ──────────────────────────────────────────────────────────── */
.cc-process__header {
    text-align: center;
    margin-bottom: 64px;
}

.cc-process__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c8a84b;
    margin-bottom: 14px;
}

.cc-process__eyebrow-line {
    display: block;
    width: 32px;
    height: 2px;
    background-color: #c8a84b;
    flex-shrink: 0;
}

.cc-process__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
}

/* The <em> inside the title gets the accent colour */
.cc-process__title em {
    color: #c8a84b;
    font-style: normal;
}

.cc-process__subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
}

/* ── STEPS GRID ──────────────────────────────────────────────────────── */
.cc-process__steps {
    display: grid;
    grid-template-columns: repeat(var(--step-count, 5), 1fr);
    gap: 0;
    position: relative;
}

/* Horizontal connector line sits behind all the icon circles.
   We use a real element (not ::before) so Elementor colour selectors work. */
.cc-process__connector {
    position: absolute;
    top: 36px;                /* vertically centred on the icon circles */
    left: calc(100% / (var(--step-count, 5) * 2));
    right: calc(100% / (var(--step-count, 5) * 2));
    height: 2px;
    background: linear-gradient(to right, transparent, #c8a84b, transparent);
    z-index: 0;
    pointer-events: none;
}

/* ── SINGLE STEP ─────────────────────────────────────────────────────── */
.cc-process__step {
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* Icon circle */
.cc-process__step-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #c8a84b;
    border-style: solid;
    background-color: #162d47;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 0 0 8px rgba(200, 168, 75, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cc-process__step:hover .cc-process__step-icon-wrap {
    transform: translateY(-4px);
    box-shadow: 0 0 0 12px rgba(200, 168, 75, 0.12);
}

/* FontAwesome icon inside the circle */
.cc-process__step-icon-wrap i,
.cc-process__step-icon-wrap svg {
    font-size: inherit;
    color: #c8a84b;
    width: 1em;
    height: 1em;
}

/* Step number label */
.cc-process__step-num {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c8a84b;
    margin-bottom: 8px;
}

/* Step title */
.cc-process__step-title {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Step description */
.cc-process__step-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

/* Time badge */
.cc-process__step-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid rgba(200, 168, 75, 0.25);
    background: rgba(200, 168, 75, 0.12);
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #c8a84b;
}

.cc-process__badge-icon {
    font-size: 12px;
    line-height: 1;
}

/* ── CTA BUTTON ──────────────────────────────────────────────────────── */
.cc-process__cta-wrap {
    text-align: center;
    margin-top: 60px;
}

.cc-process__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c8a84b;
    color: #0d1f35;
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 15px 36px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cc-process__cta-btn:hover {
    background-color: #e0c06a;
    transform: translateY(-2px);
    color: #0d1f35;
    text-decoration: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */

/* Tablet: 2 or 3 columns */
@media (max-width: 1024px) {
    .cc-process__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 0;
        --step-count: 3; /* approximate connector width */
    }
    .cc-process__connector {
        display: none; /* connector line doesn't make sense on multi-row */
    }
}

@media (max-width: 767px) {
    .cc-process__inner {
        padding: 0 24px;
    }
    .cc-process__steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px 16px;
    }
    .cc-process__step {
        padding: 0 8px;
    }
    .cc-process__title {
        font-size: 28px;
    }
    .cc-process__subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cc-process__steps {
        grid-template-columns: 1fr;
        gap: 40px 0;
    }
}
