/*
 * Żłobek Miejski nr 2 — reprezentacyjny blok wizualny hero v1.3
 * Plik jest ładowany po zm2-home-v1.css i nie nadpisuje zmian sekcji godzin pracy.
 */

.zm2-hero__visual {
    position: relative;
    isolation: isolate;
    min-height: 31rem;
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.zm2-hero__visual::before {
    position: absolute;
    z-index: -1;
    inset: 3% -22% -4%;
    background-image: url("../images/zm2-hours-line-thin.webp");
    background-repeat: no-repeat;
    background-position: center 62%;
    background-size: 162% auto;
    opacity: 0.13;
    content: "";
    pointer-events: none;
}

.zm2-hero-profile,
.zm2-hero-info-card {
    color: var(--zm2-ink-800);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 1.5rem 3.8rem rgba(55, 7, 27, 0.26);
}

.zm2-hero-profile {
    position: relative;
    width: min(100%, 31rem);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(8rem, 10.5rem) minmax(0, 1fr);
    align-items: center;
    gap: 1.35rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    overflow: hidden;
    border-radius: 1.5rem;
}

.zm2-hero-profile::before {
    position: absolute;
    inset: 0 0 auto;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--zm2-gold-500), #f6d66f 55%, var(--zm2-brand-700));
    content: "";
}

.zm2-hero-profile__logo {
    min-height: 8.5rem;
    display: grid;
    place-items: center;
    padding: 0.8rem;
    background: #fffaf3;
    border: 1px solid #f0e5d3;
    border-radius: 1.1rem;
}

.zm2-hero-profile__logo img {
    width: 100%;
    max-width: 10rem;
    height: auto;
    display: block;
    object-fit: contain;
}

.zm2-hero-profile__content {
    min-width: 0;
}

.zm2-hero-profile__content .zm2-eyebrow {
    color: var(--zm2-brand-800);
}

.zm2-hero-profile h2 {
    margin: 0.45rem 0 0;
    color: var(--zm2-brand-950);
    font-size: clamp(1.55rem, 2.9vw, 2.2rem);
    line-height: 1.12;
}

.zm2-hero-profile h2 span {
    display: block;
    color: var(--zm2-brand-700);
    font-size: 0.72em;
    margin-top: 0.25rem;
}

.zm2-hero-profile__content p {
    margin: 0.8rem 0 0;
    color: var(--zm2-ink-600);
    font-size: 0.98rem;
    line-height: 1.6;
}

.zm2-hero-profile__address {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding-top: 1rem;
    color: var(--zm2-ink-700);
    border-top: 1px solid #eadde2;
    font-style: normal;
    font-weight: 650;
}

.zm2-hero-profile__address svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--zm2-brand-700);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zm2-hero-info-grid {
    position: relative;
    z-index: 1;
    width: min(100%, 31rem);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.zm2-hero-info-card {
    min-height: 5.6rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
}

.zm2-hero-info-card--link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    color: var(--zm2-ink-800) !important;
    text-decoration: none;
    border-color: #f0dca0;
    background: #fff8df;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.zm2-hero-info-card--link:hover {
    color: var(--zm2-brand-900) !important;
    border-color: var(--zm2-gold-500);
    box-shadow: 0 1.7rem 4rem rgba(55, 7, 27, 0.3);
    transform: translateY(-0.18rem);
}

.zm2-hero-info-card--link:focus-visible {
    outline: 0.2rem solid #ffe49a;
    outline-offset: 0.2rem;
}

.zm2-hero-info-card__icon {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--zm2-brand-800);
    border-radius: 0.85rem;
}

.zm2-hero-info-card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zm2-hero-info-card__text {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.zm2-hero-info-card__text small {
    color: var(--zm2-ink-600);
    font-size: 0.78rem;
    font-weight: 650;
}

.zm2-hero-info-card__text strong {
    color: var(--zm2-brand-950);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.2;
}

.zm2-hero-info-card__arrow {
    color: var(--zm2-brand-800);
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 68rem) {
    .zm2-hero__visual {
        width: min(100%, 50rem);
        min-height: auto;
        margin-inline: auto;
        padding: 0;
    }

    .zm2-hero__visual::before {
        inset: -8% -12% -10%;
        background-size: 125% auto;
        opacity: 0.1;
    }

    .zm2-hero-profile,
    .zm2-hero-info-grid {
        width: min(100%, 42rem);
    }
}

@media (max-width: 48rem) {
    .zm2-hero__visual {
        min-height: auto;
    }

    .zm2-hero-profile {
        grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
    }

    .zm2-hero__visual::before {
        inset: -4% -24% -14%;
        background-position: center bottom;
        background-size: 150% auto;
        opacity: 0.085;
    }
}

@media (max-width: 36rem) {
    .zm2-hero-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .zm2-hero-profile__logo {
        min-height: auto;
    }

    .zm2-hero-profile__logo img {
        max-width: 12.5rem;
    }

    .zm2-hero-profile__address {
        justify-content: center;
        text-align: left;
    }

    .zm2-hero-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zm2-hero-info-card--link {
        transition: none;
    }
}
