/* PrimeCircuit Electrical Group Pty Ltd
   index.css (MORE SPACE + REVIEWS MARQUEE + HEADER MATCHES ABOUT.CSS)
   UPDATED: HERO BACKGROUND IMAGE (im_homepage) + HERO TEXT STYLING FOR IMAGE
*/

:root {
    --bg: #e7edf7;
    --bg2: #d8e3f4;

    --text: #071022;
    --muted: rgba(7, 16, 34, 0.72);
    --muted2: rgba(7, 16, 34, 0.58);

    --line: rgba(7, 16, 34, 0.14);

    --primary: #005CFF;
    --primary2: #22C8FF;

    --shadow: 0 20px 60px rgba(7, 16, 34, 0.14);

    --radius-xl: 26px;
    --radius-lg: 18px;

    --container: 1120px;

    --h1: clamp(2.2rem, 4vw, 3.35rem);
    --h2: clamp(1.6rem, 2.2vw, 2.15rem);

    /* spacing scale (bigger) */
    --s-1: 0.75rem;
    --s-2: 1.1rem;
    --s-3: 1.6rem;
    --s-4: 2.6rem;
    --s-5: 4.1rem;
    --s-6: 5.4rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 450px at 20% -10%, rgba(0, 92, 255, 0.16), transparent 62%),
        radial-gradient(750px 400px at 90% 10%, rgba(34, 200, 255, 0.13), transparent 58%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    line-height: 1.6;
}

h1,
h2 {
    font-family: Sora, Inter, system-ui, sans-serif;
    letter-spacing: -0.95px;
    margin: 0;
}

h1 {
    font-weight: 800;
    font-size: var(--h1);
    line-height: 1.03;
}

h2 {
    font-weight: 750;
    font-size: var(--h2);
    line-height: 1.12;
}

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

button,
input,
select {
    font: inherit;
}

::selection {
    background: rgba(0, 92, 255, 0.20);
}

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

/* Topbar */
.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    padding: 0.8rem 0;
}

.topbar-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 800;
}

.topbar-right {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.topbar-link {
    font-size: 0.95rem;
    color: rgba(7, 16, 34, 0.80);
    font-weight: 800;
}

.topbar-link:hover {
    text-decoration: underline;
}

.topbar-call {
    font-weight: 950;
    font-size: 0.95rem;
    color: rgba(7, 16, 34, 0.92);
}

.topbar-call:hover {
    text-decoration: underline;
}

/* Header (✅ MATCH ABOUT.CSS SIZE) */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 1.25rem 0;
    /* same as about.css */
}

.brand {
    display: flex;
    align-items: center;
    min-width: 96px;
    /* same as about.css */
}

.brand-mark {
    height: 92px;
    /* same as about.css */
    width: auto;
    display: block;
}

.nav {
    display: none;
    gap: 1.4rem;
    /* same vibe */
    align-items: center;
}

.nav-link {
    font-size: 1.02rem;
    color: rgba(7, 16, 34, 0.76);
    padding: 0.35rem 0.15rem;
    border-bottom: 2px solid transparent;
    font-weight: 850;
    font-family: Sora, Inter, system-ui, sans-serif;
}

.nav-link:hover {
    color: rgba(7, 16, 34, 0.96);
}

.nav-link.active {
    color: rgba(7, 16, 34, 0.96);
    border-bottom-color: rgba(0, 92, 255, 0.55);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.95rem 1.3rem;
    font-weight: 900;
    border: 1px solid transparent;
    transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease;
    user-select: none;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
    box-shadow: 0 18px 40px rgba(0, 92, 255, 0.22);
}

.btn-primary:hover {
    opacity: 0.96;
}

.btn-outline {
    color: rgba(7, 16, 34, 0.95);
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(7, 16, 34, 0.18);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(7, 16, 34, 0.26);
}

.btn-full {
    width: 100%;
}

