:root {
    --navy: #082f4c;
    --navy-dark: #06243a;
    --blue: #0f5bb5;
    --green: #55c72f;
    --green-dark: #35a823;
    --white: #ffffff;
    --light: #f4f6f8;
    --text: #243746;
    --muted: #65727c;
    --border: #dfe5e9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    border-radius: 3px;
}

.button:hover {
    background: var(--green-dark);
}

/* HEADER */

.header-main {
    background: #fff;
}

.header-main-inner {
    min-height: 95px;
    padding: 14px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-placeholder {
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .03em;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 34px;
}

.header-contact div {
    display: flex;
    flex-direction: column;
}

.header-contact strong {
    color: var(--navy);
    font-size: 13px;
}

.header-contact span {
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    background: var(--navy);
    color: #fff;
}

.nav-inner {
    padding: 0 24px;
}

.nav-links {
    min-height: 52px;
    list-style: none;

    display: flex;
    align-items: center;
    gap: 78px;
}

.nav-links a {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.nav-links a:hover {
    color: var(--green);
}

.mobile-menu-button {
    display: none;
}


/* HERO */

.hero {
    position: relative;
    min-height: 540px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(135deg, #183a4b, #476d79);

    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4,33,54,.98) 0%,
            rgba(4,33,54,.90) 48%,
            rgba(4,33,54,.40) 72%,
            rgba(4,33,54,.12) 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 72px 24px;
}

.eyebrow {
    margin-bottom: 10px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
}

.eyebrow::before {
    content: "";
    display: inline-block;

    width: 30px;
    height: 2px;

    margin-right: 10px;
    vertical-align: middle;

    background: var(--green);
}

.hero h1 {
    max-width: 680px;

    font-size: clamp(48px,5vw,68px);
    line-height: 1.03;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--green);
}

.hero-copy {
    max-width: 600px;

    font-size: 17px;
    line-height: 1.55;

    margin-bottom: 28px;
}

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

.button-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.75);
}

.button-outline:hover {
    background: #fff;
    color: var(--navy);
}


/* MOBILE */

