/* =====================================================
   ATMATION SOLAR — SITE-WIDE THEME (homepage design system)
   Brings the homepage look (pill eyebrows, bold titles, gradient
   buttons, soft rounded cards) to every inner page.
   Load order: style.css -> theme.css -> site.css -> responsive.css (-> home.css)
   Rules that could touch the homepage are scoped with body:not(.hx-page).
   ===================================================== */

:root {
    --hx-green: #32C36C;
    --hx-green-d: #1F9E55;
    --hx-green-dd: #157A41;
    --hx-mint: #EAF8F0;
    --hx-sun: #F5B82E;
    --hx-ink: #0F1B24;
    --hx-text: #5B6675;
    --hx-muted: #8A94A3;
    --hx-line: #E6EAEF;
    --hx-soft: #F5F8F6;
    --hx-r: 20px;
    --hx-shadow: 0 10px 30px rgba(15, 27, 36, .07);
    --hx-shadow-lg: 0 24px 60px rgba(15, 27, 36, .12);
    --hx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* soft section background used across the site */
body:not(.hx-page) .bg-light {
    background-color: var(--hx-soft) !important;
}


/* ---------- Eyebrow labels ----------
   template <h6 class="text-primary">, inline pills, badges */
body:not(.hx-page) h6.text-primary,
body:not(.hx-page) .hx-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    padding: 7px 16px !important;
    margin: 0 0 18px !important;
    border-radius: 999px !important;
    background: var(--hx-mint) !important;
    color: var(--hx-green-dd) !important;
    font-family: "Open Sans", sans-serif;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    box-shadow: none !important;
}

body:not(.hx-page) h6.text-primary::before,
body:not(.hx-page) .hx-eyebrow::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hx-green);
}

/* eyebrows that sit on the dark green contact cards stay legible */
body:not(.hx-page) [style*="background:#198754"] .hx-eyebrow {
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
}


/* ---------- Section titles ---------- */
body:not(.hx-page) .hx-title,
body:not(.hx-page) .container h1.mb-4,
body:not(.hx-page) .container h1.mb-0:not([data-toggle]),
body:not(.hx-page) .container h2.section-title,
body:not(.hx-page) .container .career-heading {
    font-size: clamp(1.9rem, 3.2vw, 2.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em;
    color: var(--hx-ink) !important;
}

/* green highlighted words inside titles get the homepage gradient */
body:not(.hx-page) .hx-title span,
body:not(.hx-page) .container h1.mb-4 span {
    background: linear-gradient(95deg, var(--hx-green-d) 0%, var(--hx-green) 60%, #6FD39A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* centred heading blocks: a bit wider so titles wrap nicely */
body:not(.hx-page) .text-center.mx-auto.mb-5[style*="max-width"] {
    max-width: 760px !important;
    margin-bottom: 56px !important;
}

body:not(.hx-page) .text-center.mx-auto.mb-5 > p,
body:not(.hx-page) .hx-title + p {
    color: var(--hx-text) !important;
    font-size: 17px;
}


/* ---------- Section rhythm ---------- */
@media (min-width: 992px) {
    body:not(.hx-page) .container-xxl.py-5 {
        padding-top: 96px !important;
        padding-bottom: 96px !important;
    }
}

/* page banner: no extra margin; the first section brings its own space */
body:not(.hx-page) .page-header {
    margin-bottom: 0 !important;
}

body:not(.hx-page) .page-header + .container-xxl.py-5 {
    padding-top: 72px !important;
}

/* back-to-back sections: don't stack two full paddings */
body:not(.hx-page) .container-xxl.py-5 + .container-xxl.py-5 {
    padding-top: 0 !important;
}

/* project filter bar: even spacing above and below */
body:not(.hx-page) .row:has(> .col-12 > #portfolio-flters) {
    margin-top: 0 !important;
}

body:not(.hx-page) #portfolio-flters {
    margin-bottom: 40px !important;
}

@media (max-width: 991.98px) {
    body:not(.hx-page) .page-header + .container-xxl.py-5 {
        padding-top: 48px !important;
    }
}


/* ---------- Buttons ---------- */
body:not(.hx-page) .btn-primary,
body:not(.hx-page) .btn-success {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--hx-green) 0%, var(--hx-green-d) 100%) !important;
    box-shadow: 0 12px 28px rgba(50, 195, 108, .32);
    font-weight: 700;
}

