@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root {
    --edm-orange: #f2531e;
    --edm-orange-dark: #c83d12;
    --edm-dark: #101820;
    --edm-navy: #131f2b;
    --edm-charcoal: #202832;
    --edm-text: #26313d;
    --edm-muted: #6b7785;
    --edm-soft: #f5f7fa;
    --edm-white: #ffffff;
    --edm-border: rgba(16, 24, 32, 0.12);
    --shadow-soft: 0 18px 45px rgba(16, 24, 32, 0.12);
    --shadow-strong: 0 25px 70px rgba(16, 24, 32, 0.22);
    --radius: 10px;
    --radius-small: 6px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: var(--edm-text);
    background: var(--edm-white);
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(16, 24, 32, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--edm-white);
    min-width: 240px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--edm-orange), #ff7a45);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
    border-radius: var(--radius-small);
    box-shadow: 0 12px 28px rgba(242, 83, 30, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav .nav-cta {
    background: var(--edm-orange);
    color: #fff;
    margin-left: 4px;
    box-shadow: 0 12px 26px rgba(242, 83, 30, 0.26);
}

.main-nav .nav-cta:hover {
    background: var(--edm-orange-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 42px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 26px;
    margin: 6px auto;
    background: #fff;
    border-radius: 2px;
}

.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--edm-soft);
}

.container {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--edm-orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--edm-orange);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 16px;
    color: var(--edm-dark);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 3.3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 18px;
}

.lead {
    font-size: 1.1rem;
    color: var(--edm-muted);
    max-width: 780px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius-small);
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.22s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--edm-orange);
    color: #fff;
    box-shadow: 0 18px 36px rgba(242, 83, 30, 0.24);
}

