/* =====================================================
   ATMATION SOLAR — UI POLISH LAYER
   Visual refinements only (no content changes).
   Load order: bootstrap -> style.css -> page <style> -> theme.css -> responsive.css
   ===================================================== */

:root {
    --primary: #32C36C;
    --primary-dark: #23A257;
    --primary-soft: #EAF8F0;
    --dark: #1A2A36;
    --ink: #111827;
    --text: #5B6675;
    --muted: #8A94A3;
    --line: #E6EAEF;
    --surface: #F6F8FA;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(17, 24, 39, .06);
    --shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --shadow-lg: 0 20px 50px rgba(17, 24, 39, .12);
    --ease: cubic-bezier(.2, .7, .2, 1);
}


/* ---------- Base typography ---------- */
html {
    scroll-behavior: smooth;
}

body {
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--dark);
    letter-spacing: -0.015em;
}

p {
    color: inherit;
}

a {
    transition: color .2s ease;
}

::selection {
    background: var(--primary);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(50, 195, 108, .45);
    outline-offset: 2px;
}

/* Low-contrast inline grey copy (products page) made readable */
[style*="color:#9B9B9B"] {
    color: var(--text) !important;
}


/* ---------- Section headings: one consistent system ---------- */
h6.text-primary {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-dark) !important;
    margin-bottom: 12px;
}

.text-center > h6.text-primary,
.text-center h6.text-primary {
    margin-left: auto;
    margin-right: auto;
}

h1.mb-4,
h1.mb-0 {
    font-weight: 800;
    line-height: 1.2;
}

@media (min-width: 992px) {
    h1.mb-4,
    h1.mb-0 {
        font-size: 2.6rem;
    }
}


/* ---------- Navbar (v2) ----------
   Clean bar aligned to the page's content width: logo badge on the left,
   title-case links, green "Get Free Quote" pill on the right.
   !important is needed to beat the template's and each page's inline styles. */
.navbar.navbar-expand-xl {
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(15, 27, 36, .06);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

/* Logo badge: crisp white ring + soft halo */
.navbar .navbar-brand {
    border: 0 !important;
}

.navbar .navbar-brand img {
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(15, 27, 36, .14) !important;
    transition: transform .3s var(--ease);
}

.navbar .navbar-brand:hover img {
    transform: scale(1.04) rotate(-3deg);
}

/* Links: title case everywhere (desktop + mobile menu) */
.navbar .navbar-nav .nav-link {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: "Open Sans", sans-serif;
    font-weight: 600 !important;
    color: #24323D !important;
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--primary-dark) !important;
}

.navbar .navbar-nav .nav-link.active {
    color: var(--primary-dark) !important;
}

/* Call-to-action pill */
.navbar .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #32C36C 0%, #1F9E55 100%);
    color: #fff !important;
    font-family: "Roboto", sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(50, 195, 108, .32);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.navbar .nav-cta i {
    font-size: 13px;
    transition: transform .25s var(--ease);
}

.navbar .nav-cta:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(50, 195, 108, .42);
}

/* phone icon gives a small "ring" tilt on hover */
.navbar .nav-cta:hover i {
    transform: rotate(-14deg) scale(1.08);
}

/* on the Contact page the pill shows it's the current page */
.navbar .nav-cta.active {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(50, 195, 108, .45), 0 10px 24px rgba(50, 195, 108, .32);
}

/* ---------- Desktop (menu expanded) ---------- */
@media (min-width: 1200px) {
    /* align bar contents to the page container (1140px / 1320px) */
    .navbar.navbar-expand-xl {
        min-height: 84px !important;
        height: auto !important;
        padding: 0 calc((100% - 1140px) / 2 + 12px) !important;
        flex-wrap: nowrap !important;
    }

    .navbar.navbar-expand-xl .navbar-brand {
        height: 84px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .navbar.navbar-expand-xl .navbar-brand img {
        width: 64px !important;
        height: 64px !important;
        margin: 0 !important;
    }

    .navbar.navbar-expand-xl .navbar-collapse {
        justify-content: flex-end;
        align-items: center;
        gap: 18px;
    }

    .navbar.navbar-expand-xl .navbar-nav {
        align-items: center;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin-left: auto;
    }

    .navbar.navbar-expand-xl .navbar-nav .nav-link {
        position: relative;
        margin: 0 !important;
        padding: 31px 11px !important;
        font-size: 14.5px !important;
        white-space: nowrap;
    }

    /* sliding underline */
    .navbar.navbar-expand-xl .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 11px;
        right: 11px;
        bottom: 22px;
        height: 2.5px;
        border-radius: 3px;
        background: var(--primary);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .3s var(--ease);
    }

    .navbar.navbar-expand-xl .navbar-nav .nav-link:hover::after,
    .navbar.navbar-expand-xl .navbar-nav .nav-link.active::after {
        transform: scaleX(1);
    }
}

