:root {
    --primary: #0b2c48;
    --accent: #e6b800;
    --muted: #f4f6f8;
    --surface: #ffffff;
    --dark: #111316;
    --subtle: #6b7280;
    --header-height: 88px;
}

/* Typography */
* {
    box-sizing: border-box;
}

html,
body {

    /* Make main header fixed so navbar stays visible while scrolling */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        z-index: 9999;
        background: #eef7fb;
    }

    body {
        padding-top: var(--header-height);
    }

    /* ensure header content vertically centers within known height */
    .header-flex {
        align-items: center;
        height: 100%;
    }

    h1,
    h2,
    h3,
    h4 {
        color: white;
        margin: 0 0 12px 0;
    }

    h1 {
        font-weight: 700;
        font-size: 2.8rem;
    }

    h2 {
        font-weight: 600;
        font-size: 1.8rem;
    }

    p {
        color: #07192a;
    }

    img {
        max-width: 85%;
        height: auto;
        display: block;
    }

    /* Layout container */
    .container {
        width: 95%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .site-footer {
        background: linear-gradient(180deg, #052033 0%, #07192a 100%);
        color: #cfe6ee;
        padding: 48px 0 18px;
        border-top: 4px solid rgba(255, 255, 255, 0.02);
    }

    .site-footer .container {
        display: flex;
        gap: 28px;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .site-footer .footer-left,
    .site-footer .footer-center,
    .site-footer .footer-right {
        flex: 1 1 260px;
        min-width: 200px;
    }

    .site-footer h4 {
        color: #f6fbff;
        margin: 0 0 12px 0;
        font-size: 1.05rem;
        letter-spacing: 0.2px;
    }

    .follow-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: 10px;
        border-radius: 10px;
        background: #ffffff;
        color: var(--primary);
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(2, 8, 23, 0.06);
        transition: transform .18s ease, background .18s ease;
    }

    .follow-icons a:hover {
        transform: translateY(-4px);
        background: var(--accent);
        color: #04212b;
    }

    .follow-icons a svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .site-footer .footer-center p {
        margin: 8px 0;
        color: #d7e7ee;
        line-height: 1.5;
    }

    .site-footer .footer-center a {
        color: #d7e7ee;
        text-decoration: none;
        font-weight: 600
    }

    /* Light site footer: two-column layout (logo+tagline | contact blocks) */
    .site-footer {
        background: #eaf6fb;
        color: #04212b;
        padding: 56px 0 22px;
        border-top: 1px solid rgba(4, 33, 43, 0.06);
    }

    .site-footer .container {
        display: flex;
        gap: 28px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .site-footer .footer-left {
        flex: 1 1 60%;
        min-width: 220px;
    }

    .site-footer .footer-right {
        flex: 0 0 36%;
        min-width: 260px;
        text-align: right;
        /* logo + icons aligned to the right on desktop */
        padding-left: 24px;
        border-left: 1px solid rgba(4, 33, 43, 0.06);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    /* ensure logo and icons size and alignment */
    .site-footer .footer-right img {
        max-width: 220px;
        height: auto;
        display: block;
    }

    .site-footer .footer-right .follow-icons {
        margin-top: 24px;
        display: flex;
        gap: 0px;
        justify-content: flex-end;
    }

    /* make contact text clearly readable */
    .site-footer .contact-block p {
        color: #04212b;
        font-size: 1.02rem;
        line-height: 1.5;
        margin: 0;
    }

    .site-footer .contact-block small {
        color: #6b7f84
    }

    .site-footer .contact-block a {
        color: #04212b;
        text-decoration: none;
        font-weight: 600
    }

    .site-footer .footer-left img {
        max-width: 220px;
        height: auto;
        display: block;
        margin-bottom: 18px
    }

    .site-footer .footer-left h2 {
        font-size: 1.8rem;
        margin: 0;
        color: #04212b;
        font-weight: 600
    }

    .site-footer .contact-block {
        margin-bottom: 28px;
    }

    .site-footer .contact-block small {
        display: block;
        color: #7a99a0;
        letter-spacing: 1.2px;
        font-size: 0.78rem;
        margin-bottom: 8px
    }

    .site-footer .contact-block p {
        margin: 0;
        font-size: 1.02rem;
        color: #04212b;
        line-height: 1.5
    }

    .site-footer .contact-block a {
        color: #04212b;
        text-decoration: none;
        font-weight: 600
    }

    .site-footer .site-copy {
        color: #6b7f84;
        padding-top: 22px;
        text-align: center;
        font-size: 0.95rem
    }

    /* back-to-top button */
    #back-to-top {
        position: fixed;
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
        background: #04212b;
        color: #fff;
        border-radius: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(4, 33, 43, 0.16);
        z-index: 999;
    }

    /* hidden by default, shown when .visible is added */
    #back-to-top {
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
        transition: opacity .28s ease, transform .28s ease;
    }

    #back-to-top.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    @media (max-width: 992px) {
        .site-footer .container {
            gap: 18px;
        }

        .site-footer .footer-right {
            flex-basis: 100%;
            border-left: 0;
            padding-left: 0;
            margin-top: 18px;
            text-align: center;
            align-items: center;
        }

        .site-footer .footer-right .follow-icons {
            justify-content: center;
        }

        .site-footer .footer-right img {
            margin: 0 auto;
            max-width: 160px
        }

        .site-footer .contact-block p {
            text-align: left;
        }
    }

    @media (max-width: 480px) {
        .site-footer {
            padding: 36px 0 18px;
        }

        .site-footer .footer-left h2 {
            font-size: 1.2rem
        }

        .site-footer .footer-left img {
            max-width: 160px
        }

        #back-to-top {
            right: 12px;
            bottom: 12px;
            width: 40px;
            height: 40px
        }
    }

    .logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 44px;
        width: auto;
        object-fit: contain;
    }

    .nav {
        display: flex;
        gap: 0px;
        align-items: center;
        flex: 0 1 auto;
        margin-left: 24px;
    }

    .nav a {
        color: var(--dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 6px 0;
        position: relative;
    }

    .nav a.active,
    .nav a:hover {
        color: var(--primary);
    }

    .nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 3px;
        background: var(--accent);
        transition: width .25s ease;
    }

    .nav a:hover::after,
    .nav a.active::after {
        width: 100%;
    }

    /* Hide mobile toggle on desktop; default margin-left:auto so it sits right */
    .nav-toggle {
        display: none;
        background: transparent;
        border: 0;
        margin-left: auto;
    }

    /* Hero */
    .hero {
        height: 80vh;
        background-position: center;
        background-size: cover;
        display: flex;
        align-items: center;
    }

    .hero-overlay {
        width: 100%;
        text-align: center;
        padding: 0 20px;
        background: linear-gradient(180deg, rgba(11, 44, 72, 0.12) 0%, rgba(11, 44, 72, 0.12) 100%);
        color: #fff;
    }

    .hero-overlay h1 {
        font-size: clamp(28px, 6vw, 56px);
        margin-bottom: 12px;
    }

    .hero-overlay p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 20px;
    }

    .btn {
        background: #07192a;
        color: white;
        padding: 12px 28px;
        border-radius: 28px;
        text-decoration: none;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(230, 184, 0, 0.14);
    }

    /* Sections */
    .section {
        padding: 80px 0;
    }

    .center {
        text-align: center;
    }

    /* Cards */
    .service-card,
    .project-card,
    .gallery-box,
    .box {
        background: var(--surface);
        border-radius: 10px;
        padding: 24px;
        transition: transform .28s ease, box-shadow .28s ease;
        border: 1px solid rgba(16, 24, 40, 0.04);
    }

    .service-card:hover,
    .project-card:hover,
    .gallery-box:hover,
    .box:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    /* Forms */
    form input,
    form textarea {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid rgba(16, 24, 40, 0.06);
        border-radius: 8px;
        margin-bottom: 12px;
    }

    form button {
        padding: 12px 24px;
        border-radius: 8px;
        background: var(--primary);
        color: #fff;
        border: none;
        cursor: pointer;
    }

    /* Gallery placeholders */
    .gallery-box {
        height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--subtle);
        background: linear-gradient(180deg, #efefef, #e6e6e6);
    }

    /* Footer */
    .footer {
        background: #081f33;
        color: #cfcfcf;
        text-align: center;
        padding: 28px 0;
    }


    /* Responsive adjustments */
    @media (max-width: 992px) {
        .header-flex {
            padding: 14px 0;
        }

        .logo img {
            height: 40px;
        }
    }

    @media (max-width: 768px) {
        .header-flex {
            padding: 14px 0;
        }

        .nav {
            display: none;
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            flex-direction: column;
            background: var(--surface);
            padding: 12px 0;
            border-top: 1px solid rgba(16, 24, 40, 0.04);
        }

        .nav.open {
            display: flex;
        }

        .nav a {
            margin: 8px 16px;
        }

        .nav-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
        }

        .nav-toggle .hamburger {
            width: 22px;
            height: 2px;
            background: var(--dark);
            position: relative;
            display: inline-block;
        }

        .nav-toggle .hamburger::before,
        .nav-toggle .hamburger::after {
            content: '';
            position: absolute;
            left: 0;
            width: 22px;
            height: 2px;
            background: #0b2c48;
            transition: transform .25s ease, opacity .25s ease;
        }

        .nav-toggle .hamburger::before {
            top: -7px;
        }

        .nav-toggle .hamburger::after {
            top: 7px;
        }

        .nav-toggle.open .hamburger {
            background: transparent;
        }

        .nav-toggle.open .hamburger::before {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-toggle.open .hamburger::after {
            transform: translateY(-7px) rotate(-45deg);
        }

        .hero {
            height: 60vh;
        }

        .section {
            padding: 48px 0;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 1.4rem;
        }

        .logo img {
            height: 65px;
        }

        .hero {
            height: 50vh;
        }

        .section {
            padding: 28px 0;
        }
    }

    /* Accessibility focus */
    .nav a:focus,
    .btn:focus,
    form input:focus,
    form textarea:focus {
        outline: 3px solid rgba(11, 44, 72, 0.12);
        outline-offset: 4px;
    }

    @media (max-width: 480px) {
        .logo img {
            max-height: 65px;
        }

        .hero {
            height: 50vh !important;
        }

        .hero-overlay h1 {
            font-size: 22px !important;
        }

        .section {
            padding: 28px 0;
        }
    }

    /* Accessibility: ensure focus visible */
    .nav a:focus,
    .btn:focus,
    form input:focus,
    form textarea:focus {
        outline: 3px solid rgba(11, 44, 72, 0.15);
        outline-offset: 2px;
    }
}