/* Barlow font - Google Fonts replacement for URW DIN */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
}

/* Navigation */
header {
    padding: 20px 40px;
    background: #fff;
}

.main-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #FF0000;
    font-size: 12pt;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link.active {
    color: #000;
}

.nav-separator {
    color: #FF0000;
    font-size: 12pt;
    font-weight: 400;
}

/* Main content */
main {
    padding: 20px 40px 40px;
}

/* Hero section - logo only */
.hero {
    margin-bottom: 30px;
}

.logo {
    margin: 15px 0 23px 0;
}

.logo-image {
    height: 60px;
    width: auto;
}

/* Content section */
.content-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 50px;
    align-items: start;
}

/* Text content - narrow column */
.text-content {
    max-width: 480px;
}

.text-content p {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    margin-bottom: 14px;
}

.text-content a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.text-content a:hover {
    text-decoration: underline;
}

/* Section headings - URW DIN Medium 14pt */
.section-title {
    font-size: 14pt;
    font-weight: 500;
    color: #000;
    margin-bottom: 12px;
    margin-top: 20px;
}

.section-title:first-child {
    margin-top: 0;
}

/* Strategy items */
.strategy-item {
    margin-bottom: 14px;
    font-size: 12pt;
}

.strategy-item strong {
    font-weight: 500;
}

/* Lists */
.strategies-list {
    list-style: disc;
    margin-left: 18px;
    margin-top: 10px;
}

.strategies-list li {
    font-size: 12pt;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.5;
}

.projects-list {
    list-style: disc;
    margin-left: 18px;
    margin-top: 10px;
}

.projects-list li {
    font-size: 12pt;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Image showcase */
.image-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Home page - align image top with text top */
.home-images {
    margin-top: 0;
}

/* Section title outside grid */
.content > .section-title {
    margin-bottom: 16px;
}

.content > .section-title:not(:first-child) {
    margin-top: 15px;
}

/* Solutions page - position images to align with body text */
.solutions-images {
    margin-top: 32px;
}

.solutions-images .showcase-image {
    position: relative;
    left: 36px;
}

.solutions-images .image-caption,
.solutions-images .base-module-caption {
    margin-left: 36px;
}

.image-block {
    display: flex;
    flex-direction: column;
}

.showcase-image,
.render-image,
.diagram-image,
.map-image {
    width: 480px;
    max-width: 100%;
    height: auto;
}

/* Image caption - URW DIN 10pt */
.image-caption {
    font-size: 10pt;
    color: #000;
    margin-top: 6px;
    line-height: 1.4;
    max-width: 480px;
}

/* Photo grid for Solutions page */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 480px;
    max-width: 100%;
}

.photo-grid img {
    width: 100%;
    height: auto;
}

/* Single column layout for About page */
.single-column .text-content {
    max-width: 480px;
}

/* Team member layout */
.team-member {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 20px;
}

.team-member .bio {
    max-width: 480px;
}

.team-member .bio p {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    margin-bottom: 14px;
}

.team-photo {
    width: 144px;
    max-width: 100%;
    height: auto;
}

/* Base module section image - wider */
.base-module-image {
    width: 480px;
    max-width: 100%;
    height: auto;
}

.base-module-caption {
    font-size: 10pt;
    color: #000;
    margin-top: 6px;
    line-height: 1.4;
    width: 480px;
}

/* Stacked images */
.stacked-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stacked-images img {
    width: 480px;
    max-width: 100%;
    height: auto;
}

/* Footer - URW DIN 9pt */
footer {
    text-align: left;
    padding: 20px 40px 40px;
    background: none;
    margin-top: 30px;
}

footer p {
    font-size: 9pt;
    color: #666;
}

/* Responsive design */
@media (max-width: 900px) and (orientation: portrait) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .text-content {
        max-width: 480px;
    }

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

    .team-member .bio {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .main-nav {
        gap: 6px;
        flex-wrap: wrap;
    }

    main {
        padding: 20px;
    }

    .logo-image {
        height: 60px;
        width: auto;
    }

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

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-block img:not(.logo-image),
.stacked-images img,
.team-photo,
.photo-grid img {
    cursor: pointer;
}

@media (max-width: 480px) {
    .main-nav {
        gap: 5px;
    }

    .nav-separator {
        display: none;
    }

    .main-nav .nav-link {
        display: block;
        margin-bottom: 5px;
    }
}
