:root {
    --navy: #0a1d2b;
    --blue: #123b55;
    --solar: #e8a92d;
    --ink: #172a38;
    --muted: #63717b;
    --pale: #f2f6f7;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    padding-top: 100px;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

.navbar {
    min-height: 100px;
    background: var(--navy);
    box-shadow: 0 4px 20px rgba(4, 18, 28, 0.12);
}

.navbar-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.navbar-brand img {
    display: block;
    width: 240px;
    height: 80px;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
    padding-inline: 0.9rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
}

.language-switch {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
}

.language-switch .nav-link {
    display: grid;
    min-width: 40px;
    min-height: 40px;
    padding: 0.4rem !important;
    place-items: center;
}

.language-flag {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.language-switch .nav-link.active .language-flag {
    box-shadow: 0 0 0 2px var(--solar);
}

.hero {
    position: relative;
    min-height: min(720px, calc(100vh - 100px));
    padding: 6rem 0;
    background:
        linear-gradient(90deg, rgba(5, 19, 30, 0.86), rgba(5, 19, 30, 0.2)),
        url("../img/hero.jpg") center / cover no-repeat;
}

.hero-content {
    max-width: 1200px;
}

.hero h1 {
    max-width: 800px;
    margin: 0 0 1.25rem;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--solar);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.text-solar {
    color: #a76f00;
}

.btn {
    border-radius: 2px;
    padding: 0.75rem 1.35rem;
    font-weight: 700;
}

.btn-solar {
    border: 1px solid var(--solar);
    background: var(--solar);
    color: var(--navy);
}

.btn-solar:hover {
    border-color: #f3bc4e;
    background: #f3bc4e;
    color: var(--navy);
}

.btn-dark-blue {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
}

.btn-dark-blue:hover {
    background: var(--blue);
    color: #fff;
}

.hero-scroll {
    position: absolute;
    right: max(1.5rem, calc((100vw - 1320px) / 2));
    bottom: 2rem;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
}

.service-strip {
    background: var(--navy);
    color: #fff;
}

.service-highlight {
    min-height: 220px;
    padding: 2rem 2rem 1.7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.service-highlight:last-child {
    border-right: 0;
}

.service-number {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--solar);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-highlight h2 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-highlight p {
    max-width: 330px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.section-space {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tint {
    background: var(--pale);
}

.section-title {
    max-width: 760px;
    margin-bottom: 1.2rem;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

.section-copy {
    max-width: 720px;
    color: var(--muted);
}

.about-photo {
    width: 100%;
    max-height: 530px;
    object-fit: cover;
    box-shadow: 20px 20px 0 #e4edf0;
}

.text-link {
    display: inline-flex;
    gap: 0.65rem;
    margin-top: 0.75rem;
    color: #8a5a00;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--navy);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.feature-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    column-gap: 2rem;
    overflow: hidden;
    align-items: center;
    padding: 0 2rem 0 0;
    border-top: 3px solid var(--solar);
    background: #fff;
    box-shadow: 0 12px 35px rgba(14, 38, 53, 0.07);
}

.feature-card-media {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 250px;
    overflow: hidden;
}

.feature-card-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.feature-card-image--logistics {
    transform: scale(1.5);
    transform-origin: center;
}

.feature-card::after,
.person-card::after,
.content-panel::after {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    width: 76px;
    height: 26px;
    background: url("../img/logo_new_1.PNG") center / contain no-repeat;
    content: "";
    opacity: 0.22;
    pointer-events: none;
}

.content-panel {
    position: relative;
    padding-bottom: 3.5rem;
}

.project-stat {
    position: relative;
    padding-bottom: 3.5rem;
}

.project-stat::after,
.reference-card::before,
.gallery-card::before {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    width: 76px;
    height: 26px;
    background: url("../img/logo_new_2.PNG") center / contain no-repeat;
    content: "";
    opacity: 0.72;
    pointer-events: none;
}

.project-stat::after {
    opacity: 0.5;
}

.gallery-card::before {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    width: 100px;
    height: 34px;
    border-radius: 4px;
    background-color: rgba(7, 25, 38, 0.78);
    background-size: 88% auto;
    opacity: 1;
}

.feature-card h3 {
    grid-column: 2;
    align-self: end;
    margin-bottom: 0.75rem;
    padding-top: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    hyphens: auto;
    overflow-wrap: anywhere;
}

.feature-card p {
    grid-column: 2;
    align-self: start;
    margin-bottom: 0;
    padding-bottom: 2rem;
    color: var(--muted);
}

.flagship {
    background:
        linear-gradient(110deg, rgba(7, 25, 38, 0.98), rgba(14, 57, 78, 0.9)),
        url("../img/projects/witznitz.webp") center / cover no-repeat;
}

.flagship .section-title {
    max-width: 620px;
}

.project-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 2rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.project-stat div {
    display: flex;
    flex-direction: column;
}

.project-stat strong {
    color: var(--solar);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.project-stat span,
.project-stat p {
    color: rgba(255, 255, 255, 0.75);
}

.project-stat p {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.82rem;
}

.reference-card {
    position: relative;
    display: block;
    min-height: 300px;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.reference-card::after {
    position: absolute;
    inset: 35% 0 0;
    z-index: 1;
    background: linear-gradient(transparent, rgba(4, 17, 27, 0.82));
    content: "";
}

.reference-card::before,
.gallery-card::before {
    z-index: 2;
}

.reference-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.reference-card:hover img {
    transform: scale(1.04);
}

.reference-card span {
    position: absolute;
    z-index: 3;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-cta {
    background: var(--pale);
    color: var(--ink);
}

.team-teaser {
    background:
        linear-gradient(rgba(7, 24, 35, 0.72), rgba(7, 24, 35, 0.72)),
        url("../img/team/mlg-solar-team.webp") center / cover no-repeat;
    color: #fff;
}

.contact-cta .section-title,
.team-teaser .section-title {
    margin-inline: auto;
}

.contact-cta .section-title {
    color: var(--ink);
}

.team-teaser .section-title {
    color: #fff;
}

.team-teaser .section-copy {
    color: rgba(255, 255, 255, 0.84);
}

.contact-cta .section-copy {
    margin: 0 auto 1.5rem;
    color: var(--muted);
}

.site-footer {
    padding: 3.5rem 0 1.2rem;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer a {
    display: block;
    width: fit-content;
    margin: 0.35rem 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--solar);
}

.site-footer .footer-brand {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand img {
    display: block;
    width: 155px;
    height: auto;
}

.site-footer p {
    max-width: 350px;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
}

.footer-bottom div {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom a {
    display: inline;
    margin: 0;
    font-size: inherit;
}

.page-hero {
    padding: clamp(4rem, 9vw, 7rem) 0 4.5rem;
    background: linear-gradient(120deg, var(--navy), #164461);
    color: #fff;
}

.team-hero {
    display: flex;
    min-height: 430px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(5, 19, 30, 0.88), rgba(5, 19, 30, 0.4)),
        url("../img/team/mlg-solar-team.webp") center 48% / cover no-repeat;
}

.page-hero h1,
.page-hero h2 {
    max-width: 850px;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.page-hero p:last-child {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.project-gallery {
    row-gap: 1.5rem;
}

.gallery-card {
    position: relative;
    height: 100%;
    min-height: 290px;
    margin: 0;
    overflow: hidden;
    background: var(--navy);
}

.gallery-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-card:hover img {
    transform: scale(1.045);
}

.gallery-card::after {
    position: absolute;
    inset: 35% 0 0;
    z-index: 1;
    background: linear-gradient(transparent, rgba(4, 17, 27, 0.88));
    content: "";
}

.gallery-card figcaption {
    position: absolute;
    z-index: 3;
    right: 1.4rem;
    bottom: 1rem;
    left: 1.4rem;
    color: #fff;
}

.gallery-card h2 {
    margin: 0.15rem 0 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.gallery-card__details {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.82rem;
}

.gallery-card__details div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.gallery-card__details dt {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
}

.gallery-card__details dd {
    margin: 0;
    text-align: right;
}

.gallery-note {
    margin: 2.5rem auto 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.content-panel {
    padding: clamp(1.5rem, 5vw, 3rem);
    padding-bottom: 3.5rem;
    background: #fff;
    box-shadow: 0 12px 35px rgba(14, 38, 53, 0.07);
}

.content-panel h2 {
    margin: 1.6rem 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel p,
.content-panel li {
    color: var(--muted);
}

.person-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-bottom: 3px solid var(--solar);
    background: #fff;
    box-shadow: 0 12px 35px rgba(14, 38, 53, 0.07);
}

.team-group-photo {
    display: block;
    width: 100%;
    max-height: 480px;
    margin-bottom: 2.5rem;
    object-fit: cover;
    object-position: center 42%;
}

.person-card > img,
.person-card-image {
    display: block;
    width: 100%;
    height: 320px;
}

.person-card > img {
    object-fit: cover;
    object-position: center 30%;
}

.person-card-image {
    display: grid;
    place-items: center;
    background: var(--navy);
}

.person-card-image img {
    width: auto;
    max-width: 70%;
    height: auto;
    max-height: 70%;
    object-fit: contain;
}

.person-card-content {
    padding: 1.5rem 1.75rem 3.5rem;
}

.person-card h2,
.person-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.person-card p {
    margin: 0;
    color: var(--muted);
}

.contact-detail {
    padding: 1.35rem 0;
    border-bottom: 1px solid #dce4e7;
}

.contact-detail h2 {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-detail p,
.contact-detail a {
    margin-bottom: 0;
    color: var(--muted);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border: 1px solid #d5dfe3;
    color: var(--blue);
    text-decoration: none;
}

.social-links a:hover {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.notice-box {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--solar);
    background: #fbf6ea;
    color: #554523;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.75rem 0 1rem;
    }

    .language-switch {
        margin: 0.25rem 0 0;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 80px;
    }

    .feature-card {
        display: block;
        padding: 0 1.5rem 2.5rem;
    }

    .feature-card-image {
        height: 100%;
    }

    .feature-card-media {
        width: calc(100% + 3rem);
        height: 190px;
        margin: 0 -1.5rem 1.5rem;
    }

    .feature-card h3 {
        padding-top: 0;
    }

    .feature-card p {
        padding-bottom: 0;
    }

    .navbar {
        min-height: 80px;
    }

    .navbar-brand img {
        width: 195px;
        height: 65px;
    }

    .hero {
        min-height: 590px;
        min-height: min(700px, calc(100svh - 80px));
        padding: 4rem 0;
        background-position: 58% center;
    }

    .service-highlight {
        min-height: auto;
        padding: 1.5rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .service-highlight:last-child {
        border-bottom: 0;
    }

    .project-stat {
        padding: 1.4rem;
    }

    .reference-card,
    .gallery-card {
        min-height: 250px;
    }

    .reference-card img,
    .gallery-card img {
        height: 280px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