.btn-primary:hover {
    background: var(--edm-orange-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: var(--edm-dark);
    border-color: var(--edm-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-dark {
    background: var(--edm-dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--edm-charcoal);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 720px;
    padding: 105px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(242, 83, 30, 0.24), transparent 30%),
        linear-gradient(135deg, #101820 0%, #172433 48%, #0b1118 100%);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.28;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 54px;
    align-items: center;
}

.hero h1 {
    color: #fff;
    max-width: 840px;
}

.hero p {
    color: rgba(255, 255, 255, 0.78);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(16px);
}

.image-placeholder {
    min-height: 370px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(242, 83, 30, 0.28), rgba(255, 255, 255, 0.06)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    padding: 30px;
    font-weight: 700;
}

.stat-strip {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-item {
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item strong {
    display: block;
    color: #fff;
    font-size: 1.2rem;
}

.stat-item span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    align-items: center;
}

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

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

.card {
    background: #fff;
    border: 1px solid var(--edm-border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
    transition: 0.24s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(242, 83, 30, 0.32);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-small);
    background: rgba(242, 83, 30, 0.1);
    color: var(--edm-orange);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.dark-panel {
    background: linear-gradient(135deg, var(--edm-dark), #162433);
    color: #fff;
    border-radius: 20px;
    padding: 46px;
    box-shadow: var(--shadow-strong);
}

.dark-panel h2,
.dark-panel h3 {
    color: #fff;
}

.dark-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: inherit;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--edm-orange);
    font-weight: 900;
}

.cta-band {
    background:
        radial-gradient(circle at 10% 10%, rgba(242, 83, 30, 0.25), transparent 26%),
        linear-gradient(135deg, #101820, #172433);
    color: #fff;
    padding: 72px 0;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer {
    background: #0c1219;
    color: rgba(255, 255, 255, 0.72);
    padding: 64px 0 24px;
}

.footer-grid {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 30px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    letter-spacing: -0.02em;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    margin: 7px 0;
}

.site-footer a:hover {
    color: var(--edm-orange);
}

.footer-bottom {
    width: min(var(--container), calc(100% - 36px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.88rem;
}

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

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

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #101820;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 12px;
        box-shadow: var(--shadow-strong);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 14px;
    }

    .main-nav .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 80px 0 64px;
    }

    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .dark-panel {
        padding: 30px;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .container,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, var(--container));
    }

    .brand {
        min-width: 0;
    }

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .section {
        padding: 62px 0;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


/* === EDM CORPORATE POLISH OVERRIDES START === */

/*
   EDM Solutions corporate polish:
   - Poppins loaded properly
   - softer heading weight
   - tighter professional heading spacing
   - charcoal/dark-grey instead of hard black
   - stronger EDM orange identity
   - cleaner corporate cards and buttons
*/

:root {
    --edm-orange: #f2531e;
    --edm-orange-dark: #d94617;
    --edm-dark: #18222c;
    --edm-navy: #1f2b36;
    --edm-charcoal: #26323d;
    --edm-ink: #202a34;
    --edm-text: #2c3640;
    --edm-muted: #66727f;
    --edm-soft: #f6f8fb;
    --edm-soft-warm: #fbf7f4;
    --edm-white: #ffffff;
    --edm-border: rgba(31, 43, 54, 0.12);
    --shadow-soft: 0 18px 42px rgba(31, 43, 54, 0.10);
    --shadow-strong: 0 28px 70px rgba(31, 43, 54, 0.20);
    --radius: 10px;
    --radius-small: 5px;
}

body {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    color: var(--edm-text);
    letter-spacing: -0.012em;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
}

.site-header {
    background: rgba(31, 43, 54, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.main-nav a {
    font-weight: 600;
    letter-spacing: -0.015em;
}

.brand-text strong {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-text small {
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4 {
    color: var(--edm-ink);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

h1 {
    font-weight: 700;
    font-size: clamp(2.45rem, 4.8vw, 4.65rem);
    max-width: 900px;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.95rem, 3.05vw, 3.05rem);
    max-width: 980px;
}

h3 {
    font-weight: 700;
    letter-spacing: -0.04em;
}

p,
li {
    font-weight: 400;
    letter-spacing: -0.014em;
}

.lead {
    font-weight: 400;
    line-height: 1.72;
    color: var(--edm-muted);
}

.eyebrow {
    color: var(--edm-orange);
    font-weight: 700;
    letter-spacing: 0.11em;
}

.hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(242, 83, 30, 0.22), transparent 32%),
        radial-gradient(circle at 12% 70%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(135deg, #26323d 0%, #1f2b36 48%, #18222c 100%);
}

.hero h1 {
    color: #ffffff;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.hero p {
    color: rgba(255, 255, 255, 0.80);
}

.hero-card {
    background: rgba(255, 255, 255, 0.105);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 80px rgba(19, 31, 43, 0.30);
}

.image-placeholder {
    background:
        linear-gradient(135deg, rgba(242, 83, 30, 0.28), rgba(255, 255, 255, 0.07)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.075), rgba(255,255,255,0.075) 10px, rgba(255,255,255,0.025) 10px, rgba(255,255,255,0.025) 20px);
}

.section {
    padding: 92px 0;
}

.section-soft {
    background:
        radial-gradient(circle at 85% 8%, rgba(242, 83, 30, 0.045), transparent 26%),
        var(--edm-soft);
}

.card {
    border-radius: 9px;
    border: 1px solid rgba(31, 43, 54, 0.11);
    box-shadow: 0 14px 34px rgba(31, 43, 54, 0.075);
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--edm-orange);
    opacity: 0;
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31, 43, 54, 0.14);
    border-color: rgba(242, 83, 30, 0.30);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    border-radius: 5px;
    background: rgba(242, 83, 30, 0.095);
    color: var(--edm-orange);
}

.dark-panel,
.cta-band,
.site-footer {
    background:
        radial-gradient(circle at 80% 10%, rgba(242, 83, 30, 0.15), transparent 28%),
        linear-gradient(135deg, #26323d 0%, #1f2b36 52%, #18222c 100%);
}

.dark-panel {
    border-radius: 16px;
}

.dark-panel h2,
.dark-panel h3,
.cta-band h2,
.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}

.dark-panel p,
.cta-band p {
    color: rgba(255, 255, 255, 0.78);
}

.btn {
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: -0.018em;
    box-shadow: none;
}

.btn-primary,
.main-nav .nav-cta {
    background: var(--edm-orange);
    box-shadow: 0 16px 34px rgba(242, 83, 30, 0.24);
}

.btn-primary:hover,
.main-nav .nav-cta:hover {
    background: var(--edm-orange-dark);
}

.btn-secondary {
    background: #ffffff;
    color: var(--edm-ink);
}

.btn-dark {
    background: #2d3945;
}

.btn-dark:hover {
    background: #22303b;
}

.stat-item {
    background: rgba(255, 255, 255, 0.095);
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 9px;
}

.stat-item strong {
    font-weight: 700;
}

.check-list li {
    line-height: 1.65;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 980px) {
    .main-nav {
        background: #26323d;
    }

    h1 {
        font-size: clamp(2.1rem, 8vw, 3.4rem);
    }

    h2 {
        font-size: clamp(1.7rem, 6vw, 2.55rem);
    }
}

@media (max-width: 560px) {
    body {
        letter-spacing: -0.006em;
    }

    h1,
    h2 {
        letter-spacing: -0.045em;
        line-height: 1.12;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 68px 0 58px;
    }
}

/* === EDM CORPORATE POLISH OVERRIDES END === */


/* About page hero background-ready layout */
.hero-content-wide {
    max-width: 850px;
}

.about-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/about/about-hero.jpg');
    background-size: cover;
    background-position: center;
}

.about-hero-bg .lead {
    max-width: 760px;
}

/* Services page hero background-ready layout */
.services-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/services/services-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* Municipal page hero background-ready layout */
.municipal-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/municipal/municipal-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* FAQ page */
.faq-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/contact/faq-hero.jpg');
    background-size: cover;
    background-position: center;
}

.faq-list {
    margin-top: 30px;
    display: grid;
    gap: 14px;
    max-width: 980px;
}

.faq-list details {
    background: #ffffff;
    border: 1px solid rgba(31, 43, 54, 0.11);
    border-radius: 9px;
    box-shadow: 0 14px 34px rgba(31, 43, 54, 0.075);
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 700;
    color: var(--edm-ink);
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    float: right;
    color: var(--edm-orange);
    font-weight: 800;
}

.faq-list details[open] summary::after {
    content: "–";
}

.faq-list details p {
    padding: 0 24px 22px;
    color: var(--edm-muted);
}

/* Contact page */
.contact-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/contact/contact-hero.jpg');
    background-size: cover;
    background-position: center;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-list div {
    background: #ffffff;
    border: 1px solid rgba(31, 43, 54, 0.11);
    border-radius: 9px;
    padding: 18px 20px;
    box-shadow: 0 14px 34px rgba(31, 43, 54, 0.065);
}

.contact-list strong {
    display: block;
    color: var(--edm-orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-list span {
    display: block;
    color: var(--edm-text);
    font-weight: 500;
}

/* Projects page */
.projects-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/projects/projects-hero.jpg');
    background-size: cover;
    background-position: center;
}

.projects-showcase-grid {
    align-items: stretch;
}

.project-showcase-card {
    background: #ffffff;
    border: 1px solid rgba(31, 43, 54, 0.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31, 43, 54, 0.10);
    transition: 0.24s ease;
    min-height: 100%;
}

.project-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31, 43, 54, 0.14);
    border-color: rgba(242, 83, 30, 0.30);
}

.project-image {
    min-height: 280px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    text-align: center;
    padding: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.70), rgba(242, 83, 30, 0.45));
}

.project-image span {
    position: relative;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 5px;
    background: rgba(31,43,54,0.24);
}

.project-image-centurion {
    background:
        linear-gradient(135deg, rgba(31,43,54,.88), rgba(242,83,30,.52)),
        url('/assets/images/projects/centurion-water-metering.jpg');
    background-size: cover;
    background-position: center;
}

.project-image-eskom {
    background:
        linear-gradient(135deg, rgba(31,43,54,.88), rgba(242,83,30,.52)),
        url('/assets/images/projects/eskom-prepaid-meter-supply.jpg');
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 28px;
}

.project-badge {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--edm-orange);
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.project-content h3 {
    margin-bottom: 14px;
}

.project-content p {
    color: var(--edm-muted);
}

.project-content .check-list {
    margin-top: 22px;
}

@media (max-width: 850px) {
    .project-image {
        min-height: 230px;
    }
}

/* Support landing page */
.support-landing-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/support/support-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* Products page */
.products-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/products/products-hero.jpg');
    background-size: cover;
    background-position: center;
}

/* Products page */
.products-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/products/products-hero.jpg');
    background-size: cover;
    background-position: center;
}

.product-solution-grid {
    display: grid;
    gap: 24px;
}

.product-solution-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    background: #fff;
    border: 1px solid rgba(31, 43, 54, 0.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31, 43, 54, 0.10);
    transition: 0.24s ease;
}

.product-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31, 43, 54, 0.14);
    border-color: rgba(242, 83, 30, 0.30);
}

.product-photo {
    min-height: 340px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.86);
    font-weight: 700;
    text-align: center;
    padding: 26px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.product-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31,43,54,.78), rgba(242,83,30,.44));
}

.product-photo span {
    position: relative;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 5px;
    background: rgba(31,43,54,.25);
    font-size: .85rem;
}

.product-photo-landlord {
    background-image:
        linear-gradient(135deg, rgba(31,43,54,.78), rgba(242,83,30,.44)),
        url('/assets/images/products/landlord-prepaid-meter.jpg');
}

.product-photo-body-corporate {
    background-image:
        linear-gradient(135deg, rgba(31,43,54,.78), rgba(242,83,30,.44)),
        url('/assets/images/products/body-corporate-metering.jpg');
}

.product-photo-municipal {
    background-image:
        linear-gradient(135deg, rgba(31,43,54,.78), rgba(242,83,30,.44)),
        url('/assets/images/products/municipal-metering-products.jpg');
}

