/* ==========================================================================
   ELECTRICIAN — Dark navy electrician template
   Prefix .el-* | Palette: deep navy + bright yellow accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
    --el-navy: #0a1828;
    --el-navy-2: #142a44;
    --el-navy-3: #1c3a5e;
    --el-yellow: #fbbf24;
    --el-yellow-dark: #d99e0e;
    --el-cream: #f4eee0;
    --el-gray: #cbd5e1;
    --el-gray-2: #94a3b8;
    --el-dark: #0a1828;
    --el-radius: 14px;
    --el-radius-lg: 22px;
    --el-shadow: 0 30px 60px -25px rgba(8, 16, 32, 0.55);
    --el-shadow-soft: 0 10px 30px -15px rgba(8, 16, 32, 0.35);
}

* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--el-cream);
    color: var(--el-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

main {
    display: block;
}

/* ==========================================================================
   PREVIEW BANNER
   ========================================================================== */

.preview-banner {
    background: var(--el-yellow);
    color: var(--el-dark);
    text-align: center;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.preview-banner a {
    color: var(--el-dark);
    text-decoration: underline;
}

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

.el-header {
    background: var(--el-navy);
    color: var(--el-cream);
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}

.el-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.el-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 0.08em;
    color: var(--el-cream);
}

.el-logo__crest {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--el-yellow);
    color: var(--el-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.el-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.el-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--el-gray);
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 4px;
}

.el-nav a:hover {
    color: var(--el-cream);
}

.el-nav a.is-active {
    color: var(--el-yellow);
}

.el-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--el-yellow);
    border-radius: 2px;
}

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

.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    line-height: 1;
}

.el-btn--yellow {
    background: var(--el-yellow);
    color: var(--el-navy);
    box-shadow: 0 12px 30px -10px rgba(251, 191, 36, 0.55);
}

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

.el-btn--ghost {
    background: transparent;
    color: var(--el-cream);
    border-color: rgba(244, 238, 224, 0.35);
}

.el-btn--ghost:hover {
    border-color: var(--el-yellow);
    color: var(--el-yellow);
}

.el-btn__icon {
    font-size: 16px;
}

/* Generic btn (used by boilerplate contact page etc.) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    background: var(--el-yellow);
    color: var(--el-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

/* ==========================================================================
   EYEBROW
   ========================================================================== */

.el-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--el-yellow);
}

.el-eyebrow--dark {
    color: var(--el-navy);
}

.el-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--el-yellow);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
    display: inline-block;
}

.el-eyebrow--dark .el-eyebrow__dot {
    box-shadow: 0 0 0 4px rgba(10, 24, 40, 0.08);
}

.el-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--el-yellow);
    color: var(--el-navy);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

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

.el-hero {
    position: relative;
    background: var(--el-navy);
    color: var(--el-cream);
    overflow: hidden;
    padding: 70px 32px 90px;
}

.el-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.16), transparent 55%),
        linear-gradient(rgba(244, 238, 224, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 238, 224, 0.04) 1px, transparent 1px);
    background-size: auto, 60px 60px, 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.el-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.el-hero__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.el-hero__title {
    margin: 6px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--el-cream);
}

.el-hero__lead {
    margin: 0;
    font-size: 17px;
    color: var(--el-gray);
    max-width: 520px;
}

.el-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.el-hero__badges {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    border-top: 1px solid rgba(244, 238, 224, 0.12);
    padding-top: 24px;
}

.el-hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--el-cream);
}

.el-hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.el-hero__photo {
    position: absolute;
    inset: 0;
    background-color: var(--el-navy-2);
    background-size: cover;
    background-position: center;
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
    z-index: 2;
}

.el-hero__ring {
    position: absolute;
    inset: -18px -18px 18px 18px;
    border: 2px solid var(--el-yellow);
    border-radius: var(--el-radius-lg);
    z-index: 1;
}

.el-hero__sparks {
    position: absolute;
    bottom: -22px;
    left: -22px;
    background: var(--el-yellow);
    color: var(--el-navy);
    border-radius: var(--el-radius);
    padding: 16px 20px;
    z-index: 3;
    box-shadow: 0 18px 40px -12px rgba(251, 191, 36, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
}

.el-sparks__bolt {
    font-size: 22px;
    line-height: 1;
}

.el-sparks__label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.el-sparks__sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.el-projects {
    background: var(--el-cream);
    padding: 100px 32px;
}

.el-projects__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.el-projects__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.el-projects__title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(34px, 4.2vw, 56px);
    color: var(--el-navy);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.el-projects__lead {
    margin: 0;
    font-size: 16px;
    color: rgba(10, 24, 40, 0.7);
}

.el-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.el-project-card {
    background: #fff;
    border-radius: var(--el-radius-lg);
    overflow: hidden;
    box-shadow: var(--el-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 24, 40, 0.06);
}

.el-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -20px rgba(10, 24, 40, 0.25);
}

.el-project-card__media {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--el-navy-2);
    position: relative;
}