@media (min-width: 1400px) {
    .navbar.navbar-expand-xl {
        padding: 0 calc((100% - 1320px) / 2 + 12px) !important;
    }

    .navbar.navbar-expand-xl .navbar-nav .nav-link {
        padding-left: 13px !important;
        padding-right: 13px !important;
        font-size: 15px !important;
    }

    .navbar.navbar-expand-xl .navbar-nav .nav-link::after {
        left: 13px;
        right: 13px;
    }
}

/* tighter on narrow desktops so everything stays on one line */
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .navbar.navbar-expand-xl .navbar-nav .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 14px !important;
    }

    .navbar.navbar-expand-xl .navbar-nav .nav-link::after {
        left: 8px;
        right: 8px;
    }

    .navbar .nav-cta {
        padding: 11px 18px;
        font-size: 14px;
    }
}

/* ---------- Mobile / tablet menu (collapsed) ---------- */
@media (max-width: 1199.98px) {
    .navbar .nav-cta {
        display: flex;
        margin: 4px 20px 20px;
    }
}


/* ---------- Hero carousel (desktop) ---------- */
@media (min-width: 768px) {
    /* All slides the same height: no white gap under shorter banners */
    .header-carousel .owl-carousel-item img {
        width: 100%;
        height: clamp(380px, 49.6vw, 820px) !important;
        object-fit: cover;
    }
}

.header-carousel .owl-dots .owl-dot {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    border: 2px solid #fff;
    opacity: .85;
}

.header-carousel .owl-dots .owl-dot.active {
    opacity: 1;
    border-color: var(--primary);
}


/* ---------- Page hero banners (inner pages + career) ----------
   Light "sunrise" hero: mint-to-warm gradient, a glowing sun with
   concentric rings (top-right), a soft green arc (bottom-left) and a
   faint solar-cell dot grid. Content centred, breadcrumb pill on top. */
.page-header,
section.career-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: 92px 0 84px !important;
    min-height: 0;
    border-bottom: 1px solid #E2EFE7;
    background:
        radial-gradient(rgba(26, 42, 54, .055) 1px, transparent 1.5px) 0 0 / 22px 22px,
        radial-gradient(ellipse 45% 75% at 88% 0%, rgba(255, 190, 40, .18) 0%, rgba(255, 190, 40, 0) 65%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(50, 195, 108, .16) 0%, rgba(50, 195, 108, 0) 70%),
        linear-gradient(135deg, #EAF8F0 0%, #F6FBF8 48%, #FFF9EC 100%) !important;
}

/* Sun + concentric rings (top-right) */
.page-header::before,
section.career-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 680px;
    height: 680px;
    top: -330px;
    right: -170px;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255, 196, 46, .30) 0 9%, rgba(255, 196, 46, .10) 15%, rgba(255, 196, 46, 0) 24%),
        radial-gradient(circle,
            transparent 0 31%,
            rgba(50, 195, 108, .10) 31% 32.2%,
            transparent 32.2% 46%,
            rgba(50, 195, 108, .08) 46% 47.2%,
            transparent 47.2% 61%,
            rgba(50, 195, 108, .065) 61% 62.2%,
            transparent 62.2% 76%,
            rgba(50, 195, 108, .05) 76% 77.2%,
            transparent 77.2%);
}

/* Soft thick arc (bottom-left) */
.page-header::after,
section.career-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 440px;
    left: -190px;
    bottom: -250px;
    border-radius: 50%;
    border: 56px solid rgba(50, 195, 108, .07);
    box-shadow: 0 0 0 40px rgba(50, 195, 108, .035);
    pointer-events: none;
}