.product-photo-contractor {
    background-image:
        linear-gradient(135deg, rgba(31,43,54,.78), rgba(242,83,30,.44)),
        url('/assets/images/products/contractor-meter-supply.jpg');
}

.product-copy {
    padding: 34px;
}

.product-label {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--edm-orange);
    font-weight: 800;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.product-copy h3 {
    margin-bottom: 14px;
}

.product-copy p {
    color: var(--edm-muted);
}

.product-copy .check-list {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .product-solution-card {
        grid-template-columns: 1fr;
    }

    .product-photo {
        min-height: 260px;
    }

    .product-copy {
        padding: 26px;
    }
}

/* Product gallery overlay */
.product-photo {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.product-photo:hover span {
    background: rgba(242,83,30,.88);
    border-color: rgba(242,83,30,.95);
}

.product-gallery-open {
    overflow: hidden;
}

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-gallery-modal.is-open {
    display: flex;
}

.product-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,24,32,.78);
    backdrop-filter: blur(8px);
}

.product-gallery-dialog {
    position: relative;
    width: min(100%, 980px);
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.product-gallery-head {
    padding: 18px 20px;
    background: linear-gradient(135deg,#26323d,#1f2b36);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.product-gallery-head strong {
    display: block;
    font-size: 1rem;
}

.product-gallery-head span {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
}

.product-gallery-close {
    border: 0;
    border-radius: 5px;
    padding: 9px 12px;
    background: #f2531e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.product-gallery-main {
    position: relative;
    min-height: 420px;
    background: #101820;
    display: grid;
    place-items: center;
    padding: 18px 58px;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 62vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.product-gallery-nav:hover {
    background: #f2531e;
}

#productGalleryPrev {
    left: 12px;
}

#productGalleryNext {
    right: 12px;
}

.product-gallery-thumbs {
    padding: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: #f6f8fb;
}

.product-gallery-thumbs button {
    border: 2px solid transparent;
    border-radius: 7px;
    padding: 0;
    overflow: hidden;
    min-width: 74px;
    width: 74px;
    height: 56px;
    cursor: pointer;
    background: #fff;
}

.product-gallery-thumbs button.active {
    border-color: #f2531e;
}

.product-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 700px) {
    .product-gallery-modal {
        padding: 10px;
    }

    .product-gallery-dialog {
        max-height: 94vh;
    }

    .product-gallery-head {
        padding: 14px;
    }

    .product-gallery-main {
        min-height: 300px;
        padding: 14px 48px;
    }

    .product-gallery-main img {
        max-height: 56vh;
    }
}

/* Header navigation alignment fix after adding Products page */
@media (min-width: 981px) {
    .nav-wrap {
        width: min(1240px, calc(100% - 34px));
        gap: 16px;
    }

    .brand {
        min-width: 210px;
        flex-shrink: 0;
    }

    .main-nav {
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
    }

    .main-nav a {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 9px 9px;
        line-height: 1.1;
    }

    .main-nav .nav-cta {
        padding: 10px 13px;
        margin-left: 4px;
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    .brand-text small {
        display: none;
    }

    .brand {
        min-width: 170px;
    }

    .main-nav a {
        font-size: 0.76rem;
        padding: 8px 7px;
    }

    .main-nav .nav-cta {
        padding: 9px 10px;
    }
}

/* EDM logo support */
.brand-logo-wrap {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 12px 28px rgba(242, 83, 30, 0.18);
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 560px) {
    .brand-logo-wrap {
        width: 42px;
        height: 42px;
        padding: 4px;
    }
}

/* Premium floating/sticky navigation enhancement */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(31, 43, 54, 0.98) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 44px rgba(16, 24, 32, 0.22);
}

.nav-wrap {
    min-height: 76px;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 83, 30, 0.65), transparent);
    pointer-events: none;
}

.brand {
    padding: 7px 0;
}

.brand-logo-wrap {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.main-nav a {
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.10);
}

.main-nav .nav-cta {
    background: var(--edm-orange) !important;
    border-color: rgba(242, 83, 30, 0.65);
    box-shadow: 0 14px 30px rgba(242, 83, 30, 0.30);
}

@media (min-width: 981px) {
    .site-header {
        margin: 0;
    }

    .nav-wrap {
        width: min(1280px, calc(100% - 36px));
    }
}

