/*
 * Żł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%, 100%);
    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;
    }
}

/* ZJ v1.6 — fotografia hero zamiast karty profilu. */
.zm2-hero__visual::before {
    display: none;
}

.zm2-hero-photo {
    position: relative;
    z-index: 2;
    width: min(100%, 52rem);
    margin-inline: auto;
    line-height: 0;
}

.zm2-hero-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 1.1rem 1.9rem rgba(54, 91, 67, 0.16));
}

@media (max-width: 68rem) {
    .zm2-hero-photo {
        width: min(100%, 46rem);
    }
}

@media (max-width: 48rem) {
    .zm2-hero-photo {
        width: min(100%, 38rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .zm2-hero-photo img {
        filter: none;
    }
}
/* =========================================================
   HERO INFO CARD — wspólna baza dekoracyjna
   ========================================================= */

.zm2-hero-info-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.zm2-hero-info-card > * {
    position: relative;
    z-index: 2;
}

/* dekoracyjne okręgi */
.zm2-hero-info-card--style-1::after,
.zm2-hero-info-card--style-5::after,
.zm2-hero-info-card--style-8::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background-repeat: no-repeat;

    background-position:
        right -0.8rem top -1rem,
        right 2.8rem center,
        right 0.8rem bottom -1.5rem,
        right 4.7rem top 0.8rem;

    background-size:
        5rem 5rem,
        2.4rem 2.4rem,
        6.4rem 6.4rem,
        1.25rem 1.25rem;
}


/* =========================================================
   STYLE 1
   Wanilia + szałwia
   ========================================================= */

.zm2-hero-info-card--style-1 {
    color: #263238;
    background: #FFF8EC;
    border-color: #E4DCCB;
}

.zm2-hero-info-card--style-1::after {
    background-image:
        radial-gradient(
            circle,
            rgb(157 187 157 / 18%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(168 199 207 / 20%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(215 184 95 / 15%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(233 139 115 / 18%) 0 67%,
            transparent 68%
        );
}

.zm2-hero-info-card--style-1 .zm2-hero-info-card__icon {
    color: #365B43;
    background: #DFE9DD;
}

a.zm2-hero-info-card--style-1 {
    background-color: #EDF4EA;
    border-color: #C8D9C4;
}

a.zm2-hero-info-card--style-1:hover {
    color: #263238 !important;
    background-color: #E1ECDE;
    border-color: #9DBB9D;
    box-shadow: 0 0.9rem 1.8rem rgb(54 91 67 / 14%);
    transform: translateY(-0.18rem);
}


/* =========================================================
   STYLE 5
   Biała karta premium + kolorowy pasek
   ========================================================= */

.zm2-hero-info-card--style-5 {
    color: #263238;
    background: #FFFFFF;
    border-color: #DFE5E0;
    border-left: 0.3rem solid #9DBB9D;
    box-shadow: 0 0.45rem 1.2rem rgb(38 50 56 / 6%);
}

.zm2-hero-info-card--style-5::after {
    background-image:
        radial-gradient(
            circle,
            rgb(157 187 157 / 14%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(168 199 207 / 16%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(233 139 115 / 13%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(215 184 95 / 16%) 0 67%,
            transparent 68%
        );
}

.zm2-hero-info-card--style-5 .zm2-hero-info-card__icon {
    color: #365B43;
    background: #EDF4EA;
}

a.zm2-hero-info-card--style-5 {
    border-left-color: #E98B73;
}

a.zm2-hero-info-card--style-5:hover {
    color: #263238 !important;
    border-color: #E5B1A4;
    border-left-color: #E98B73;
    background: #FFFAF7;
    box-shadow: 0 1rem 2rem rgb(38 50 56 / 12%);
    transform: translateY(-0.18rem);
}


/* =========================================================
   STYLE 8
   Pastelowy gradient
   ========================================================= */

.zm2-hero-info-card--style-8 {
    color: #263238;

    background:
        linear-gradient(
            135deg,
            #FFF8EC 0%,
            #EDF4EA 100%
        );

    border-color: #D7DFD4;
}

.zm2-hero-info-card--style-8::after {
    background-image:
        radial-gradient(
            circle,
            rgb(168 199 207 / 20%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(157 187 157 / 16%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(233 139 115 / 15%) 0 67%,
            transparent 68%
        ),
        radial-gradient(
            circle,
            rgb(215 184 95 / 18%) 0 67%,
            transparent 68%
        );
}

.zm2-hero-info-card--style-8 .zm2-hero-info-card__icon {
    color: #365B43;
    background: rgb(157 187 157 / 34%);
}

a.zm2-hero-info-card--style-8 {
    background:
        linear-gradient(
            135deg,
            #FFF1EC 0%,
            #EDF6F7 100%
        );
}

a.zm2-hero-info-card--style-8:hover {
    color: #263238 !important;

    background:
        linear-gradient(
            135deg,
            #F9DDD5 0%,
            #DCECEF 100%
        );

    border-color: #D79B8B;
    box-shadow: 0 1rem 2rem rgb(54 91 67 / 14%);
    transform: translateY(-0.18rem);
}


/* strzałka */

.zm2-hero-info-card--link .zm2-hero-info-card__arrow {
    transition: transform 180ms ease;
}

.zm2-hero-info-card--link:hover .zm2-hero-info-card__arrow {
    transform: translateX(0.2rem);
}


/* WCAG / ograniczenie animacji */

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

    .zm2-hero-info-card--link:hover {
        transform: none;
    }
}