
/* =========================================
   GLOBAL STYLES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: #172a3a;
    background: #fff;
}

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

.container {
    width: min(1160px, calc(100% - 48px));
    margin: auto;
}

/* =========================================
   TOP BAR
========================================= */

.topbar {
    background: #0d2030;
    color: #e9eff4;
    font-size: 12px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar a:hover {
    color: #ffc21a;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 18px #12283b0c;
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 3px solid #f6b900;
    display: grid;
    place-items: center;
    font: 800 22px Manrope;
    color: #102638;
    transform: skew(-8deg);
}

    .brand-mark span {
        color: #f6b900;
    }

.brand-name {
    font: 800 20px Manrope;
    letter-spacing: -1px;
    color: #102638;
    line-height: 1;
}

    .brand-name > span {
        color: #efb300;
    }

    .brand-name small {
        display: block;
        font: 700 9px "DM Sans";
        letter-spacing: 1.1px;
        margin-top: 4px;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 700;
}

    .nav-links > a:not(.nav-cta):hover,
    .nav-links .active {
        color: #d99e00;
    }

.nav-cta {
    background: #ffc21a;
    padding: 13px 18px;
    border-radius: 3px;
    color: #132536;
}

    .nav-cta span,
    .button span {
        margin-left: 10px;
    }

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 26px;
    color: #102638;
}

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

.hero {
    min-height: 590px;
    position: relative;
    display: flex;
    align-items: center;
    background: #102638;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0 0 0 37%;
    background: url("images/modern-home-completed.jpg") center 43%/cover no-repeat;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, #0c2031 0%, #0c2031 34%, rgba(12,32,49,.9) 45%, rgba(12,32,49,.08) 78% ), linear-gradient( 0deg, rgba(8,22,34,.3), transparent 45% );
}

.hero-content {
    position: relative;
    color: #fff;
    padding-top: 55px;
    padding-bottom: 65px;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f8bd17;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .eyebrow span {
        display: inline-block;
        width: 27px;
        height: 2px;
        background: #f8bd17;
    }

.hero h1,
.section h2,
.quote-band h2 {
    font: 800 clamp(42px,5.5vw,68px)/1.08 Manrope;
    letter-spacing: -2.5px;
    margin: 24px 0 18px;
}

    .hero h1 em,
    .section h2 em,
    .quote-band h2 em {
        font-style: normal;
        color: #ffc21a;
    }

.hero-copy {
    font-size: 16px;
    line-height: 1.7;
    color: #d7e0e7;
    max-width: 510px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 3px;
    transition: .2s;
}

    .button:hover {
        transform: translateY(-2px);
    }

.button-yellow {
    background: #ffc21a;
    color: #142637;
}

.button-outline {
    border: 1px solid #d5e0e8;
    color: white;
}

.hero-location {
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 800;
    color: #d5e0e8;
    margin-top: 56px;
}

/* =========================================
   TRUST STRIP
========================================= */

.trust-strip {
    background: #f5f7f8;
    border-bottom: 1px solid #e6eaed;
}

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

    .trust-grid > div {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0 22px;
        border-right: 1px solid #d9e0e4;
    }

        .trust-grid > div:first-child {
            padding-left: 0;
        }

        .trust-grid > div:last-child {
            border: 0;
        }

    .trust-grid b {
        font: 800 24px Manrope;
        color: #e7ad08;
    }

    .trust-grid span {
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    padding: 92px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.eyebrow.dark {
    color: #667481;
}

.section h2,
.quote-band h2 {
    font-size: 42px;
    letter-spacing: -1.7px;
    color: #142b3d;
    margin: 15px 0 22px;
}

    .section h2 em {
        color: #dca900;
    }

/* =========================================
   ABOUT SECTION
========================================= */

.about-copy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.8;
    color: #64717c;
}

.text-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 800;
    border-bottom: 2px solid #f5b900;
    padding-bottom: 7px;
}

    .text-link span {
        margin-left: 16px;
    }

.about-photo {
    height: 440px;
    position: relative;
}

    .about-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.photo-note {
    position: absolute;
    bottom: 20px;
    left: -22px;
    background: #ffc21a;
    padding: 17px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #142637;
}

    .photo-note strong {
        font: 800 16px Manrope;
    }

    .photo-note span {
        font-size: 11px;
    }

/* =========================================
   SERVICES SECTION
========================================= */

.services-section {
    background: #f4f6f7;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 34px;
}

    .section-heading h2 {
        margin-bottom: 0;
    }

    .section-heading > p {
        max-width: 370px;
        color: #687681;
        font-size: 13px;
        line-height: 1.7;
    }

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

.service-card {
    background: #fff;
    padding: 25px 19px;
    min-height: 230px;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: .2s;
}

    .service-card:hover {
        border-color: #ffc21a;
        transform: translateY(-4px);
    }

