:root {
    --brand-black: #000000;
    --brand-black-soft: #111111;
    --brand-blue: #0d3b73;
    --brand-blue-deep: #082c4b;
    --brand-blue-mid: #155a93;
    --brand-blue-light: #e8f1f8;
    --brand-gold: #b9d9f2;
    --brand-gold-soft: #d9edff;
    --text: #1d1d1d;
    --muted: #5b5b5b;
    --white: #ffffff;
    --panel: #f5f5f5;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f7fa;
    color: var(--text);
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    font-size: 0.8rem;
}

.brand img {
    width: auto;
    height: 130px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: block;
    filter: none;
}

.phone-link {
    color: var(--brand-blue);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--brand-blue-deep);
    text-decoration: underline;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: transparent;
    color: var(--brand-blue);
    box-shadow: none;
}

.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(13, 59, 115, 0.82)),
        url('Photos/unnamed.jpg') center/cover no-repeat;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 42px;
    padding: 72px 0;
}

.hero-copy {
    color: var(--white);
    max-width: 700px;
}

.eyebrow {
    display: inline-block;
    background: rgba(21, 90, 147, 0.28);
    color: var(--brand-gold-soft);
    border: 1px solid rgba(217, 237, 255, 0.5);
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.68rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 18px 0 14px;
}

.hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    font-size: 1.04rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

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

.btn-primary {
    background: var(--brand-blue);
    color: var(--white);
    box-shadow: 0 15px 28px rgba(17, 17, 17, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 16px;
}

.hero-card .hero-logo {
    width: calc(100% + 36px);
    max-width: none;
    height: auto;
    aspect-ratio: 319 / 77;
    object-fit: contain;
    background: #ffffff;
    padding: 0;
    margin-left: -18px;
}

.hero-card h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--white);
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.section {
    padding: 72px 0;
}

.section-inner {
    display: grid;
    gap: 30px;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
}

.section-tag {
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 800;
}

#work .container,
#reviews .container,
#about .container,
#contact .container {
    width: min(1400px, calc(100% - 24px));
}

.section-heading p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
}

.services-grid,
.contact-grid,
.gallery-grid,
.stats-grid,
.review-grid {
    display: grid;
    gap: 26px;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 14px;
    padding: 30px 24px 26px;
    box-shadow: 0 14px 30px rgba(8, 44, 75, 0.1);
    border: 1px solid rgba(13, 59, 115, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-mid));
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 59, 115, 0.3);
    box-shadow: 0 20px 36px rgba(8, 44, 75, 0.16);
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(13, 59, 115, 0.08);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    margin: 0 0 10px;
    color: var(--brand-blue-deep);
    font-size: 1.32rem;
    letter-spacing: 0.01em;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    background: var(--brand-blue);
    color: var(--white);
    border-radius: 18px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--brand-gold-soft);
    margin-bottom: 6px;
}

.gallery-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 1fr);
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 4px 4px 18px;
    scrollbar-color: var(--brand-blue-mid) var(--brand-blue-light);
    scrollbar-width: thin;
}

.gallery-grid::-webkit-scrollbar {
    height: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: var(--brand-blue-light);
    border-radius: 999px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--brand-blue-mid);
    border-radius: 999px;
}

.gallery-item {
    scroll-snap-align: start;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--brand-blue-deep);
    box-shadow: 0 16px 32px rgba(8, 44, 75, 0.16);
    height: 360px;
    border: 2px solid rgba(21, 90, 147, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 59, 115, 0.28), rgba(0, 0, 0, 0.08));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gallery-item:focus-visible {
    outline: 3px solid var(--brand-blue-mid);
    outline-offset: 4px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue-mid);
    box-shadow: 0 24px 42px rgba(8, 44, 75, 0.26);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.about-wrap {
    background: var(--panel);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
}

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

.about-copy {
    padding: 34px 28px;
}

.about-copy h3 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.about-copy p {
    margin: 0 0 18px;
    color: var(--muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text);
}

.check-list li::before {
    content: "✓";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(13, 59, 115, 0.1);
    color: var(--brand-blue);
}

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

.review-card {
    background: var(--white);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13, 59, 115, 0.05);
}

.review-stars {
    color: var(--brand-gold);
    letter-spacing: 0.12em;
    font-size: 1rem;
    margin-bottom: 10px;
}

