/* ==========================================================================
   Desa Badalpandean — public design system
   Mobile-first, app-like, teal + gold + ink palette
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../vendor/fonts/plus-jakarta-sans.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal-950: #04211f;
    --teal-900: #063a35;
    --teal-800: #075e54;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --emerald: #10b981;
    --gold: #d99e2b;
    --gold-600: #b8811b;
    --gold-soft: #f8eccf;
    --cream: #f7f4ec;
    --paper: #ffffff;
    --ink: #0f2a2f;
    --navy: #0b1f2a;
    --muted: #5d6f73;
    --line: #e4e8e4;
    --shadow-sm: 0 1px 2px rgba(6, 58, 53, .06), 0 4px 12px rgba(6, 58, 53, .05);
    --shadow-md: 0 10px 30px rgba(6, 58, 53, .10);
    --shadow-lg: 0 24px 60px rgba(6, 58, 53, .16);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --header-h: 74px;
    --bottom-h: 68px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.public-body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: 1220px; padding-inline: 20px; margin-inline: auto; }

.skip-link {
    position: fixed; top: -100px; left: 16px; z-index: 3000;
    background: var(--teal-800); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
    font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

::selection { background: var(--teal-600); color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.btn { font-weight: 700; border-radius: 999px; padding: .68rem 1.4rem; border-width: 2px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal-700); border-color: var(--teal-700); }
.btn-primary:hover, .btn-primary:focus { background: var(--teal-800); border-color: var(--teal-800); box-shadow: 0 8px 20px rgba(15, 118, 110, .3); }
.btn-accent { background: var(--gold); border-color: var(--gold); color: #241a05; }
.btn-accent:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; box-shadow: 0 8px 20px rgba(217, 158, 43, .35); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--teal-800); border-color: #fff; }
.btn-outline-primary { color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline-primary:hover { background: var(--teal-700); border-color: var(--teal-700); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }

/* ---------------------------------------------------------------- top bar */
.topbar {
    background: var(--teal-950);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar i { color: var(--gold); margin-right: 4px; }
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }
.topbar-socials { display: flex; gap: 10px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .15); }
.topbar-socials a { display: inline-flex; align-items: center; }
.topbar-socials i { margin: 0; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(6, 58, 53, .07);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(6, 58, 53, .1); background: rgba(255, 255, 255, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 8px rgba(6, 58, 53, .18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; color: var(--teal-900); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }

.desktop-nav { display: none; align-items: center; gap: 4px; }
.desktop-nav > a, .nav-drop-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    padding: .5rem .72rem;
    border: 0; background: transparent;
    color: #33474b; font-size: .88rem; font-weight: 600;
    border-radius: 999px; cursor: pointer;
    font-family: var(--font);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.desktop-nav > a:hover, .nav-drop-toggle:hover, .nav-drop-toggle.active { background: rgba(15, 118, 110, .08); color: var(--teal-700); }
.desktop-nav > a.active { color: var(--teal-700); background: rgba(15, 118, 110, .1); font-weight: 800; }
.nav-drop { position: relative; }
.nav-drop-toggle i { font-size: .65rem; transition: transform .2s var(--ease); }
.nav-drop.open .nav-drop-toggle i { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
    min-width: 240px; padding: 10px;
    background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: .6rem .8rem; border-radius: 10px;
    color: #31474b; font-size: .88rem; font-weight: 600;
}
.nav-drop-menu a:hover { background: var(--cream); color: var(--teal-700); }
.nav-drop-menu i { color: var(--teal-600); width: 18px; text-align: center; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid transparent; background: transparent;
    color: var(--teal-900); font-size: 1.15rem; cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: rgba(15, 118, 110, .09); color: var(--teal-700); transform: translateY(-1px); }
.header-cta { border-radius: 999px; }
.menu-toggle { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- drawer */
.site-menu {
    position: fixed; inset: 0; z-index: 1200;
    visibility: hidden;
    pointer-events: none;
}
.site-menu.open { visibility: visible; pointer-events: auto; }
.site-menu-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(380px, 92vw);
    background: #fff;
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(4, 33, 31, .25);
    transform: translateX(102%);
    transition: transform .32s var(--ease);
    display: flex; flex-direction: column;
}
.site-menu.open .site-menu-panel { transform: translateX(0); }
.menu-backdrop {
    position: fixed; inset: 0; z-index: 1190;
    background: rgba(4, 33, 31, .55);
    backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.menu-backdrop.show { opacity: 1; }
.site-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.site-menu-head .brand-text strong { color: var(--teal-900); }
.site-menu-head .brand-text small { color: var(--muted); }
.site-search {
    position: relative; display: flex; align-items: center;
    margin: 16px 0; padding: 0 14px;
    background: var(--cream); border-radius: 14px;
    border: 1px solid var(--line);
}
.site-search i { color: var(--muted); }
.site-search input {
    flex: 1; border: 0; background: transparent; padding: 12px 10px;
    font-family: var(--font); font-size: .92rem; outline: none;
}
.site-menu-nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.site-menu-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: .72rem .6rem; border-radius: 12px;
    color: #274146; font-weight: 600; font-size: .92rem;
}
.site-menu-nav a:hover { background: var(--cream); color: var(--teal-700); }
.site-menu-nav a > i:first-child { color: var(--teal-600); width: 20px; text-align: center; font-size: 1.05rem; }
.site-menu-nav a > i:last-child { margin-left: auto; font-size: .7rem; color: #a8b6b3; }
.site-menu-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.site-menu-foot a { display: flex; align-items: center; gap: 10px; color: #43595d; font-weight: 600; }
.site-menu-foot i { color: var(--teal-600); }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    background: var(--teal-950);
    overflow: hidden;
}
.hero-slider { position: relative; height: clamp(480px, 72vh, 660px); }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s linear;
}
.hero-slide.active img { transform: scale(1.12); }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 33, 31, .88) 0%, rgba(4, 33, 31, .62) 45%, rgba(4, 33, 31, .18) 100%),
        linear-gradient(0deg, rgba(4, 33, 31, .85) 0%, transparent 55%);
}
.hero-content {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center;
}
.hero-content-inner { max-width: 660px; padding-top: 20px; color: #fff; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--teal-800);
    background: var(--gold-soft);
    padding: .38rem .9rem; border-radius: 999px;
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--gold-600); border-radius: 2px; }
.eyebrow-light { background: rgba(255, 255, 255, .12); color: #ffe9b8; backdrop-filter: blur(4px); }
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-wrap: balance;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero p { color: rgba(255, 255, 255, .82); font-size: clamp(.95rem, 1.6vw, 1.1rem); max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 5; color: rgba(255, 255, 255, .7); font-size: .72rem;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
    pointer-events: none;
}
.hero-scroll i { animation: bob 2.2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.slider-dots { position: absolute; z-index: 5; right: 32px; bottom: 24px; display: flex; gap: 8px; }
.slider-dots button {
    width: 9px; height: 9px; padding: 0; border-radius: 999px;
    border: 0; background: rgba(255, 255, 255, .4);
    transition: width .3s var(--ease), background .3s var(--ease);
    cursor: pointer;
}
.slider-dots button.active { width: 30px; background: var(--gold); }

.hero-home .hero-slide::after { background: linear-gradient(100deg, rgba(4, 33, 31, .92) 8%, rgba(4, 33, 31, .68) 52%, rgba(4, 33, 31, .2) 100%); }

/* quick stats below hero */
.hero-stats {
    position: relative; z-index: 4;
    margin-top: 0;
}.hero-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}
.stat-tile { text-align: center; padding: 6px 4px; position: relative; }
.stat-tile:not(:nth-child(2n))::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat-tile .stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(15, 118, 110, .1); color: var(--teal-700); font-size: 1.15rem; margin-bottom: 6px; }
.stat-tile .stat-value { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--teal-900); line-height: 1.1; letter-spacing: -.02em; }
.stat-tile .stat-label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--paper); }
.section-dark { background: var(--teal-950); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 0; text-wrap: balance; }
.section-sub { color: var(--muted); margin: 10px 0 0; max-width: 620px; }
.section-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .88rem; color: var(--teal-700); white-space: nowrap; }
.section-link i { transition: transform .2s var(--ease); }
.section-link:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------------- news */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.news-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(6, 58, 53, .06);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e9efec; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .card-media img { transform: scale(1.06); }
.card-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--teal-800);
    font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: .32rem .7rem; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.card-meta i { color: var(--teal-600); }