@media (max-width: 980px) {
    .site-header {
        box-shadow: 0 14px 34px rgba(16, 24, 32, 0.24);
    }

    .main-nav {
        background: rgba(31, 43, 54, 0.99) !important;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Global mobile-first UX polish for EDM development website */
@media (max-width: 980px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 3000;
    }

    .nav-wrap {
        width: min(100% - 24px, var(--container));
        min-height: 68px;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 54px);
    }

    .brand-text strong {
        font-size: 0.92rem;
        line-height: 1.1;
    }

    .brand-text small {
        font-size: 0.68rem;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .main-nav {
        top: 76px;
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 94px);
        overflow-y: auto;
        border-radius: 10px;
    }

    .main-nav a {
        font-size: 0.92rem;
        padding: 14px 14px;
        width: 100%;
    }

    .main-nav .nav-cta {
        margin-top: 6px;
        text-align: center;
    }

    .hero,
    .about-hero-bg,
    .services-hero-bg,
    .municipal-hero-bg,
    .projects-hero-bg,
    .products-hero-bg,
    .faq-hero-bg,
    .contact-hero-bg,
    .support-landing-hero-bg {
        min-height: auto;
        padding: 72px 0 60px;
    }

    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-grid,
    .product-solution-card {
        grid-template-columns: 1fr !important;
    }

    .hero-content-wide,
    .hero .lead,
    .lead {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(2.05rem, 8vw, 3.25rem);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(1.7rem, 6.5vw, 2.55rem);
        line-height: 1.12;
    }

    .section {
        padding: 64px 0;
    }

    .container {
        width: min(100% - 24px, var(--container));
    }

    .card,
    .dark-panel,
    .project-showcase-card,
    .product-solution-card {
        border-radius: 9px;
    }

    .card {
        padding: 22px;
    }

    .dark-panel {
        padding: 28px 22px;
    }

    .btn-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        padding: 13px 16px;
    }

    .product-photo,
    .project-image {
        min-height: 240px;
    }

    .product-copy,
    .project-content {
        padding: 24px 22px;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-list summary {
        padding: 18px 18px;
        font-size: 0.95rem;
    }

    .faq-list details p {
        padding: 0 18px 18px;
    }

    .footer-grid {
        gap: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .brand-logo-wrap,
    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text small {
        display: none;
    }

    .hero,
    .about-hero-bg,
    .services-hero-bg,
    .municipal-hero-bg,
    .projects-hero-bg,
    .products-hero-bg,
    .faq-hero-bg,
    .contact-hero-bg,
    .support-landing-hero-bg {
        padding: 58px 0 50px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: -0.045em;
    }

    h2 {
        font-size: 1.65rem;
        letter-spacing: -0.04em;
    }

    .lead,
    p {
        font-size: 0.92rem;
    }

    .section {
        padding: 54px 0;
    }

    .card {
        padding: 20px;
    }

    .product-photo,
    .project-image {
        min-height: 220px;
    }

    .product-gallery-dialog {
        width: calc(100vw - 20px);
    }

    .product-gallery-main {
        min-height: 260px;
        padding: 12px 46px;
    }

    .product-gallery-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-gallery-close {
        width: 100%;
    }
}

/* Product image visibility + premium modal animation */
.product-photo::before {
    background: linear-gradient(135deg, rgba(31,43,54,.26), rgba(242,83,30,.18)) !important;
}

.product-photo span {
    background: rgba(31,43,54,.62) !important;
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
    backdrop-filter: blur(6px);
}

.product-photo:hover::before {
    background: linear-gradient(135deg, rgba(31,43,54,.18), rgba(242,83,30,.12)) !important;
}

.product-photo:hover span {
    background: rgba(242,83,30,.82) !important;
}

.product-gallery-backdrop {
    background: rgba(16,24,32,.84) !important;
    backdrop-filter: blur(10px);
}

.product-gallery-dialog {
    animation: edmGalleryDialogIn .45s ease both;
}

.product-gallery-main img {
    opacity: 1;
    transform: scale(1);
    transition: opacity .55s ease, transform 1.4s ease;
}

.product-gallery-main img.is-changing {
    opacity: 0;
    transform: scale(.965) translateX(10px);
}

.product-gallery-main img.is-loaded {
    animation: edmProductImageBreath 7.5s ease-in-out infinite alternate;
}

.product-gallery-thumbs button {
    transition: transform .25s ease, border-color .25s ease, opacity .25s ease;
    opacity: .72;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes edmGalleryDialogIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes edmProductImageBreath {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.035);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery-dialog,
    .product-gallery-main img,
    .product-gallery-main img.is-loaded {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* Final Products Solution Block image consistency */
.product-solution-card .product-photo {
    background-size: cover !important;
    background-position: center !important;
    min-height: 360px;
    overflow: hidden;
}

.product-solution-card .product-photo::before {
    background: linear-gradient(
        135deg,
        rgba(31, 43, 54, 0.16),
        rgba(242, 83, 30, 0.10)
    ) !important;
}

.product-solution-card .product-photo:hover::before {
    background: linear-gradient(
        135deg,
        rgba(31, 43, 54, 0.08),
        rgba(242, 83, 30, 0.06)
    ) !important;
}

.product-solution-card .product-photo span {
    background: rgba(31, 43, 54, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.36) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(31, 43, 54, 0.18);
}

.product-solution-card .product-photo:hover span {
    background: rgba(242, 83, 30, 0.86) !important;
}

/* Slow premium image reveal on product solution cards */
.product-solution-card .product-photo {
    transition: transform 1.2s ease, filter 1.2s ease;
}

.product-solution-card:hover .product-photo {
    transform: scale(1.018);
    filter: saturate(1.04) contrast(1.02);
}

/* Keep mobile product blocks clean */
@media (max-width: 900px) {
    .product-solution-card .product-photo {
        min-height: 270px;
    }
}

@media (max-width: 560px) {
    .product-solution-card .product-photo {
        min-height: 230px;
    }

    .product-solution-card .product-photo span {
        font-size: 0.78rem;
        max-width: calc(100% - 32px);
    }
}

/* Project detail template */
.project-detail-hero {
    min-height: 620px;
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-gallery-item {
    border: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    background: #fff;
}

.project-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

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

.project-lightbox-open {
    overflow: hidden;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-lightbox.is-open {
    display: flex;
}

.project-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,24,32,.84);
    backdrop-filter: blur(10px);
}

.project-lightbox-dialog {
    position: relative;
    width: min(100%, 980px);
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
    animation: edmGalleryDialogIn .45s ease both;
}

.project-lightbox-head {
    padding: 18px 20px;
    background: linear-gradient(135deg,#26323d,#1f2b36);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.project-lightbox-head button {
    border: 0;
    border-radius: 5px;
    padding: 9px 12px;
    background: #f2531e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.project-lightbox-main {
    position: relative;
    min-height: 440px;
    background: #101820;
    display: grid;
    place-items: center;
    padding: 18px 58px;
}

.project-lightbox-main img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity .45s ease, transform 1s ease;
}

.project-lightbox-main img.is-changing {
    opacity: 0;
    transform: scale(.965);
}

.project-lightbox-main button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.project-lightbox-main button:hover {
    background: #f2531e;
}

#projectLightboxPrev {
    left: 12px;
}

#projectLightboxNext {
    right: 12px;
}

@media(max-width: 900px) {
    .project-detail-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery-item img {
        height: 240px;
    }

    .project-lightbox-main {
        min-height: 300px;
        padding: 14px 48px;
    }
}

/* Dynamic recent projects listing */
.project-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-list-card {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    transition: .24s ease;
}

.project-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31,43,54,.14);
    border-color: rgba(242,83,30,.30);
}

.project-list-image {
    min-height: 290px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.34), rgba(242,83,30,.18)),
        radial-gradient(circle at 82% 24%, rgba(242,83,30,.24), transparent 32%),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 22px;
}

.project-list-image span {
    background: rgba(31,43,54,.62);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(6px);
}

.project-list-content {
    padding: 28px;
}

.project-list-content h3 {
    margin-bottom: 14px;
}

.project-list-content p {
    color: var(--edm-muted);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.project-meta span {
    background: #fff6f2;
    color: var(--edm-orange);
    border: 1px solid #ffd7c7;
    border-radius: 5px;
    padding: 7px 9px;
    font-size: .76rem;
    font-weight: 800;
}

@media(max-width: 900px) {
    .project-list-grid {
        grid-template-columns: 1fr;
    }

    .project-list-image {
        min-height: 240px;
    }
}

/* Project Team in Action image cards */
.team-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-action-card {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    transition: .24s ease;
}

.team-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31,43,54,.14);
    border-color: rgba(242,83,30,.30);
}

.team-action-photo {
    min-height: 180px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.34), rgba(242,83,30,.16)),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 14px;
}

.team-action-photo span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: .74rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.team-action-body {
    padding: 20px;
}

.team-action-body h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0;
}

@media(max-width: 1000px) {
    .team-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 620px) {
    .team-action-grid {
        grid-template-columns: 1fr;
    }

    .team-action-photo {
        min-height: 220px;
    }
}

/* Project gallery empty-state placeholder */
.project-gallery-placeholder {
    min-height: 260px;
    border: 1px dashed rgba(31,43,54,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #ffffff;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.project-gallery-placeholder strong {
    display: block;
    color: var(--edm-ink);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.project-gallery-placeholder span {
    display: block;
    color: var(--edm-muted);
    max-width: 620px;
    line-height: 1.65;
}

/* Sectors page */
.sectors-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/sectors/sectors-hero.jpg');
    background-size: cover;
    background-position: center;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.sector-card {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    transition: .24s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31,43,54,.14);
    border-color: rgba(242,83,30,.30);
}

.sector-image {
    min-height: 260px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 20px;
}

.sector-image span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(6px);
}