.el-project-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--el-yellow);
    color: var(--el-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
}

.el-project-card__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.el-project-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--el-navy);
}

.el-project-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--el-navy);
    transition: color 0.2s ease, gap 0.2s ease;
}

.el-project-card__link:hover {
    color: var(--el-yellow-dark);
    gap: 12px;
}

.el-project-card__arrow {
    font-size: 16px;
}

/* ==========================================================================
   TRUST / UNHONISED
   ========================================================================== */

.el-trust {
    background: var(--el-navy-2);
    color: var(--el-cream);
    padding: 100px 32px;
    position: relative;
    overflow: hidden;
}

.el-trust::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
    pointer-events: none;
}

.el-trust__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.el-trust__media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 480px;
}

.el-trust__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--el-navy);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow);
}

.el-trust__chip {
    position: absolute;
    bottom: -28px;
    right: -22px;
    background: var(--el-yellow);
    color: var(--el-navy);
    padding: 18px 22px;
    border-radius: var(--el-radius);
    box-shadow: 0 18px 40px -12px rgba(251, 191, 36, 0.45);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.el-trust__chip-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    letter-spacing: 0.04em;
}

.el-trust__chip-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.el-trust__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.el-trust__title {
    margin: 6px 0 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--el-cream);
    max-width: 600px;
}

.el-trust__lead {
    margin: 0;
    font-size: 16px;
    color: var(--el-gray);
    max-width: 580px;
}

.el-trust__features {
    list-style: none;
    margin: 14px 0 6px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

.el-trust__feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.el-trust__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--el-yellow);
    color: var(--el-navy);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.el-trust__feature-body {
    flex: 1;
}

.el-trust__feature-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--el-cream);
}

.el-trust__feature-desc {
    margin: 0;
    font-size: 14px;
    color: var(--el-gray-2);
}

.el-trust .el-btn {
    align-self: flex-start;
    margin-top: 8px;
}

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

.el-footer {
    background: var(--el-navy);
    color: var(--el-gray);
    padding: 28px 32px;
    border-top: 1px solid rgba(244, 238, 224, 0.08);
}

.el-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--el-gray-2);
}

/* ==========================================================================
   CONTACT PAGE / FLASH / NOT FOUND (boilerplate generic styles)
   ========================================================================== */

.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 32px;
}

.contact-page h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    color: var(--el-navy);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contact-page p {
    color: rgba(10, 24, 40, 0.75);
    font-size: 16px;
}

.contact-page form {
    display: grid;
    gap: 18px;
    margin-top: 32px;
    background: #fff;
    padding: 36px;
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow-soft);
    border: 1px solid rgba(10, 24, 40, 0.06);
}

.contact-page label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--el-navy);
    margin-bottom: 6px;
}

.contact-page input,
.contact-page textarea,
.contact-page select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(10, 24, 40, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--el-navy);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page input:focus,
.contact-page textarea:focus,
.contact-page select:focus {
    outline: 0;
    border-color: var(--el-yellow);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.contact-page textarea {
    min-height: 140px;
    resize: vertical;
}

.flash {
    margin: 24px auto;
    max-width: 760px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.flash.flash-success,
.flash.success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.3);
}

.flash.flash-error,
.flash.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

.not-found {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 32px;
    text-align: center;
}

.not-found h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    color: var(--el-navy);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.not-found p {
    font-size: 17px;
    color: rgba(10, 24, 40, 0.7);
    margin-bottom: 28px;
}

.not-found a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--el-yellow);
    color: var(--el-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE — 800px breakpoint
   ========================================================================== */

@media (max-width: 800px) {
    .el-header__inner {
        padding: 14px 18px;
        gap: 12px;
    }

    .el-nav {
        display: none;
    }

    .el-logo {
        font-size: 22px;
    }

    .el-logo__crest {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .el-btn {
        padding: 12px 18px;
        font-size: 12px;
    }

    /* Hero */
    .el-hero {
        padding: 50px 18px 70px;
    }

    .el-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .el-hero__media {
        max-width: 100%;
        aspect-ratio: 4 / 4;
        margin: 0 auto;
    }

    .el-hero__ring {
        inset: -10px -10px 10px 10px;
    }

    .el-hero__sparks {
        bottom: -16px;
        left: -10px;
        padding: 12px 16px;
        min-width: 110px;
    }

    .el-hero__badges {
        gap: 14px 22px;
    }

    /* Projects */
    .el-projects {
        padding: 70px 18px;
    }

    .el-projects__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .el-projects__head {
        margin-bottom: 36px;
    }

    /* Trust */
    .el-trust {
        padding: 70px 18px;
    }

    .el-trust__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .el-trust__media {
        max-width: 100%;
        aspect-ratio: 4 / 4;
    }

    .el-trust__chip {
        right: 16px;
        bottom: -22px;
    }

    .el-trust__features {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-page {
        padding: 50px 18px;
    }

    .contact-page form {
        padding: 24px;
    }
}
