
:root {
    --color-primary: #3D6B8C;
    --color-primary-dark: #2A4A63;

    --color-bg: #F5F6F7;
    --color-surface: #D9DCE1;

    --color-text: #1E1F23;
    --color-text-muted: #6E737C;

    --color-border: #C6CBD2;
    --color-accent-cool: #8E98A3;
    --color-accent-warm: #D63A32;
}

@font-face {
    font-family: 'ErasITCDemi';
    src: url('assets/fonts/eras-itc-demi.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.theme-contrast {
    --brick-ember: #ce1212;
    --soft-peach: #f7dba7;
    --tangerine-dream: #f1ab86;
    --jet-black: #1e2d2f;
    --evergreen: #041f1e;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'ErasITCDemi', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-menu-toggle {
    display: none;
}

.nav-overlay {
    display: none;
}

/* Two-Column Layout */
.site-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-height: 100vh;
}

.side-rail {
    background-color: #1f3446;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.side-rail-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.4rem 2rem 2.2rem;
}

.brand-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1.25rem;
}

.brand-tagline {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(235, 241, 246, 0.9);
}

.side-nav .nav-links {
    display: grid;
    gap: 0.45rem;
    list-style: none;
}

.logo {
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 600;
}

.nav-links a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-left: 3px solid transparent;
    color: #f4f7fa;
    text-decoration: none;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, border-left-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--color-accent-warm);
}

.partner-callout {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(232, 238, 243, 0.85);
}

.partner-callout a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.partner-callout a:hover {
    color: var(--color-accent-warm);
}

.navbar-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    gap: 0.55rem;
}

.navbar-info-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: #e8eef3;
    line-height: 1.35;
}

.navbar-info-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.8rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.18);
    flex: 0 0 auto;
}

.content-column {
    min-width: 0;
    background-color: var(--color-surface);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-column > header,
.content-column > section,
.content-column > footer {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(30, 31, 35, 0.08);
}

/* Section Tab — optional label that sits above a floating section and
   flows directly into it (top-left corner of the section stays square
   so the tab reads as part of the same shape). Only sections wrapped
   in a .section-block get one; everything else is unaffected. */
.section-block {
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 6px 18px rgba(30, 31, 35, 0.08));
}

.section-tab {
    align-self: flex-start;
    background-color: #1f3446;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0.5rem 1.4rem;
}

.section-tab h2 {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.2;
}

.section-block > section {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    border-top-left-radius: 0;
    overflow: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 31, 35, 0.55), rgba(30, 31, 35, 0.55)), url('assets/images/cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e1f23;
    color: white;
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    /* margin-bottom: 1rem; */
    max-width: 32ch;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 52ch;
}

.material-symbols-rounded.navbar-info-icon {
    font-size: 1rem;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 1080px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .side-rail {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 340px);
        height: 100vh;
        border-right: 1px solid rgba(255, 255, 255, 0.18);
        border-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1100;
        overflow-y: auto;
    }

    .side-rail-inner {
        position: static;
        min-height: 100%;
        gap: 1rem;
        padding: 1.35rem 1.1rem 1.35rem 1.5rem;
    }

    .mobile-menu-toggle {
        position: fixed;
        top: 0.8rem;
        left: 0.8rem;
        width: 2.65rem;
        height: 2.65rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background-color: #1f3446;
        color: #ffffff;
        border-radius: 0.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1050;
    }

    .mobile-menu-toggle .material-symbols-rounded {
        font-size: 1.55rem;
        font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(20, 30, 38, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1000;
    }

    body.mobile-nav-open .side-rail {
        transform: translateX(0);
    }

    body.mobile-nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .side-nav .nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem 0.7rem;
    }

    .partner-callout {
        padding-top: 0.8rem;
    }

    .navbar-info {
        padding-top: 0.8rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem 1rem;
    }

    .hero {
        min-height: 48vh;
    }
}