body:not(.hx-page) .btn-primary:hover,
body:not(.hx-page) .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(50, 195, 108, .42);
}

body:not(.hx-page) .btn.rounded-pill.px-5 {
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* round social / icon buttons keep the plain style */
body:not(.hx-page) .btn-lg-square.btn-primary,
body:not(.hx-page) .btn-square.btn-primary {
    box-shadow: none;
}


/* ---------- Forms ---------- */
body:not(.hx-page) .form-control,
body:not(.hx-page) .form-select {
    min-height: 52px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 14px !important;
    border: 1px solid var(--hx-line) !important;
    background-color: var(--hx-soft);
    font-size: 15px;
}

body:not(.hx-page) textarea.form-control {
    padding-top: 14px;
}

body:not(.hx-page) .form-control:focus,
body:not(.hx-page) .form-select:focus {
    background-color: #fff;
    border-color: var(--hx-green) !important;
    box-shadow: 0 0 0 4px rgba(50, 195, 108, .14) !important;
}

body:not(.hx-page) .form-label {
    font-weight: 600;
    color: var(--hx-ink);
    font-size: 14px;
}


/* ---------- Template split sections (About / Feature / Quote) ---------- */
body:not(.hx-page) .about-text,
body:not(.hx-page) .feature-text,
body:not(.hx-page) .quote-text {
    color: var(--hx-text);
}

body:not(.hx-page) .about-text p .fa-check-circle,
body:not(.hx-page) .feature-text .btn-lg-square,
body:not(.hx-page) .about-text .fa-check-circle {
    color: var(--hx-green-d) !important;
}

/* feature points: icon tiles like the homepage */
body:not(.hx-page) .feature-text .btn-lg-square.rounded-circle {
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--hx-green), var(--hx-green-d)) !important;
}

body:not(.hx-page) .feature-text .btn-lg-square i {
    color: #fff !important;
}


/* ---------- Counter rows -> one stats card (feature, project, products...) ---------- */
body:not(.hx-page) .row:has(> [class*="col-"] > .d-flex > [data-toggle="counter-up"]) {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0 !important;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
    overflow: hidden;
}

body:not(.hx-page) .row:has(> [class*="col-"] > .d-flex > [data-toggle="counter-up"]) > [class*="col-"] {
    position: relative;
    padding: 34px 30px !important;
}

@media (min-width: 992px) {
    body:not(.hx-page) .row:has(> [class*="col-"] > .d-flex > [data-toggle="counter-up"]) > [class*="col-"] + [class*="col-"]::before {
        content: "";
        position: absolute;
        left: 0;
        top: 28px;
        bottom: 28px;
        width: 1px;
        background: var(--hx-line);
    }
}

body:not(.hx-page) [class*="col-"] > .d-flex > [data-toggle="counter-up"] {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--hx-ink);
}

/* (.row prefix + doubled class = beats the generic green icon-dot rule below) */
body:not(.hx-page) .row [class*="col-"] > .d-flex:has(> [data-toggle="counter-up"]) > .btn-lg-square.btn-lg-square {
    border-radius: 14px !important;
    background: var(--hx-mint) !important;
}

body:not(.hx-page) .row [class*="col-"] > .d-flex:has(> [data-toggle="counter-up"]) > .btn-lg-square.btn-lg-square i {
    color: var(--hx-green-d) !important;
}

