/* ==========================================================================
   Municipalities (Kommunen) Page Styles
   BEM naming: Block__Element--Modifier
   ========================================================================== */

/* -- Variables -- */
:root {
    --mun-navy: #1A3A5C;
    --mun-green: #C2FFBF;
    --mun-green-50: rgba(194, 255, 191, 0.5);
    --mun-white: #FFFFFF;
}

/* -- Base font -- */
.MunHero,
.MunBadges,
.MunServices,
.MunDefectReporter,
.MunOnlineServices,
.MunPromise,
.MunCTA {
    font-family: 'Readex Pro', sans-serif;
    letter-spacing: -0.03em;
}

/* Override row negative margins when using section-mg instead of container */
.MunHero .section-mg,
.MunBadges .section-mg,
.MunServices .section-mg,
.MunDefectReporter .section-mg,
.MunOnlineServices .section-mg,
.MunPromise .section-mg {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ==========================================================================
   MunHero
   ========================================================================== */
.MunHero {
    position: relative;
    background: linear-gradient(180deg, rgba(26,58,92,0.85) 0%, rgba(26,58,92,0.7) 60%, rgba(26,58,92,0.95) 100%),
                url('/img/kommunen/hero_team.png');
    background-size: cover;
    background-position: center;
    padding: calc(6rem + 4vw) 0 calc(3rem + 4vw);
    color: var(--mun-white);
}

.MunHero__title {
    font-size: calc(1.6rem + 2.2vw);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mun-white);
    margin-bottom: 1.5rem;
}

.MunHero__text {
    max-width: 640px;
    color: rgba(255,255,255,0.9);
    font-size: calc(0.85rem + 0.2vw);
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================================================
   MunBadges
   ========================================================================== */
.MunBadges {
    padding: calc(1.5rem + 2vw) 0;
}

.MunBadges__row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.MunBadge {
    text-align: center;
    max-width: 200px;
}

.MunBadge__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mun-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.MunBadge__icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.MunBadge__label {
    font-size: calc(0.9rem + 0.3vw);
    font-weight: 600;
    color: var(--mun-navy);
    margin-bottom: 0.3rem;
}

.MunBadge__text {
    font-size: calc(0.7rem + 0.15vw);
    color: #555;
    line-height: 1.4;
}

/* ==========================================================================
   MunServices
   ========================================================================== */
.MunServices {
    padding: calc(2rem + 3vw) 0;
}

.MunServices__label {
    font-size: calc(0.8rem + 0.3vw);
    font-weight: 500;
    color: var(--mun-navy);
    opacity: 0.8;
}

.MunServices__heading {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mun-navy);
    margin-bottom: 1rem;
}

.MunServices__subtext {
    max-width: 520px;
    color: #555;
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   MunServiceCard
   ========================================================================== */
.MunServiceCard {
    background: var(--mun-navy);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
}

.MunServiceCard__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mun-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.MunServiceCard__icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.MunServiceCard__title {
    font-size: calc(0.9rem + 0.4vw);
    font-weight: 700;
    color: var(--mun-green);
    margin-bottom: 1rem;
}

.MunServiceCard__desc {
    font-size: calc(0.75rem + 0.15vw);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: left;
}

.MunServiceCard__desc ul {
    font-size: inherit;
    padding-left: 1.2em;
    margin-bottom: 0;
}

.MunServiceCard__desc li {
    font-size: inherit;
}

/* ==========================================================================
   MunDefectReporter
   ========================================================================== */
.MunDefectReporter {
    background-color: var(--mun-navy);
    color: var(--mun-white);
    padding: calc(2rem + 3vw) 0;
}

.MunDefectReporter__heading {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mun-white);
    margin-bottom: 0.5rem;
}

.MunDefectReporter__highlight {
    color: var(--mun-green);
}

.MunDefectReporter__subheading {
    font-size: calc(1rem + 0.8vw);
    font-weight: 500;
    line-height: 1.2;
    color: var(--mun-green);
    margin-bottom: 0.5rem;
}

