/*
  Dječiji dom Mladost - dorade početne strane
  Fokus: hero tekst bliže centru, bolji prikaz na mobilnim uređajima,
  finije kartice i stabilniji responsive layout.
*/

:root {
    --dm-page-soft: #f5f9ff;
    --dm-page-card: #ffffff;
    --dm-page-text: #152033;
    --dm-page-muted: #64748b;
}

/* HERO: tekst više ka centru */
.home-hero,
.home-hero-slides,
.home-hero-slide {
    min-height: 82vh;
}

.home-hero-slide {
    background-position: center center;
}

.home-hero-overlay {
    background:
        radial-gradient(circle at center, rgba(47, 128, 237, 0.22), transparent 42%),
        linear-gradient(90deg, rgba(15, 41, 75, 0.72) 0%, rgba(15, 41, 75, 0.55) 48%, rgba(15, 41, 75, 0.36) 100%);
}

.home-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 125px 0 115px;
}

.home-hero-content {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 34px 38px;
    border-radius: 34px;
    background: rgba(9, 25, 50, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.home-hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.home-hero-actions {
    justify-content: center;
}

.home-hero-dots {
    bottom: 34px;
}

/* Sekcije na početnoj */
.home-section,
.home-map-section {
    overflow: hidden;
}

.home-info-card,
.card,
.home-doc-card,
.gallery-card,
.home-map-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-info-card:hover,
.card:hover,
.home-doc-card:hover,
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.home-doc-card:hover {
    border-color: rgba(47, 128, 237, 0.22);
}

.home-section-head-row {
    align-items: center;
}

.home-section-head-row > a,
.home-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef5ff;
}

.home-section-head-row > a:hover,
.home-map-link:hover {
    background: #2f80ed;
    color: #fff;
}

.home-map-card iframe {
    display: block;
}

/* Tablet */
@media (max-width: 991px) {
    .home-hero,
    .home-hero-slides,
    .home-hero-slide {
        min-height: 74vh;
    }

    .home-hero-overlay {
        background: linear-gradient(180deg, rgba(15, 41, 75, 0.82) 0%, rgba(15, 41, 75, 0.54) 100%);
    }

    .home-hero-inner {
        padding: 92px 0 78px;
    }

    .home-hero-content {
        max-width: 760px;
        padding: 30px 28px;
        border-radius: 28px;
    }

    .home-section-head-row {
        align-items: flex-start;
    }
}

/* Telefon */
@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 28px, 1140px);
    }

    .home-hero,
    .home-hero-slides,
    .home-hero-slide {
        min-height: 72vh;
    }

    .home-hero-slide {
        background-position: center top;
    }

    .home-hero-inner {
        padding: 66px 0 64px;
    }

    .home-hero-content {
        text-align: center;
        padding: 24px 18px;
        border-radius: 24px;
        background: rgba(9, 25, 50, 0.28);
        backdrop-filter: blur(3px);
    }

    .home-eyebrow,
    .home-kicker {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .home-hero-content h1 {
        font-size: clamp(31px, 9vw, 42px);
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .home-hero-content p {
        font-size: 16px;
        line-height: 1.58;
        margin-bottom: 20px;
    }

    .home-hero-actions {
        gap: 10px;
    }

    .home-btn {
        width: 100%;
        min-height: 48px;
        padding: 0 18px;
    }

    .home-hero-dots {
        bottom: 20px;
    }

    .home-section,
    .home-map-section {
        padding: 54px 0;
    }

    .home-section-heading {
        margin-bottom: 28px;
    }

    .home-section-heading h2,
    .home-section-head-row h2 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .home-section-heading p {
        font-size: 16px;
    }

    .home-info-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .home-info-icon {
        width: 58px;
        height: 58px;
        font-size: 28px;
        border-radius: 20px;
    }

    .home-doc-card {
        align-items: flex-start;
        padding: 18px;
        border-radius: 18px;
    }

    .home-doc-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .home-map-card {
        border-radius: 22px;
    }

    .home-map-card iframe {
        height: 330px;
    }
}

/* Veoma mali telefoni */
@media (max-width: 390px) {
    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        display: none;
    }

    .home-hero-content {
        padding: 22px 15px;
    }
}