body:not(.hx-page) [class*="col-"]:has(> .d-flex > [data-toggle="counter-up"]) > span {
    display: block;
    color: var(--hx-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ---------- Testimonials (template markup) -> homepage review cards ---------- */
body:not(.hx-page) .testimonial-carousel::before,
body:not(.hx-page) .testimonial-carousel::after {
    display: none !important;
}

body:not(.hx-page) .testimonial-carousel .owl-stage-outer {
    padding: 14px 0 30px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

body:not(.hx-page) .testimonial-item {
    height: 100%;
    margin: 0 12px;
    padding: 30px 32px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
    text-align: left !important;
    transform: scale(.94);
    opacity: .65;
    transition: transform .5s var(--hx-ease), opacity .5s ease, box-shadow .5s ease;
}

body:not(.hx-page) .testimonial-carousel .owl-item.center .testimonial-item {
    transform: scale(1);
    opacity: 1;
    box-shadow: var(--hx-shadow-lg);
}

/* avatar + quote icon in one row */
body:not(.hx-page) .testimonial-item .testimonial-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

body:not(.hx-page) .testimonial-carousel .testimonial-item .testimonial-img img {
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    object-fit: cover;
    border: 3px solid var(--hx-mint);
}

body:not(.hx-page) .container .testimonial-carousel .testimonial-item .testimonial-img .btn-square.btn-square {
    position: static !important;
    transform: none !important;
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: var(--hx-mint) !important;
}

body:not(.hx-page) .testimonial-carousel .testimonial-item .testimonial-img .btn-square i {
    color: var(--hx-green-d) !important;
    font-size: 18px;
}

/* initials avatar (used where a client photo isn't available) */
.avatar-initials {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hx-green) 0%, var(--hx-green-d) 100%);
    border: 3px solid var(--hx-mint);
    box-shadow: 0 6px 16px rgba(50, 195, 108, .28);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    user-select: none;
}

body:not(.hx-page) .testimonial-carousel .owl-item .testimonial-text,
body:not(.hx-page) .testimonial-carousel .owl-item.center .testimonial-text {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: left !important;
}

body:not(.hx-page) .testimonial-item .testimonial-text p {
    color: #3D4B58;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 18px;
}

body:not(.hx-page) .testimonial-item .testimonial-text h5 {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--hx-line);
    font-size: 16.5px;
    color: var(--hx-ink);
}

body:not(.hx-page) .testimonial-item .testimonial-text span {
    color: var(--hx-muted);
    font-size: 13.5px;
}

body:not(.hx-page) .testimonial-carousel .owl-nav {
    position: static !important;
    width: auto !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

body:not(.hx-page) .testimonial-carousel .owl-nav .owl-prev,
body:not(.hx-page) .testimonial-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid var(--hx-line) !important;
    color: var(--hx-ink) !important;
    font-size: 20px !important;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}

body:not(.hx-page) .testimonial-carousel .owl-nav .owl-prev:hover,
body:not(.hx-page) .testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--hx-green) !important;
    border-color: var(--hx-green) !important;
    color: #fff !important;
}


/* ---------- Projects / portfolio (template markup) ---------- */
body:not(.hx-page) #portfolio-flters {
    background: #fff;
    box-shadow: var(--hx-shadow);
}

body:not(.hx-page) #portfolio-flters li.active {
    background: linear-gradient(135deg, var(--hx-green), var(--hx-green-d));
}

body:not(.hx-page) .portfolio-img {
    height: auto !important;
    aspect-ratio: 3 / 2;
    border-radius: var(--hx-r) !important;
    box-shadow: var(--hx-shadow);
}

/* replace the sliding dark curtains with a soft gradient */
body:not(.hx-page) .portfolio-img::after {
    display: none;
}

body:not(.hx-page) .portfolio-img::before {
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(15, 27, 36, 0) 30%, rgba(15, 27, 36, .7) 100%) !important;
    opacity: 0;
    transition: opacity .4s ease !important;
}

body:not(.hx-page) .portfolio-item:hover .portfolio-img::before {
    opacity: 1;
}

body:not(.hx-page) .portfolio-btn {
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 16px;
}

body:not(.hx-page) .portfolio-btn .btn {
    width: 44px;
    height: 44px;
    border: 0 !important;
    background: #fff !important;
    color: var(--hx-green-d) !important;
}

body:not(.hx-page) .portfolio-btn .btn:hover {
    background: var(--hx-green) !important;
    color: #fff !important;
}

body:not(.hx-page) .portfolio-item .pt-3 > p.text-primary {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hx-mint);
    color: var(--hx-green-dd) !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

body:not(.hx-page) .portfolio-item .pt-3 > hr {
    display: none;
}

body:not(.hx-page) .portfolio-item h5 {
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--hx-ink);
}


/* ---------- Generic cards: team, service, career, subsidy ---------- */
body:not(.hx-page) .team-item,
body:not(.hx-page) .service-item,
body:not(.hx-page) .career-card {
    border-radius: var(--hx-r) !important;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow) !important;
    transition: transform .4s var(--hx-ease), box-shadow .4s var(--hx-ease);
}