.card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--teal-700); }
.card-excerpt { color: var(--muted); font-size: .86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.read-more { font-weight: 700; color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.read-more i { transition: transform .2s var(--ease); }
.news-card:hover .read-more i { transform: translateX(3px); }

.featured-news { display: grid; gap: 18px; grid-template-columns: 1fr; }
.feature-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 340px; display: flex; align-items: flex-end; color: #fff; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature-card:hover img { transform: scale(1.05); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 33, 31, .92) 0%, rgba(4, 33, 31, .35) 55%, rgba(4, 33, 31, .08) 100%); }
.feature-card-content { position: relative; z-index: 2; padding: 26px; }
.feature-card-content .card-meta { color: rgba(255, 255, 255, .75); }
.feature-card-content .card-meta i { color: var(--gold); }
.feature-card h3 { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.55rem); margin: 8px 0; }
.feature-card h3 a { color: #fff; }
.feature-card p { color: rgba(255, 255, 255, .78); font-size: .88rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card .read-more { color: var(--gold); }

/* ---------------------------------------------------------------- agenda */
.agenda-list { display: flex; flex-direction: column; gap: 12px; }
.agenda-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid rgba(6, 58, 53, .06);
    border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.agenda-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.agenda-date {
    flex: none; width: 62px; text-align: center;
    background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
    color: #fff; border-radius: 14px; padding: 8px 6px;
    box-shadow: 0 6px 16px rgba(15, 118, 110, .25);
}
.agenda-date .d { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.agenda-date .m { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; color: rgba(255, 255, 255, .8); }
.agenda-body { min-width: 0; }
.agenda-body h3 { font-size: 1rem; margin: 0 0 4px; }
.agenda-body h3 a { color: var(--ink); }
.agenda-body h3 a:hover { color: var(--teal-700); }
.agenda-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.agenda-meta i { color: var(--teal-600); margin-right: 3px; }

/* ---------------------------------------------------------------- announcements */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border-radius: var(--radius); padding: 16px 18px;
    border: 1px solid rgba(6, 58, 53, .06);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}
.notice.pinned { border-left-color: var(--teal-700); background: linear-gradient(180deg, #fff, #fbfdfc); }
.notice-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-600); font-size: 1.1rem; }
.notice.pinned .notice-icon { background: rgba(15, 118, 110, .1); color: var(--teal-700); }
.notice h3 { font-size: .98rem; margin: 0 0 3px; }
.notice p { font-size: .84rem; color: var(--muted); margin: 0; }
.notice time { font-size: .72rem; color: #96a5a3; font-weight: 600; display: block; margin-top: 6px; }
.pin-tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); background: rgba(15, 118, 110, .1); padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------- umkm */
.umkm-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.umkm-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(6, 58, 53, .06);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    display: flex; flex-direction: column; height: 100%;
}
.umkm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.umkm-card .card-media { aspect-ratio: 4 / 3; }
.umkm-card .card-body { padding: 16px 18px 18px; }
.umkm-cat { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; color: var(--teal-700); background: rgba(15, 118, 110, .09); padding: .22rem .65rem; border-radius: 999px; width: fit-content; }
.umkm-owner { font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0; }
.umkm-actions { display: flex; gap: 8px; margin-top: 14px; }
.umkm-actions .btn { flex: 1; font-size: .8rem; padding: .5rem .8rem; }

/* ---------------------------------------------------------------- gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4 / 3; display: block;
    box-shadow: var(--shadow-sm);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 33, 31, .82), transparent 62%); opacity: .9; transition: opacity .3s var(--ease); }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card-body { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.gallery-card-body h3 { color: #fff; font-size: .92rem; margin: 0 0 2px; }
.gallery-card-body span { font-size: .72rem; color: rgba(255, 255, 255, .72); font-weight: 600; }
.gallery-card .gallery-count { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--teal-900); font-size: .68rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }

.masonry { column-count: 2; column-gap: 12px; }
.masonry-item { break-inside: avoid; margin-bottom: 12px; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: #e9efec; }
.masonry-item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .74rem; color: #fff; background: linear-gradient(0deg, rgba(4, 33, 31, .8), transparent); }

.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(4, 20, 19, .94);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; animation: fadeIn .25s var(--ease); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- profile / prose */
.page-hero {
    position: relative;
    padding: clamp(48px, 8vw, 92px) 0 clamp(38px, 6vw, 64px);
    background:
        radial-gradient(circle at 88% 12%, rgba(217, 158, 43, .22), transparent 42%),
        linear-gradient(135deg, var(--teal-950), var(--teal-800));
    color: #fff;
    overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0 0 10px; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 680px; margin: 0; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 0; }
.breadcrumb { margin: 0; font-size: .8rem; --bs-breadcrumb-divider-color: #a4b2b0; }
.breadcrumb-item a { color: var(--muted); font-weight: 600; }
.breadcrumb-item a:hover { color: var(--teal-700); }
.breadcrumb-item.active { color: var(--teal-800); font-weight: 700; }

.content-prose { font-size: 1.02rem; color: #293f43; overflow-wrap: anywhere; }
.content-prose > *:first-child { margin-top: 0; }
.content-prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; padding-left: 14px; border-left: 4px solid var(--gold); }
.content-prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.content-prose p { margin-bottom: 1.1rem; }
.content-prose ul, .content-prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.content-prose li { margin-bottom: .45rem; }
.content-prose img { border-radius: 14px; margin: 1rem 0; height: auto; }
.content-prose blockquote {
    margin: 1.5rem 0; padding: 18px 22px;
    background: var(--cream); border-left: 4px solid var(--teal-600);
    border-radius: 0 14px 14px 0; font-style: italic; color: #33514f;
}
.content-prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.content-prose th, .content-prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.content-prose th { background: var(--cream); text-align: left; }
.content-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.content-prose figure { margin: 1.2rem 0; }
.content-prose figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .4rem; }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.article-main { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); }
.article-head h1 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); margin: 10px 0 14px; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-meta i { color: var(--teal-600); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-share { display: flex; align-items: center; gap: 10px; padding-top: 22px; margin-top: 28px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.article-share a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--teal-700); }
.article-share a:hover { background: var(--teal-700); color: #fff; }

.sidebar-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); margin-bottom: 20px; }
.sidebar-card h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-900); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: .5rem .6rem; border-radius: 10px; font-size: .87rem; font-weight: 600; color: #3b5559; }
.sidebar-list a:hover, .sidebar-list a.active { background: var(--cream); color: var(--teal-700); }
.sidebar-list .count { font-size: .7rem; font-weight: 800; background: rgba(15, 118, 110, .1); color: var(--teal-700); padding: .1rem .5rem; border-radius: 999px; }
.sidebar-news { display: flex; gap: 12px; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.sidebar-news:last-child { border-bottom: 0; }
.sidebar-news img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: none; }
.sidebar-news h4 { font-size: .82rem; margin: 0 0 3px; line-height: 1.4; }
.sidebar-news h4 a { color: var(--ink); }
.sidebar-news h4 a:hover { color: var(--teal-700); }
.sidebar-news time { font-size: .68rem; color: #98a7a4; font-weight: 600; }

/* profile */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.profile-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); }
.about-media { position: relative; }
.about-media > img { display: block; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge { position: absolute; right: -6px; bottom: -14px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; }
.about-badge-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-600); font-size: 1.2rem; }
.about-badge strong { display: block; line-height: 1.1; color: var(--teal-900); }
.about-badge small { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.fact {
    background: var(--cream); border-radius: 14px; padding: 14px;
    display: flex; align-items: center; gap: 12px; min-width: 0;
}
.fact > div { min-width: 0; }
.fact i { font-size: 1.3rem; color: var(--teal-700); }
.fact strong { display: block; font-size: 1.05rem; line-height: 1.2; color: var(--teal-900); }
.fact span { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.boundary-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.boundary-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .84rem; }
.boundary-list b { display: block; color: var(--teal-800); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

.officials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.official-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(6, 58, 53, .06); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    text-align: center;
}
.official-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.official-photo { aspect-ratio: 1 / 1; background: linear-gradient(160deg, #e8f1ee, #d7e7e2); overflow: hidden; }
.official-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.official-card:hover .official-photo img { transform: scale(1.04); }
.official-initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--teal-700); background: radial-gradient(circle at 30% 20%, #fff, #dcebe7); }
.official-body { padding: 14px 12px 18px; }
.official-body h3 { font-size: .94rem; margin: 0 0 2px; }
.official-body p { font-size: .74rem; color: var(--teal-700); font-weight: 700; margin: 0; }
.official-body small { display: block; font-size: .68rem; color: var(--muted); margin-top: 6px; }

/* statistics */
.stats-groups { display: grid; grid-template-columns: 1fr; gap: 20px; }
.stat-panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); }
.stat-panel h3 { font-size: 1.02rem; margin: 0 0 18px; display: flex; align-items: center; gap: 9px; }
.stat-panel h3 i { color: var(--gold-600); }
.stat-row { margin-bottom: 14px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-row-top { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.stat-row-top span:last-child { font-weight: 800; color: var(--teal-800); }
.stat-track { height: 8px; border-radius: 999px; background: #edf2f0; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--teal-800)); width: 0; transition: width 1.1s var(--ease); }

/* services */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card {
    background: #fff; border-radius: var(--radius); padding: 22px;
    border: 1px solid rgba(6, 58, 53, .06); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--teal-700), var(--teal-900)); color: #fff; font-size: 1.3rem; box-shadow: 0 8px 18px rgba(15, 118, 110, .25); }
.service-card h3 { font-size: 1.02rem; margin: 4px 0 0; }
.service-card p { font-size: .85rem; color: var(--muted); margin: 0; flex: 1; }
.service-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .76rem; font-weight: 700; color: var(--teal-700); }
.service-meta span { display: inline-flex; align-items: center; gap: 5px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: 14px; padding: 16px 16px 16px 62px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 16px; top: 15px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gold-soft); color: var(--gold-600);
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.step h3 { font-size: .92rem; margin: 0 0 3px; }
.step p { font-size: .8rem; color: var(--muted); margin: 0; }

/* forms */
.form-shell { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); }
.form-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.form-card .form-hint { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.form-label { font-size: .82rem; font-weight: 700; color: #314a4e; margin-bottom: 6px; }
.form-label .req { color: #dc2626; margin-left: 2px; }
.form-control, .form-select {
    font-family: var(--font); font-size: .9rem;
    border: 1.5px solid #dde5e1; border-radius: 12px;
    padding: .7rem .9rem; background: #fcfdfc; color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .12);
    background: #fff;
}
.form-control::placeholder { color: #9aaba8; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-text { font-size: .74rem; color: var(--muted); }
.form-check-input:checked { background-color: var(--teal-700); border-color: var(--teal-700); }
.invalid-feedback { font-size: .76rem; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.consent-row { border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: .8rem; }

.alert { border-radius: 12px; border: 0; font-size: .86rem; padding: .8rem 1rem; font-weight: 500; }
.flash-holder { padding-top: 16px; }
.flash-holder .alert { margin-bottom: 0; box-shadow: var(--shadow-sm); }
.alert-success { background: #e7f6ef; color: #146c43; }
.alert-danger { background: #fdecec; color: #a4262c; }
.alert-warning { background: #fdf4e1; color: #8a5a00; }
.alert-info { background: #e8f3f6; color: #0b5d6b; }

/* tracking */
.track-shell { max-width: 760px; margin-inline: auto; }
.track-result { background: #fff; border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); border: 1px solid rgba(6, 58, 53, .06); margin-top: 22px; }
.track-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--teal-950); color: #fff; border-radius: 14px; padding: 14px 18px; flex-wrap: wrap; }
.track-code strong { font-size: 1.1rem; letter-spacing: .08em; }
.track-code button { background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 8px; padding: .35rem .7rem; font-size: .76rem; font-weight: 700; cursor: pointer; }
.track-timeline { list-style: none; padding: 0; margin: 24px 0 0; position: relative; }
.track-timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.track-timeline li { position: relative; padding: 0 0 22px 50px; }
.track-timeline li:last-child { padding-bottom: 0; }
.track-timeline .dot { position: absolute; left: 8px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.track-timeline li.done .dot { background: var(--teal-700); border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); }
.track-timeline li.current .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(217, 158, 43, .18); }
.track-timeline strong { font-size: .9rem; display: block; }
.track-timeline span { font-size: .78rem; color: var(--muted); }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--teal-600); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--muted); font-size: .87rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-tile { background: #fff; border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid rgba(6, 58, 53, .06); box-shadow: var(--shadow-sm); }
.contact-tile i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(15, 118, 110, .1); color: var(--teal-700); font-size: 1.1rem; }
.contact-tile strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.contact-tile a, .contact-tile span { font-size: .88rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* search */
.search-hero { max-width: 680px; }
.search-form-big { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow-lg); }
.search-form-big input { flex: 1; border: 0; background: transparent; padding: 10px 18px; font-family: var(--font); font-size: .95rem; outline: none; min-width: 0; }
.search-form-big button { border-radius: 999px; padding-inline: 24px; }
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-item { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 14px; border: 1px solid rgba(6, 58, 53, .06); box-shadow: var(--shadow-sm); align-items: flex-start; }
.result-item .result-img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.result-type { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); background: rgba(15, 118, 110, .09); padding: .15rem .55rem; border-radius: 999px; display: inline-block; margin-bottom: 5px; }
.result-item h3 { font-size: .94rem; margin: 0 0 4px; }
.result-item h3 a { color: var(--ink); }
.result-item p { font-size: .8rem; color: var(--muted); margin: 0; }
.result-meta { font-size: .7rem; color: #9aa9a6; font-weight: 600; margin-top: 5px; display: block; }

/* pagination */
.pagination { gap: 6px; flex-wrap: wrap; margin: 0; }
.page-link {
    border: 1px solid var(--line); border-radius: 10px !important;
    color: var(--teal-800); font-weight: 700; font-size: .84rem;
    min-width: 40px; text-align: center; padding: .5rem .7rem; background: #fff;
}
.page-link:hover { background: var(--cream); color: var(--teal-700); border-color: var(--line); }
.page-item.active .page-link { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.page-item.disabled .page-link { background: #f4f6f4; color: #aebbB8; }

/* cta band */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--teal-900), var(--teal-700) 65%, var(--teal-600));
    color: #fff;
    padding: clamp(36px, 6vw, 64px) 0;
}
.cta-band::before {
    content: ""; position: absolute; right: -100px; top: -100px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 158, 43, .4), transparent 68%);
}
.cta-band-inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; font-size: .92rem; }

/* footer */
.site-footer { background: var(--teal-950); color: rgba(255, 255, 255, .68); padding: clamp(44px, 6vw, 70px) 0 0; font-size: .87rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand p { margin: 16px 0; font-size: .85rem; line-height: 1.7; max-width: 340px; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 800; margin: 0 0 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255, 255, 255, .68); font-size: .85rem; }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .83rem; line-height: 1.55; }
.footer-contact i { color: var(--gold); margin-top: 3px; flex: none; }
.footer-contact a { color: rgba(255, 255, 255, .68); }
.footer-contact a:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; transition: background .2s var(--ease), transform .2s var(--ease); }
.footer-socials a:hover { background: var(--gold); color: #241a05; transform: translateY(-3px); }
.footer-map-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--gold); }
.footer-map-link:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .76rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; gap: 8px; align-items: center; }
.footer-meta a { color: rgba(255, 255, 255, .5); }
.footer-meta a:hover { color: #fff; }

/* bottom nav */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
    height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(6, 58, 53, .08);
    display: grid; grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -8px 30px rgba(6, 58, 53, .07);
}
.bottom-nav a, .bottom-nav button {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; background: transparent; cursor: pointer;
    color: #7d8f8c; font-family: var(--font); font-size: .64rem; font-weight: 700;
    letter-spacing: .02em; padding: 0;
    transition: color .2s var(--ease);
}
.bottom-nav i { font-size: 1.22rem; line-height: 1; }
.bottom-nav a.active, .bottom-nav button.active { color: var(--teal-700); }
.bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--teal-700); }
.bottom-nav-action { color: var(--teal-800) !important; }
.bottom-nav-action .action-circle {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--teal-600), var(--teal-800));
    color: #fff; font-size: 1.35rem;
    margin-top: -24px; margin-bottom: 1px;
    box-shadow: 0 8px 20px rgba(15, 118, 110, .4);
    border: 4px solid #fff;
    transition: transform .2s var(--ease);
}
.bottom-nav-action:active .action-circle { transform: scale(.92); }
.public-body { padding-bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom)); }