.page-header .container,
section.career-hero > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Headline: slate-to-green gradient text with a short accent bar */
.page-header h1,
section.career-hero h1 {
    margin: 0 0 6px !important;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: none;
    color: var(--dark) !important;
    background: linear-gradient(95deg, #14212B 0%, #1F3D30 55%, #23A257 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header h1::after,
section.career-hero h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), #F5B82E);
}

/* Breadcrumb as a pill above the title */
.page-header nav {
    order: -1;
    margin-bottom: 22px;
}

.page-header .breadcrumb {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 9px 20px 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #DCEFE4;
    box-shadow: 0 6px 20px rgba(17, 24, 39, .06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 500;
}

.page-header .breadcrumb::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 195, 108, .18);
    animation: heroDot 2.4s ease-in-out infinite;
}

@keyframes heroDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(50, 195, 108, .18); }
    50%      { box-shadow: 0 0 0 7px rgba(50, 195, 108, .06); }
}

.page-header .breadcrumb a,
.page-header .breadcrumb .text-white {
    color: #4B5866 !important;
}

.page-header .breadcrumb a:hover {
    color: var(--primary-dark) !important;
}

.page-header .breadcrumb-item.active {
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #A9B4BF;
}

/* Subtitle lines (subsidy / career) */
.page-header p,
section.career-hero p {
    margin: 16px auto 0 !important;
    max-width: 680px;
    color: var(--text) !important;
    font-size: 18px !important;
    line-height: 1.6;
}

/* Smaller decorations on phones */
@media (max-width: 767.98px) {
    .page-header,
    section.career-hero {
        padding: 56px 0 52px !important;
    }

    .page-header::before,
    section.career-hero::before {
        width: 420px;
        height: 420px;
        top: -220px;
        right: -170px;
    }

    .page-header::after,
    section.career-hero::after {
        width: 280px;
        height: 280px;
        left: -150px;
        bottom: -170px;
        border-width: 36px;
    }

    .page-header p,
    section.career-hero p {
        font-size: 16px !important;
        padding: 0 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-header .breadcrumb::before {
        animation: none;
    }
}


/* ---------- Buttons ---------- */
.btn {
    letter-spacing: .01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-primary,
.btn-success {
    box-shadow: 0 8px 20px rgba(50, 195, 108, .25);
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(50, 195, 108, .35);
}

.btn-primary:active,
.btn-success:active {
    transform: translateY(0);
}


/* ---------- Forms ---------- */
.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-control::placeholder {
    color: #9AA3AF;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 195, 108, .14);
}

.form-floating > label {
    color: #8A94A3;
}


/* ---------- Service cards ---------- */
.service-item {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    background: #fff;
    height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.service-item img {
    transition: transform .6s var(--ease);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-item:hover img {
    transform: scale(1.04);
}

.service-item h4 {
    font-size: 1.25rem;
}

.service-item a.small {
    color: var(--primary-dark);
    font-weight: 600 !important;
    letter-spacing: .02em;
}

.service-item a.small i {
    transition: transform .25s var(--ease);
}

.service-item a.small:hover i {
    transform: translateX(4px);
}

/* Equal-height service cards in a row */
.row > [class*="col-"] > .service-item {
    display: flex;
    flex-direction: column;
}


/* ---------- Projects / portfolio ---------- */
#portfolio-flters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
}

#portfolio-flters li {
    margin: 0 !important;
    padding: 8px 20px;
    border: none !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #3D4B58;
}

#portfolio-flters li:hover {
    color: var(--primary-dark);
}

#portfolio-flters li.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(50, 195, 108, .3);
}