body:not(.hx-page) .team-item:hover,
body:not(.hx-page) .service-item:hover,
body:not(.hx-page) .career-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hx-shadow-lg) !important;
}

body:not(.hx-page) .team-item .team-social .btn {
    border-color: #CFEBDB;
    color: var(--hx-green-d);
}

body:not(.hx-page) .team-item .team-social .btn:hover {
    background: var(--hx-green);
    border-color: var(--hx-green);
    color: #fff;
}

/* light rounded cards (subsidy tiles etc.) */
body:not(.hx-page) .container .bg-light.rounded,
body:not(.hx-page) .container .bg-white.rounded,
body:not(.hx-page) .container .rounded-3.bg-white,
body:not(.hx-page) .container .bg-white.rounded-4 {
    border-radius: var(--hx-r) !important;
    border: 1px solid var(--hx-line);
}

/* solid green feature panels: gradient like the homepage */
body:not(.hx-page) .container .bg-primary.rounded:not(.btn-square):not(.btn-lg-square) {
    border-radius: 24px !important;
    background: linear-gradient(150deg, #2BB863 0%, #1A8F4D 100%) !important;
    box-shadow: 0 24px 50px rgba(27, 148, 80, .25);
}

/* round icon dots: green gradient */
body:not(.hx-page) .container .btn-lg-square.bg-primary.rounded-circle,
body:not(.hx-page) .container .btn-square.bg-primary.rounded-circle {
    background: linear-gradient(135deg, var(--hx-green), var(--hx-green-d)) !important;
}


/* ---------- Images in content: soft rounding ---------- */
body:not(.hx-page) .container .img-fluid.rounded,
body:not(.hx-page) .container .img-fluid.rounded-4,
body:not(.hx-page) .container .img-fluid.shadow {
    border-radius: var(--hx-r) !important;
}


/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
    body:not(.hx-page) .text-center.mx-auto.mb-5[style*="max-width"] {
        margin-bottom: 40px !important;
    }

    body:not(.hx-page) .row:has(> [class*="col-"] > .d-flex > [data-toggle="counter-up"]) > [class*="col-"] {
        padding: 24px 22px !important;
        border-top: 1px solid var(--hx-line);
    }

    body:not(.hx-page) .row:has(> [class*="col-"] > .d-flex > [data-toggle="counter-up"]) > [class*="col-"]:first-child {
        border-top: 0;
    }

    body:not(.hx-page) .testimonial-carousel .owl-stage-outer {
        -webkit-mask-image: none;
        mask-image: none;
    }

    body:not(.hx-page) .testimonial-item {
        margin: 0 6px;
        padding: 26px 22px 22px;
    }
}


/* ---------- Product card badge (e.g. "25 Years Warranty") ---------- */
.product-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #32C36C 0%, #1F9E55 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(31, 158, 85, .35);
}

.product-badge i {
    color: #FFE08A;
}


/* ---------- Footer links: wrapped lines align with the text, not the arrow ---------- */
.footer .btn.btn-link {
    display: flex;
    align-items: baseline;
    text-align: left;
}

.footer .btn.btn-link::before {
    flex: 0 0 auto;
}


/* =====================================================
   CONTACT PAGE (cx-)
   ===================================================== */
.cx-section {
    padding: 72px 0 96px;
}

/* ---------- Form card ---------- */
.cx-form-card {
    height: 100%;
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
}

.cx-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hx-line);
}

.cx-card-head h3 {
    margin: 0 0 2px;
    font-size: 1.35rem;
    color: var(--hx-ink);
}

.cx-card-head p {
    margin: 0;
    color: var(--hx-muted);
    font-size: 14.5px;
}

.cx-card-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--hx-mint);
    color: var(--hx-green-d);
    font-size: 20px;
}

/* ---------- Direct contact panel ---------- */
.cx-direct {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    height: 100%;
    padding: 36px 34px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 184, 46, .28) 0%, rgba(245, 184, 46, 0) 45%),
        radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 22px 22px,
        linear-gradient(150deg, #2BB863 0%, #1B9450 55%, #137040 100%);
    box-shadow: 0 24px 50px rgba(27, 148, 80, .28);
}