/* to top */
.to-top {
    position: fixed; right: 16px; bottom: calc(var(--bottom-h) + 18px + env(safe-area-inset-bottom));
    z-index: 1030;
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--teal-800); color: #fff; font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(6, 58, 53, .3);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* floating WhatsApp (sits above the back-to-top button) */
.wa-float {
    position: fixed; right: 16px; bottom: calc(var(--bottom-h) + 72px + env(safe-area-inset-bottom));
    z-index: 1030;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff; font-size: 1.4rem; line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .38);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible {
    color: #fff; transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, .45);
}
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .4); outline-offset: 3px; }

/* empty state */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed #cfdad6; }
.empty-state i { font-size: 2.6rem; color: #b7c6c2; display: block; margin-bottom: 10px; }
.empty-state h3 { font-size: 1rem; color: var(--ink); }
.empty-state p { font-size: .85rem; margin: 0; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (min-width: 576px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .umkm-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .officials-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid .full { grid-column: 1 / -1; }
    .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-tile:nth-child(2)::after { display: block; }
    .stat-tile:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry { column-count: 3; }
}

@media (min-width: 768px) {
    .featured-news { grid-template-columns: 1.35fr 1fr; }
    .feature-card.main { min-height: 440px; grid-row: span 2; }
    .feature-card:not(.main) { min-height: 212px; }
    .track-result { padding: 34px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1.15fr .85fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .form-shell { grid-template-columns: 1fr; }
    .stats-groups { grid-template-columns: repeat(2, 1fr); }
    .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fact-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .officials-grid { grid-template-columns: repeat(3, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .to-top { bottom: 24px; }
    .wa-float { bottom: 80px; }
}

@media (min-width: 992px) {
    .container { padding-inline: 24px; }
    .desktop-nav { display: flex; }
    .menu-toggle { display: none; }
    .bottom-nav { display: none; }
    .public-body { padding-bottom: 0; }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .umkm-grid { grid-template-columns: repeat(4, 1fr); }
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .officials-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .article-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
    .hero-slider { height: min(76vh, 680px); }
    .contact-grid { grid-template-columns: 1.1fr .9fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .form-shell { grid-template-columns: 1.6fr .9fr; }
    .form-shell .form-aside { position: sticky; top: calc(var(--header-h) + 20px); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
    .profile-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); }
    .profile-grid .sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }
    .to-top { right: 24px; }
    .wa-float { right: 24px; }
    .masonry { column-count: 4; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .topbar { font-size: .72rem; }
    .topbar .topbar-hours,
    .topbar .topbar-socials { display: none !important; }
    .header-inner { gap: 12px; }
    .desktop-nav > a,
    .nav-drop-toggle { padding-inline: .55rem; font-size: .84rem; }
    .header-cta { display: none !important; }
    .brand img { width: 42px; height: 42px; }
}

@media (min-width: 1200px) {
    .section { padding: 88px 0; }
}

@media (min-width: 576px) and (max-height: 760px) {
    .hero-scroll { display: none; }
}

@media (max-width: 575.98px) {
    .container { padding-inline: 16px; }
    .brand img { width: 40px; height: 40px; }
    .brand-text strong { font-size: .94rem; }
    .brand-text small { font-size: .6rem; }
    .hero-slider { height: 82vh; min-height: 480px; max-height: 640px; }
    .hero-content-inner { padding-bottom: 30px; }
    .hero .btn { flex: 1 1 auto; justify-content: center; }
    .slider-dots { right: auto; left: 16px; bottom: 24px; }
    .hero-scroll { display: none; }
    .page-hero { padding-top: 40px; }
    .section-head { margin-bottom: 22px; }
    .article-main { padding: 18px; border-radius: 18px; }
    .about-badge { right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 14px; gap: 9px; }
    .about-badge-icon { width: 38px; height: 38px; font-size: 1rem; }
    .to-top { bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); }
    .wa-float { bottom: calc(var(--bottom-h) + 68px + env(safe-area-inset-bottom)); }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------ captcha */
.captcha-field .captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.captcha-field img { display: block; width: 240px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); image-rendering: pixelated; }
.captcha-field input { max-width: 300px; letter-spacing: .18em; font-weight: 700; }