.portfolio-img {
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.portfolio-img img {
    transition: transform .6s var(--ease);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}


/* ---------- Team ---------- */
.team-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.team-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Uniform portrait size so cards line up */
.team-item > .d-flex > img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.team-item .team-social .btn {
    width: 40px;
    height: 40px;
}

.team-item h5 {
    margin-bottom: 2px;
}

.team-item span {
    font-size: 14px;
    color: var(--muted);
}


/* ---------- Testimonials ---------- */
.testimonial-carousel .owl-item .testimonial-text {
    border-radius: var(--radius);
    background: #fff;
}

.testimonial-carousel .testimonial-img img {
    border: 4px solid #fff;
    box-shadow: var(--shadow);
}


/* ---------- Stat counters ---------- */
[data-toggle="counter-up"] {
    font-variant-numeric: tabular-nums;
}


/* ---------- Video gallery (home) ---------- */
.video-grid video,
.video-grid .yt-native-player {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.video-grid video:hover,
.video-grid .yt-native-player:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

@media (min-width: 992px) {
    .video-gallery > div {
        max-width: 1000px !important;
    }
}


/* ---------- Mission / Values / Vision cards ---------- */
.mv-card {
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}


/* ---------- Products: comparison blocks ---------- */
.compare-row {
    border: 1px solid #CFEBDB !important;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.compare-row .compare-label {
    background: linear-gradient(180deg, #F2FBF6 0%, #E7F7EE 100%);
    color: var(--dark);
    font-weight: 700;
    padding: 20px;
    text-align: center;
    line-height: 1.4;
}

.compare-row .compare-col {
    border-left: 1px solid #DCEFE4 !important;
    padding: 24px !important;
}

.compare-row .compare-col > div:first-child {
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: .02em;
    padding: 9px 12px !important;
}

.compare-row .compare-col p {
    color: var(--text);
    line-height: 1.65;
}

.compare-row .compare-col img {
    box-shadow: var(--shadow-sm);
}

/* Section title pills */
.pill-title {
    box-shadow: 0 10px 24px rgba(50, 195, 108, .28);
    letter-spacing: -0.01em;
}

/* Subsidy tables */
.table-scroll table {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    max-width: 960px;
}

.table-scroll th,
.table-scroll td {
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 14px 18px !important;
    text-align: center;
}

.table-scroll tr:last-child td {
    border-bottom: none !important;
}

.table-scroll tr:first-child {
    background: var(--primary-soft) !important;
}

.table-scroll th {
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
}

.table-scroll td {
    color: #3D4B58;
}

.table-scroll tr:nth-child(odd):not(:first-child) td {
    background: #FAFBFC;
}

.table-scroll td:last-child {
    font-weight: 600;
    color: var(--dark);
}


/* ---------- Footer ---------- */
/* Footer background: deep slate with soft green glows,
   a fine dot grid and a faint diagonal "solar panel" line texture */
.footer {
    position: relative;
    background-color: #14212B !important;
    background-image:
        radial-gradient(ellipse 60% 55% at 8% 0%, rgba(50, 195, 108, .13) 0%, rgba(50, 195, 108, 0) 70%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(50, 195, 108, .10) 0%, rgba(50, 195, 108, 0) 70%),
        radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.4px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 14px),
        linear-gradient(180deg, #172632 0%, #111C25 100%) !important;
    background-size: auto, auto, 22px 22px, auto, auto !important;
    background-attachment: scroll;
}

/* thin green accent line across the top edge */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(50, 195, 108, 0) 0%, var(--primary) 50%, rgba(50, 195, 108, 0) 100%);
    opacity: .7;
}

.footer h5 {
    position: relative;
    padding-bottom: 14px;
    letter-spacing: .01em;
}

.footer h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary);
}

.footer .text-center h5::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer p,
.footer .btn.btn-link {
    color: #A9B4BF;
}

.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: normal;
    transform: translateX(3px);
}

.footer .btn.btn-social {
    width: 38px;
    height: 38px;
    color: #C6CFD8;
    border-color: rgba(255, 255, 255, .22);
}

.footer .btn.btn-social:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer: "Toll Free No." sub-heading + phone list */
.footer .footer-label {
    margin: 16px 0 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
}

.footer .footer-phone a {
    color: #A9B4BF;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.footer .footer-phone a:hover {
    color: var(--primary);
}

.footer .footer-phone i {
    color: var(--primary);
}

/* Footer: "Our Brand" card */
.footer-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(50, 195, 108, .14) 0%, rgba(255, 255, 255, .03) 70%);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    transition: border-color .3s ease, transform .3s var(--ease);
}

/* soft decorative glow */
.footer-brand::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 195, 108, .18) 0%, rgba(50, 195, 108, 0) 70%);
    pointer-events: none;
}