.MunDefectReporter__text {
    max-width: 640px;
    color: rgba(255,255,255,0.8);
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.MunDefectReporter__phone {
    max-width: 300px;
    width: 100%;
    border-radius: 30px;
}

.MunDefectReporter__demo-wrap {
    margin-top: 1.5rem;
}

.MunDefectReporter__steps-title {
    font-size: calc(1.4rem + 1.2vw);
    font-weight: 600;
    color: var(--mun-white);
    margin-bottom: 2rem;
}

.MunDefectReporter__steps-card {
    background: var(--mun-white);
    border-radius: 24px;
    padding: 2rem 1.5rem;
}

/* ==========================================================================
   MunStep
   ========================================================================== */
.MunStep {
    margin-bottom: 1.5rem;
}

.MunStep__number {
    font-size: calc(1.2rem + 0.5vw);
    font-weight: 600;
    color: var(--mun-navy);
}

.MunStep__title {
    font-size: calc(1rem + 0.4vw);
    font-weight: 700;
    color: var(--mun-navy);
}

.MunStep__desc {
    font-size: calc(0.75rem + 0.15vw);
    font-weight: 400;
    color: var(--mun-navy);
    line-height: 1.5;
    margin-top: 0.25rem;
    padding-left: 2.2em;
}

/* ==========================================================================
   MunPill
   ========================================================================== */
.MunPill {
    display: inline-block;
    background: var(--mun-green);
    color: var(--mun-navy);
    border-radius: 50px;
    padding: 0.6em 1.5em;
    font-weight: 600;
    font-size: calc(0.8rem + 0.2vw);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.MunPill:hover {
    transform: scale(1.03);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    color: var(--mun-navy);
}

.MunPill--demo {
    margin-top: 1rem;
}

.MunPill__play-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ==========================================================================
   MunOnlineServices
   ========================================================================== */
.MunOnlineServices {
    padding: calc(2rem + 3vw) 0;
}

.MunOnlineServices__heading {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mun-navy);
    margin-bottom: 1.5rem;
}

.MunOnlineServices__pills {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.MunOnlineServices__pill {
    display: inline-block;
    background: var(--mun-green-50);
    color: var(--mun-navy);
    border-radius: 50px;
    padding: 0.5em 1.3em;
    font-weight: 500;
    font-size: calc(0.85rem + 0.3vw);
}

.MunOnlineServices__text {
    color: #555;
    max-width: 500px;
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.MunOnlineServices__advantages {
    color: #555;
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.MunOnlineServices__footnote {
    color: #555;
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    font-style: italic;
}

.MunOnlineServices__ipad {
    max-width: 100%;
    border-radius: 12px;
}

/* ==========================================================================
   MunPromise
   ========================================================================== */
.MunPromise {
    background-color: var(--mun-navy);
    color: var(--mun-white);
    padding: calc(2rem + 3vw) 0;
}

.MunPromise__label {
    font-size: calc(0.8rem + 0.3vw);
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.MunPromise__heading {
    font-size: calc(1.4rem + 1.8vw);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mun-green);
    margin-bottom: 0.8rem;
}

.MunPromise__subtext {
    color: rgba(255,255,255,0.8);
    max-width: 450px;
    font-size: calc(0.8rem + 0.2vw);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   MunFeatureCard
   ========================================================================== */
.MunFeatureCard {
    background: var(--mun-white);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
}

.MunFeatureCard__icon {
    margin-bottom: 1rem;
}

.MunFeatureCard__icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: inline-block;
}

.MunFeatureCard__title {
    font-size: calc(0.9rem + 0.4vw);
    font-weight: 700;
    color: var(--mun-navy);
    margin-bottom: 0.8rem;
}

.MunFeatureCard__desc {
    font-size: calc(0.75rem + 0.15vw);
    color: #333;
    line-height: 1.5;
}

/* ==========================================================================
   MunCTA
   ========================================================================== */
.MunCTA {
    padding: calc(2rem + 2vw) 0;
    text-align: center;
}

.MunCTA__button {
    display: inline-block;
    background: var(--mun-green);
    color: var(--mun-navy);
    border-radius: 24px;
    padding: 0.8em 2em;
    font-weight: 600;
    font-size: calc(0.85rem + 0.3vw);
    text-decoration: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.MunCTA__button:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
    color: var(--mun-navy);
}

.MunCTA__contact {
    font-family: 'League Spartan', 'Readex Pro', sans-serif;
    font-size: calc(0.8rem + 0.3vw);
    font-weight: 600;
    color: #333;
    margin-top: 2rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .MunHero {
        padding: calc(5rem + 2vw) 0 calc(2rem + 2vw);
    }

    .MunDefectReporter__phone {
        max-width: 220px;
        margin: 0 auto 2rem;
        display: block;
    }

    .MunDefectReporter__steps-col {
        margin-top: 2rem;
    }
}