.sector-landlords {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/landlords.jpg');
}

.sector-body-corporates {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/body-corporates.jpg');
}

.sector-developers {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/developers.jpg');
}

.sector-contractors {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/contractors.jpg');
}

.sector-business {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/business.jpg');
}

.sector-municipal {
    background-image:linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)), url('/assets/images/sectors/municipal.jpg');
}

.sector-body {
    padding: 28px;
}

.sector-body p {
    color: var(--edm-muted);
}

@media(max-width:900px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }

    .sector-image {
        min-height: 230px;
    }
}

/* Sectors dropdown menu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

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

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 0.66rem;
    color: rgba(255,255,255,.65);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 290px;
    background: rgba(31,43,54,.99);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    box-shadow: 0 24px 54px rgba(16,24,32,.28);
    padding: 10px;
    display: none;
    z-index: 4000;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
    animation: edmDropdownIn .18s ease-out;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    color: rgba(255,255,255,.84) !important;
    padding: 11px 12px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(242,83,30,.18) !important;
    color: #fff !important;
}

@keyframes edmDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile dropdown behaviour */
@media (max-width: 980px) {
    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        width: 100%;
        margin: 4px 0 8px;
        padding: 8px;
        background: rgba(255,255,255,.06);
        border-radius: 8px;
        box-shadow: none;
    }

    .nav-dropdown-menu a {
        font-size: 0.86rem !important;
        padding: 11px 12px !important;
        white-space: normal;
    }
}

/* Sector detail template */
.sector-detail-hero {
    min-height: 620px;
}

@media(max-width:900px) {
    .sector-detail-hero {
        min-height: auto;
    }
}

/* Service detail template */
.service-detail-hero {
    min-height: 620px;
}

.service-main-image {
    min-height: 430px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.30), rgba(242,83,30,.12)),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
}

.service-main-image span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .78rem;
    backdrop-filter: blur(6px);
}

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

.service-gallery-item {
    border: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    background: #fff;
}

.service-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

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

.service-lightbox-open {
    overflow: hidden;
}

.service-lightbox {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-lightbox.is-open {
    display: flex;
}

.service-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,24,32,.84);
    backdrop-filter: blur(10px);
}

.service-lightbox-dialog {
    position: relative;
    width: min(100%, 980px);
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
    animation: edmGalleryDialogIn .45s ease both;
}

.service-lightbox-head {
    padding: 18px 20px;
    background: linear-gradient(135deg,#26323d,#1f2b36);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.service-lightbox-head button {
    border: 0;
    border-radius: 5px;
    padding: 9px 12px;
    background: #f2531e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.service-lightbox-main {
    position: relative;
    min-height: 440px;
    background: #101820;
    display: grid;
    place-items: center;
    padding: 18px 58px;
}

.service-lightbox-main img {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity .45s ease, transform 1s ease;
}

.service-lightbox-main img.is-changing {
    opacity: 0;
    transform: scale(.965);
}

.service-lightbox-main button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.service-lightbox-main button:hover {
    background: #f2531e;
}

#serviceLightboxPrev {
    left: 12px;
}

#serviceLightboxNext {
    right: 12px;
}

@media(max-width: 900px) {
    .service-detail-hero {
        min-height: auto;
    }

    .service-main-image {
        min-height: 280px;
    }

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

    .service-gallery-item img {
        height: 240px;
    }

    .service-lightbox-main {
        min-height: 300px;
        padding: 14px 48px;
    }
}

/* Mobile dropdown menu should open only on click */
@media (max-width: 980px) {
    .main-nav .nav-dropdown-menu {
        display: none !important;
        margin-top: 6px;
    }

    .main-nav .nav-dropdown.is-open .nav-dropdown-menu {
        display: block !important;
    }

    .main-nav .nav-dropdown-toggle {
        position: relative;
        justify-content: space-between;
    }

    .main-nav .nav-dropdown-toggle::after {
        content: "▾";
        margin-left: auto;
        transition: transform .22s ease;
    }

    .main-nav .nav-dropdown.is-open .nav-dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Mobile dropdown menu should open only when tapped */
@media (max-width: 980px) {
    .main-nav .nav-dropdown-menu {
        display: none !important;
        margin-top: 6px;
    }

    .main-nav .nav-dropdown.is-open .nav-dropdown-menu {
        display: block !important;
    }

    .main-nav .nav-dropdown-toggle {
        position: relative;
        justify-content: space-between;
    }

    .main-nav .nav-dropdown-toggle::after {
        content: "▾";
        margin-left: auto;
        transition: transform .22s ease;
    }

    .main-nav .nav-dropdown.is-open .nav-dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Development preview placeholders */
.service-preview-image {
    border: 1px dashed rgba(31,43,54,.22);
}

.service-gallery-placeholder {
    min-height: 240px;
    border: 1px dashed rgba(31,43,54,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #ffffff;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.service-gallery-placeholder strong {
    display: block;
    color: var(--edm-ink);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-gallery-placeholder span {
    display: block;
    color: var(--edm-muted);
    max-width: 620px;
    line-height: 1.65;
}

/* Homepage partner logo carousel */
.partner-logo-section {
    background:
        radial-gradient(circle at 85% 8%, rgba(242,83,30,.045), transparent 26%),
        #ffffff;
}

.partner-logo-stack {
    display: grid;
    gap: 26px;
    margin-top: 38px;
}

.partner-logo-row {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.partner-logo-heading {
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(31,43,54,.08);
}

.partner-logo-heading h3 {
    margin-bottom: 8px;
}

.partner-logo-heading p {
    color: var(--edm-muted);
    margin: 0;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    background: #f6f8fb;
}

.logo-marquee::before,
.logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #f6f8fb, transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #f6f8fb, transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
}

.logo-marquee-left .logo-marquee-track {
    animation: edmLogoScrollLeft 42s linear infinite;
}

.logo-marquee-right .logo-marquee-track {
    animation: edmLogoScrollRight 46s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.partner-logo-card {
    width: 170px;
    height: 92px;
    background: #fff;
    border: 1px solid rgba(31,43,54,.10);
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(31,43,54,.06);
    flex-shrink: 0;
}

.partner-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(.92) contrast(1.02);
}

.partner-logo-placeholder {
    min-height: 130px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #fff;
    border-top: 1px dashed rgba(31,43,54,.18);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 26px;
}

.partner-logo-placeholder strong {
    display: block;
    color: var(--edm-ink);
    margin-bottom: 8px;
}

.partner-logo-placeholder span {
    color: var(--edm-muted);
    line-height: 1.6;
}

@keyframes edmLogoScrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes edmLogoScrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 700px) {
    .partner-logo-heading {
        padding: 20px;
    }

    .partner-logo-card {
        width: 138px;
        height: 78px;
        padding: 13px;
    }

    .logo-marquee-left .logo-marquee-track {
        animation-duration: 36s;
    }

    .logo-marquee-right .logo-marquee-track {
        animation-duration: 40s;
    }
}

/* Home Team in Action scrolling row */
.home-team-action-section {
    background:
        radial-gradient(circle at 85% 8%, rgba(242,83,30,.045), transparent 26%),
        #ffffff;
    overflow: hidden;
}

.home-action-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 38px;
    padding: 10px 0 18px;
    position: relative;
}

.home-action-marquee::before,
.home-action-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
}

.home-action-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff, transparent);
}

