/* =========================================================
   ANJUNGAN LAYANAN DESA BOKONG
   File: assets/css/style.css
   ========================================================= */

:root {
    --navy: #001a31;
    --navy-dark: #001326;
    --navy-card: #032d4a;
    --navy-card-dark: #001c34;

    --gold: #ffd47c;
    --gold-soft: #e8b864;
    --gold-border: rgba(255, 205, 129, 0.72);

    --white: #ffffff;
    --text-soft: #dbe6ef;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

html {
    background: var(--navy-dark);
}

body {
    min-height: 100vh;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--white);
    background: var(--navy-dark);
}

button,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   LAYOUT UTAMA
   ========================================================= */

.anjungan {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;

    background: var(--navy-dark);
}

/* Overlay lama tidak digunakan */
.background-overlay {
    display: none !important;
}

/* =========================================================
   AREA KIRI DAN TENGAH
   ========================================================= */

.main-content {
    position: relative;
    isolation: isolate;

    min-width: 0;
    min-height: 100vh;

    padding: 20px 30px 18px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    background: var(--navy);
}

/* Foto kantor hanya pada bagian atas */
.main-content::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 59vh;

    background-image: url("../images/kantor-desa.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    z-index: 0;
}

/* Foto memudar menuju warna biru di bawah */
.main-content::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 72vh;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 16, 31, 0.08) 0%,
            rgba(0, 16, 31, 0.16) 25%,
            rgba(0, 20, 38, 0.38) 48%,
            rgba(0, 23, 44, 0.72) 68%,
            rgba(0, 26, 49, 0.96) 88%,
            var(--navy) 100%
        );

    pointer-events: none;
    z-index: 1;
}

/* Semua isi berada di atas foto dan gradien */
.main-content > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   IDENTITAS DESA
   ========================================================= */

.desa-header {
    position: absolute;

    top: 14px;
    left: 14px;

    min-width: 285px;
    min-height: 90px;

    padding: 12px 35px 12px 16px;

    display: flex;
    align-items: center;
    gap: 14px;

    color: #102747;

    background: rgba(255, 255, 255, 0.95);

    border-radius: 0 0 75px 0;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);

    z-index: 10;
}

.logo-desa {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
}

.desa-header h1 {
    margin-bottom: 5px;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.desa-header p {
    margin: 2px 0;

    font-size: 14px;
    line-height: 1.2;
}

/* =========================================================
   SAMBUTAN
   ========================================================= */

.welcome {
    margin-top: clamp(220px, 27vh, 280px);

    text-align: center;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.95),
        0 0 22px rgba(0, 0, 0, 0.7);
}

.welcome h2 {
    color: var(--gold);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 4vw, 67px);
    font-weight: 500;
    line-height: 1.05;
}

.welcome h3 {
    margin-top: 7px;

    color: var(--white);

    font-size: clamp(19px, 1.55vw, 26px);
    font-weight: 400;
    line-height: 1.25;
}

.ornamen {
    margin-top: 10px;

    color: var(--gold);
    font-size: 18px;
    letter-spacing: 3px;
}

.welcome p {
    margin-top: 9px;

    color: var(--white);

    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.3;
}

/* =========================================================
   MENU UTAMA
   ========================================================= */

.menu-grid {
    position: relative;
    z-index: 4;

    width: min(860px, 97%);

    margin: 20px auto 0;

    display: grid;
    grid-template-columns: repeat(5, minmax(125px, 1fr));
    gap: 12px;
}

.menu-card {
    position: relative;

    min-height: 142px;

    padding: 15px 10px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    overflow: hidden;

    color: var(--white);
    text-align: center;
    text-decoration: none;

    font-size: 17px;
    line-height: 1.2;

    background:
        linear-gradient(
            180deg,
            rgba(5, 51, 80, 0.93) 0%,
            rgba(0, 28, 52, 0.97) 100%
        );

    border: 1px solid var(--gold-border);
    border-radius: 12px;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.27),
        inset 0 0 25px rgba(28, 124, 175, 0.08);

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.menu-card::after {
    content: "";

    width: 45px;
    height: 2px;

    margin-top: 1px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 8px 2px rgba(255, 205, 112, 0.82);
}

