/* Shared visual language for the local project photography. */
:root {
    --brand-blue: #0095d9;
    --brand-dark: #1e242b;
}

.header-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.about-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 2.5rem;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f7f8fa, #e8edf1);
    box-shadow: 0 12px 28px rgba(30, 36, 43, .1);
}

.about-logo {
    width: min(100%, 360px);
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 12px 26px rgba(30, 36, 43, .08);
}

.message-textarea {
    min-height: 132px;
    max-height: 280px;
    resize: none;
    line-height: 1.6;
    transition: height .15s ease, border-color .2s ease, box-shadow .2s ease;
}

.message-textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 149, 217, .12);
}

.hero-bg {
    background:
        linear-gradient(90deg, rgba(30, 36, 43, .84), rgba(30, 36, 43, .42)),
        url("assets/reference-1.png") center/cover;
}

.process-bg {
    background:
        linear-gradient(rgba(30, 36, 43, .78), rgba(30, 36, 43, .78)),
        url("assets/reference-2.png") center/cover;
}

.section-title {
    color: #1f2933;
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.section-divider {
    width: 42px;
    height: 3px;
    margin: 16px auto 0;
    background: var(--brand-blue);
}

.btn-pill-blue,
.btn-pill-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.btn-pill-blue:hover,
.btn-pill-outline-white:hover {
    transform: translateY(-2px);
}

.btn-pill-outline-white {
    border: 1px solid rgba(255, 255, 255, .75);
    color: #fff;
}

.service-card-with-img {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    overflow: hidden;
    min-height: 250px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(30, 36, 43, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card-with-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(30, 36, 43, .12);
}

.service-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-number {
    display: block;
    margin-bottom: .55rem;
    color: #a68b5b;
    font-family: Montserrat, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.service-title {
    margin-bottom: .75rem;
    color: #1f2933;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.service-text {
    color: #5b6570;
    font-size: .875rem;
    line-height: 1.7;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.referenz-box {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
    min-height: 280px;
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #dfe5e8;
    box-shadow: 0 12px 28px rgba(30, 36, 43, .1);
    cursor: pointer;
}

.referenz-box img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform .5s ease;
}

.referenz-box:hover img {
    transform: scale(1.06);
}

.reference-trigger:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 4px;
}

.referenz-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(30, 36, 43, .85));
}

.process-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
}

.reference-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(13, 18, 23, .88);
}

.reference-modal.is-open {
    display: flex;
}

.reference-modal-panel {
    position: relative;
    width: min(940px, 100%);
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.reference-modal-title {
    margin: 0 3rem .9rem 0;
    color: #1f2933;
    font-family: Montserrat, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reference-modal-close {
    position: absolute;
    top: .6rem;
    right: .9rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    color: #1e242b;
    font-size: 1.8rem;
    line-height: 1;
}

.reference-modal-close:hover {
    background: #eef2f4;
}

.reference-modal-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(65vh, 620px);
    overflow: hidden;
    border-radius: .7rem;
    background: #eef2f4;
}

.reference-modal-viewer img {
    display: block;
    width: 100%;
    max-height: min(65vh, 620px);
    object-fit: contain;
}

.reference-modal-arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: rgba(30, 36, 43, .75);
    color: #fff;
    font-size: 1.25rem;
    transform: translateY(-50%);
}

.reference-modal-arrow:hover {
    background: var(--brand-blue);
}

.reference-modal-prev {
    left: .85rem;
}

.reference-modal-next {
    right: .85rem;
}

.reference-modal-thumbs {
    display: flex;
    gap: .55rem;
    margin-top: .8rem;
    overflow-x: auto;
    padding-bottom: .2rem;
}

.reference-modal-thumb {
    flex: 0 0 72px;
    height: 58px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: .35rem;
    opacity: .65;
}

.reference-modal-thumb.is-active {
    border-color: var(--brand-blue);
    opacity: 1;
}

.reference-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-modal-counter {
    margin: .65rem 0 0;
    color: #6b7280;
    font-size: .75rem;
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .service-card-with-img {
        grid-template-columns: 1fr;
    }

    .service-img {
        height: 220px;
        min-height: 220px;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }

    .referenz-box,
    .referenz-box img {
        min-height: 240px;
    }
}
