/* Homepage — layout aligned to primariabaneasagr.ro (content only) */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.page-acasa {
    background: #fff;
    background-image: none;
}

body.page-acasa #main-content {
    padding: 0;
    max-width: none;
}

.home {
    --home-ink: #1a2b3c;
    --home-navy: #0d1933;
    --home-blue: #094578;
    --home-sky: #3aa0d9;
    --home-muted: #6b7c8c;
    background: #fff;
    color: var(--home-ink);
}

.home-kicker {
    margin: 0 0 0.35rem;
    color: var(--home-sky);
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
}

.home-kicker--light {
    color: rgba(140, 200, 235, 0.95);
    font-style: italic;
}

.home-title {
    margin: 0 0 1.1rem;
    font-family: var(--font);
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 1.2;
    color: #2a3a4a;
    font-weight: 700;
}

.home-title--sm {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.home-title--light {
    color: #fff;
}

/* Hero full-bleed photo + text overlay */
.home-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(380px, 58vh, 560px);
    overflow: hidden;
    color: #fff;
    background: var(--home-navy);
}

.home-hero__media {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.home-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: homeHeroZoom 14s ease forwards;
}

@keyframes homeHeroZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1); }
}

.home-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: inherit;
    padding: clamp(2rem, 5vw, 3.5rem) 1rem calc(3.5rem + 1.5vw);
    background:
        linear-gradient(
            105deg,
            rgba(8, 22, 42, 0.88) 0%,
            rgba(8, 22, 42, 0.72) 42%,
            rgba(8, 22, 42, 0.28) 68%,
            rgba(8, 22, 42, 0.12) 100%
        ),
        linear-gradient(to top, rgba(8, 22, 42, 0.55), transparent 55%);
}

.home-hero__inner {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.home-hero__title {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.home-hero__title span {
    display: inline;
}

.home-hero__text {
    margin: 1rem 0 0;
    max-width: 42ch;
    color: rgba(235, 242, 248, 0.95);
    font-size: 0.98rem;
    font-style: italic;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.home-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 1.35rem;
    max-width: 320px;
}

.home-search__icon {
    position: absolute;
    left: 0.95rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #2f8fd0;
    border-radius: 50%;
    pointer-events: none;
}

.home-search__icon::after {
    content: "";
    position: absolute;
    right: -0.28rem;
    bottom: -0.22rem;
    width: 0.45rem;
    height: 2px;
    background: #2f8fd0;
    transform: rotate(45deg);
}

.home-search input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1rem 0.72rem 2.4rem;
    font: inherit;
    font-size: 0.92rem;
    color: #334455;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.home-search input::placeholder {
    color: #8a9aab;
}

.home-search input:focus {
    outline: 2px solid rgba(47, 143, 208, 0.55);
    outline-offset: 2px;
}

/* Shared service / quick-link cards */

/* Service cards under hero — accent strip + icon mark */
.home-services {
    position: relative;
    z-index: 2;
    margin-top: -2.4rem;
    padding: 0 1rem 0.5rem;
}

.home-services__grid,
.home-mol__grid,
.home-interest__grid,
.home-commune,
.home-places,
.home-admin-links__grid,
.home-mol__intro {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
}

.home-service {
    --svc: #11a0f6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 148px;
    padding: 1rem 0.95rem 0.95rem;
    border-radius: 10px;
    background:
        linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
    color: #12324a !important;
    text-decoration: none !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 24px rgba(8, 35, 65, 0.14);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-service::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--svc);
}

.home-service::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--svc) 14%, transparent);
    pointer-events: none;
}

.home-service:hover {
    transform: translateY(-5px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 16px 32px rgba(8, 35, 65, 0.2);
}

.home-service__mark {
    position: relative;
    z-index: 1;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 9px;
    background: var(--svc);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--svc) 35%, transparent);
}

.home-service__mark::before,
.home-service__mark::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