.menu-card:hover,
.menu-card:focus,
.menu-card:active {
    transform: translateY(-4px) scale(1.015);

    background:
        linear-gradient(
            180deg,
            rgba(10, 69, 104, 0.98) 0%,
            rgba(1, 37, 67, 0.98) 100%
        );

    box-shadow:
        0 17px 34px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(255, 201, 109, 0.22);

    outline: none;
}

.menu-icon {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);

    font-size: 39px;
    line-height: 1;

    filter:
        sepia(0.65)
        saturate(1.5)
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   FOOTER BAGIAN KIRI
   ========================================================= */

.main-footer {
    width: 100%;

    margin-top: auto;
    padding-top: 14px;

    display: grid;
    grid-template-columns: 325px 1fr;
    align-items: center;
    gap: 20px;
}

.touch-button {
    min-height: 59px;

    padding: 12px 22px;

    color: var(--gold);

    background: rgba(0, 31, 56, 0.94);

    border: 1px solid var(--gold-border);
    border-radius: 40px;

    font-size: 17px;

    cursor: pointer;

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.2);
}

.touch-button span {
    margin-right: 9px;
    font-size: 28px;
    vertical-align: middle;
}

.touch-button:hover,
.touch-button:active {
    background: rgba(5, 52, 83, 0.98);
}

.main-footer blockquote {
    padding-right: 15%;

    color: #fff4df;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.55vw, 25px);

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.85);
}

/* =========================================================
   SIDEBAR KANAN
   ========================================================= */

.sidebar {
    position: relative;
    z-index: 5;

    min-height: 100vh;

    padding: 18px 16px 16px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    background:
        linear-gradient(
            180deg,
            rgba(0, 27, 50, 0.99) 0%,
            rgba(0, 18, 35, 1) 100%
        );

    border-left: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   JAM DAN TANGGAL
   ========================================================= */

.clock-panel {
    min-height: 95px;

    padding: 14px 20px;

    display: grid;
    grid-template-columns: 1fr 1px auto;
    align-items: center;
    gap: 18px;

    background: rgba(2, 35, 61, 0.87);

    border: 1px solid rgba(104, 151, 184, 0.58);
    border-radius: 55px;
}

#tanggal {
    color: var(--white);

    text-align: center;

    font-size: 15px;
    line-height: 1.45;
}

.clock-divider {
    width: 1px;
    height: 48px;

    background: var(--gold-soft);
}

.clock-time {
    min-width: 85px;

    text-align: center;
}

.clock-time strong {
    display: block;

    color: var(--gold);

    font-size: 34px;
    font-weight: 400;
    line-height: 1;
}

.clock-time small {
    display: block;

    margin-top: 5px;

    color: var(--white);

    font-size: 14px;
}

/* =========================================================
   KARTU SIDEBAR
   ========================================================= */

.side-card {
    overflow: hidden;

    background: rgba(0, 30, 55, 0.92);

    border: 1px solid var(--gold-border);
    border-radius: 17px;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.24);
}

.side-card-title {
    min-height: 60px;

    padding: 13px 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--white);

    font-size: 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.side-card-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;

    color: var(--gold);

    font-size: 26px;
}

.statistic-title {
    color: var(--gold);
}

/* =========================================================
   PENGUMUMAN
   ========================================================= */

.announcement-content {
    min-height: 190px;

    padding: 27px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: var(--white);

    text-align: center;

    font-size: 18px;
    line-height: 1.45;
}

.announcement-content p {
    max-width: 260px;
}

.announcement-content strong {
    font-size: 19px;
}

.announcement-content span {
    font-size: 17px;
}

/* =========================================================
   STATISTIK
   ========================================================= */

.statistic-card {
    padding-bottom: 16px;
}

.statistic-list {
    padding: 8px 20px;
}

.statistic-item {
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.statistic-item:last-child {
    border-bottom: none;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text-soft);

    font-size: 15px;
}

.stat-icon {
    width: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #bac7d1;

    text-align: center;

    filter: grayscale(1);
}

.statistic-item strong {
    color: var(--white);

    text-align: right;
    white-space: nowrap;

    font-size: 15px;
    font-weight: 600;
}

.more-button {
    width: 172px;
    min-height: 42px;

    margin: 7px auto 0;
    padding: 9px 17px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;

    color: var(--white);

    text-decoration: none;

    background: rgba(0, 21, 40, 0.73);

    border: 1px solid var(--gold-border);
    border-radius: 30px;
}

.more-button span {
    color: var(--gold);

    font-size: 25px;
    line-height: 1;
}

