/* ============================================================================
   Country landing pages (component/country-page.php).

   Layout follows the conveline.com country pages; colours and type come from
   the Power Hydrotech theme. Everything is scoped to #cpPage.
   ========================================================================== */
#cpPage {
    --cp-accent: var(--accent-color, #f04e30);
    --cp-accent-2: #ff7a45;
    --cp-dark: #231f20;
    --cp-ink: #2b2b2b;
    --cp-muted: #6d6d6d;
    --cp-tint: #faf6f4;
    --cp-line: #ebe6e3;
    color: var(--cp-muted);
}

#cpPage h1, #cpPage h2, #cpPage h3, #cpPage h4 { font-family: var(--accent-font); color: var(--cp-dark); }
#cpPage p { line-height: 1.7; text-align: left; }
#cpPage .cp-head p { text-align: center; }
#cpPage .cp-sec { padding: 80px 0; }
#cpPage .cp-tint { background: var(--cp-tint); }
#cpPage .cp-head { margin-bottom: 44px; }
#cpPage .cp-head h3 { font-size: 42px; margin: 0; color: var(--cp-accent); }
#cpPage .cp-head p { max-width: 820px; margin: 12px auto 0; }
#cpPage .cp-hl { color: var(--cp-accent); }

/* buttons */
#cpPage .cp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 50px; border: 2px solid var(--cp-accent);
    background: transparent; color: var(--cp-accent); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
#cpPage .cp-btn:hover { background: var(--cp-accent); color: #fff; }
#cpPage .cp-btn.cp-fill { background: var(--cp-accent); color: #fff; }
#cpPage .cp-btn.cp-fill:hover { background: var(--cp-dark); border-color: var(--cp-dark); }
#cpPage .cp-btn.cp-light { color: #fff; border-color: #fff; }
#cpPage .cp-btn.cp-light:hover { background: var(--cp-accent); border-color: var(--cp-accent); }
#cpPage .cp-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- hero --------------------------------------------------------------- */
#cpHero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px;
    background: var(--cp-dark) center/cover no-repeat; }
#cpHero::before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(20,17,18,.92) 0%, rgba(20,17,18,.74) 50%, rgba(20,17,18,.35) 100%); }
#cpHero .container { position: relative; z-index: 1; }
#cpHero h1 { font-size: 56px; line-height: 1.1; color: #fff; margin: 0; }
#cpHero .cp-lead { font-size: 19px; color: rgba(255,255,255,.9); margin: 18px 0 0; }
#cpHero .cp-btns { margin-top: 30px; }
#cpHero .cp-cities { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 30px; }
#cpHero .cp-cities p { margin: 0; color: #fff; }
#cpHero .cp-cities i { color: var(--cp-accent-2); margin-right: 6px; }

.cp-hero-card { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255,255,255,.28); border-radius: 20px; padding: 30px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); }
#cpPage .cp-hero-card h3 { font-size: 26px; color: #fff; margin: 0 0 14px; }
.cp-hero-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.cp-hero-card li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; line-height: 1.5; }
.cp-hero-card li:last-child { border-bottom: 0; }
.cp-hero-card li i { color: var(--cp-accent-2); margin-top: 4px; }
.cp-hero-card .cp-btn { width: 100%; justify-content: center; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .cp-hero-card { background: rgba(35,31,32,.88); }
}

/* ---- intro -------------------------------------------------------------- */
#cpIntro h2 { font-size: 40px; margin-bottom: 20px; }
@media (min-width: 992px) { #cpIntro p { text-align: justify; } }
#cpIntro a:not(.cp-btn) { color: var(--cp-accent); }
#cpIntro .cp-intro-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

/* ---- credentials -------------------------------------------------------- */
#cpStats { position: relative; padding: 0; }
/* the strip overlaps the end of the intro section on a split background */
#cpStats::before { content: ""; position: absolute; inset: 50% 0 0; background: #efefef; }
#cpStats .container { position: relative; }
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 24px;
    background: var(--cp-dark) radial-gradient(circle at 100% 0, rgba(240,78,48,.22), transparent 45%);
    box-shadow: 0 24px 60px rgba(35,31,32,.22); }