.service-icon {
    font-size: 30px;
    color: #e0a900;
}

.service-number {
    position: absolute;
    right: 17px;
    top: 22px;
    color: #c4cbd0;
    font-size: 11px;
    font-weight: 800;
}

.service-card h3 {
    font: 800 15px/1.35 Manrope;
    margin: 24px 0 10px;
}

.service-card p {
    font-size: 12px;
    line-height: 1.65;
    color: #71808b;
}

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

.projects-section {
    background: #102638;
    color: #fff;
}

    .projects-section .section-heading h2 {
        color: #fff;
    }

    .projects-section .section-heading > p {
        color: #b9c6cf;
    }

    .projects-section .eyebrow {
        color: #ffc21a;
    }

.project-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-auto-rows: 210px;
    gap: 14px;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: #20394c;
    display: block;
}

.project-large {
    grid-row: span 2;
}

/* Standard project images */

.project-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.project-card:hover > img {
    transform: scale(1.05);
}

/* Standard project image overlay */

.project-card:not(.project-slideshow):after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient( transparent, rgba(5,18,29,.88) );
    pointer-events: none;
}

.project-card:not(.project-slideshow) > span {
    position: absolute;
    z-index: 1;
    left: 19px;
    bottom: 17px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card small {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #ffc21a;
    font-weight: 800;
}

.project-card strong {
    font: 700 16px Manrope;
}

/* =========================================
   MODERN HOME PROJECT SLIDESHOW
========================================= */

.project-slideshow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #20394c;
}

    /* Image track */

    .project-slideshow .slideshow-images {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform .65s ease-in-out;
    }

        /* Individual slideshow images */

        .project-slideshow .slideshow-images img {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            min-width: 100%;
            object-fit: cover;
            transition: none;
        }

    /* Prevent standard image hover zoom */

    .project-slideshow:hover .slideshow-images img {
        transform: none;
    }

    /* Image title and clickable overlay */

    .project-slideshow .slideshow-link {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: flex-end;
        color: white;
        text-decoration: none;
        background: linear-gradient( to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 40%, transparent 70% );
    }

        .project-slideshow .slideshow-link span {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 30px 24px;
        }

        .project-slideshow .slideshow-link small {
            font-size: 9px;
            letter-spacing: 1.5px;
            color: #ffc21a;
            font-weight: 800;
        }

        .project-slideshow .slideshow-link strong {
            font: 700 16px Manrope;
            color: white;
        }

    /* Previous and next arrows */

    .project-slideshow .slide-prev,
    .project-slideshow .slide-next {
        position: absolute;
        top: 50%;
        z-index: 4;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,.5);
        border-radius: 50%;
        background: rgba(16,37,54,.72);
        color: white;
        cursor: pointer;
        transition: background .3s ease, border-color .3s ease;
    }

    .project-slideshow .slide-prev {
        left: 14px;
    }

    .project-slideshow .slide-next {
        right: 14px;
    }

        .project-slideshow .slide-prev:hover,
        .project-slideshow .slide-next:hover {
            background: #d9aa42;
            border-color: #d9aa42;
        }

    /* Navigation dots */

    .project-slideshow .slide-dots {
        position: absolute;
        z-index: 5;
        bottom: 19px;
        right: 20px;
        display: flex;
        align-items: center;
        gap: 9px;
    }

        .project-slideshow .slide-dots button {
            width: 9px;
            height: 9px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(255,255,255,.55);
            cursor: pointer;
            transition: background .3s ease, transform .3s ease;
        }

            .project-slideshow .slide-dots button.active {
                background: #ffc21a;
                transform: scale(1.3);
            }

    .project-slideshow button:focus-visible {
        outline: 2px solid #ffc21a;
        outline-offset: 4px;
    }

/* =========================================
   QUOTE SECTION
========================================= */

.quote-band {
    background: #f4b900;
    padding: 50px 0;
}

.quote-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.quote-band .eyebrow {
    color: #4a3a0a;
}

    .quote-band .eyebrow span {
        background: #4a3a0a;
    }

.quote-band h2 {
    margin: 12px 0 0;
    color: #102638;
    font-size: 40px;
}

    .quote-band h2 em {
        color: #fff;
    }

.quote-band .button {
    background: #102638;
    color: #fff;
}

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

footer {
    background: #0b1d2b;
    color: #d8e0e6;
    padding: 58px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
    gap: 40px;
    padding-bottom: 45px;
}

.brand-light .brand-name {
    color: #fff;
}

.footer-brand > p {
    font-size: 13px;
    color: #9eabb5;
    margin: 20px 0;
}

.service-area {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: #ffc21a;
    font-weight: 800;
}