.more-button:hover,
.more-button:active {
    background: rgba(8, 53, 81, 0.95);
}

/* =========================================================
   FOOTER SIDEBAR
   ========================================================= */

.sidebar-footer {
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.language-button,
.circle-button {
    color: var(--gold);

    background: rgba(0, 31, 56, 0.94);

    border: 1px solid var(--gold-border);

    cursor: pointer;
}

.language-button {
    min-width: 180px;
    min-height: 55px;

    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 35px;

    font-size: 15px;
}

.circle-button {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 27px;
}

.language-button:hover,
.circle-button:hover,
.language-button:active,
.circle-button:active {
    background: rgba(7, 55, 85, 0.98);
}

/* =========================================================
   LAYAR LAPTOP 1366 x 768 DAN SEJENISNYA
   ========================================================= */

@media (max-height: 850px) and (min-width: 1000px) {
    .anjungan {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .main-content {
        padding: 14px 24px 12px;
    }

    .main-content::before {
        height: 58vh;
    }

    .main-content::after {
        height: 73vh;
    }

    .desa-header {
        top: 10px;
        left: 10px;

        min-width: 250px;
        min-height: 72px;

        padding: 8px 28px 8px 12px;
    }

    .logo-desa {
        width: 50px;
        height: 50px;
    }

    .desa-header h1 {
        font-size: 18px;
    }

    .desa-header p {
        font-size: 11px;
    }

    .welcome {
        margin-top: clamp(175px, 23vh, 205px);
    }

    .welcome h2 {
        font-size: clamp(42px, 3.5vw, 56px);
    }

    .welcome h3 {
        font-size: 19px;
    }

    .welcome p {
        font-size: 14px;
    }

    .menu-grid {
        width: min(760px, 96%);
        margin-top: 14px;
        gap: 9px;
    }

    .menu-card {
        min-height: 112px;

        padding: 10px 7px;

        font-size: 14px;
    }

    .menu-icon {
        min-height: 34px;
        font-size: 31px;
    }

    .menu-card::after {
        width: 36px;
    }

    .main-footer {
        grid-template-columns: 275px 1fr;
        padding-top: 8px;
    }

    .touch-button {
        min-height: 48px;
        padding: 8px 18px;
        font-size: 14px;
    }

    .touch-button span {
        font-size: 21px;
    }

    .main-footer blockquote {
        font-size: 18px;
    }

    .sidebar {
        padding: 13px 12px;
        gap: 10px;
    }

    .clock-panel {
        min-height: 77px;
        padding: 10px 15px;
        gap: 12px;
    }

    #tanggal {
        font-size: 12px;
    }

    .clock-time strong {
        font-size: 29px;
    }

    .clock-time small {
        font-size: 11px;
    }

    .clock-divider {
        height: 40px;
    }

    .side-card-title {
        min-height: 48px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .side-card-title span {
        font-size: 21px;
    }

    .announcement-content {
        min-height: 155px;
        padding: 17px;
        gap: 9px;
        font-size: 14px;
    }

    .announcement-content strong {
        font-size: 16px;
    }

    .announcement-content span {
        font-size: 14px;
    }

    .statistic-list {
        padding: 5px 15px;
    }

    .statistic-item {
        min-height: 45px;
    }

    .stat-label,
    .statistic-item strong {
        font-size: 12px;
    }

    .more-button {
        width: 150px;
        min-height: 36px;
        font-size: 12px;
    }

    .language-button {
        min-width: 150px;
        min-height: 45px;
        font-size: 12px;
    }

    .circle-button {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }
}

/* =========================================================
   TABLET / LAYAR KECIL
   ========================================================= */

@media (max-width: 1000px) {
    body {
        overflow-y: auto;
    }

    .anjungan {
        display: block;
    }

    .main-content {
        min-height: 100vh;
    }

    .main-content::before {
        height: 55vh;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .main-footer {
        grid-template-columns: 1fr;
    }

    .main-footer blockquote {
        padding-right: 0;
    }

    .sidebar {
        min-height: auto;
    }
}

/* =========================================================
   PONSEL
   ========================================================= */

@media (max-width: 600px) {
    .main-content {
        padding: 14px;
    }

    .desa-header {
        position: relative;

        top: auto;
        left: auto;

        width: fit-content;
        min-width: 0;
    }

    .welcome {
        margin-top: 80px;
    }

    .welcome h2 {
        font-size: 40px;
    }

    .menu-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-card {
        min-height: 125px;
    }

    .main-footer {
        margin-top: 25px;
    }
}

/* =========================================================
   NAIKKAN SAMBUTAN DAN MENU
   Sediakan ruang kosong di bagian bawah untuk informasi lain
   ========================================================= */

/* Posisi umum untuk layar besar */
.welcome {
    margin-top: clamp(155px, 19vh, 205px);
}

.menu-grid {
    margin-top: 12px;
}

/* Footer tetap berada di bagian paling bawah */
.main-footer {
    margin-top: auto;
}

/* Khusus layar 1366x768 dan layar laptop sejenis */
@media (max-height: 850px) and (min-width: 1000px) {
    .welcome {
        margin-top: 120px;
    }

    .welcome h2 {
        font-size: clamp(40px, 3.3vw, 53px);
    }

    .welcome h3 {
        margin-top: 4px;
        font-size: 18px;
    }

    .welcome .ornamen {
        margin-top: 6px;
    }

    .welcome p {
        margin-top: 5px;
        font-size: 14px;
    }

    .menu-grid {
        margin-top: 9px;
    }
}

/* =========================================================
   JUDUL SELAMAT DATANG LEBIH BESAR, TERANG, DAN TIMBUL
   ========================================================= */

.welcome h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 5vw, 82px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 1px;

    color: #ffe19a;

    background: linear-gradient(
        180deg,
        #fff8d8 0%,
        #ffe7a6 25%,
        #ffd06d 55%,
        #e5a747 80%,
        #fff0b8 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 0.6px rgba(255, 239, 186, 0.95);

    text-shadow:
        0 1px 0 #fff3bd,
        0 2px 0 #d89b3d,
        0 3px 0 #b77924,
        0 5px 8px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(255, 210, 111, 0.95),
        0 0 28px rgba(255, 187, 68, 0.75),
        0 0 45px rgba(255, 183, 52, 0.38);

    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.65));
}

/* Tulisan di bawah Selamat Datang */
.welcome h3 {
    margin-top: 10px;

    color: #ffffff;

    font-size: clamp(23px, 2vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.2px;

    -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.85);

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 2px rgba(0, 0, 0, 0.95),
        0 4px 7px rgba(0, 0, 0, 0.95),
        0 0 10px rgba(255, 255, 255, 0.75),
        0 0 22px rgba(255, 210, 120, 0.42);
}

/* Ornamen ikut dibuat lebih terang */
.welcome .ornamen {
    margin-top: 11px;

    color: #ffd774;

    font-size: 21px;
    font-weight: 700;

    text-shadow:
        0 0 7px rgba(255, 220, 125, 1),
        0 0 18px rgba(255, 178, 48, 0.75);
}

/* Kalimat petunjuk */
.welcome p {
    margin-top: 8px;

    color: #ffffff;

    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 600;

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 1),
        0 0 9px rgba(0, 0, 0, 0.95);
}

