/* ===== ANASAYFA HERO: METİN + KOLAJ ===== */

#HomeCollage {
    --hero-bg: #eef2f7;
    --hero-bg-soft: #e4eaf1;
    position: relative;
    width: 100%;
    margin: 0 auto 0.5rem;
    padding: clamp(0.65rem, 1.5vw, 1.25rem) clamp(0.35rem, 1.2vw, 0.65rem);
    background: linear-gradient(135deg, #f7f9fc 0%, var(--hero-bg) 100%);
    border-radius: 4px;
    box-sizing: border-box;
}

.home-hero {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.8vw, 1.75rem);
    width: 100%;
    min-height: clamp(150px, 32vw, 380px);
    box-sizing: border-box;
}

.home-hero__content {
    flex: 1 1 48%;
    min-width: 0;
    padding: clamp(0.15rem, 0.6vw, 0.4rem) clamp(0.2rem, 0.8vw, 0.5rem) clamp(0.15rem, 0.6vw, 0.4rem) 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero__brand {
    margin: 0 0 clamp(0.3rem, 0.85vw, 0.55rem);
    padding-bottom: clamp(0.25rem, 0.6vw, 0.4rem);
    border-bottom: 2px solid #EE334C;
    font-family: "Work Sans", "Poppins", sans-serif;
    font-size: clamp(0.95rem, 2.15vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #00235A;
    line-height: 1.15;
}

.home-hero__tagline {
    margin: 0 0 clamp(0.35rem, 0.9vw, 0.65rem);
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.7rem, 1.45vw, 1.15rem);
    font-weight: 600;
    line-height: 1.4;
    color: #1a2b42;
}

.home-hero__services {
    margin: 0 0 clamp(0.5rem, 1vw, 0.75rem);
    padding: 0;
    list-style: none;
}

.home-hero__services li {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.35rem, 0.75vw, 0.55rem);
    margin-bottom: clamp(0.32rem, 0.65vw, 0.5rem);
    padding: clamp(0.28rem, 0.55vw, 0.4rem) 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.58rem, 0.95vw, 0.84rem);
    font-weight: 500;
    line-height: 1.4;
    color: #2d3748;
    border-bottom: 1px solid rgba(0, 35, 90, 0.07);
}

.home-hero__services li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.home-hero__services li:first-child {
    padding-top: 0;
}

.home-hero__services i {
    flex-shrink: 0;
    margin-top: 0.1em;
    font-size: 0.92em;
    color: #EE334C;
}

.home-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-top: 0.15rem;
    font-size: clamp(0.58rem, 0.95vw, 0.82rem);
    font-weight: 600;
    color: #00235A;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-hero__link:hover {
    color: #EE334C;
    border-bottom-color: #EE334C;
}

.home-hero__link i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.home-hero__link:hover i {
    transform: translateX(3px);
}

/* Sağ: kolaj — simetrik boşluk, net beyaz çerçeve */
.home-hero__visual {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0 clamp(0.35rem, 1.2vw, 0.85rem);
    box-sizing: border-box;
}

.collage-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px;
    background: #fff;
    border: 3px solid #fff;
    outline: 1px solid rgba(0, 35, 90, 0.14);
    box-shadow:
        0 0 0 1px rgba(0, 35, 90, 0.06),
        0 10px 32px rgba(0, 35, 90, 0.16);
    box-sizing: border-box;
    overflow: hidden;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
    width: 100%;
    height: clamp(150px, 32vw, 380px);
    max-height: clamp(150px, 32vw, 380px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--hero-bg-soft);
}

.collage-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background: #c5cdd6;
    transition: filter 0.2s ease;
}

.collage-item:focus-visible {
    outline: 2px solid #EE334C;
    outline-offset: -2px;
    z-index: 2;
}

.collage-item:hover {
    filter: brightness(1.06);
    z-index: 1;
}

.collage-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    vertical-align: top;
}

.collage-item--featured:hover {
    filter: brightness(1.04);
}