.footer-grid h3 {
    font: 800 13px Manrope;
    color: #fff;
    margin: 6px 0 20px;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-grid > div:not(:first-child) a,
    .footer-grid > div:not(:first-child) span,
    .footer-grid > div:not(:first-child) strong {
        font-size: 12px;
        color: #aebbc4;
    }

.footer-grid a:hover {
    color: #ffc21a;
}

.footer-grid strong {
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #263947;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    color: #8999a5;
    font-size: 10px;
}

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #20bd68;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 29px;
    z-index: 30;
    box-shadow: 0 5px 18px #0003;
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */

@media(max-width:900px) {

    .topbar-inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 0;
    }

        .topbar-inner span:last-child {
            display: none;
        }

    .nav-links {
        gap: 14px;
    }

        .nav-links > a {
            font-size: 11px;
        }

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

    .about-grid {
        gap: 35px;
    }

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

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media(max-width:680px) {

    .container {
        width: min(100% - 34px,560px);
    }

    .topbar-inner {
        gap: 7px 16px;
        font-size: 10px;
    }

        .topbar-inner > span {
            display: none;
        }

    .nav-wrap {
        height: 72px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 24px 24px;
        box-shadow: 0 12px 18px #10263818;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

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

        .nav-links > a {
            padding: 13px 4px;
            font-size: 14px;
            border-bottom: 1px solid #edf0f2;
        }

        .nav-links .nav-cta {
            text-align: center;
            margin-top: 12px;
            border: 0;
        }

    /* Mobile hero */

    .hero {
        min-height: 660px;
        align-items: end;
    }

    .hero-image {
        inset: 0;
        background-position: 58% center;
    }

    .hero-shade {
        background: linear-gradient( 0deg, #0c2031 0%, rgba(12,32,49,.94) 34%, rgba(12,32,49,.35) 100% );
    }

    .hero-content {
        padding-top: 190px;
        padding-bottom: 35px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.8px;
        margin: 18px 0;
    }

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

    .hero-location {
        margin-top: 35px;
        font-size: 9px;
    }

    /* Mobile trust strip */

    .trust-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 18px;
        padding: 22px 0;
    }

        .trust-grid > div {
            padding: 0 8px;
            border: 0;
        }

            .trust-grid > div:first-child {
                padding-left: 8px;
            }

        .trust-grid b {
            font-size: 20px;
        }

    /* Mobile sections */

    .section {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section h2 {
        font-size: 36px;
    }

    .about-photo {
        height: 330px;
        margin-left: 12px;
    }

    .photo-note {
        left: -12px;
    }

    .section-heading {
        display: block;
    }

        .section-heading > p {
            margin-top: 18px;
        }

    /* Mobile services */

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

    .service-card {
        min-height: 210px;
        padding: 20px 15px;
    }

        .service-card h3 {
            font-size: 14px;
        }

    /* Mobile projects */

    .project-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }

    .project-large {
        grid-row: span 1;
        grid-column: span 2;
    }

    .project-card strong {
        font-size: 13px;
    }

    /* Mobile slideshow */

    .project-slideshow .slide-prev,
    .project-slideshow .slide-next {
        width: 34px;
        height: 34px;
    }

    .project-slideshow .slideshow-link span {
        padding: 22px 16px;
    }

    .project-slideshow .slide-dots {
        bottom: 16px;
        right: 15px;
    }

    /* Mobile quote */

    .quote-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-band h2 {
        font-size: 34px;
    }

    /* Mobile footer */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 18px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        gap: 12px;
        line-height: 1.5;
    }

        .footer-bottom a {
            white-space: nowrap;
        }
}

/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media(max-width:390px) {

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

    .service-card {
        min-height: 170px;
    }

    .project-grid {
        grid-auto-rows: 155px;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =====================================
   PROJECT IMAGE LIGHTBOX
===================================== */

.image-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 60px 80px;
    border: none;
    background: rgba(5, 18, 29, 0.88);
    overflow: hidden;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    /* Show the popup */
    .image-lightbox[open] {
        display: flex;
    }

    /* Blurred website behind popup */
    .image-lightbox::backdrop {
        background: rgba(5, 18, 29, 0.72);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    /* Main popup image */
    .image-lightbox img {
        display: block;
        max-width: 90%;
        max-height: 82vh;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 15px 60px rgba(0, 0, 0, 0.45);
        animation: lightboxPop 0.3s ease;
    }

/* Popup animation */
@keyframes lightboxPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    border: none;
    background: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 2;
}

/* Previous and next buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #ffc21a;
    color: #102638;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.1);
    }

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Mobile responsiveness */
@media (max-width: 680px) {
    .image-lightbox {
        padding: 55px 12px;
    }

        .image-lightbox img {
            max-width: 100%;
            max-height: 75vh;
        }

    .lightbox-close {
        top: 10px;
        right: 16px;
        font-size: 36px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}