.cx-direct::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -150px;
    border-radius: 50%;
    border: 46px solid rgba(255, 255, 255, .07);
}

.cx-direct h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.cx-direct-lead {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    margin-bottom: 22px;
}

.cx-direct-block {
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.cx-direct-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #FFE08A;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cx-direct-link {
    display: block;
    padding: 3px 0;
    color: #fff !important;
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 600;
    word-break: break-word;
    transition: opacity .2s ease, transform .2s ease;
}

.cx-direct-link:hover {
    opacity: .85;
    transform: translateX(3px);
}

.cx-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #fff;
    color: #128C4A !important;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cx-whatsapp i {
    font-size: 22px;
    color: #25D366;
}

.cx-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

.cx-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cx-social span {
    margin-right: 4px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 600;
}

.cx-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff !important;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.cx-social a:hover {
    background: #fff;
    color: #1B9450 !important;
    transform: translateY(-2px);
}

/* ---------- Section heads ---------- */
.cx-block-head {
    max-width: 720px;
    margin: 88px auto 40px;
}

/* ---------- Sales & support regions ---------- */
.cx-region {
    height: 100%;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.cx-region:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-lg);
}

.cx-region-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.cx-region-head h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--hx-ink);
}

.cx-region-head small {
    color: var(--hx-muted);
    font-weight: 600;
}

.cx-region-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--hx-green), var(--hx-green-d));
    color: #fff;
    font-size: 20px;
}

.cx-region-accent .cx-region-icon {
    background: linear-gradient(135deg, var(--hx-sun), #F08A24);
}

.cx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cx-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--hx-soft);
    border: 1px solid var(--hx-line);
    color: var(--hx-ink) !important;
    font-family: "Roboto", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cx-chips a i {
    color: var(--hx-green-d);
    font-size: 12px;
}

.cx-chips a:hover {
    background: var(--hx-green);
    border-color: var(--hx-green);
    color: #fff !important;
}

.cx-chips a:hover i {
    color: #fff;
}

/* ---------- Offices ---------- */
.cx-office {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}

.cx-office::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hx-green), var(--hx-sun));
}

.cx-office:hover {
    transform: translateY(-6px);
    box-shadow: var(--hx-shadow-lg);
}

.cx-office-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hx-mint);
    color: var(--hx-green-dd);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cx-office h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--hx-ink);
}

.cx-office h4 i {
    color: var(--hx-green-d);
    font-size: 18px;
}

.cx-office p {
    flex: 1;
    color: var(--hx-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.cx-office-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hx-green-d) !important;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14.5px;
}

.cx-office-link:hover {
    color: var(--hx-green-dd) !important;
}

/* ---------- Map ---------- */
.cx-map {
    margin-top: 72px;
    height: 420px;
    padding: 8px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--hx-line);
    box-shadow: var(--hx-shadow);
}

.cx-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cx-section { padding: 48px 0 72px; }
    .cx-block-head { margin-top: 64px; }
}

@media (max-width: 767.98px) {
    .cx-form-card,
    .cx-direct { padding: 26px 20px; border-radius: 20px; }
    .cx-card-head { gap: 12px; }
    .cx-region,
    .cx-office { padding: 24px 20px; }
    .cx-block-head { margin: 52px auto 28px; }
    .cx-map { height: 320px; margin-top: 52px; border-radius: 20px; }
    .cx-map iframe { border-radius: 14px; }
}

/* Footer copyright: company name highlighted (no link) */
.footer .copyright .copyright-name {
    color: #fff;
    font-weight: 600;
}


/* =====================================================
   PM Surya Ghar promo popup (js/promo-popup.js)
   ===================================================== */
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.promo-popup[hidden] {
    display: none !important;
}

.promo-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 20, .7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s ease;
}

.promo-popup-dialog {
    position: relative;
    width: min(960px, 100%);
    border-radius: 20px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(18px) scale(.96);
    transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}

.promo-popup.is-open .promo-popup-backdrop {
    opacity: 1;
}

.promo-popup.is-open .promo-popup-dialog {
    opacity: 1;
    transform: none;
}

