:root {
    --primary: #0b5ea8;
    --primary-dark: #063f73;
    --accent: #ff9418;
    --green: #32a852;
    --dark: #0c1b2a;
    --text: #334155;
    --muted: #64748b;
    --line: #e6edf3;
    --soft: #f5f9fc;
    --white: #ffffff;
    --shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 55px rgba(15, 23, 42, 0.13);
    --radius: 18px;
    --header-height: 78px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 14px);
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { border: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(226,232,240,.85);
    backdrop-filter: blur(14px);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled { box-shadow: 0 8px 28px rgba(15,23,42,.08); }

.nav-container {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    z-index: 1002;
}

.logo-img {
    width: 58px;
    height: 54px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.brand-name {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--primary);
    font-size: clamp(15px, 1.6vw, 20px);
    white-space: nowrap;
}
.brand-name span { color: var(--accent); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border-radius: 10px;
    color: #344256;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: #eef6ff; }
.nav-cta { margin-left: 7px; color: var(--white) !important; background: var(--primary) !important; padding-inline: 18px; }
.nav-cta:hover { background: var(--primary-dark) !important; }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}
.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
    transition: .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.section { padding: 90px max(20px, calc((100vw - 1180px) / 2)); }
.section-soft { background: var(--soft); }
.full-width-section { width: 100%; }

.hero {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    padding: 90px 20px;
    background:
        linear-gradient(90deg, rgba(6,22,37,.86), rgba(6,22,37,.54)),
        url('images/solar-bg.jpg') center 58% / cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    z-index: -1;
    background: linear-gradient(transparent, rgba(3,14,25,.2));
}
.hero-content {
    width: min(100%, 920px);
    text-align: center;
    color: var(--white);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    font-weight: 700;
    font-size: 13px;
}
.eyebrow i { color: #ffc44d; }
.hero h1 {
    font-size: clamp(42px, 6.6vw, 76px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    max-width: 900px;
    margin: 0 auto 22px;
}
.hero h1 span { color: #ffad3d; }
.hero p {
    max-width: 720px;
    margin: 0 auto 30px;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.88);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--accent); }
.btn-primary:hover { background: #e9820d; }
.btn-secondary { color: white; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,.18); }

.section-heading { max-width: 710px; margin: 0 auto 52px; text-align: center; }
.section-kicker, .mini-title { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: 1.6px; text-transform: uppercase; }
.section-heading h2 { color: var(--dark); font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -1.3px; }
.section-heading h2 span { color: var(--green); }
.section-heading p { margin-top: 14px; color: var(--muted); }

.about-content { display: grid; grid-template-columns: 1.02fr .98fr; gap: 58px; align-items: center; }
.about-image-wrap { position: relative; min-height: 430px; }
.about-image-wrap > img { width: 100%; height: 430px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); }
.about-badge {
    position: absolute;
    right: -18px;
    bottom: 28px;
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.about-badge i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #eaf8ee; font-size: 18px; }
.about-badge span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.about-badge strong { color: var(--dark); }
.about-text h3 { margin-bottom: 17px; color: var(--dark); font-size: clamp(27px, 3.1vw, 38px); line-height: 1.2; letter-spacing: -.9px; }
.about-text > p { color: var(--muted); }
.feature-list { display: grid; gap: 10px; margin: 24px 0; }
.feature-list div { display: flex; align-items: center; gap: 10px; font-weight: 650; color: #3d4a5c; }
.feature-list i { color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; font-weight: 800; }

.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.service-card {
    min-height: 275px;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15,23,42,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-sm); border-color: #cfdef0; }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: #edf7ff; color: var(--primary); font-size: 22px; }
.service-card:nth-child(even) .service-icon { color: var(--green); background: #edf9f0; }
.service-card h3 { margin-bottom: 10px; color: var(--dark); font-size: 19px; line-height: 1.35; }
.service-card p { color: var(--muted); font-size: 14.5px; }

 .gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: stretch; }
.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(15,23,42,.11); }
.project-media {
    position: relative;
    display: block;
    width: 100%;
    height: 265px;
    overflow: hidden;
    cursor: pointer;
    background: #dbe7f1;
}
.video-media {
    padding: 0;
    overflow: hidden;
}

.video-media video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    background: #000;
    position: relative;
    z-index: 5;
    cursor: pointer;
}
.project-card-large .project-media { height: 320px; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3,15,28,.02) 30%,
        rgba(3,15,28,.36) 100%
    );

    pointer-events: none;   /* IMPORTANT */
}.project-card:hover .project-media img { transform: scale(1.05); }
.media-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(3,15,28,.68);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    backdrop-filter: blur(8px);
}
.media-view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.93);
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.media-play { color: var(--primary); }
.project-info { padding: 20px 20px 22px; }
.project-category { display: inline-block; margin-bottom: 7px; color: var(--primary); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 1px; }
.project-info h3 { margin-bottom: 8px; color: var(--dark); font-size: 19px; line-height: 1.3; }
.project-info p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    place-items: center;
    padding: 28px;
    background: rgba(3, 10, 18, .92);
}
.lightbox-modal.open { display: grid; }
.lightbox-content {
    width: min(1000px, 94vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.lightbox-media { display: grid; place-items: center; min-height: 280px; background: #07111d; }
.lightbox-media img, .lightbox-media video { display: none; width: 100%; max-height: 68vh; object-fit: contain; }
.lightbox-media .visible { display: block; }
.lightbox-details { padding: 22px 26px 25px; }
.lightbox-details h3 { margin-bottom: 7px; color: var(--dark); font-size: 22px; }
.lightbox-details p { color: var(--muted); line-height: 1.7; }
.lightbox-close { position: fixed; top: 18px; right: 24px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.14); color: white; font-size: 32px; line-height: 1; }

.contact-container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.contact-info, .contact-form { padding: clamp(25px, 4vw, 42px); border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-info { background: linear-gradient(145deg, #0b5ea8, #073e70); color: white; border: 0; }
.contact-info .mini-title { color: #ffd27c; }
.contact-info h3 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; margin-bottom: 14px; }
.contact-intro { color: rgba(255,255,255,.76); margin-bottom: 28px; }
.contact-list { display: grid; gap: 14px; }
.contact-list > div { display: flex; align-items: center; gap: 13px; }
.contact-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.12); }
.contact-list p { line-height: 1.45; }
.contact-list small { display: block; color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.contact-form h3 { margin-bottom: 22px; color: var(--dark); font-size: 24px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 6px; color: #425166; font-weight: 750; font-size: 13px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fbfdff;
    color: var(--dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 125px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #8bbce7; box-shadow: 0 0 0 4px rgba(11,94,168,.09); }
.whatsapp-submit { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; background: #25d366; color: white; font-weight: 850; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.whatsapp-submit:hover { background: #1db956; transform: translateY(-1px); }

.site-footer {
    background: #081522;
    color: rgba(255,255,255,.72);
}

.footer-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0 45px;

    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1.2fr;
    gap: 45px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 55px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.footer-brand div {
    display: grid;
    line-height: 1.3;
}

.footer-brand strong {
    color: #fff;
    font-size: 15px;
}

.footer-brand span {
    color: var(--accent);
    font-size: 11px;
}

.footer-about > p {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h4 {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 9px;
    color: #fff;
    font-size: 16px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.footer-column a {
    color: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: 13.5px;
    transition: color .2s ease, transform .2s ease;
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-contact p i {
    margin-top: 5px;
    color: var(--accent);
    width: 16px;
}

.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 7px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 14px;

    transition: background .2s ease, transform .2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    text-align: center;
}

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

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
    text-decoration: none;
    font-size: 27px;
    box-shadow: 0 13px 30px rgba(37,211,102,.32);
    transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }


/* Project filters */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -22px 0 34px;
}

.project-filter {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-filter:hover {
    transform: translateY(-2px);
    border-color: #b8d5ee;
    color: var(--primary);
}

.project-filter.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.project-card.is-filtered-out {
    display: none;
}

/* Scroll reveal */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox previous / next controls */
.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 3002;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,.24);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 980px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        padding: 10px 20px 22px;
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 25px rgba(15,23,42,.08);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { justify-content: flex-start; padding: 12px 13px; }
    .nav-cta { margin: 6px 0 0; justify-content: center; }
    body.menu-open { overflow: hidden; }

    .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .about-content { gap: 35px; }
    .contact-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card-large { grid-column: 1 / -1; }
    .project-card-large .project-media { height: 390px; }
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    :root { --header-height: 70px; }
    .nav-container { width: min(100% - 28px, 1180px); }
    .logo-img { width: 48px; height: 46px; }
    .brand-name { font-size: 14px; }
    .section { padding: 70px 18px; }
    .hero { min-height: calc(100svh - var(--header-height)); padding: 72px 18px; background-position: 60% center; }
    .hero h1 { font-size: clamp(38px, 12vw, 54px); letter-spacing: -1.6px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; width: min(100%, 360px); margin: 0 auto; }
    .btn { width: 100%; }

    .section-heading { margin-bottom: 36px; }
    .about-content { grid-template-columns: 1fr; }
    .about-image-wrap, .about-image-wrap > img { min-height: 320px; height: 320px; }
    .about-badge { right: 12px; left: 12px; bottom: 12px; min-width: 0; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .gallery-grid { grid-template-columns: 1fr; }
    .project-card-large { grid-column: auto; }
    .project-media, .project-card-large .project-media { height: 245px; }
    .project-info { padding: 18px; }
    .lightbox-modal { padding: 18px; }
    .lightbox-details { padding: 18px; }
    .contact-info, .contact-form { padding: 25px 20px; }
    .footer-main {
        width: calc(100% - 36px);
        padding: 48px 0 35px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-about > p {
        max-width: 100%;
    }

    .footer-column {
        gap: 8px;
    }

    .footer-column a:hover {
        transform: none;
    }
    .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }

    .project-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: -10px -18px 28px;
        padding: 0 18px 7px;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar { display: none; }

    .project-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .lightbox-nav {
        top: auto;
        bottom: 18px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }
}

@media (max-width: 390px) {
    .brand-name { max-width: 155px; white-space: normal; line-height: 1.1; }
    .hero h1 { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