.cp-stat { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 38px 30px; transition: background-color .3s ease; }
.cp-stat + .cp-stat { border-left: 1px solid rgba(255,255,255,.1); }
.cp-stat::after { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--cp-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.cp-stat:hover { background: rgba(255,255,255,.04); }
.cp-stat:hover::after { transform: scaleX(1); }
.cp-stat-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 21px;
    color: var(--cp-accent); background: rgba(240,78,48,.14); border: 1px solid rgba(240,78,48,.3); transition: background-color .3s ease, color .3s ease; }
.cp-stat:hover .cp-stat-icon { background: var(--cp-accent); color: #fff; }
#cpPage .cp-stat-num { margin: 0 0 6px; font-family: var(--accent-font); font-size: 44px; font-weight: 700; line-height: 1; color: #fff; }
.cp-stat-num em { font-style: normal; color: var(--cp-accent); margin-left: 2px; }
#cpPage .cp-stat h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; color: #fff; }
#cpPage .cp-stat-sub { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); }

/* ---- industries (image tiles) ------------------------------------------ */
#cpIndustries { background: #efefef; }
.cp-ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cp-ind-item { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.1); transition: transform .35s ease, box-shadow .35s ease; }
.cp-ind-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cp-ind-item::before { content: ""; position: absolute; inset: 0; z-index: 1; transition: background .35s ease;
    background: linear-gradient(to top, rgba(20,17,18,.92) 0%, rgba(20,17,18,.45) 42%, rgba(20,17,18,0) 68%, rgba(20,17,18,.18) 100%); }
.cp-ind-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; z-index: 2; background: var(--cp-accent); transition: width .4s ease; }
.cp-ind-num { position: absolute; top: 16px; left: 18px; z-index: 2; margin: 0; padding: 2px 12px; border-radius: 50px; font-weight: 700; letter-spacing: .08em; color: #fff;
    background: rgba(20,17,18,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); }
.cp-ind-body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.cp-ind-title { display: flex; align-items: center; gap: 12px; }
.cp-ind-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cp-accent); color: #fff; font-size: 18px;
    box-shadow: 0 6px 16px rgba(240,78,48,.45); transition: transform .3s ease; }