.review-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact {
    background: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue));
    color: var(--white);
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.contact-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
}

.contact-copy p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px 18px;
}

.contact-card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-card strong {
    color: var(--brand-gold-soft);
}

footer {
    background: #0d1722;
    color: rgba(255, 255, 255, 0.74);
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
        padding: 10px 0;
    }

    .nav-links {
        flex-basis: 100%;
        justify-content: center;
    }

    .hero-inner,
    .about-grid,
    .contact-grid,
    .services-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

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

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

    .section-heading {
        display: block;
    }
    .section-heading p {
        margin-top: 12px;
    }
}

@media (max-width: 620px) {
    .navbar {
        padding: 14px 0;
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 520px;
    }

    .gallery-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-card img {
        height: 220px;
    }

    .about-copy {
        padding: 24px 18px;
    }
}

@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: none;
        grid-auto-columns: minmax(280px, 44vw);
    }
}

@media (max-width: 620px) {
    .gallery-grid {
        grid-template-columns: none;
        grid-auto-columns: minmax(260px, 84vw);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-image {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid var(--brand-blue-mid);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: var(--brand-black);
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: var(--brand-blue);
}

.lightbox-open {
    overflow: hidden;
}

/* Mobile layout refinements */
@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 24px), 560px);
    }

    .navbar {
        display: block;
        min-height: 0;
        padding: 10px 0 12px;
    }

    .brand img {
        width: auto;
        height: 110px;
    }

    .phone-link {
        display: inline-flex;
        margin-top: 8px;
    }

    .nav-links {
        width: 100%;
        margin-top: 10px;
        gap: 4px;
        flex-wrap: wrap;
        overflow: visible;
    }

    .nav-links a {
        flex: 0 0 auto;
        padding: 8px 11px;
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .hero {
        min-height: 0;
    }

    .hero-inner {
        padding: 56px 0 64px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 11vw, 3.25rem);
        line-height: 1.02;
        margin-top: 16px;
    }

    .hero-copy p {
        font-size: 0.98rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .btn {
        width: 100%;
        padding: 12px 18px;
    }

    .section {
        padding: 48px 0;
    }

    .section-inner {
        gap: 22px;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

    .services-grid,
    .review-grid {
        gap: 14px;
    }

    .service-card,
    .review-card {
        padding: 24px 18px 22px;
    }

    .stats-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        padding: 18px 10px;
        font-size: 0.88rem;
    }

    .stat-card strong {
        font-size: 1.65rem;
    }

    .about-copy {
        padding: 26px 20px;
    }

    .about-copy h3,
    .contact-copy h2 {
        font-size: 1.85rem;
    }

    .contact {
        border-radius: 16px;
        padding: 26px 18px;
    }

    .contact-card {
        padding: 18px 16px;
        overflow-wrap: anywhere;
    }

    .footer-inner {
        display: grid;
        gap: 4px;
        font-size: 0.82rem;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-image {
        max-width: 96vw;
        max-height: 78vh;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}

/* Mobile card emphasis */
@media (max-width: 620px) {
    .service-card,
    .review-card {
        border: 1px solid rgba(13, 59, 115, 0.18);
        border-left: 5px solid var(--brand-blue-mid);
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(8, 44, 75, 0.12);
    }

    .service-card::before {
        height: 3px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p,
    .review-card p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .review-card {
        background: #ffffff;
    }

    .review-stars {
        margin-bottom: 8px;
    }

    .stat-card {
        min-height: 104px;
        display: grid;
        align-content: center;
        border-radius: 10px;
        border: 1px solid rgba(217, 237, 255, 0.32);
        box-shadow: 0 10px 22px rgba(8, 44, 75, 0.16);
    }

    .about-wrap {
        border: 1px solid rgba(13, 59, 115, 0.16);
        box-shadow: 0 12px 26px rgba(8, 44, 75, 0.12);
    }

    .contact {
        border: 1px solid rgba(217, 237, 255, 0.28);
        box-shadow: 0 14px 30px rgba(8, 44, 75, 0.2);
    }

    .contact-card {
        border-left: 4px solid var(--brand-gold-soft);
        background: rgba(0, 0, 0, 0.2);
    }
}