/* Hamburger */
.hamburger {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(7, 16, 34, 0.18);
    background: rgba(255, 255, 255, 0.88);
    display: grid;
    place-items: center;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(7, 16, 34, 0.78);
    margin: 2.5px 0;
    border-radius: 999px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 34, 0.42);
    backdrop-filter: blur(8px);
    display: none;
    padding: var(--s-3);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-inner {
    width: min(100%, 520px);
    margin-left: auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(7, 16, 34, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: var(--s-3);
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.25rem 1rem 0.25rem;
    border-bottom: 1px solid rgba(7, 16, 34, 0.12);
    margin-bottom: 1rem;
}

.mobile-title {
    margin: 0;
    font-weight: 900;
    font-family: Sora, Inter, system-ui, sans-serif;
}

.mobile-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(7, 16, 34, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(7, 16, 34, 0.92);
}

.mobile-link {
    display: block;
    padding: 1rem 0.85rem;
    border-radius: 16px;
    color: rgba(7, 16, 34, 0.95);
    font-weight: 900;
    font-family: Sora, Inter, system-ui, sans-serif;
}

.mobile-link:hover {
    background: rgba(0, 92, 255, 0.10);
}

.mobile-cta {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(7, 16, 34, 0.12);
}

/* ---------------------------------------------------------
   HERO (UPDATED: image background + overlay for readability)
   Image file: images/im_homepage.jpg
   - If yours is png, change to: images/im_homepage.png
--------------------------------------------------------- */
.hero {
    position: relative;
    padding: var(--s-6) 0 var(--s-5);
    overflow: hidden;
}

/* Big image layer */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("images/im_homepage.jpg") center / cover no-repeat;
    transform: scale(1.02);
    z-index: 0;
}

/* Readability overlay (dark + blue tint + soft vignette) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 8%, rgba(0, 92, 255, 0.28), transparent 60%),
        radial-gradient(900px 520px at 88% 18%, rgba(34, 200, 255, 0.22), transparent 62%),
        linear-gradient(180deg, rgba(7, 16, 34, 0.58) 0%, rgba(7, 16, 34, 0.40) 55%, rgba(7, 16, 34, 0.62) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--s-5);
    align-items: start;
}

/* Hero copy on image */
.hero-copy {
    color: rgba(255, 255, 255, 0.96);
}

.hero-copy h1 {
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    margin: var(--s-3) 0 var(--s-4) 0;
    color: rgba(255, 255, 255, 0.86);
    max-width: 56ch;
    font-weight: 650;
    font-size: 1.06rem;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
}

/* Stamp (pill) for image */
.stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 850;
    font-size: 0.95rem;
    margin-bottom: var(--s-3);
    font-family: Sora, Inter, system-ui, sans-serif;
    backdrop-filter: blur(10px);
}

.stamp .dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    box-shadow: 0 0 0 6px rgba(0, 92, 255, 0.18);
}

.stamp .sep {
    opacity: 0.7;
}

/* Buttons on image: make outline button readable */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--s-4);
}

.hero .btn-outline {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
}

/* Mini trust cards on image */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mini {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.mini-title {
    margin: 0;
    font-weight: 900;
    font-family: Sora, Inter, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.96);
}

.mini-sub {
    margin: 0.35rem 0 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
}

/* Hero panel */
.hero-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-xl);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.panel-head {
    padding: 1.6rem 1.7rem 1.1rem;
    border-bottom: 1px solid rgba(7, 16, 34, 0.12);
    background: rgba(0, 92, 255, 0.08);
}

.panel-head p {
    margin: 0.4rem 0 0 0;
    color: var(--muted);
    font-weight: 650;
}

.quick-form {
    padding: 1.5rem 1.7rem 1.7rem;
    display: grid;
    gap: 1rem;
}

.row {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    font-size: 0.9rem;
    color: rgba(7, 16, 34, 0.78);
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    padding: 0.95rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(7, 16, 34, 0.18);
    background: rgba(255, 255, 255, 0.98);
    color: rgba(7, 16, 34, 0.95);
    outline: none;
}

.field input:focus,
.field select:focus {
    border-color: rgba(0, 92, 255, 0.60);
    box-shadow: 0 0 0 5px rgba(0, 92, 255, 0.12);
}

.fineprint {
    margin: 0.6rem 0 0 0;
    font-size: 0.85rem;
    color: rgba(7, 16, 34, 0.58);
}

/* Story (MORE space) */
.story {
    padding: var(--s-6) 0 var(--s-6);
}

.story-wrap {
    display: grid;
    gap: var(--s-5);
}

.story-row {
    display: grid;
    gap: var(--s-5);
    align-items: center;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(7, 16, 34, 0.10);
    border-radius: 30px;
    padding: var(--s-5);
    box-shadow: 0 22px 55px rgba(7, 16, 34, 0.08);
}