/* Grid hücre konumları (7×5) */
.collage-pos-featured { grid-column: 3 / span 3; grid-row: 2 / span 3; }
.collage-pos-1  { grid-column: 1; grid-row: 1; }
.collage-pos-2  { grid-column: 2; grid-row: 1; }
.collage-pos-3  { grid-column: 3; grid-row: 1; }
.collage-pos-4  { grid-column: 4; grid-row: 1; }
.collage-pos-5  { grid-column: 5; grid-row: 1; }
.collage-pos-6  { grid-column: 6; grid-row: 1; }
.collage-pos-7  { grid-column: 7; grid-row: 1; }
.collage-pos-8  { grid-column: 1; grid-row: 2; }
.collage-pos-9  { grid-column: 2; grid-row: 2; }
.collage-pos-10 { grid-column: 6; grid-row: 2; }
.collage-pos-11 { grid-column: 7; grid-row: 2; }
.collage-pos-12 { grid-column: 1; grid-row: 3; }
.collage-pos-13 { grid-column: 2; grid-row: 3; }
.collage-pos-14 { grid-column: 6; grid-row: 3; }
.collage-pos-15 { grid-column: 7; grid-row: 3; }
.collage-pos-16 { grid-column: 1; grid-row: 4; }
.collage-pos-17 { grid-column: 2; grid-row: 4; }
.collage-pos-18 { grid-column: 6; grid-row: 4; }
.collage-pos-19 { grid-column: 7; grid-row: 4; }
.collage-pos-20 { grid-column: 1; grid-row: 5; }
.collage-pos-21 { grid-column: 2; grid-row: 5; }
.collage-pos-22 { grid-column: 3; grid-row: 5; }
.collage-pos-23 { grid-column: 4; grid-row: 5; }
.collage-pos-24 { grid-column: 5; grid-row: 5; }
.collage-pos-25 { grid-column: 6; grid-row: 5; }
.collage-pos-26 { grid-column: 7; grid-row: 5; }

/* Lightbox — alt yazı yok */
.collage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.collage-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.collage-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 50, 0.92);
    cursor: pointer;
}

.collage-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    margin: 0;
}

.collage-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.collage-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #EE334C;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.collage-lightbox__close:hover {
    background: #c9283d;
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .collage-item:hover {
        filter: none;
    }
}

/* Küçük ekran: 2 sütun korunur, yazı ve kolaj orantılı küçülür */
@media (max-width: 768px) {
    .home-hero {
        gap: 0.45rem;
    }

    .home-hero__content,
    .home-hero__visual {
        flex: 1 1 48%;
    }

    .home-hero__brand {
        font-size: clamp(0.72rem, 2.8vw, 1rem);
        padding-bottom: 0.2rem;
        border-bottom-width: 1.5px;
    }

    .home-hero__tagline {
        font-size: clamp(0.58rem, 2.1vw, 0.82rem);
    }

    .home-hero__services li {
        font-size: clamp(0.48rem, 1.35vw, 0.68rem);
        margin-bottom: 0.28rem;
        padding: 0.22rem 0;
    }

    .home-hero__link {
        font-size: clamp(0.48rem, 1.4vw, 0.62rem);
    }

    .collage-frame {
        padding: 3px;
        border-width: 2px;
    }

    .collage-grid {
        gap: 1.5px;
    }
}

@media (max-width: 520px) {
    #HomeCollage {
        padding-left: 0.2rem;
        padding-right: 0.25rem;
    }

    .home-hero {
        gap: 0.32rem;
        min-height: clamp(148px, 34vw, 248px);
    }

    .home-hero__brand {
        font-size: clamp(0.54rem, 2.95vw, 0.78rem);
        margin-bottom: 0.18rem;
        padding-bottom: 0.18rem;
    }

    .home-hero__tagline {
        font-size: clamp(0.44rem, 2.15vw, 0.62rem);
        margin-bottom: 0.26rem;
    }

    .home-hero__services {
        margin-bottom: 0.3rem;
    }

    .home-hero__services li {
        font-size: clamp(0.36rem, 1.55vw, 0.48rem);
        margin-bottom: 0.16rem;
        padding: 0.14rem 0;
        gap: 0.22rem;
        line-height: 1.35;
    }

    .home-hero__services i {
        font-size: 0.85em;
    }

    .home-hero__link {
        font-size: clamp(0.36rem, 1.6vw, 0.46rem);
    }

    .collage-grid {
        height: clamp(148px, 34vw, 248px);
        max-height: clamp(148px, 34vw, 248px);
        gap: 1px;
    }

    .collage-frame {
        padding: 3px;
        outline-width: 1px;
        box-shadow:
            0 0 0 1px rgba(0, 35, 90, 0.08),
            0 6px 20px rgba(0, 35, 90, 0.14);
    }
}

