/* =========================================================
   MANAPJE WEBSITE — STAGE 4
   Design System: Engineering + Solar
========================================================= */

:root {
    --primary-red: #a40000;
    --deep-red: #780000;
    --accent-red: #d71920;
    --charcoal: #292929;
    --dark: #171717;
    --white: #ffffff;
    --off-white: #f7f7f7;
    --light-grey: #ececec;
    --medium-grey: #777777;
    --border: #dddddd;

    --heading-font: "Montserrat", Arial, sans-serif;
    --body-font: "Inter", Arial, sans-serif;

    --container: 1240px;
    --header-height: 88px;
    --radius: 2px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: var(--body-font);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow.light {
    color: #ffffff;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    line-height: 1.08;
}

h2 {
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

p {
    color: #555;
}

.lead {
    font-size: 1.16rem;
    color: #333;
    line-height: 1.7;
}

.red-line {
    width: 58px;
    height: 4px;
    background: var(--primary-red);
    margin: 24px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading p:last-child {
    margin-top: 18px;
    max-width: 650px;
}

.centered p:last-child {
    margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition), height var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand img {
    width: 185px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: #292929;
    font-family: var(--heading-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-dropdown-toggle:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chevron {
    font-size: 1rem;
    line-height: 0.5;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: 220px;
    padding: 10px;
    background: #fff;
    border-top: 3px solid var(--primary-red);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    color: #444;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--primary-red);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    background: var(--primary-red);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
    background: var(--deep-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 0, 0, 0.2);
}

.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-family: var(--heading-font);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn-primary {
    background: var(--primary-red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--deep-red);
    box-shadow: 0 10px 24px rgba(164, 0, 0, 0.25);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--charcoal);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.text-link span,
.card-link span,
.service-card a span {
    transition: transform var(--transition);
}

.text-link:hover span,
.card-link:hover span,
.service-card a:hover span {
    transform: translateX(5px);
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.hero-media,
.hero-image,
.hero-video,
.hero-overlay,
.hero-shape {
    position: absolute;
    inset: 0;
}

.hero-media {
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    transform: scale(1.02);
}

.hero-image {
    background-image: url("assets/images/solar-hero.jpg");
    background-position: center 58%;
    background-size: cover;
    transform: scale(1.02);
    z-index: -1;
}

.hero-overlay {
    background:
        linear-gradient(90deg,
            rgba(12, 12, 12, 0.94) 0%,
            rgba(30, 15, 15, 0.84) 35%,
            rgba(30, 15, 15, 0.30) 70%,
            rgba(10, 10, 10, 0.10) 100%);
}

.hero-shape {
    inset: auto auto 0 0;
    width: 44%;
    height: 7px;
    background: var(--primary-red);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    color: #fff;
}

.hero h1 span {
    color: #ef2a2f;
}

.hero-text {
    max-width: 590px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-bottom {
    position: absolute;
    z-index: 3;
    inset: auto 0 0;
    background: rgba(15, 15, 15, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.trust-strip i {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    background: var(--accent-red);
}

/* =========================
   FEATURED SOLAR
========================= */

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.image-panel {
    position: relative;
}

.image-panel img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.image-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
    padding: 15px 20px;
    background: var(--primary-red);
    color: #fff;
}

.image-tag strong {
    font-family: var(--heading-font);
    font-size: 1rem;
}

.image-tag span {
    font-family: var(--heading-font);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-content p {
    max-width: 650px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 20px;
    margin-top: 28px;
}

.feature-list div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-list span {
    color: var(--primary-red);
    font-weight: 800;
}

/* =========================
   PACKAGES
========================= */

.packages-section {
    background: var(--off-white);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.package-card {
    position: relative;
    padding: 42px 34px 36px;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: #c5c5c5;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.package-card.featured {
    border-top: 4px solid var(--primary-red);
}

.package-number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #c9c9c9;
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 800;
}

.package-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    background: #f5eaea;
    color: var(--primary-red);
    font-size: 1.4rem;
}

.package-card h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.package-card p {
    min-height: 82px;
    font-size: 0.92rem;
}

.card-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 25px;
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.package-note {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 26px;
    background: #fff;
    border-left: 4px solid var(--primary-red);
}

.package-note strong {
    font-family: var(--heading-font);
    font-size: 0.83rem;
}

.package-note span {
    flex: 1;
    color: #666;
    font-size: 0.88rem;
}

.package-note a {
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================
   WHY
========================= */

.dark-section {
    background: var(--charcoal);
    color: #fff;
}

.why-section {
    padding: 105px 0;
}

.why-heading {
    max-width: 760px;
    margin-bottom: 62px;
}

.why-heading h2 {
    color: #fff;
}

.why-heading h2 span {
    color: #ef2a2f;
}

.why-heading > p:last-child {
    max-width: 620px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.68);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.why-card {
    min-height: 220px;
    padding: 30px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.why-card:last-child {
    border-right: 0;
}

.why-card > span {
    display: block;
    margin-bottom: 40px;
    color: #ef2a2f;
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 800;
}

.why-card h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.why-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

/* =========================
   SERVICES
========================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 360px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #bbb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.service-card.solar-card {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 75px;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #f6eaea;
    color: var(--primary-red);
    font-size: 1.3rem;
}

.service-card.solar-card .service-icon {
    background: rgba(255,255,255,0.13);
    color: #fff;
}

.service-number {
    color: #bcbcbc;
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 800;
}

.service-card.solar-card .service-number {
    color: rgba(255,255,255,0.65);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.service-card.solar-card h3 {
    color: #fff;
}

.service-card p {
    font-size: 0.88rem;
}

.service-card.solar-card p {
    color: rgba(255,255,255,0.76);
}

.service-card a {
    position: absolute;
    bottom: 28px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--primary-red);
    font-family: var(--heading-font);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.service-card.solar-card a {
    color: #fff;
}

/* =========================
   PROJECTS
========================= */

.projects-section {
    background: var(--off-white);
}

.projects-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.projects-heading > p {
    max-width: 440px;
    margin-bottom: 5px;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-btn {
    padding: 11px 17px;
    border: 1px solid #cfcfcf;
    background: transparent;
    color: #555;
    cursor: pointer;
    font-family: var(--heading-font);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-auto-rows: 310px;
    gap: 14px;
}

.project-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #222;
}

.project-card.project-large {
    grid-row: span 2;
}

.project-card.project-wide {
    grid-column: span 2;
}

.project-card.hidden {
    display: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover img {
    transform: scale(1.045);
}

.project-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 80px 26px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.88));
    color: #fff;
}

.project-overlay span {
    color: #ff6c70;
    font-family: var(--heading-font);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-overlay h3 {
    margin: 6px 0 10px;
    font-size: 1.25rem;
}

.project-overlay a {
    font-family: var(--heading-font);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* =========================
   CLIENTS
========================= */

.clients-section {
    padding: 100px 0;
    background: #fff;
}

.client-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.client-list span {
    min-height: 100px;
    display: grid;
    place-items: center;
    padding: 15px;
    border-right: 1px solid var(--border);
    color: #3b3b3b;
    font-family: var(--heading-font);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.client-list span:last-child {
    border-right: 0;
}

/* =========================
   ABOUT
========================= */

.about-grid {
    align-items: stretch;
}

.about-section .image-panel img {
    height: 570px;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.about-points span {
    padding: 9px 13px;
    background: var(--off-white);
    color: var(--charcoal);
    font-family: var(--heading-font);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================
   TEAM
========================= */

.team-strip {
    padding: 75px 0;
    background: var(--primary-red);
    color: #fff;
}

.team-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.team-inner h2 {
    color: #fff;
}

.team-inner p {
    color: rgba(255,255,255,0.82);
}

.team-inner .btn {
    margin-top: 24px;
}

/* =========================
   CTA
========================= */

.cta-section {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #222;
}

.cta-bg,
.cta-overlay {
    position: absolute;
    inset: 0;
}

.cta-bg {
    background-image: url("assets/images/commercial-solar.jpg");
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    background: linear-gradient(90deg, rgba(35,0,0,0.94), rgba(80,0,0,0.78), rgba(15,15,15,0.4));
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: max(24px, calc((100vw - var(--container)) / 2));
    margin-right: auto;
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.4rem);
}

.cta-inner h2 span {
    color: #ff5b60;
}

.cta-inner > p:not(.eyebrow) {
    max-width: 610px;
    margin-top: 22px;
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: #171717;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding: 75px 0 60px;
}

.footer-brand img {
    width: 190px;
    height: auto;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px 12px;
}

.footer-brand p {
    max-width: 310px;
    color: rgba(255,255,255,0.55);
    font-size: 0.86rem;
}

.footer-grid h3 {
    margin-bottom: 22px;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;
    width: fit-content;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.62);
    font-size: 0.83rem;
    transition: color var(--transition);
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: #fff;
}

.footer-address {
    margin-top: 18px;
    color: rgba(255,255,255,0.48);
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .container {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255,255,255,0.42);
    font-size: 0.7rem;
}

/* =========================
   FLOATING CONTROLS
========================= */

.whatsapp-float {
    position: fixed;
    z-index: 950;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px 11px 11px;
    background: #1e8e3e;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    font-family: var(--heading-font);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.24);
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 1.2rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 940;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--primary-red);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 16px;
    }

    .header-cta {
        padding-inline: 14px;
    }

    .brand img {
        width: 165px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .client-list span:nth-child(3) {
        border-right: 0;
    }

    .client-list span:nth-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 76px;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        width: 48px;
        height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--charcoal);
        transition: transform var(--transition), opacity var(--transition);
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        padding: 22px 24px 40px;
        background: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu nav > a,
    .mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        border-bottom: 1px solid var(--border);
        color: var(--charcoal);
        font-family: var(--heading-font);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        list-style: none;
        cursor: pointer;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu details[open] summary {
        color: var(--primary-red);
    }

    .mobile-menu details[open] summary span {
        transform: rotate(45deg);
    }

    .mobile-submenu {
        padding: 7px 0;
        background: var(--off-white);
    }

    .mobile-submenu a {
        display: block;
        padding: 13px 17px;
        color: #555;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .mobile-quote {
        justify-content: center !important;
        margin-top: 20px;
        background: var(--primary-red);
        border: 0 !important;
        color: #fff !important;
    }

    .split-grid,
    .team-inner {
        grid-template-columns: 1fr;
    }

    .team-inner {
        gap: 35px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-card:nth-child(2) {
        border-right: 0;
    }

    .why-card:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.project-large {
        grid-row: span 1;
    }

    .project-card.project-wide {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 34px, var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        min-height: 720px;
    }

    .hero-video {
        object-position: 65% center;
    }

    .hero-image {
        background-position: 65% center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(12,12,12,0.5), rgba(12,12,12,0.91) 64%, rgba(12,12,12,0.96));
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 120px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .hero-text {
        font-size: 0.98rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-bottom {
        overflow-x: auto;
    }

    .trust-strip {
        min-width: max-content;
        min-height: 58px;
        justify-content: flex-start;
        gap: 15px;
        padding-inline: 17px;
    }

    .image-panel img,
    .about-section .image-panel img {
        height: 430px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .package-grid {
        grid-template-columns: 1fr;
    }

    .package-card p {
        min-height: auto;
    }

    .package-note {
        display: block;
    }

    .package-note span {
        display: block;
        margin: 8px 0 15px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card,
    .why-card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.18);
    }

    .why-card:last-child {
        border-bottom: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .projects-heading {
        display: block;
    }

    .projects-heading > p {
        margin-top: 16px;
    }

    .project-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .project-grid {
        display: flex;
        flex-direction: column;
    }

    .project-card,
    .project-card.project-large,
    .project-card.project-wide {
        height: 300px;
        min-height: 300px;
    }

    .client-list {
        grid-template-columns: 1fr 1fr;
    }

    .client-list span,
    .client-list span:nth-child(3) {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .client-list span:nth-child(even) {
        border-right: 0;
    }

    .client-list span:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .team-strip {
        padding: 60px 0;
    }

    .cta-section {
        min-height: 600px;
    }

    .cta-inner {
        margin-inline: auto;
    }

    .cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 60px 0 45px;
    }

    .footer-bottom .container {
        min-height: auto;
        padding-block: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-label {
        display: none;
    }

    .whatsapp-icon {
        width: 38px;
        height: 38px;
    }

    .back-to-top {
        right: 16px;
        bottom: 80px;
    }
}

@media (max-width: 420px) {
    .brand img {
        width: 150px;
        max-width: calc(100vw - 110px);
    }

    .hero {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero .eyebrow {
        font-size: 0.63rem;
    }

    .section-heading {
        margin-bottom: 38px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   STAGE 4 REVISION — HOMEPAGE POLISH
========================================================= */

/* Header dropdown mark */
.nav-mark {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.48rem;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
.nav-dropdown.open .nav-mark,
.nav-dropdown:hover .nav-mark {
    transform: rotate(45deg);
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

.header-cta:hover { background: #e56f6d; }

/* Featured solar CTA */
.solar-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 7px 16px 7px 7px;
    border: 1px solid #e2caca;
    background: #fff;
    color: var(--charcoal);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.solar-cta:hover {
    transform: translateY(-3px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 28px rgba(0,0,0,.09);
}
.solar-cta-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--primary-red);
    color: #fff;
    font-size: 1rem;
}
.solar-cta strong,
.solar-cta small { display: block; }
.solar-cta strong {
    font-family: var(--heading-font);
    font-size: .75rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.solar-cta small {
    margin-top: 2px;
    color: #777;
    font-size: .75rem;
}

/* Packages */
.packages-heading {
    display: grid;
    grid-template-columns: 1fr .75fr;
    align-items: end;
    gap: 50px;
}
.fancy-package-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}
.solar-package-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 25px rgba(0,0,0,.045);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.solar-package-card:hover {
    transform: translateY(-7px);
    border-color: #c6a1a1;
    box-shadow: 0 18px 38px rgba(0,0,0,.11);
}
.solar-package-card.featured { border-top: 4px solid var(--primary-red); }
.package-image { position: relative; height: 180px; overflow: hidden; background: #222; }
.package-image img { width:100%; height:100%; object-fit:cover; transition: transform .6s ease; }
.solar-package-card:hover .package-image img { transform: scale(1.06); }
.package-image:after {
    content:""; position:absolute; inset:0;
    background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62));
}
.package-image span {
    position:absolute; z-index:2; left:13px; bottom:12px;
    padding:6px 8px; background:var(--primary-red); color:#fff;
    font-family:var(--heading-font); font-size:.54rem; font-weight:800; letter-spacing:.08em;
}
.package-body { padding: 22px 18px 20px; }
.package-kicker {
    margin-bottom: 8px; color:var(--primary-red);
    font-family:var(--heading-font); font-size:.58rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
}
.package-body h3 { min-height: 51px; margin-bottom:10px; font-size:1rem; line-height:1.18; text-transform:uppercase; }
.package-detail { min-height: 90px; color:#666; font-size:.76rem; line-height:1.55; }
.package-price { margin: 17px 0; color:var(--primary-red); font-family:var(--heading-font); font-size:1.28rem; font-weight:800; }
.package-cta {
    display:flex; align-items:center; justify-content:space-between; gap:8px;
    padding-top:13px; border-top:1px solid #e4e4e4;
    color:var(--charcoal); font-family:var(--heading-font); font-size:.58rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
}
.package-cta i { color:var(--primary-red); }
.package-source-note {
    display:flex; align-items:flex-start; gap:10px; margin-top:18px; padding:13px 15px;
    background:#fff; border-left:3px solid #e56f6d; color:#6b6b6b; font-size:.72rem; line-height:1.5;
}
.package-source-note i { margin-top:2px; color:#e56f6d; }

/* Services accordion */
.services-heading {
    display:grid; grid-template-columns:1fr .75fr; align-items:end; gap:50px;
}
.service-accordion { border-top:1px solid #cfcfcf; }
.service-row {
    display:grid; grid-template-columns: 1fr 1.15fr; gap:40px;
    padding:30px 0; border-bottom:1px solid #d7d7d7;
}
.service-row-left { display:flex; gap:28px; align-items:flex-start; }
.service-row-left .service-number {
    padding-top:3px; color:#b3b3b3; font-family:var(--heading-font); font-size:.72rem; font-weight:800;
}
.service-row-left h3 { font-size:1.35rem; text-transform:uppercase; }
.service-row-left p { margin-top:7px; font-size:.82rem; }
.service-row-right { display:grid; grid-template-columns:48px 1fr; gap:20px; align-items:start; }
.service-toggle {
    width:42px; height:42px; display:grid; place-items:center;
    border:1px solid #ccc; background:#fff; color:var(--primary-red); cursor:pointer;
    transition:transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.service-toggle:hover, .service-row.open .service-toggle { background:var(--primary-red); border-color:var(--primary-red); color:#fff; }
.service-row.open .service-toggle i { transform:rotate(45deg); }
.service-toggle i { transition:transform var(--transition); }
.service-details { max-height:0; overflow:hidden; opacity:0; transition:max-height .4s ease, opacity .25s ease; }
.service-row.open .service-details { max-height:180px; opacity:1; }
.service-details p { max-width:650px; font-size:.88rem; }
.service-details a { display:inline-flex; align-items:center; gap:9px; margin-top:15px; color:var(--primary-red); font-family:var(--heading-font); font-size:.64rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }

/* Client logo marquee — contained within page margins */
.client-marquee {
    position:relative; overflow:hidden; width:calc(100% - 90px); margin:0 auto;
    border-top:1px solid #ddd; border-bottom:1px solid #ddd;
    padding:15px 0;
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.client-track { display:flex; align-items:center; width:max-content; animation:clientSlide 28s linear infinite; }
.client-logo { width:190px; height:100px; flex:0 0 190px; display:grid; place-items:center; padding:12px 20px; }
.client-logo img { max-width:150px; max-height:72px; width:auto; height:auto; object-fit:contain; }
@keyframes clientSlide { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.client-marquee:hover .client-track { animation-play-state:paused; }

/* Footer credit */
.footer-bottom .container { flex-wrap:wrap; }
.footer-bottom a { color:#ef6d70; font-weight:700; }
.footer-bottom a:hover { color:#fff; }

@media (max-width:1180px) {
    .fancy-package-grid { grid-template-columns:repeat(3,1fr); }
    .solar-package-card:nth-child(4), .solar-package-card:nth-child(5) { grid-column:auto; }
}
@media (max-width:980px) {
    .packages-heading, .services-heading { grid-template-columns:1fr; gap:15px; }
    .fancy-package-grid { grid-template-columns:repeat(2,1fr); }
    .service-row { grid-template-columns:1fr; gap:22px; }
    .service-row-right { grid-template-columns:48px 1fr; }
}
@media (max-width:700px) {
    .fancy-package-grid { grid-template-columns:1fr; }
    .package-image { height:220px; }
    .package-body h3, .package-detail { min-height:auto; }
    .service-row { padding:25px 0; }
    .service-row-left { gap:16px; }
    .service-row-left h3 { font-size:1.1rem; }
    .service-row-right { grid-template-columns:42px 1fr; gap:13px; }
    .client-marquee { width:calc(100% - 24px); }
    .client-logo { width:150px; flex-basis:150px; }
    .client-logo img { max-width:120px; max-height:58px; }
    .package-source-note { font-size:.68rem; }
}

/* Creative navigation dropdown indicator */
.nav-plus {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.nav-dropdown:hover .nav-plus,
.nav-dropdown.open .nav-plus {
    transform: rotate(45deg);
    background: currentColor;
    color: #fff;
}

.mobile-menu summary span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