@media (max-width: 780px) {
    .content-column {
        padding: 0.85rem;
        gap: 0.85rem;
    }

    .content-column > header,
    .content-column > section,
    .content-column > footer {
        border-radius: 12px;
    }

    .section-block > section {
        border-radius: 12px;
        border-top-left-radius: 0;
    }

    .section-tab {
        border-radius: 10px 10px 0 0;
        padding: 0.45rem 1.1rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .side-nav .nav-links {
        grid-template-columns: 1fr;
    }

    .partner-callout {
        padding-top: 0.65rem;
        font-size: 0.82rem;
    }

    .navbar-info {
        grid-template-columns: 1fr;
        padding-top: 0.65rem;
        gap: 0.45rem;
    }

    .navbar-info-item {
        font-size: 0.82rem;
    }

    .services,
    .lidar-scans {
        padding: 3rem 0;
    }
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.services-copy {
    display: grid;
    gap: 1rem;
}

.services-copy p {
    font-size: 1.03rem;
    color: var(--color-text);
}

.services-checklist {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    padding: 1.4rem 1.5rem;
    font-weight: 600;
}

.services-checklist h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.95rem;
    font-size: 1.2rem;
}

.services-checklist ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.services-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.service-check {
    width: 1.05rem;
    height: 1.05rem;
    /* border: 2px solid var(--color-primary-dark); */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
}

.service-check::after {
    content: '';
    width: 0.62rem;
    height: 0.34rem;
    border-left: 4px solid #2f9e44;
    border-bottom: 4px solid #2f9e44;
    transform: rotate(-45deg);
    position: absolute;
    left: 0.5rem;
    top: 0.10rem;
}

@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .lidar-hero {
        min-height: 48vh;
    }
}

/* LiDAR Scans Section */
.lidar-scans {
    background-color: #1e1f23;
}

.lidar-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1e1f23;
}

.lidar-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lidar-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 18, 22, 0.54), rgba(15, 18, 22, 0.68));
}

.lidar-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 4rem 20px;
}

.lidar-hero h2 {
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.lidar-hero .work-intro {
    color: rgba(255, 255, 255, 0.92);
    max-width: 58ch;
    margin-bottom: 0;
}

.lidar-note {
    margin-top: 0.75rem;
    text-align: center;
    color: #334d63;
    font-size: 0.95rem;
}

/* LiDAR Scan Library */
.lidar-library {
    padding: 4rem 0;
    background-color: #eef1f4;
}

.lidar-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

@media (max-width: 700px) {
    .lidar-library-grid {
        grid-template-columns: 1fr;
    }
}

.lidar-library-card {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lidar-library-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary-dark);
    box-shadow: 0 10px 24px rgba(30, 31, 35, 0.12);
}

.lidar-library-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

.lidar-library-card span {
    display: block;
    padding: 0.85rem 0.95rem;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 1rem;
}

/* Contact Us Section */
.contact-us {
    padding: 4rem 0;
    background-color: #e8edf2;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.contact-copy {
    display: grid;
    gap: 1rem;
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    padding: 1.5rem;
}

.contact-copy p {
    color: var(--color-text);
    font-size: 1.02rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.8rem 1.2rem;
    background-color: var(--color-primary-dark);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background-color: var(--color-primary);
    transform: translateY(-1px);
}

.contact-details {
    display: grid;
    gap: 0.9rem;
}

.contact-detail {
    background-color: #ffffff;
    border: 2px solid var(--color-border);
    padding: 1rem 1.1rem;
}

.contact-detail span {
    display: block;
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-detail a,
.contact-detail p {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Our Work Section — full-bleed cinematic filmstrip */
.our-work {
    background-color: #1e1f23;
}

.work-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

/* 2x2 grid of tiles on the left, one tall tile spanning both rows on the right. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, clamp(180px, 20vw, 300px));
}

.gallery-item {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-item--tall {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.gallery-item-trigger {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
}

.gallery-item-trigger:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: -3px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    display: inline-block;
    max-width: calc(100% - 2rem);
    background-color: #1f3446;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .gallery-item {
        height: clamp(220px, 60vw, 360px);
    }

    .gallery-item--tall {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Lightbox — click a gallery image to see it full size at its true aspect ratio. */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background-color: rgba(12, 18, 25, 0.85);
    cursor: pointer;
}

.lightbox__image {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background-color: rgba(20, 30, 38, 0.85);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.lightbox__close .material-symbols-rounded {
    font-size: 1.4rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}