.home-action-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff, transparent);
}

.home-action-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: edmTeamActionScroll 58s linear infinite;
    will-change: transform;
}

.home-action-marquee:hover .home-action-track {
    animation-play-state: paused;
}

.home-action-photo {
    width: 310px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.14);
    border: 1px solid rgba(31,43,54,.10);
    background: #f6f8fb;
}

.home-action-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: edmActionBreath 7.5s ease-in-out infinite alternate;
    transform-origin: center;
}

.home-action-photo:nth-child(2n) img {
    animation-delay: 1.2s;
}

.home-action-photo:nth-child(3n) img {
    animation-delay: 2.4s;
}

.home-action-placeholder {
    margin-top: 34px;
    min-height: 150px;
    border: 1px dashed rgba(31,43,54,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #ffffff;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.home-action-placeholder strong {
    display: block;
    color: var(--edm-ink);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.home-action-placeholder span {
    color: var(--edm-muted);
    line-height: 1.6;
}

/* Make partner logo rows feel like slow scrolling, not quick sliding */
.logo-marquee-left .logo-marquee-track {
    animation-duration: 68s !important;
}

.logo-marquee-right .logo-marquee-track {
    animation-duration: 74s !important;
}

.partner-logo-card img {
    animation: edmPartnerLogoBreath 8.5s ease-in-out infinite alternate;
}

.partner-logo-card:nth-child(2n) img {
    animation-delay: 1.2s;
}

.partner-logo-card:nth-child(3n) img {
    animation-delay: 2.4s;
}

@keyframes edmTeamActionScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes edmActionBreath {
    from { transform: scale(1); }
    to { transform: scale(1.055); }
}

@keyframes edmPartnerLogoBreath {
    from { transform: scale(.96); }
    to { transform: scale(1.035); }
}

@media (max-width: 760px) {
    .home-action-track {
        gap: 14px;
        animation-duration: 46s;
    }

    .home-action-photo {
        width: 245px;
        height: 170px;
    }

    .home-action-marquee::before,
    .home-action-marquee::after {
        width: 46px;
    }

    .logo-marquee-left .logo-marquee-track {
        animation-duration: 52s !important;
    }

    .logo-marquee-right .logo-marquee-track {
        animation-duration: 58s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-action-track,
    .logo-marquee-track,
    .home-action-photo img,
    .partner-logo-card img {
        animation: none !important;
    }
}

/* Centre-focused zoom for scrolling image/logo rows */
.home-action-photo img,
.partner-logo-card img {
    animation: none !important;
    transform: scale(1);
    transition: transform 1.1s ease, filter 1.1s ease;
}

.home-action-photo.is-centre img {
    transform: scale(1.08);
    filter: saturate(1.06) contrast(1.03);
}

.partner-logo-card.is-centre img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.03);
}

.home-action-photo,
.partner-logo-card {
    transition: box-shadow 1.1s ease, border-color 1.1s ease;
}

.home-action-photo.is-centre,
.partner-logo-card.is-centre {
    border-color: rgba(242,83,30,.40);
    box-shadow: 0 24px 58px rgba(31,43,54,.20);
}

/* Home Team in Action scrolling row */
.home-team-action-section {
    background:
        radial-gradient(circle at 85% 8%, rgba(242,83,30,.045), transparent 26%),
        #ffffff;
    overflow: hidden;
}

.home-action-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 38px;
    padding: 10px 0 18px;
    position: relative;
}

.home-action-marquee::before,
.home-action-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
}

.home-action-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff, transparent);
}

.home-action-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff, transparent);
}

.home-action-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: edmTeamActionScroll 58s linear infinite;
    will-change: transform;
}

.home-action-marquee:hover .home-action-track {
    animation-play-state: paused;
}

.home-action-photo {
    width: 310px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.14);
    border: 1px solid rgba(31,43,54,.10);
    background: #f6f8fb;
}

.home-action-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: edmActionBreath 7.5s ease-in-out infinite alternate;
    transform-origin: center;
}

.home-action-photo:nth-child(2n) img {
    animation-delay: 1.2s;
}

.home-action-photo:nth-child(3n) img {
    animation-delay: 2.4s;
}

.home-action-placeholder {
    margin-top: 34px;
    min-height: 150px;
    border: 1px dashed rgba(31,43,54,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #ffffff;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.home-action-placeholder strong {
    display: block;
    color: var(--edm-ink);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.home-action-placeholder span {
    color: var(--edm-muted);
    line-height: 1.6;
}

/* Make partner logo rows feel like slow scrolling, not quick sliding */
.logo-marquee-left .logo-marquee-track {
    animation-duration: 68s !important;
}

.logo-marquee-right .logo-marquee-track {
    animation-duration: 74s !important;
}

.partner-logo-card img {
    animation: edmPartnerLogoBreath 8.5s ease-in-out infinite alternate;
}

.partner-logo-card:nth-child(2n) img {
    animation-delay: 1.2s;
}

.partner-logo-card:nth-child(3n) img {
    animation-delay: 2.4s;
}

@keyframes edmTeamActionScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes edmActionBreath {
    from { transform: scale(1); }
    to { transform: scale(1.055); }
}

@keyframes edmPartnerLogoBreath {
    from { transform: scale(.96); }
    to { transform: scale(1.035); }
}

@media (max-width: 760px) {
    .home-action-track {
        gap: 14px;
        animation-duration: 46s;
    }

    .home-action-photo {
        width: 245px;
        height: 170px;
    }

    .home-action-marquee::before,
    .home-action-marquee::after {
        width: 46px;
    }

    .logo-marquee-left .logo-marquee-track {
        animation-duration: 52s !important;
    }

    .logo-marquee-right .logo-marquee-track {
        animation-duration: 58s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-action-track,
    .logo-marquee-track,
    .home-action-photo img,
    .partner-logo-card img {
        animation: none !important;
    }
}

/* Centre-focused zoom for scrolling image/logo rows */
.home-action-photo img,
.partner-logo-card img {
    animation: none !important;
    transform: scale(1);
    transition: transform 1.1s ease, filter 1.1s ease;
}

.home-action-photo.is-centre img {
    transform: scale(1.08);
    filter: saturate(1.06) contrast(1.03);
}

.partner-logo-card.is-centre img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.03);
}

.home-action-photo,
.partner-logo-card {
    transition: box-shadow 1.1s ease, border-color 1.1s ease;
}

.home-action-photo.is-centre,
.partner-logo-card.is-centre {
    border-color: rgba(242,83,30,.40);
    box-shadow: 0 24px 58px rgba(31,43,54,.20);
}

/* Stronger centre-pop effect for scrolling rows */
.home-action-photo,
.partner-logo-card {
    transform: scale(1);
    transition:
        transform 0.9s ease,
        box-shadow 0.9s ease,
        border-color 0.9s ease,
        opacity 0.9s ease;
    opacity: 0.78;
}

.home-action-photo.is-centre {
    transform: scale(1.13);
    opacity: 1;
    z-index: 5;
    border-color: rgba(242,83,30,.55);
    box-shadow: 0 30px 70px rgba(31,43,54,.28);
}

.partner-logo-card.is-centre {
    transform: scale(1.12);
    opacity: 1;
    z-index: 5;
    border-color: rgba(242,83,30,.45);
    box-shadow: 0 22px 48px rgba(31,43,54,.18);
}

.home-action-photo img,
.partner-logo-card img {
    animation: none !important;
    transform: scale(1);
    transition: transform 0.9s ease, filter 0.9s ease;
}

.home-action-photo.is-centre img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.partner-logo-card.is-centre img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.03);
}