/* Penyesuaian agar tetap pas pada layar 1366 x 768 */
@media (max-height: 850px) and (min-width: 1000px) {
    .welcome h2 {
        font-size: clamp(52px, 4.4vw, 68px);
    }

    .welcome h3 {
        margin-top: 6px;
        font-size: clamp(20px, 1.7vw, 25px);
    }

    .welcome .ornamen {
        margin-top: 6px;
        font-size: 17px;
    }

    .welcome p {
        margin-top: 4px;
        font-size: 14px;
    }
}

/* =========================================================
   MENU KECIL — 10 TOMBOL DALAM SATU BARIS
   ========================================================= */

@media (min-width: 1000px) {
    .menu-grid {
        width: min(1100px, 99%) !important;
        margin: 12px auto 0 !important;

        display: grid !important;
        grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .menu-card {
        min-width: 0 !important;
        min-height: 110px !important;

        padding: 10px 4px 9px !important;
        gap: 6px !important;

        border-radius: 10px !important;

        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    .menu-icon {
        min-height: 31px !important;
        font-size: 29px !important;
        line-height: 1 !important;
    }

    .menu-card::after {
        width: 31px !important;
        height: 2px !important;
        margin-top: 1px !important;
    }

    /* Tulisan menu tetap rapi dan berada di tengah */
    .menu-card > span:last-child {
        min-height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}