.story-media {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(7, 16, 34, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.story-media img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.story-copy {
    padding: 0.4rem 0.2rem;
}

.story-kicker {
    margin: 0 0 0.7rem 0;
    font-weight: 900;
    color: rgba(0, 92, 255, 0.75);
    font-family: Sora, Inter, system-ui, sans-serif;
    letter-spacing: -0.2px;
}

.story-text {
    margin: 0.9rem 0 1.35rem 0;
    color: var(--muted);
    font-weight: 650;
    max-width: 54ch;
    font-size: 1.05rem;
}

.story-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
    color: rgba(7, 16, 34, 0.74);
    font-weight: 750;
    margin-bottom: 1.45rem;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Reviews */
.reviews {
    padding: var(--s-6) 0 var(--s-6);
}

.reviews-head {
    display: grid;
    gap: 0.55rem;
    margin-bottom: var(--s-4);
}

.reviews-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 92, 255, 0.10);
    border: 1px solid rgba(0, 92, 255, 0.16);
    color: rgba(7, 16, 34, 0.86);
    font-weight: 900;
    font-size: 0.92rem;
    font-family: Sora, Inter, system-ui, sans-serif;
}

.reviews-kicker .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
}

.reviews-sub {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    max-width: 70ch;
}

.marquee {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(7, 16, 34, 0.12);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 22px 55px rgba(7, 16, 34, 0.08);
    padding: 1.2rem;
}

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

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(231, 237, 247, 1), rgba(231, 237, 247, 0));
}

.marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(231, 237, 247, 1), rgba(231, 237, 247, 0));
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: reviews-scroll 38s linear infinite;
}

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

@keyframes reviews-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.review-card {
    width: min(420px, 82vw);
    border-radius: 24px;
    border: 1px solid rgba(7, 16, 34, 0.12);
    background: rgba(255, 255, 255, 0.92);
    padding: 1.25rem 1.2rem;
    box-shadow: 0 18px 40px rgba(7, 16, 34, 0.08);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.review-name {
    margin: 0;
    font-weight: 950;
    font-family: Sora, Inter, system-ui, sans-serif;
    letter-spacing: -0.2px;
}

.review-stars {
    font-weight: 950;
    color: rgba(0, 92, 255, 0.85);
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-text {
    margin: 0;
    color: rgba(7, 16, 34, 0.78);
    font-weight: 650;
    line-height: 1.55;
}

.review-meta {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    color: rgba(7, 16, 34, 0.58);
    font-weight: 750;
    font-size: 0.92rem;
}

/* CTA band */
.cta-band {
    padding: var(--s-6) 0;
    border-top: 1px solid rgba(7, 16, 34, 0.14);
    border-bottom: 1px solid rgba(7, 16, 34, 0.14);
    background: linear-gradient(180deg, rgba(0, 92, 255, 0.10), rgba(34, 200, 255, 0.08));
}

.cta-band-inner {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    align-items: flex-start;
    justify-content: space-between;
}

.cta-band p {
    margin: 0.35rem 0 0 0;
    color: var(--muted);
    font-weight: 650;
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Footer */
.footer {
    padding: var(--s-6) 0 var(--s-5);
    border-top: 1px solid rgba(7, 16, 34, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.footer-grid {
    display: grid;
    gap: var(--s-4);
}

.footer-mark {
    height: 86px;
    width: auto;
    display: block;
    margin-bottom: var(--s-2);
}

.footer-heading {
    margin: 0 0 0.7rem 0;
    font-weight: 900;
    font-family: Sora, Inter, system-ui, sans-serif;
}

.footer-link {
    display: block;
    color: rgba(7, 16, 34, 0.80);
    padding: 0.35rem 0;
    font-weight: 750;
}

.footer-link:hover {
    color: rgba(7, 16, 34, 0.95);
    text-decoration: underline;
}

.muted {
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid rgba(7, 16, 34, 0.14);
}

.backtop:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 900px) {
    .nav {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: var(--s-6);
    }

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

    .story-row {
        grid-template-columns: 1.08fr 0.92fr;
    }

    .story-row.flip .story-media {
        order: 2;
    }

    .story-row.flip .story-copy {
        order: 1;
    }

    .cta-band-inner {
        flex-direction: row;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.6fr 0.75fr;
        gap: var(--s-6);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .topbar-text {
        display: none;
    }

    /* ✅ MATCH ABOUT.CSS MOBILE LOGO SIZE */
    .brand-mark {
        height: 74px;
    }

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

    .story-media img {
        height: 300px;
    }

    .marquee::before,
    .marquee::after {
        width: 55px;
    }
}