/* Give space so centre image can grow without clipping */
.home-action-marquee,
.logo-marquee {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
}

.home-action-track,
.logo-marquee-track {
    align-items: center;
}

/* Partner logo centre-pop refinement */
.partner-logo-card {
    transform: scale(1);
    opacity: 0.76;
    transition:
        transform 0.9s ease,
        opacity 0.9s ease,
        box-shadow 0.9s ease,
        border-color 0.9s ease;
}

.partner-logo-card.is-centre {
    transform: scale(1.14);
    opacity: 1;
    z-index: 6;
    border-color: rgba(242,83,30,.55);
    box-shadow: 0 24px 58px rgba(31,43,54,.22);
}

.partner-logo-card img {
    animation: none !important;
    transform: scale(1);
    transition: transform 0.9s ease, filter 0.9s ease;
}

.partner-logo-card.is-centre img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.04);
}

/* Extra spacing so centre logo can grow without being cut */
.logo-marquee {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
}

.logo-marquee-track {
    align-items: center;
}

/* Home Hero Visual */
.home-hero-visual-card {
    padding: 18px;
}

.home-hero-visual {
    min-height: 390px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: end start;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.18);
}

.home-hero-visual span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .78rem;
    backdrop-filter: blur(6px);
}

@media(max-width: 900px) {
    .home-hero-visual {
        min-height: 280px;
    }
}

/* Homepage hero compact premium adjustment */
.home-hero-background {
    min-height: 650px;
    padding: 82px 0 58px;
}

.home-hero-background h1 {
    font-size: clamp(2.4rem, 4.1vw, 4.05rem);
    line-height: 1.06;
    max-width: 720px;
}

.home-hero-background .lead {
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.62;
}

.home-hero-background .btn-row {
    margin-top: 22px;
}

.home-hero-background .stat-strip {
    margin-top: 28px;
    gap: 10px;
    max-width: 650px;
}

.home-hero-background .stat-item {
    padding: 13px 14px;
}

.home-hero-background .stat-item strong {
    font-size: 1rem;
}

.home-hero-background .stat-item span {
    font-size: 0.76rem;
    line-height: 1.35;
}

.home-hero-visual {
    min-height: 330px;
}

.home-hero-visual-card {
    padding: 14px;
}

@media (max-width: 980px) {
    .home-hero-background {
        min-height: auto;
        padding: 64px 0 54px;
    }

    .home-hero-background h1 {
        font-size: clamp(2.05rem, 8vw, 3.15rem);
        max-width: 100%;
    }

    .home-hero-background .lead {
        max-width: 100%;
    }

    .home-hero-background .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .home-hero-visual {
        min-height: 250px;
    }
}

@media (max-width: 560px) {
    .home-hero-background h1 {
        font-size: 2rem;
    }

    .home-hero-background .stat-strip {
        grid-template-columns: 1fr 1fr;
    }

    .home-hero-background .stat-item {
        padding: 12px;
    }
}

/* Partner logo containment fix */
.partner-logo-card {
    width: 180px !important;
    height: 96px !important;
    padding: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.partner-logo-card img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 140px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

.partner-logo-card.is-centre img {
    transform: scale(1.04) !important;
}

/* Payment platform logos sometimes have wide transparent canvas, keep them tighter */
.partner-logo-row .logo-marquee {
    overflow: hidden !important;
}

.logo-marquee-track {
    align-items: center !important;
}

/* Mobile logo containment */
@media (max-width: 700px) {
    .partner-logo-card {
        width: 145px !important;
        height: 82px !important;
        padding: 14px !important;
    }

    .partner-logo-card img {
        max-width: 112px !important;
        max-height: 48px !important;
    }
}

/* Home Product Showcase scrolling row */
.home-product-showcase-section {
    background:
        radial-gradient(circle at 85% 8%, rgba(242,83,30,.045), transparent 26%),
        #ffffff;
    overflow: hidden;
}

.home-product-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 38px;
    padding: 42px 0;
    position: relative;
}

.home-product-marquee::before,
.home-product-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
}

.home-product-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff, transparent);
}

.home-product-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff, transparent);
}

.home-product-track {
    display: flex;
    gap: 18px;
    width: max-content;
    align-items: center;
    animation: edmHomeProductScroll 62s linear infinite;
    will-change: transform;
}

.home-product-marquee:hover .home-product-track {
    animation-play-state: paused;
}

.home-product-photo {
    width: 300px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f8fb;
    border: 1px solid rgba(31,43,54,.10);
    box-shadow: 0 18px 42px rgba(31,43,54,.14);
    opacity: 0.78;
    transform: scale(1);
    transition:
        transform 0.9s ease,
        opacity 0.9s ease,
        box-shadow 0.9s ease,
        border-color 0.9s ease;
}

.home-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease, filter 0.9s ease;
}

.home-product-photo.is-centre {
    transform: scale(1.13);
    opacity: 1;
    z-index: 6;
    border-color: rgba(242,83,30,.55);
    box-shadow: 0 30px 70px rgba(31,43,54,.26);
}

.home-product-photo.is-centre img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

@keyframes edmHomeProductScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
    .home-product-track {
        gap: 14px;
        animation-duration: 48s;
    }

    .home-product-photo {
        width: 245px;
        height: 170px;
    }

    .home-product-marquee::before,
    .home-product-marquee::after {
        width: 46px;
    }
}

/* Home Product Showcase: show full meter/product image without cropping */
.home-product-photo {
    background: #ffffff !important;
    padding: 14px !important;
}

.home-product-photo img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #ffffff !important;
}

.home-product-photo.is-centre img {
    transform: scale(1.035) !important;
}

/* Keep Team in Action as cropped real-life photos */
.home-action-photo img {
    object-fit: cover !important;
}

/* Utility Vending System solution page */
.vending-system-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31, 43, 54, 0.94), rgba(24, 34, 44, 0.91)),
        radial-gradient(circle at 82% 24%, rgba(242, 83, 30, 0.24), transparent 32%),
        url('/assets/images/solutions/utility-vending-system/hero.jpg');
    background-size: cover;
    background-position: center;
}