@media (max-width: 768px) {

    .header-main-inner {
        min-height: 76px;
        padding: 10px 18px;
    }

    .brand-placeholder {
        font-size: 22px;
    }

    .header-contact div,
    .header-contact .button {
        display: none;
    }

    .main-nav {
        min-height: 0;
    }

    .nav-inner {
        padding: 0;
    }

    .mobile-menu-button {
        display: block;
        padding: 13px 18px;

        background: none;
        border: 0;
    }

    .mobile-menu-button span {
        display: block;

        width: 27px;
        height: 2px;

        margin: 6px 0;

        background: #fff;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 0;
        min-height: 0;

        padding: 0 18px 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .hero {
        min-height: 480px;
    }

    .hero-inner {
        padding: 55px 18px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* SECTIONS */

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

.section-heading--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.section-heading h2,
.partner-copy h2,
.quote-panel h3 {
    color: var(--navy);
    font-size: clamp(30px,4vw,44px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.section-heading p,
.partner-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}


/* TRUST STRIP */

.trust-strip {
    background: var(--navy);
    color: #fff;
    padding: 0 24px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    padding: 28px 24px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.trust-item p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.6;
}


/* SERVICES */

.services-section {
    padding: 80px 24px;
    background: #fff;
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
}

.service-card__image {
    height: 180px;
    background: linear-gradient(135deg, #365567, #8aa0a7);
}

.service-card__content {
    padding: 22px 20px 24px;
}

.service-card__content h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.service-card__content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.service-card__content a {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}


/* PARTNER / QUOTE */

.partner-section {
    padding: 80px 24px;
    background: var(--light);
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 36px;
    align-items: start;
}

.partner-copy p {
    margin-bottom: 16px;
}

.quote-panel {
    padding: 32px;
    background: #fff;
    border-top: 4px solid var(--green);
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    font: inherit;
}

.quote-submit {
    border: 0;
    cursor: pointer;
}


/* PROJECTS */

.projects-section {
    padding: 80px 24px;
    background: #fff;
}

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

.project-card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
}

.project-card__image {
    height: 240px;
    background: linear-gradient(135deg, #44606f, #8ba0ac);
}

.project-card__content {
    padding: 24px;
}

.project-card__content h3 {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 8px;
}

.project-card__content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}


/* ACCREDITATIONS */

.accreditations-section {
    padding: 70px 24px 80px;
    background: var(--light);
}

.accreditation-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.accreditation-strip div {
    min-height: 92px;
    background: #fff;
    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
}


/* FOOTER */

.site-footer {
    background: var(--navy-dark);
    color: #fff;
}

.footer-grid {
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 40px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 12px;
}

.footer-grid p {
    color: rgba(255,255,255,.76);
    font-size: 14px;
    line-height: 1.7;
}

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

.footer-bottom .container {
    padding: 16px 24px;
}

.footer-bottom p {
    color: rgba(255,255,255,.72);
    font-size: 13px;
}


/* COLOUR VARIATIONS FOR PLACEHOLDER IMAGES */

.service-installations,
.project-1 {
    background: linear-gradient(135deg, #4c6570, #97acb5);
}

.service-maintenance,
.project-2 {
    background: linear-gradient(135deg, #4d4f57, #8b929d);
}

.service-testing {
    background: linear-gradient(135deg, #35526c, #8da4bc);
}

.service-power,
.project-3 {
    background: linear-gradient(135deg, #4e5d4d, #97a790);
}

.service-lighting {
    background: linear-gradient(135deg, #606169, #adb1b8);
}


/* MOBILE */

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

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

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

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

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

@media (max-width: 768px) {

    .header-main-inner {
        min-height: 76px;
        padding: 10px 18px;
    }

    .brand-placeholder {
        font-size: 22px;
    }

    .header-contact div,
    .header-contact .button {
        display: none;
    }

    .main-nav {
        min-height: 0;
    }

    .nav-inner {
        padding: 0;
    }

    .mobile-menu-button {
        display: block;
        padding: 13px 18px;
        background: none;
        border: 0;
    }

    .mobile-menu-button span {
        display: block;
        width: 27px;
        height: 2px;
        margin: 6px 0;
        background: #fff;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        min-height: 0;
        padding: 0 18px 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .hero {
        min-height: 480px;
    }

    .hero-inner {
        padding: 55px 18px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-strip,
    .services-section,
    .partner-section,
    .projects-section,
    .accreditations-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .trust-grid,
    .services-grid,
    .accreditation-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .quote-panel {
        padding: 24px 20px;
    }

    .footer-grid {
        padding: 42px 18px;
    }

    .footer-bottom .container {
        padding: 14px 18px;
    }
}

/* ===================================
   SURE ELECTRICAL - FINAL HERO
=================================== */

.hero {
    position: relative;
    min-height: 560px;

    display: grid;
    grid-template-columns: 52% 48%;

    background: var(--navy-dark);
    overflow: hidden;
}

/* photo on right */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 50%;

    background-image: url('/assets/images/sure-electrical-hero-photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* dark blend between content and photography */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(4,33,54,1) 0%,
            rgba(4,33,54,.98) 38%,
            rgba(4,33,54,.85) 50%,
            rgba(4,33,54,.18) 64%,
            rgba(4,33,54,0) 100%
        );
}

.hero-inner {
    position: relative;
    z-index: 3;

    width: 100%;
    padding: 62px 24px;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(46px,4.8vw,64px);
    line-height: 1.02;
    margin-bottom: 20px;
}

.hero-copy {
    max-width: 580px;
}

@media (max-width: 768px) {

    .hero {
        display: block;
        min-height: 500px;
    }

    .hero::after {
        width: 100%;
        opacity: .55;
        background-position: 65% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4,33,54,.97) 0%,
                rgba(4,33,54,.90) 65%,
                rgba(4,33,54,.60) 100%
            );
    }

    .hero-inner {
        padding: 52px 18px;
    }

    .hero h1 {
        max-width: 390px;
        font-size: 38px;
    }

    .hero-copy {
        max-width: 380px;
    }
}


.hero::after {
    background-image: url('/assets/images/sure-electrical-hero.png?v=2') !important;
}


/* ===================================
   RESPONSIVE SPLIT HERO - FINAL
=================================== */

.hero {
    display: block;
    min-height: 0;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero::after,
.hero-overlay {
    display: none !important;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    min-height: 560px;
}

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        64px
        56px
        64px
        max(24px, calc((100vw - 1200px) / 2));

    background: var(--navy-dark);
}

/* soft blend into image */
.hero-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: -110px;
    bottom: 0;
    width: 150px;

    background: linear-gradient(
        90deg,
        var(--navy-dark) 0%,
        rgba(6,36,58,.78) 45%,
        rgba(6,36,58,0) 100%
    );

    pointer-events: none;
}

.hero-media {
    min-width: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;

    object-fit: cover;
    object-position: 58% center;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(44px, 4.5vw, 64px);
}

.hero-copy {
    max-width: 570px;
}


/* Medium desktop / laptop */
@media (max-width: 1100px) {

    .hero-shell {
        grid-template-columns: 50% 50%;
        min-height: 520px;
    }

    .hero-content {
        padding: 52px 36px 52px 28px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-media img {
        min-height: 520px;
        object-position: 54% center;
    }
}


/* Tablet and mobile */
@media (max-width: 780px) {

    .hero-shell {
        position: relative;
        display: block;
        min-height: 500px;
    }

    .hero-media {
        position: absolute;
        inset: 0;
    }

    .hero-media img {
        min-height: 500px;
        object-position: 64% center;
    }

    .hero-media::after {
        content: "";
        position: absolute;
        inset: 0;

        background:
            linear-gradient(
                90deg,
                rgba(6,36,58,.97) 0%,
                rgba(6,36,58,.91) 55%,
                rgba(6,36,58,.48) 100%
            );
    }

    .hero-content {
        position: relative;
        z-index: 2;

        min-height: 500px;
        padding: 48px 18px;

        background: transparent;
    }

    .hero-content::after {
        display: none;
    }

    .hero h1 {
        max-width: 390px;
        font-size: 38px;
    }

    .hero-copy {
        max-width: 380px;
    }
}


/* ===================================
   RESPONSIVE SPLIT HERO - FINAL
=================================== */

.hero {
    display: block;
    min-height: 0;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero::after,
.hero-overlay {
    display: none !important;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
    min-height: 560px;
}

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        64px
        56px
        64px
        max(24px, calc((100vw - 1200px) / 2));

    background: var(--navy-dark);
}

/* soft blend into image */
.hero-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: -110px;
    bottom: 0;
    width: 150px;

    background: linear-gradient(
        90deg,
        var(--navy-dark) 0%,
        rgba(6,36,58,.78) 45%,
        rgba(6,36,58,0) 100%
    );

    pointer-events: none;
}

.hero-media {
    min-width: 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;

    object-fit: cover;
    object-position: 58% center;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(44px, 4.5vw, 64px);
}

.hero-copy {
    max-width: 570px;
}


/* Medium desktop / laptop */
@media (max-width: 1100px) {

    .hero-shell {
        grid-template-columns: 50% 50%;
        min-height: 520px;
    }

    .hero-content {
        padding: 52px 36px 52px 28px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-media img {
        min-height: 520px;
        object-position: 54% center;
    }
}


/* Tablet and mobile */
@media (max-width: 780px) {

    .hero-shell {
        position: relative;
        display: block;
        min-height: 500px;
    }

    .hero-media {
        position: absolute;
        inset: 0;
    }

    .hero-media img {
        min-height: 500px;
        object-position: 64% center;
    }

    .hero-media::after {
        content: "";
        position: absolute;
        inset: 0;

        background:
            linear-gradient(
                90deg,
                rgba(6,36,58,.97) 0%,
                rgba(6,36,58,.91) 55%,
                rgba(6,36,58,.48) 100%
            );
    }

    .hero-content {
        position: relative;
        z-index: 2;

        min-height: 500px;
        padding: 48px 18px;

        background: transparent;
    }

    .hero-content::after {
        display: none;
    }

    .hero h1 {
        max-width: 390px;
        font-size: 38px;
    }

    .hero-copy {
        max-width: 380px;
    }
}

