/* Crescent homepage update (index.php only). Loaded after the page's inline
   styles so these rules win.
   Palette: charcoal #2B2E31, silver #A8A9AB, light silver #E4E5E6, mist #EEEEEC,
   body text #3D4044. No gold, no dusty rose, no background pattern. */

.cr-section-heading {
    margin: 0 0 40px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cr-silver-light);
    color: var(--cr-charcoal);
    font-size: clamp(36px, 3.4vw, 50px);
    font-weight: 400;
    line-height: 1.1;
}

/* ---------- Our Purpose ---------- */
.cr-purpose {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #fff;
}

.cr-purpose__grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(320px, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.cr-purpose__media {
    box-shadow: 0 28px 60px rgba(43, 46, 49, 0.18);
}

.cr-purpose__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 760 / 640;
    object-fit: cover;
}

.cr-purpose__statement {
    margin: 0;
    color: var(--cr-charcoal);
    font-size: clamp(36px, 3.6vw, 54px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.15;
}

.cr-purpose__rule {
    display: block;
    width: 64px;
    height: 1px;
    margin: 32px 0;
    background: var(--cr-silver);
}

.cr-purpose__lead {
    margin: 0 0 36px;
    color: var(--cr-body);
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.6;
}

.cr-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--cr-charcoal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cr-link-arrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--cr-charcoal);
    border-radius: 50%;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.cr-link-arrow span svg {
    width: 16px;
    height: 16px;
}

.cr-link-arrow:hover span {
    background: var(--cr-charcoal);
    color: #fff;
}

.cr-link-arrow:hover span svg,
.cr-link-arrow:hover span svg path {
    color: #fff !important;
    stroke: #fff !important;
}

/* ---------- Map section ---------- */
section#services-2 {
    background: #fff;
}

.productcover-section .cg-map-impact .tp-section-4-title,
.productcover-section .cg-map-impact h4 {
    color: var(--cr-charcoal);
}

.productcover-section .cg-map-impact .cg-impact__copy {
    color: var(--cr-body);
    font-size: 22px;
    line-height: 1.7;
}

/* Brand map markers: round white badge with the Crescent pyramid */
.productcover-section .hotspot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    line-height: 1;
    border: 2px solid var(--cr-charcoal);
    background: #fff;
    box-shadow: 0 4px 14px rgba(43, 46, 49, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.productcover-section .hotspot .eff1,
.productcover-section .hotspot .eff2 {
    display: none;
}

.productcover-section .hotspot .cr-pin {
    width: 22px;
    height: 22px;
}

.productcover-section .hotspot-wrapper:hover .hotspot,
.productcover-section .hotspot-wrapper:focus-within .hotspot,
.productcover-section .hotspot.active {
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(43, 46, 49, 0.4);
}

@media (max-width: 767px) {
    .productcover-section .hotspot {
        width: 32px;
        height: 32px;
        line-height: 1;
    }

    .productcover-section .hotspot .cr-pin {
        width: 18px;
        height: 18px;
    }
}

/* ---------- Stats ---------- */
.cr-stats {
    padding: clamp(50px, 6vw, 80px) 0;
    background: var(--cr-mist);
}

.cr-stats__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #c9cacc;
}

.cr-stat {
    padding: 36px 32px 8px;
}

.cr-stat + .cr-stat {
    border-left: 1px solid #c9cacc;
}

.cr-stat strong {
    display: block;
    margin-bottom: 14px;
    color: var(--cr-charcoal);
    font-size: clamp(52px, 5.4vw, 84px);
    font-weight: 400;
    line-height: 1;
}

.cr-stat__label {
    display: block;
    max-width: 260px;
    color: var(--cr-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.6;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .cr-stats__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cr-stat:nth-child(odd) {
        border-left: 0;
    }

    .cr-stat:nth-child(n + 3) {
        border-top: 1px solid #c9cacc;
    }
}

@media (max-width: 575px) {
    .cr-stat {
        padding: 28px 16px 8px;
    }
}

/* ---------- Our Projects (cards stack as you scroll) ---------- */
.cr-projects {
    padding: clamp(60px, 7vw, 100px) 0 0;
    background: #fff;
}

.cr-projects .tp-project-4-item-wrapper.cr-projects__panel {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 40px 0 120px;
    border: 0;
    background: #fff;
}

.cr-projects__panel > .container {
    width: 100%;
}

.cr-pcard {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    border: 1px solid var(--cr-silver-light);
    background: #fff;
    box-shadow: 0 24px 60px rgba(43, 46, 49, 0.1);
}

.cr-pcard__media {
    display: block;
    overflow: hidden;
}

.cr-pcard__media img {
    display: block;
    width: 100%;
    height: min(640px, calc(100vh - 280px));
    min-height: 420px;
    object-fit: cover;
}

.cr-pcard__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 3.6vw, 56px);
}

.cr-pcard__status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    color: var(--cr-charcoal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cr-pcard__status::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cr-silver-light);
}

.cr-pcard__title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.8vw, 42px);
    font-weight: 400;
    line-height: 1.12;
}

.cr-pcard__title a {
    color: var(--cr-charcoal);
}

.cr-pcard__desc {
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cr-silver-light);
    color: var(--cr-body);
    font-size: 19px;
    line-height: 1.6;
}

.cr-pcard__list {
    margin: 0 0 30px;
}

.cr-pcard__list > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.cr-pcard__list dt {
    color: #6f7276;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 2.2;
    text-transform: uppercase;
}

.cr-pcard__list dd {
    margin: 0;
    color: var(--cr-charcoal);
    font-size: 19px;
    line-height: 1.5;
}

.cr-pcard__map {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--cr-charcoal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cr-pcard__map svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 5px;
}

.cr-pcard__cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 16px;
    color: var(--cr-charcoal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.cr-pcard__cta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cr-charcoal);
    color: #fff;
    transition: transform 0.25s ease;
}

.cr-pcard__cta i svg {
    width: 16px;
    height: 16px;
    color: #fff !important;
}

.cr-pcard__cta i svg path {
    stroke: #fff !important;
}

.cr-pcard__cta:hover i {
    transform: translateX(4px);
}

/* Sits above the pinned cards so it is always reachable at the end */
.cr-projects__more {
    position: relative;
    z-index: 20;
    padding: 36px 0 90px;
    background: #fff;
    text-align: center;
}

.cr-btn-outline {
    display: inline-block;
    padding: 18px 40px;
    border: 1px solid var(--cr-charcoal);
    color: var(--cr-charcoal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.cr-btn-outline:hover,
.cr-btn-outline:focus-visible {
    background: var(--cr-charcoal);
    color: #fff !important;
}

@media (max-width: 1199px) {
    .cr-pcard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .cr-pcard__media img {
        min-height: 360px;
    }
}

@media (max-width: 991px) {
    .cr-purpose__grid {
        grid-template-columns: 1fr;
    }

    .cr-projects .tp-project-4-item-wrapper.cr-projects__panel {
        min-height: 0;
        padding: 0 0 36px;
    }

    .cr-pcard {
        grid-template-columns: 1fr;
    }

    .cr-pcard__media img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 575px) {
    .cr-pcard__list > div {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}