.promo-popup-link {
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

.promo-popup-link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.promo-popup-link:hover img {
    transform: scale(1.015);
}

.promo-popup-close {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1A2A36;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    transition: background-color .2s ease, transform .2s ease;
}

.promo-popup-close:hover,
.promo-popup-close:focus-visible {
    background: #32C36C;
    transform: rotate(90deg);
}

body.promo-popup-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .promo-popup {
        padding: 16px;
    }

    .promo-popup-dialog {
        padding: 5px;
        border-radius: 14px;
    }

    .promo-popup-link {
        border-radius: 10px;
    }

    .promo-popup-close {
        top: -12px;
        right: -8px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-popup-backdrop,
    .promo-popup-dialog,
    .promo-popup-link img {
        transition: none;
    }
}


/* =====================================================
   CMS: footer support numbers + email links
   ===================================================== */
.footer .footer-mail {
    color: inherit;
}

.footer .footer-mail:hover {
    color: #fff;
}

.footer .footer-support {
    padding: 4px 12px 24px;
    text-align: center;
    color: #A9B4BF;
    font-size: 15px;
    line-height: 1.7;
}

.footer .footer-support p {
    margin: 0;
}

.footer .footer-support b {
    color: #D5DCE3;
}

.footer .footer-support a {
    color: #A9B4BF;
    white-space: nowrap;
}

.footer .footer-support a:hover {
    color: #fff;
}

/* =====================================================
   Form "Thank you" popup
   ===================================================== */
.thanks-popup {
    position: fixed;
    inset: 0;
    z-index: 1000003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thanks-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 20, .65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s ease;
}

.thanks-popup-card {
    position: relative;
    width: min(440px, 100%);
    padding: 40px 34px 32px;
    border-radius: 26px;
    background: #fff;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(18px) scale(.95);
    transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
    overflow: hidden;
}

.thanks-popup-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, #32C36C, #F5B82E);
}

.thanks-popup.is-open .thanks-popup-backdrop { opacity: 1; }
.thanks-popup.is-open .thanks-popup-card { opacity: 1; transform: none; }

.thanks-popup-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #32C36C, #1F9E55);
    color: #fff;
    font-size: 32px;
    box-shadow: 0 0 0 10px rgba(50, 195, 108, .14), 0 14px 30px rgba(50, 195, 108, .35);
    animation: thanksPop .5s cubic-bezier(.2, .9, .3, 1.4) .15s both;
}

.thanks-popup.is-error .thanks-popup-icon {
    background: linear-gradient(135deg, #F5B82E, #E08A1E);
    box-shadow: 0 0 0 10px rgba(245, 184, 46, .16), 0 14px 30px rgba(224, 138, 30, .35);
}

.thanks-popup.is-error .thanks-popup-card::before {
    background: linear-gradient(90deg, #F5B82E, #E08A1E);
}

@keyframes thanksPop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.thanks-popup-card h3 {
    margin-bottom: 10px;
    color: #0F1B24;
    font-size: 1.55rem;
    font-weight: 800;
}

.thanks-popup-card p {
    margin-bottom: 24px;
    color: #5B6675;
    font-size: 15.5px;
    line-height: 1.65;
}

.thanks-popup-btn {
    min-width: 180px;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #32C36C, #1F9E55);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(50, 195, 108, .32);
    cursor: pointer;
    transition: transform .2s ease;
}

.thanks-popup-btn:hover { transform: translateY(-2px); }

.thanks-popup-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #F1F3F5;
    color: #3D4B58;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.thanks-popup-x:hover { background: #E6EAEF; }

@media (prefers-reduced-motion: reduce) {
    .thanks-popup-card, .thanks-popup-backdrop { transition: none; }
    .thanks-popup-icon { animation: none; }
}

/* initials avatar inside the homepage-style review cards */
.hx-review-who .avatar-initials {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    font-size: 17px;
}

/* spam trap field on forms: invisible to people */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Terms page body (content from the admin panel) */
.terms-body h3,
.terms-body h4 {
    margin: 26px 0 12px;
    padding-top: 22px;
    border-top: 1px solid #E6EAEF;
    color: #0F1B24;
    font-size: 1.25rem;
}

.terms-body > h3:first-child,
.terms-body > h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.terms-body hr {
    display: none;
}

.terms-body p,
.terms-body li {
    color: #5B6675;
    line-height: 1.75;
}