.vending-system-visual {
    min-height: 420px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.30), rgba(242,83,30,.12)),
        url('/assets/images/solutions/utility-vending-system/system-visual.jpg');
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
}

.vending-system-visual span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .78rem;
    backdrop-filter: blur(6px);
}

@media(max-width: 900px) {
    .vending-system-hero-bg {
        min-height: auto;
    }

    .vending-system-visual {
        min-height: 280px;
    }
}

/* Utility Vending System illustration sections */
.solution-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.solution-visual-card {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    transition: .24s ease;
}

.solution-visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31,43,54,.14);
    border-color: rgba(242,83,30,.30);
}

.solution-visual-photo {
    min-height: 270px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 20px;
}

.solution-visual-photo span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .78rem;
    backdrop-filter: blur(6px);
}

.solution-visual-body {
    padding: 26px;
}

.solution-visual-body p {
    color: var(--edm-muted);
}

.solution-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.solution-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    background: #fff;
}

.solution-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.solution-gallery-placeholder {
    min-height: 240px;
    border: 1px dashed rgba(31,43,54,.22);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.08), rgba(242,83,30,.06)),
        #ffffff;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,43,54,.08);
}

.solution-gallery-placeholder strong {
    display: block;
    color: var(--edm-ink);
    margin-bottom: 8px;
}

.solution-gallery-placeholder span {
    color: var(--edm-muted);
    line-height: 1.6;
}

@media(max-width:900px) {
    .solution-visual-grid,
    .solution-gallery-grid {
        grid-template-columns: 1fr;
    }

    .solution-visual-photo {
        min-height: 230px;
    }
}


/* One-time EDM welcome loader */
.edm-site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(242,83,30,.16), transparent 32%),
        linear-gradient(135deg, #26323d 0%, #1f2b36 52%, #18222c 100%);
    transition: opacity .55s ease, visibility .55s ease;
}

.edm-site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.edm-loader-inner {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 34px;
}

.edm-loader-logo-wrap {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 22px 55px rgba(242,83,30,.28);
    margin-bottom: 18px;
}

.edm-loader-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edm-loader-logo-wrap span {
    color: #f2531e;
    font-weight: 900;
    font-size: 1.35rem;
}

.edm-loader-ring {
    position: absolute;
    top: 14px;
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
    border-top-color: #f2531e;
    border-right-color: rgba(242,83,30,.55);
    animation: edmLoaderSpin 1.25s linear infinite;
}

.edm-loader-inner strong {
    font-size: 1.28rem;
    letter-spacing: -.035em;
    margin-top: 2px;
}

.edm-loader-inner small {
    color: rgba(255,255,255,.68);
    margin-top: 6px;
    font-size: .82rem;
}

@keyframes edmLoaderSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .edm-loader-logo-wrap {
        width: 78px;
        height: 78px;
    }

    .edm-loader-ring {
        width: 116px;
        height: 116px;
        top: 18px;
    }
}


/* Loader stuck fail-safe */
.edm-loader-already-seen .edm-site-loader {
    display: none !important;
}

.edm-site-loader {
    animation: edmLoaderAutoHide 2.8s ease forwards;
}

.edm-site-loader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes edmLoaderAutoHide {
    0%, 82% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}


/* Top contact bar */
.top-contact-bar {
    background: rgba(16, 24, 32, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    font-size: 0.78rem;
}

.top-contact-inner {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.top-contact-inner span {
    color: rgba(255,255,255,0.68);
    margin-right: auto;
    font-weight: 600;
}

.top-contact-inner a {
    color: rgba(255,255,255,0.84);
    font-weight: 700;
    text-decoration: none;
}

.top-contact-inner a:hover {
    color: var(--edm-orange);
}

@media (max-width: 760px) {
    .top-contact-bar {
        display: none;
    }
}

/* Strong visible top contact bar */
.top-contact-bar {
    display: block !important;
    background: linear-gradient(90deg, #f2531e, #d94617) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    font-size: 0.82rem !important;
    position: relative;
    z-index: 3001;
}

.top-contact-inner {
    width: min(1280px, calc(100% - 36px)) !important;
    margin: 0 auto !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
}

.top-contact-inner span {
    color: #ffffff !important;
    margin-right: auto !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.top-contact-inner a {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.top-contact-inner a:hover {
    color: #202a34 !important;
}

/* Keep mobile clean */
@media (max-width: 760px) {
    .top-contact-bar {
        display: none !important;
    }
}

/* Top contact bar icons */
.top-contact-inner a,
.top-contact-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.top-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(255,255,255,.18);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
}

.top-contact-label .top-icon {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    color: #ffffff;
}

/* Landlord Portal & Online Token Purchase page */
.landlord-token-hero-bg {
    min-height: 620px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.94), rgba(24,34,44,.91)),
        radial-gradient(circle at 82% 24%, rgba(242,83,30,.24), transparent 32%),
        url('/assets/images/solutions/landlord-portal-token-purchase/hero.jpg');
    background-size: cover;
    background-position: center;
}

.portal-token-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.portal-token-card {
    background: #fff;
    border: 1px solid rgba(31,43,54,.11);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(31,43,54,.10);
    transition: .24s ease;
}

.portal-token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(31,43,54,.14);
    border-color: rgba(242,83,30,.30);
}

.portal-token-image {
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(31,43,54,.20), rgba(242,83,30,.10)),
        #26323d;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: end start;
    padding: 20px;
}

.portal-token-image span {
    background: rgba(31,43,54,.58);
    color: #fff;
    padding: 8px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: .78rem;
    backdrop-filter: blur(6px);
}

.portal-token-body {
    padding: 30px;
}

.portal-token-body p {
    color: var(--edm-muted);
}

@media(max-width:900px) {
    .landlord-token-hero-bg {
        min-height: auto;
    }

    .portal-token-grid {
        grid-template-columns: 1fr;
    }

    .portal-token-image {
        min-height: 240px;
    }
}


/* Contact form iframe modal */
.contact-form-open {
    overflow: hidden;
}

.contact-form-modal {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-form-modal.is-open {
    display: flex;
}

.contact-form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16,24,32,.82);
    backdrop-filter: blur(8px);
}

.contact-form-dialog {
    position: relative;
    width: min(100%, 1100px);
    height: min(92vh, 820px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,.34);
    display: grid;
    grid-template-rows: auto 1fr;
}

.contact-form-head {
    padding: 18px 20px;
    background: linear-gradient(135deg,#26323d,#1f2b36);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-form-head strong {
    display: block;
    font-size: 1rem;
}

.contact-form-head span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    margin-top: 3px;
}

.contact-form-head button {
    border: 0;
    border-radius: 5px;
    padding: 9px 12px;
    background: #f2531e;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.contact-form-dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media(max-width: 760px) {
    .contact-form-modal {
        padding: 10px;
    }

    .contact-form-dialog {
        height: 94vh;
        border-radius: 10px;
    }

    .contact-form-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .contact-form-head button {
        width: 100%;
    }
}