/* Taxe — coin / receipt */
.home-service--taxe { --svc: #0f8fe0; }
.home-service--taxe .home-service__mark::before {
    inset: 0.55rem;
    border: 2px solid #fff;
    border-radius: 50%;
}
.home-service--taxe .home-service__mark::after {
    left: 50%;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin: -0.28rem 0 0 -0.28rem;
    border-radius: 50%;
    background: #fff;
}

/* Urbanism — building */
.home-service--urbanism { --svc: #d9a100; }
.home-service--urbanism .home-service__mark::before {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.55rem;
    top: 0.85rem;
    border: 2px solid #fff;
    border-bottom-width: 3px;
}
.home-service--urbanism .home-service__mark::after {
    left: 50%;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.4rem;
    margin-left: -0.28rem;
    border: 2px solid #fff;
    border-bottom: 0;
}

/* Stare civilă — rings */
.home-service--stare { --svc: #00b83d; }
.home-service--stare .home-service__mark::before,
.home-service--stare .home-service__mark::after {
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 0.8rem;
}
.home-service--stare .home-service__mark::before { left: 0.45rem; }
.home-service--stare .home-service__mark::after { right: 0.45rem; }

/* Asistență — people */
.home-service--social { --svc: #e6352b; }
.home-service--social .home-service__mark::before {
    left: 50%;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    margin-left: -0.35rem;
    border-radius: 50%;
    background: #fff;
}
.home-service--social .home-service__mark::after {
    left: 50%;
    bottom: 0.45rem;
    width: 1.35rem;
    height: 0.75rem;
    margin-left: -0.68rem;
    border-radius: 0.7rem 0.7rem 0 0;
    background: #fff;
}

/* Agricol — leaf */
.home-service--agricol { --svc: #ef7a00; }
.home-service--agricol .home-service__mark::before {
    left: 50%;
    top: 0.45rem;
    width: 1.1rem;
    height: 1.45rem;
    margin-left: -0.55rem;
    border-radius: 0 55% 45% 55%;
    background: #fff;
    transform: rotate(-28deg);
}
.home-service--agricol .home-service__mark::after {
    left: 50%;
    bottom: 0.5rem;
    width: 2px;
    height: 0.7rem;
    margin-left: -1px;
    background: #fff;
}

/* SVSU — shield */
.home-service--svsu { --svc: #b45ef0; }
.home-service--svsu .home-service__mark::before {
    left: 0.65rem;
    right: 0.65rem;
    top: 0.5rem;
    bottom: 0.45rem;
    background: #fff;
    clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
}

/* Document */
.home-service--docs,
.home-service--book { --svc: #00b7d4; }
.home-service--docs .home-service__mark::before,
.home-service--book .home-service__mark::before {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.5rem;
    bottom: 0.5rem;
    border: 2px solid #fff;
    border-radius: 2px;
}
.home-service--docs .home-service__mark::after,
.home-service--book .home-service__mark::after {
    left: 0.95rem;
    right: 0.95rem;
    top: 0.95rem;
    height: 2px;
    background: #fff;
    box-shadow: 0 0.35rem 0 #fff, 0 0.7rem 0 #fff;
}

/* Clipboard / organigramă */
.home-service--clipboard,
.home-service--organigram { --svc: #ef7a00; }
.home-service--clipboard .home-service__mark::before,
.home-service--organigram .home-service__mark::before {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.7rem;
    bottom: 0.5rem;
    border: 2px solid #fff;
    border-radius: 2px;
}
.home-service--clipboard .home-service__mark::after,
.home-service--organigram .home-service__mark::after {
    left: 50%;
    top: 0.4rem;
    width: 0.85rem;
    height: 0.4rem;
    margin-left: -0.42rem;
    border: 2px solid #fff;
    border-radius: 2px;
    background: transparent;
}

/* Seal / check */
.home-service--seal,
.home-service--eu { --svc: #02a82f; }
.home-service--seal .home-service__mark::before,
.home-service--eu .home-service__mark::before {
    inset: 0.55rem;
    border: 2px solid #fff;
    border-radius: 50%;
}
.home-service--seal .home-service__mark::after,
.home-service--eu .home-service__mark::after {
    left: 50%;
    top: 50%;
    width: 0.55rem;
    height: 0.3rem;
    margin: -0.05rem 0 0 -0.28rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Finance / reports — bars */
.home-service--finance,
.home-service--reports { --svc: #c93a30; }
.home-service--finance .home-service__mark::before,
.home-service--reports .home-service__mark::before {
    left: 0.65rem;
    bottom: 0.55rem;
    width: 0.4rem;
    height: 0.85rem;
    background: #fff;
    box-shadow: 0.55rem -0.35rem 0 #fff, 1.1rem -0.15rem 0 #fff;
}
.home-service--finance .home-service__mark::after,
.home-service--reports .home-service__mark::after {
    display: none;
}

/* Council / people meeting */
.home-service--council { --svc: #9a3acb; }
.home-service--people { --svc: #c93a30; }
.home-service--council .home-service__mark::before,
.home-service--people .home-service__mark::before {
    left: 50%;
    top: 0.45rem;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: -0.28rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: -0.7rem 0.15rem 0 #fff, 0.7rem 0.15rem 0 #fff;
}
.home-service--council .home-service__mark::after,
.home-service--people .home-service__mark::after {
    left: 50%;
    bottom: 0.45rem;
    width: 1.1rem;
    height: 0.55rem;
    margin-left: -0.55rem;
    border-radius: 0.55rem 0.55rem 0 0;
    background: #fff;
    box-shadow: -0.75rem 0.05rem 0 #fff, 0.75rem 0.05rem 0 #fff;
}

/* Marriage — rings (reuse stare look) */
.home-service--marriage { --svc: #e0b000; }
.home-service--marriage .home-service__mark::before,
.home-service--marriage .home-service__mark::after {
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid #fff;
    border-radius: 50%;
    top: 0.8rem;
}
.home-service--marriage .home-service__mark::before { left: 0.45rem; }
.home-service--marriage .home-service__mark::after { right: 0.45rem; }

/* Eye / transparency */
.home-service--eye { --svc: #9a3acb; }
.home-service--eye .home-service__mark::before {
    left: 0.45rem;
    right: 0.45rem;
    top: 50%;
    height: 0.95rem;
    margin-top: -0.48rem;
    border: 2px solid #fff;
    border-radius: 50%;
}
.home-service--eye .home-service__mark::after {
    left: 50%;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    margin: -0.2rem 0 0 -0.2rem;
    border-radius: 50%;
    background: #fff;
}

/* Forms */
.home-service--forms { --svc: #e0b000; }
.home-service--forms .home-service__mark::before {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.5rem;
    bottom: 0.5rem;
    border: 2px solid #fff;
    border-radius: 2px;
}
.home-service--forms .home-service__mark::after {
    left: 0.95rem;
    top: 0.9rem;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid #fff;
    border-radius: 1px;
}

/* Person variants (declarații) */
.home-service--person { --svc: #0f8fe0; }
.home-service--person-alt { --svc: #ef7a00; }
.home-service--person .home-service__mark::before,
.home-service--person-alt .home-service__mark::before {
    left: 50%;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    margin-left: -0.35rem;
    border-radius: 50%;
    background: #fff;
}
.home-service--person .home-service__mark::after,
.home-service--person-alt .home-service__mark::after {
    left: 50%;
    bottom: 0.45rem;
    width: 1.35rem;
    height: 0.75rem;
    margin-left: -0.68rem;
    border-radius: 0.7rem 0.7rem 0 0;
    background: #fff;
}

.home-service__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: auto;
}

.home-service__label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.home-service__hint {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #5a7388;
    font-weight: 500;
}

.home-service__go {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--svc) 16%, #fff);
    border: 1px solid color-mix(in srgb, var(--svc) 35%, transparent);
}

.home-service__go::before {
    content: "";
    display: block;
    width: 0.38rem;
    height: 0.38rem;
    margin: 0.52rem auto 0;
    border-right: 2px solid var(--svc);
    border-bottom: 2px solid var(--svc);
    transform: rotate(-45deg);
}

.home-service:hover .home-service__go {
    background: var(--svc);
    border-color: var(--svc);
}

.home-service:hover .home-service__go::before {
    border-color: #fff;
}

/* Mayor + team */
.home-mayor {
    width: min(100% - 2rem, 1180px);
    margin: 2.75rem auto 0;
    padding-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
    border-bottom: 0;
}

.home-mayor__profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.1rem;
}

.home-mayor__photo {
    width: 120px;
    height: 148px;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(20, 50, 80, 0.15);
}

.home-mayor__name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--home-ink);
}

.home-mayor__role {
    margin: 0.25rem 0 0;
    color: var(--home-sky);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-mayor__quote {
    margin: 0;
    padding: 0.85rem 0 1.1rem;
    border-top: 1px solid rgba(58, 160, 217, 0.4);
    border-bottom: 1px solid rgba(58, 160, 217, 0.4);
    color: #4a5b6b;
    font-style: italic;
    line-height: 1.7;
}

.home-mayor__team {
    position: relative;
    padding: 0.25rem 0 0;
}

.home-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.home-team-list li {
    display: grid;
    gap: 0.15rem;
}

.home-team-list span {
    color: var(--home-sky);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-team-list strong {
    color: #5a6b7a;
    font-size: 1.02rem;
    font-weight: 700;
}

.home-tricolor {
    position: absolute;
    right: 0;
    bottom: -0.25rem;
    width: 84px;
    height: 54px;
    background:
        linear-gradient(120deg, #1e5a9c 0 33%, #f2c94c 33% 66%, #d64545 66% 100%);
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
    opacity: 0.92;
}

/* Investment photos under mayor (same set as old homepage) */
.home-invest-gallery {
    width: min(100% - 2rem, 1180px);
    margin: 0.15rem auto 0;
    padding: 0.35rem 0 2.35rem;
    border-bottom: 3px solid rgba(58, 160, 217, 0.45);
}

.home-invest-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-invest-gallery .gallery a {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #dbe7f3;
    box-shadow: none;
}

.home-invest-gallery .gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-invest-gallery .gallery a:hover img,
.home-invest-gallery .gallery a:focus-visible img {
    transform: scale(1.04);
}

.home-invest-gallery__more {
    margin: 1rem 0 0;
    text-align: right;
}

.home-invest-gallery__more a {
    color: var(--blue, #1e5a9c);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.home-invest-gallery__more a:hover {
    text-decoration: underline;
}

@media (max-width: 979px) {
    .home-invest-gallery .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (max-width: 639px) {
    .home-invest-gallery .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOL */
.home-mol {
    margin-top: 0;
    padding: 2.5rem 1rem 2rem;
    background: linear-gradient(180deg, #0c4a7a 0%, #08365c 100%);
    color: #fff;
}

.home-mol__text {
    max-width: 70ch;
    color: rgba(210, 228, 240, 0.9);
    margin: 0 0 1.5rem;
}

.home-mol__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
}

/* Avizier */
.home-board {
    position: relative;
    padding: 2.75rem 1rem 3rem;
    color: #fff;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(58, 160, 217, 0.28), transparent 55%),
        radial-gradient(700px 360px at 100% 110%, rgba(17, 160, 246, 0.18), transparent 50%),
        linear-gradient(165deg, #0a3f6e 0%, #083456 48%, #062844 100%);
    overflow: hidden;
}

.home-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 14px,
            rgba(255, 255, 255, 0.018) 14px,
            rgba(255, 255, 255, 0.018) 15px
        );
    pointer-events: none;
}

.home-board__wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
}

.home-board__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-board__lead {
    margin: 0;
    color: rgba(190, 215, 235, 0.92);
    max-width: 54ch;
    line-height: 1.65;
}

.home-board__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: #fff;
    color: #0a3f6e !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-board__cta::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.home-board__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.home-board__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.home-board__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-board__item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(120, 200, 240, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.home-board__date {
    display: grid;
    justify-items: center;
    min-width: 3.6rem;
    padding: 0.45rem 0.5rem 0.5rem;
    border-radius: 10px;
    background: rgba(8, 28, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1.05;
}

.home-board__day {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-board__month {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ec8ef;
}

.home-board__year {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: rgba(180, 205, 225, 0.8);
}

.home-board__body {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.home-board__title {
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.35;
}

.home-board__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.home-board__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(17, 160, 246, 0.22);
    color: #b7e4ff;
    border: 1px solid rgba(120, 200, 240, 0.28);
}

.home-board__badge::before {
    content: "";
    width: 0.55rem;
    height: 0.7rem;
    border: 1.5px solid currentColor;
    border-radius: 1px 2px 2px 1px;
    box-shadow: inset 0 -0.15rem 0 currentColor;
    opacity: 0.85;
}

.home-board__item--teren .home-board__badge {
    background: rgba(239, 178, 3, 0.2);
    color: #ffe08a;
    border-color: rgba(239, 178, 3, 0.35);
}

.home-board__item--anunt .home-board__badge {
    background: rgba(0, 225, 74, 0.16);
    color: #9dffc0;
    border-color: rgba(0, 225, 74, 0.3);
}

.home-board__arrow {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(180, 215, 240, 0.7);
    border-top: 2px solid rgba(180, 215, 240, 0.7);
    transform: rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.home-board__item:hover .home-board__arrow {
    transform: rotate(45deg) translate(2px, -2px);
    border-color: #fff;
}

@media (max-width: 720px) {
    .home-board__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-board__item {
        grid-template-columns: auto 1fr;
        gap: 0.85rem;
    }

    .home-board__arrow {
        display: none;
    }
}

/* Interest cards */
.home-interest {
    padding: 2.5rem 1rem;
    background: #f4f7fa;
}

.home-interest__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.home-interest-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(20, 40, 70, 0.12);
}

.home-interest-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-interest-card__body {
    position: absolute;
    inset: auto 0 0;
    padding: 1.1rem;
    background: linear-gradient(transparent, rgba(8, 30, 55, 0.88));
    display: grid;
    gap: 0.15rem;
}

.home-interest-card .home-kicker {
    color: rgba(160, 210, 240, 0.95);
    font-style: normal;
    text-transform: none;
}

.home-interest-card__title {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Commune */
.home-commune {
    padding: 2.75rem 1rem;
}

.home-commune__copy {
    max-width: 70ch;
}

.home-commune p {
    color: #516273;
    line-height: 1.7;
}

/* Places */
.home-places {
    display: grid;
    gap: 2.5rem;
    padding: 0 1rem 2.5rem;
}

.home-places__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.home-place-card {
    display: grid;
    gap: 0.45rem;
    color: inherit !important;
    text-decoration: none !important;
}

.home-place-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 4px;
    background: #d9e3ee;
}

.home-place-card__cat {
    color: var(--home-sky);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-place-card__title {
    color: var(--home-ink);
    font-weight: 700;
    line-height: 1.3;
}

/* Admin links — same service cards */
.home-admin-links {
    padding: 0 1rem 3rem;
    background: #fff;
}

.home-admin-links__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
}

@media (max-width: 1100px) {
    .home-services__grid,
    .home-mol__grid,
    .home-admin-links__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }

    .home-interest__grid,
    .home-places__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-service {
        min-height: 136px;
        padding: 0.9rem 0.85rem;
    }

    .home-service__label {
        font-size: 0.88rem;
    }
}

@media (max-width: 860px) {
    .home-mayor {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .home-hero {
        min-height: clamp(320px, 54vh, 460px);
    }

    .home-hero__copy {
        padding: 1.75rem 1rem 3.25rem;
        background:
            linear-gradient(
                to top,
                rgba(8, 22, 42, 0.92) 0%,
                rgba(8, 22, 42, 0.62) 48%,
                rgba(8, 22, 42, 0.28) 100%
            );
    }

    .home-hero__title {
        font-size: clamp(1.55rem, 6.2vw, 2.05rem);
        letter-spacing: 0.03em;
    }

    .home-hero__text {
        margin-top: 0.75rem;
        font-size: 0.92rem;
        line-height: 1.55;
        max-width: 48ch;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    .home-search {
        max-width: none;
        width: 100%;
        margin-top: 1.1rem;
    }

    .home-search input {
        min-height: 48px;
        padding: 0.8rem 1rem 0.8rem 2.55rem;
        font-size: 1rem;
    }

    .home-services {
        margin-top: -1.35rem;
        padding: 0 0.85rem 0.35rem;
    }

    .home-services__grid,
    .home-mol__grid,
    .home-admin-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-tricolor {
        display: none;
    }

    .home-mol {
        padding: 2rem 0.85rem 1.5rem;
    }

    .home-mol__text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.15rem;
    }

    .home-board {
        padding: 2rem 0.85rem 2.25rem;
    }

    .home-board__cta {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .home-board__item {
        padding: 0.85rem;
        gap: 0.75rem;
    }

    .home-interest {
        padding: 1.75rem 0.85rem;
    }

    .home-interest-card {
        min-height: 180px;
    }

    .home-commune,
    .home-places {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .home-places {
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .home-admin-links {
        padding: 0 0.85rem 2.25rem;
    }

    .home-title {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 640px) {
    .home-services__grid,
    .home-mol__grid,
    .home-interest__grid,
    .home-places__grid,
    .home-admin-links__grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .home-service {
        min-height: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 0.9rem;
        border-radius: 12px;
    }

    .home-service__mark {
        width: 2.35rem;
        height: 2.35rem;
        flex-shrink: 0;
    }

    .home-service__body {
        margin-top: 0;
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    .home-service__label {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .home-service__hint {
        display: none;
    }

    .home-service::after {
        display: none;
    }

    .home-service__go {
        width: 1.7rem;
        height: 1.7rem;
    }

    .home-service__go::before {
        margin-top: 0.58rem;
    }

    .home-mayor__profile {
        grid-template-columns: 88px 1fr;
        gap: 0.85rem;
    }

    .home-mayor__photo {
        width: 88px;
        height: 108px;
    }

    .home-mayor__quote {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .home-hero {
        min-height: clamp(300px, 58vh, 420px);
    }

    .home-hero__text {
        -webkit-line-clamp: 3;
        font-size: 0.88rem;
    }

    .home-board__date {
        min-width: 3.4rem;
        padding: 0.55rem 0.45rem;
    }

    .home-board__title {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .home-interest__grid {
        gap: 0.75rem;
    }

    .home-interest-card {
        min-height: 160px;
        border-radius: 10px;
    }

    .home-interest-card__title {
        font-size: 1.05rem;
    }

    .home-places__grid {
        gap: 1.15rem;
    }

    .home-place-card img {
        border-radius: 8px;
    }
}

/* Phones in landscape / large phones: compact 2-col services */
@media (min-width: 480px) and (max-width: 640px) {
    .home-services__grid,
    .home-mol__grid,
    .home-admin-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-service {
        flex-direction: column;
        align-items: flex-start;
        min-height: 128px;
        padding: 0.85rem;
    }

    .home-service__body {
        width: 100%;
        margin-top: auto;
    }
}

@media (max-width: 380px) {
    .home-hero__text {
        -webkit-line-clamp: 2;
    }

    .home-service__label {
        font-size: 0.9rem;
    }
}

/* Chronological archive (Evenimente recente) — light surface */
.home-board--archive {
    padding: 0;
    background: transparent;
}

.home-board--archive .home-board__list {
    gap: 0.65rem;
}

.home-board--archive .home-board__item {
    background: #fff;
    border: 1px solid rgba(30, 90, 156, 0.14);
    color: #1a2b3c !important;
    box-shadow: 0 6px 18px rgba(26, 28, 39, 0.04);
}

.home-board--archive .home-board__item:hover {
    background: #f5f9fd;
    border-color: rgba(30, 90, 156, 0.28);
    box-shadow: 0 10px 24px rgba(26, 28, 39, 0.08);
}

.home-board--archive .home-board__title {
    color: #143f73;
}

.home-board--archive .home-board__date {
    background: rgba(30, 90, 156, 0.08);
    color: #143f73;
}

.home-board--archive .home-board__badge {
    background: rgba(30, 90, 156, 0.1);
    color: #1e5a9c;
}

.home-board--archive .home-board__arrow {
    border-color: #1e5a9c;
}