.cp-ind-item h4 { margin: 0; font-size: 24px; line-height: 1.25; color: #fff !important; }
.cp-ind-more { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0; transition: grid-template-rows .4s ease, opacity .3s ease, margin .4s ease; }
.cp-ind-more > div { overflow: hidden; }
.cp-ind-more p { margin: 0 0 10px; line-height: 1.55; color: #fff; }
.cp-ind-cta { font-weight: 600; color: var(--cp-accent-2); }
.cp-ind-cta i { margin-left: 6px; transition: transform .3s ease; }
.cp-ind-item:hover, .cp-ind-item:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(0,0,0,.2); }
.cp-ind-item:hover img, .cp-ind-item:focus-visible img { transform: scale(1.08); }
.cp-ind-item:hover::before, .cp-ind-item:focus-visible::before { background: linear-gradient(to top, rgba(20,17,18,.95) 0%, rgba(20,17,18,.7) 55%, rgba(20,17,18,.2) 100%); }
.cp-ind-item:hover::after, .cp-ind-item:focus-visible::after { width: 100%; }
.cp-ind-item:hover .cp-ind-icon, .cp-ind-item:focus-visible .cp-ind-icon { transform: rotate(-10deg) scale(1.08); }
.cp-ind-item:hover .cp-ind-more, .cp-ind-item:focus-visible .cp-ind-more { grid-template-rows: 1fr; opacity: 1; margin-top: 14px; }
.cp-ind-item:hover .cp-ind-cta i { transform: translateX(4px); }
.cp-ind-item:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
@media (hover: none) {
    .cp-ind-more { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
    .cp-ind-item::before { background: linear-gradient(to top, rgba(20,17,18,.95) 0%, rgba(20,17,18,.6) 55%, rgba(20,17,18,.1) 100%); }
}

/* ---- product tabs (vertical nav + detail pane) ------------------------- */
.cp-ptabs { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.cp-ptabs-nav { display: flex; flex-direction: column; gap: 6px; }
.cp-ptabs-side, .cp-ptabs-content { min-width: 0; }
.cp-pprog, .cp-phint { display: none; }
.cp-ptab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: #fff; color: var(--cp-ink);
    padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 16px; line-height: 1.35; box-shadow: 0 2px 8px rgba(35,31,32,.05); cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.cp-ptab i { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(240,78,48,.12); color: var(--cp-accent);
    font-size: 15px; transition: background-color .25s ease, color .25s ease; }
.cp-ptab:hover { transform: translateX(4px); }
.cp-ptab.is-on { background: var(--cp-accent); color: #fff; box-shadow: 0 10px 24px rgba(240,78,48,.3); }
.cp-ptab.is-on i { background: rgba(255,255,255,.2); color: #fff; }
.cp-ppane { display: none; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--cp-line);
    box-shadow: 0 18px 44px rgba(35,31,32,.08); }
.cp-ppane.is-on { display: flex; animation: cpFade .35s ease; }
@keyframes cpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* product renders are 2000x1080, so the frame uses the same ratio and the
   machine is never cropped; contain keeps wider banners whole too */
.cp-ppane-img { position: relative; aspect-ratio: 2000 / 1080; background: radial-gradient(ellipse at 50% 60%, #ffffff 0%, #eeeceb 70%, #e4e1df 100%);
    border-bottom: 1px solid var(--cp-line); }
.cp-ppane-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cp-ppane-count { position: absolute; top: 18px; left: 18px; padding: 4px 14px; border-radius: 50px; font-weight: 700; font-size: 14px; letter-spacing: .06em;
    color: #fff; background: rgba(35,31,32,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cp-ppane-count small { font-size: 12px; opacity: .6; }
.cp-ppane-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 30px 34px 32px; }
#cpPage .cp-ppane-body h4 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.cp-ppane-text p { margin: 0; }
.cp-ppane-side { padding-left: 32px; border-left: 1px solid var(--cp-line); }
#cpPage .cp-best-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-accent); }
.cp-best { list-style: none; padding: 0; margin: 0 0 20px; }
.cp-best li { display: flex; gap: 10px; padding: 5px 0; color: var(--cp-ink); line-height: 1.45; }
.cp-best i { color: var(--cp-accent); margin-top: 3px; }
.cp-ppane .cp-btn { padding: 11px 22px; font-size: 15px; }

/* scroll-driven mode: the track is one viewport plus ~42vh per extra product,
   and the grid sticks under the fixed header while the track scrolls past */
@media (min-width: 992px) and (min-height: 640px) {
    .cp-pscroll { height: calc(100vh - 116px + (var(--cp-n) - 1) * 42vh); }
    .cp-ptabs { position: sticky; top: 96px; height: calc(100vh - 112px); max-height: 900px; align-items: stretch; }
    .cp-ptabs-side { display: flex; flex-direction: column; align-self: start; max-height: 100%; min-height: 0; position: relative; padding-left: 18px; }
    .cp-ptabs-nav { flex: 0 1 auto; min-height: 0; justify-content: flex-start; gap: 8px; }
    .cp-ptab { flex: 0 1 54px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
    .cp-pprog { display: block; position: absolute; left: 0; top: 0; bottom: 34px; width: 4px; border-radius: 4px; background: rgba(240,78,48,.15); overflow: hidden; }
    .cp-pprog span { display: block; height: 100%; background: var(--cp-accent); transform: scaleY(0); transform-origin: top; transition: transform .12s linear; }
    .cp-phint { display: block; margin: 10px 0 0; font-size: 13px; color: var(--cp-muted); text-align: center; }
    .cp-phint i { margin-right: 6px; color: var(--cp-accent); }
    .cp-ptabs-content { height: 100%; min-height: 0; }
    .cp-ppane.is-on { height: auto; max-height: 100%; }
    /* the image keeps its 2000x1080 ratio and only shrinks (never below 40%
       of the screen) when the viewport is too short to fit it with the text */
    .cp-ppane-img { flex: 0 1 auto; min-height: 40vh; }
    .cp-ppane-body { flex: 0 0 auto; gap: 24px; padding: 18px 26px 20px; }
    #cpPage .cp-ppane-body h4 { font-size: 22px; margin-bottom: 8px; }
    .cp-ppane-text p { font-size: 15px; line-height: 1.6; }
    .cp-ppane-side { padding-left: 24px; }
    .cp-best { margin-bottom: 14px; }
    .cp-best li { padding: 3px 0; font-size: 15px; }
}

/* ---- why (split image + icon list) -------------------------------------- */
.cp-why-media { position: relative; z-index: 0; }
.cp-why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 50px rgba(35,31,32,.18); }
.cp-why-media::before { content: ""; position: absolute; top: -18px; left: -18px; width: 45%; height: 45%; border-radius: 24px; z-index: -1;
    background: repeating-linear-gradient(45deg, rgba(240,78,48,.25) 0 2px, transparent 2px 12px); }
.cp-why-badge { position: absolute; right: -18px; bottom: 34px; background: linear-gradient(135deg, var(--cp-accent), var(--cp-accent-2)); border-radius: 18px;
    padding: 18px 24px; color: #fff; box-shadow: 0 16px 34px rgba(240,78,48,.4); }
.cp-why-badge strong { display: block; font-family: var(--accent-font); font-size: 46px; line-height: 1; }
#cpWhy h3 { font-size: 42px; color: var(--cp-accent); }
.cp-why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 26px; }
.cp-why-item { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--cp-line); }
.cp-why-item h4 { font-size: 20px; margin: 0 0 4px; }
.cp-why-item p { margin: 0; font-size: 15px; }
.cp-why-icon { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(240,78,48,.12);
    color: var(--cp-accent); font-size: 20px; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.cp-why-item:hover .cp-why-icon { background: var(--cp-accent); color: #fff; transform: rotate(-6deg); }

/* ---- cities (dark image band + accordion) ------------------------------- */
#cpCities { position: relative; background: var(--cp-dark) center 70%/cover no-repeat; background-attachment: fixed; }
#cpCities::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,18,.95) 0%, rgba(20,17,18,.84) 100%); }
#cpCities .container { position: relative; z-index: 1; }
#cpCities h3 { font-size: 42px; color: #fff; }
#cpCities p { color: rgba(255,255,255,.85); }
.cp-cities-intro { position: sticky; top: 130px; padding-right: 20px; margin-bottom: 30px; }
.cp-acc-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; margin-bottom: 10px; overflow: hidden;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cp-acc-item summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; color: #fff; font-weight: 600; font-size: 18px; }
.cp-acc-item summary::-webkit-details-marker { display: none; }
.cp-acc-item summary::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
.cp-acc-item summary { transition: background-color .35s ease; }
.cp-acc-item.is-open summary { background: rgba(240,78,48,.22); }
.cp-acc-item.is-open summary::after { transform: rotate(180deg); }
/* padding sits on the inner <p>: the body's height is animated to 0, and
   padding on the body itself would stop it at ~34px and then snap shut */
.cp-acc-body, #cpFaq .cp-faq-body { overflow: hidden; padding: 0; }
.cp-acc-item .cp-acc-body p { margin: 0; padding: 14px 22px 20px 74px; }
.cp-em-num { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; font-weight: 700;
    background: var(--cp-accent); color: #fff; }

/* ---- process (timeline) ------------------------------------------------- */
.cp-timeline { list-style: none; padding: 0; margin: 0; display: flex; position: relative; }
.cp-timeline::before { content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--cp-accent) 0 14px, transparent 14px 24px); }
.cp-tl-step { flex: 1; text-align: center; padding: 0 14px; position: relative; }
.cp-tl-step h4 { font-size: 20px; margin-bottom: 8px; }
.cp-tl-step p { font-size: 15px; margin: 0; }
.cp-tl-dot { position: relative; width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #fff;
    border: 3px solid var(--cp-accent); color: var(--cp-accent); font-size: 28px; box-shadow: 0 0 0 8px #fff, 0 12px 26px rgba(240,78,48,.22);
    transition: background-color .3s ease, color .3s ease; }
.cp-tl-dot em { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--cp-dark); color: #fff; font-style: normal;
    font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.cp-tl-step:hover .cp-tl-dot { background: var(--cp-accent); color: #fff; }

/* ---- CTA band ----------------------------------------------------------- */
#cpCta { position: relative; padding: 80px 0; background: var(--cp-accent) url('../images/cta.webp') center/cover no-repeat; }
#cpCta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(196,52,26,.95) 0%, rgba(240,78,48,.86) 55%, rgba(255,122,69,.7) 100%); }
#cpCta .container { position: relative; z-index: 1; }
#cpCta h3 { font-size: 40px; color: #fff; margin-bottom: 8px; }
#cpCta p { color: #fff; margin: 0; font-size: 18px; }
#cpCta .cp-btn { background: #fff; color: var(--cp-accent); border-color: #fff; }
#cpCta .cp-btn:hover { background: transparent; color: #fff; }

/* ---- clients (logo marquee) ------------------------------------------ */
.cp-marquee { overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cp-marquee-track { display: flex; gap: 22px; width: max-content; animation: cpMarquee 38s linear infinite; }
.cp-marquee:hover .cp-marquee-track { animation-play-state: paused; }
@keyframes cpMarquee { to { transform: translateX(calc(-50% - 11px)); } }
.cp-logo { flex: 0 0 210px; height: 110px; display: grid; place-items: center; padding: 16px 22px; background: #fff;
    border: 1px solid var(--cp-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(35,31,32,.04);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.cp-logo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.cp-logo:hover { border-color: #f5c2b7; box-shadow: 0 12px 26px rgba(240,78,48,.12); transform: translateY(-3px); }
.cp-logo:hover img { filter: none; opacity: 1; }

/* ---- blogs -------------------------------------------------------------- */
.cp-blog-slider { padding: 14px 6px 34px !important; margin: -14px -6px 0; }
.cp-blog-slider .swiper-slide { height: auto; display: flex; }
.cp-blog-card { position: relative; width: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--cp-line); box-shadow: 0 10px 28px rgba(35,31,32,.07); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.cp-blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(35,31,32,.13); border-color: #f5c2b7; }
/* blog thumbnails mix 16:9 and square artwork with text baked in, so the
   image is shown whole (contain) over a blurred copy of itself */
.cp-blog-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f1eeec; }
.cp-blog-bg { position: absolute; inset: -24px; background: center/cover no-repeat; filter: blur(18px) saturate(1.2); opacity: .55; }
.cp-blog-media img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.cp-blog-card:hover .cp-blog-media img { transform: scale(1.04); }
/* the category sits above the title, not on the image, since the artwork has text in it */
.cp-blog-cat { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 50px; background: rgba(240,78,48,.1); color: var(--cp-accent);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cp-blog-body { padding: 22px 24px 8px; flex: 1; }
.cp-blog-body h4 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.cp-blog-body h4 a { color: inherit; text-decoration: none; transition: color .25s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-blog-card:hover .cp-blog-body h4 a { color: var(--cp-accent); }
.cp-blog-body > p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-blog-foot { margin: 16px 24px 22px; padding-top: 16px; border-top: 1px solid #f1eeec; }
.cp-blog-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--cp-accent); text-decoration: none; }
.cp-blog-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cp-blog-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(240,78,48,.12); color: var(--cp-accent);
    font-size: 13px; transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.cp-blog-card:hover .cp-blog-arrow { background: var(--cp-accent); color: #fff; transform: translateX(4px); }
.cp-blog-nav { display: flex; justify-content: center; gap: 12px; }
.cp-blog-nav button { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--cp-accent); border: 2px solid var(--cp-accent); font-size: 16px;
    transition: background-color .25s ease, color .25s ease; }
.cp-blog-nav button:hover { background: var(--cp-accent); color: #fff; }

/* ---- FAQ ---------------------------------------------------------------- */
#cpFaq .cp-faq-item { border: 1px solid var(--cp-line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: #fff; }
#cpFaq .cp-faq-item summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; list-style: none; cursor: pointer;
    font-weight: 600; font-size: 17px; color: var(--cp-dark); }
#cpFaq .cp-faq-item summary::-webkit-details-marker { display: none; }
#cpFaq .cp-faq-item summary::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
#cpFaq .cp-faq-item summary { transition: background-color .35s ease, color .35s ease; }
#cpFaq .cp-faq-item.is-open summary { background: var(--cp-accent); color: #fff; }
#cpFaq .cp-faq-item.is-open summary::after { transform: rotate(180deg); }
#cpFaq .cp-faq-item summary h4 { font-size: inherit; color: inherit; margin: 0; font-family: inherit; line-height: 1.4; }
#cpFaq .cp-faq-body p { margin: 0; padding: 18px 22px; }

/* ---- contact ------------------------------------------------------------ */
/* two equal-height cards: the grid stretches both, and the form's message box
   takes up whatever height the info card adds */
.cp-contact { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
#cpPage .cp-eyebrow { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--cp-accent); background: rgba(240,78,48,.12); }

.cp-contact-info { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 36px; border-radius: 24px;
    background: var(--cp-dark) radial-gradient(circle at 100% 0, rgba(240,78,48,.28), transparent 50%);
    box-shadow: 0 24px 60px rgba(35,31,32,.22); }
.cp-contact-info::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
    border: 30px solid rgba(255,255,255,.03); pointer-events: none; }
#cpPage .cp-contact-info h3 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; color: #fff; }
#cpPage .cp-contact-lead { margin: 0 0 26px; color: rgba(255,255,255,.72); }
.cp-contact-list { list-style: none; margin: auto 0 0; padding: 0; }
.cp-contact-list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cp-contact-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 17px;
    color: var(--cp-accent); background: rgba(240,78,48,.14); border: 1px solid rgba(240,78,48,.3); transition: background-color .3s ease, color .3s ease; }
.cp-contact-ic.cp-ic-wa { color: #25D366; background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.3); }
.cp-contact-list li:hover .cp-contact-ic { background: var(--cp-accent); color: #fff; }
.cp-contact-list li:hover .cp-ic-wa { background: #25D366; color: #fff; }
.cp-contact-list small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cp-contact-list a, #cpPage .cp-contact-list p { display: block; margin: 0; font-size: 16px; line-height: 1.55; color: #fff; text-decoration: none; transition: color .25s ease; }
.cp-contact-list a:hover { color: var(--cp-accent-2); }
.cp-contact-list a i { font-size: 12px; margin-left: 6px; }

.cp-form-wrap { display: flex; flex-direction: column; padding: 40px 36px; background: #fff; border: 1px solid var(--cp-line); border-radius: 24px;
    box-shadow: 0 18px 44px rgba(35,31,32,.07); }
#cpPage .cp-form-wrap h4 { font-size: 30px; margin: 0 0 6px; }
#cpPage .cp-form-lead { margin: 0 0 24px; }
.cp-form { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; gap: 20px 18px; }
.cp-field { position: relative; margin: 0; display: flex; flex-direction: column; min-width: 0; }
.cp-field-msg, .cp-form-foot { grid-column: 1 / -1; }
.cp-field label { margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--cp-dark); }
.cp-field label em { font-style: normal; color: var(--cp-accent); }
.cp-form .form-control { height: 50px; padding: 12px 16px; border: 1px solid #e2dcd9; border-radius: 12px; background-color: #fcfbfa; font-size: 15px; color: var(--cp-dark);
    box-shadow: none; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.cp-form .form-control::placeholder { color: #a39b97; }
.cp-form .form-control:focus { border-color: var(--cp-accent); background-color: #fff; box-shadow: 0 0 0 4px rgba(240,78,48,.12); outline: 0; }
.cp-form select.form-control { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f04e30' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; }
.cp-form textarea.form-control { flex: 1 1 auto; height: auto; min-height: 120px; resize: vertical; }
.cp-form .iti { width: 100%; }
/* validator.js messages sit under the field without pushing the grid around */
.cp-field .help-block { position: absolute; top: 100%; left: 2px; margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: #d93a1e; }
.cp-field .help-block:empty { display: none; }
.cp-field .help-block ul { margin: 0; padding: 0; list-style: none; }
.cp-field.has-error .form-control { border-color: #e2563d; }
.cp-form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: 6px; }
.cp-form-foot .cp-btn { padding: 14px 30px; }
.cp-form-foot .cp-btn i { font-size: 14px; }
#cpPage .cp-form-foot p { margin: 0; font-size: 13px; color: var(--cp-muted); }
.cp-form-foot p i { margin-right: 6px; color: var(--cp-accent); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 991px) {
    #cpPage .cp-sec { padding: 56px 0; }
    #cpPage .cp-head h3, #cpWhy h3, #cpCities h3, #cpIntro h2 { font-size: 32px; }
    #cpHero { min-height: 0; padding: 70px 0 56px; }
    #cpHero h1 { font-size: 38px; }
    .cp-hero-card { margin-top: 36px; }
    #cpIntro .cp-intro-img { margin-top: 30px; }
    .cp-stats { grid-template-columns: repeat(2, 1fr); }
    .cp-stat:nth-child(3) { border-left: 0; }
    .cp-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
    .cp-ind-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .cp-ptabs { grid-template-columns: 1fr; }
    .cp-ptabs-content { position: static; }
    .cp-ptabs-nav { flex-direction: row; flex-wrap: nowrap; min-width: 0; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cp-ptabs-nav::-webkit-scrollbar { display: none; }
    .cp-ptab { flex: 0 0 auto; width: auto; white-space: nowrap; scroll-snap-align: start; }
    .cp-ptab:hover { transform: none; }
    .cp-ppane-body { grid-template-columns: 1fr; gap: 22px; }
    .cp-ppane-side { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--cp-line); }
    .cp-why-media { margin: 0 0 44px 18px; }
    .cp-why-badge { right: 12px; }
    .cp-cities-intro { position: static; padding-right: 0; }
    #cpCities { background-attachment: scroll; }
    .cp-timeline { flex-direction: column; gap: 28px; }
    .cp-timeline::before { left: 40px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto;
        background: repeating-linear-gradient(180deg, var(--cp-accent) 0 14px, transparent 14px 24px); }
    .cp-tl-step { text-align: left; padding: 6px 0 0 110px; min-height: 82px; }
    .cp-tl-dot { position: absolute; left: 0; top: 0; margin: 0; }
    #cpCta .text-lg-end { margin-top: 22px; }
    .cp-contact { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .cp-logo { flex-basis: 160px; height: 90px; padding: 12px 16px; }
    #cpPage .cp-head h3, #cpWhy h3, #cpCities h3, #cpIntro h2, #cpCta h3 { font-size: 28px; }
    #cpHero h1 { font-size: 32px; }
    #cpHero .cp-lead { font-size: 16px; }
    .cp-ind-grid { grid-template-columns: 1fr; gap: 16px; }
    .cp-ind-item { aspect-ratio: 4 / 3; }
    .cp-why-list { grid-template-columns: 1fr; }
    .cp-ppane-body { padding: 22px 20px 24px; }
    #cpPage .cp-ppane-body h4 { font-size: 22px; }
    .cp-acc-item .cp-acc-body p { padding-left: 22px; }
    .cp-acc-item summary { font-size: 16px; }
    .cp-stats { grid-template-columns: 1fr; }
    .cp-stat + .cp-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
    .cp-stat { padding: 26px 22px; }
    #cpPage .cp-stat-num { font-size: 38px; }
    .cp-hero-card, .cp-form-wrap, .cp-contact-info { padding: 26px 20px; }
    .cp-form { grid-template-columns: 1fr; grid-template-rows: none; }
    #cpPage .cp-contact-info h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .cp-ind-item, .cp-ind-item img, .cp-ind-icon, .cp-ind-more, .cp-ind-item::after, .cp-ptab, .cp-why-icon, .cp-tl-dot, .cp-stat, .cp-stat::after, .cp-stat-icon { transition: none; }
    .cp-ptab:hover, .cp-why-item:hover .cp-why-icon { transform: none; }
    #cpCities { background-attachment: scroll; }
    .cp-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .cp-logo[aria-hidden] { display: none; }
    .cp-ind-item:hover, .cp-ind-item:hover img, .cp-ind-item:hover .cp-ind-icon { transform: none; }
}