.footer-brand:hover {
    border-color: rgba(50, 195, 108, .35);
}

.footer-brand-logo {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 195, 108, .22), 0 12px 28px rgba(0, 0, 0, .35);
}

.footer-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.footer-brand-text {
    position: relative;
    margin: 0;
    color: #D5DCE3 !important;
    font-size: 15px;
    line-height: 1.65;
}

/* Tablet: brand card sits on its own row — keep it compact */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-brand {
        max-width: 560px;
    }
}

/* Small phones: slightly smaller logo */
@media (max-width: 575.98px) {
    .footer-brand {
        gap: 16px;
        padding: 18px;
    }

    .footer-brand-logo {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
        padding: 4px;
    }

    .footer-brand-text {
        font-size: 14px;
    }
}

/* Four-column footer (Address | Quick Links | PM Solar | Our Brand) */
@media (min-width: 992px) {
    .footer .col-lg-4 {
        padding-right: 32px;
    }

    /* Brand card in the narrower 3/12 column: tighter, logo a bit smaller */
    .footer .footer-brand {
        gap: 14px;
        padding: 18px;
    }

    .footer .footer-brand-logo {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
        padding: 4px;
    }

    .footer .footer-brand-text {
        font-size: 14px;
    }
}

/* Tablet 2x2 grid: brand card fills its half-column */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer .footer-brand {
        max-width: none;
    }
}

.footer .copyright {
    border-top-color: rgba(255, 255, 255, .08);
    font-size: 14px;
}


/* ---------- Floating WhatsApp: tidier on desktop ---------- */
@media (min-width: 992px) {
    .whatsapp-float {
        right: 28px !important;
        bottom: 28px !important;
    }
}


/* ---------- Scrollbar (desktop browsers) ---------- */
@media (min-width: 992px) and (hover: hover) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #F1F3F5;
    }

    ::-webkit-scrollbar-thumb {
        background: #C5CCD3;
        border-radius: 10px;
        border: 2px solid #F1F3F5;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }
}


/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}


/* ---------- Wide header logo (img.brand-logo) ----------
   Overrides the old round-badge rules: natural rectangle,
   rounded corners, no white ring, no tilt on hover. */
.navbar .navbar-brand img.brand-logo,
.navbar.navbar-expand-xl .navbar-brand img.brand-logo {
    width: auto !important;
    height: 54px !important;
    max-width: none;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 28, 54, .18) !important;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.navbar .navbar-brand:hover img.brand-logo {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 28, 54, .24) !important;
}

/* tablets & phones: compact bar */
@media (max-width: 1199.98px) {
    .navbar .navbar-brand img.brand-logo,
    .navbar.navbar-expand-xl .navbar-brand img.brand-logo {
        height: 42px !important;
        border-radius: 8px !important;
    }
}


/* ---------- Header logo shimmer (every 5 seconds) ----------
   A soft diagonal band of light sweeps across the logo in ~1s,
   then rests until the next cycle. Clipped to the logo's corners. */
.navbar .brand-shine {
    position: relative;
    display: inline-flex;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 6px 18px rgba(0, 28, 54, .18);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

/* the shadow now lives on the wrapper (overflow would clip it on the image) */
.navbar .navbar-brand .brand-shine img.brand-logo {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.navbar .navbar-brand:hover .brand-shine {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 28, 54, .24);
}

.navbar .navbar-brand:hover img.brand-logo {
    transform: none;
}

.navbar .brand-shine::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .08) 30%,
        rgba(255, 255, 255, .55) 50%,
        rgba(255, 255, 255, .08) 70%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-130%) skewX(-18deg);
    animation: brandShine 5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* sweep during the first ~22% (≈1.1s) of each 5s cycle, then rest */
@keyframes brandShine {
    0%   { transform: translateX(-130%) skewX(-18deg); }
    22%  { transform: translateX(330%) skewX(-18deg); }
    100% { transform: translateX(330%) skewX(-18deg); }
}

@media (max-width: 1199.98px) {
    .navbar .brand-shine {
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar .brand-shine::after {
        animation: none;
        display: none;
    }
}

/* Page banners: balance multi-line titles (no single word left on its own line) */
.page-header h1,
section.career-hero h1 {
    text-wrap: balance;
}
