
/* =========================
   PENGATURAN DASAR
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    color: #0b0b0b;
    background: #f3efef;
    line-height: 1.7;
}

:root {
    --green: #024732;
    --dark-green: #0d3027;
    --gold: #dea653;
    --light: #f4f7f3;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

.section {
    padding: 85px 0;
}

.section-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 32px;
    margin: 10px 0;
    color: var(--green);
} 

.section-title p {
    color: #114125;
    font-size: 14px;
}

.section-title.light h2,
.section-title.light p {
    color: white;
}

/* =========================
   NAVBAR
========================= */

.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--green);
}

.brand img {
    width: 48px;
    height: 55px;
    object-fit: contain;
}

.brand h3 {
    font-size: 14px;
}

.brand span {
    font-size: 10px;
    color: #777;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: #34483e;
    font-size: 13px;
    font-weight: bold;
    transition: .3s;
}

nav a:hover {
    color: var(--gold);
}

.nav-button {
    background: var(--green);
    color: white;
    padding: 11px 18px;
    border-radius: 4px;
}

.nav-button:hover {
    color: white;
    background: var(--gold);
}

.menu-toggle {
    display: none;
    font-size: 25px;
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
}

/* =========================
   HERO / BERANDA
========================= */

.hero {
    height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url("assets1/galeri/Hero-desa.jpeg");
    background-position: center;
    background-size: cover;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5,35,27,.88),
        rgba(5,35,27,.55),
        rgba(5,35,27,.12)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: #e5c58f;
    font-weight: bold;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin: 20px 0;
}

.hero h1 span {
    color: #e6c58e;
}

.hero p {
    max-width: 550px;
    font-size: 15px;
    color: #e0e9e3;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 13px 22px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    transition: .3s;
}

.btn-gold {
    background: var(--gold);
    color: #172f27;
}

.btn-gold:hover {
    background: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--green);
}

.hero-location {
    margin-top: 35px;
    font-size: 12px;
    color: #e3e9e4;
}

/* =========================
   PROFIL DESA
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 5px;
}

.image-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    color: var(--green);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: bold;
}

.about-content h2,
.history h2 {
    color: var(--green);
    font-size: 33px;
    line-height: 1.3;
    margin: 12px 0 20px;
}

.about-content p,
.history p {
    color: #718078;
    font-size: 14px;
    margin-bottom: 13px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #a67c3f;
    font-weight: bold;
    font-size: 13px;
}

/* =========================
   STATISTIK
========================= */

.statistics {
    background: var(--green);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,.08);
    padding: 30px 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px;
}

.stat-icon {
    font-size: 27px;
}

.stat-card h3 {
    color: #e5c58f;
    font-size: 36px;
    margin: 8px 0;
}

.stat-card p {
    color: white;
    font-size: 13px;
}

/* =========================
   TABEL DATA DUSUN
========================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
    font-size: 13px;
}

th {
    background: var(--green);
    color: white;
    padding: 16px;
    text-align: left;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e7ece8;
}

tbody tr:hover {
    background: #f3f7f3;
}

tfoot {
    background: #edf3ed;
    font-weight: bold;
    color: var(--green);
}

/* =========================
   SEJARAH
========================= */

.history {
    background: var(--light);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 5px;
}

.history-date {
    margin-top: 25px;
    padding: 18px;
    border-left: 4px solid var(--gold);
    background: white;
}

.history-date strong,
.history-date span {
    display: block;
}

.history-date strong {
    color: var(--green);
}

.history-date span {
    color: #777;
    font-size: 12px;
}

/* =========================
   VISI MISI
========================= */

.vision {
    background: var(--dark-green);
    color: white;
}

.vision-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    padding: 35px;
    text-align: center;
    margin-bottom: 30px;
}

.vision-box h3,
.mission-box h3 {
    color: #e5c58f;
    margin-bottom: 15px;
}

.vision-box p {
    font-size: 22px;
    font-weight: bold;
}

.mission-box {
    max-width: 850px;
    margin: auto;
}

.mission-box ol {
    padding-left: 22px;
}

.mission-box li {
    padding: 8px 0;
    font-size: 14px;
    color: #d7e3dc;
}

/* =========================
   POTENSI DESA
========================= */

.potential-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.potential-card {
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
    overflow: hidden;
    transition: .3s;
}

.potential-card:hover {
    transform: translateY(-7px);
}

.potential-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card-content {
    padding: 22px;
}

.card-content span {
    font-size: 10px;
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 1px;
}

.card-content h3 {
    color: var(--green);
    margin: 8px 0;
    font-size: 21px;
}

.card-content p {
    font-size: 13px;
    color: #718078;
}

/* =========================
   PEREKONOMIAN
========================= */

.economy {
    background: var(--light);
}

.economy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.economy-item {
    background: white;
    padding: 25px 18px;
    border-radius: 5px;
    text-align: center;
}

.economy-item span {
    font-size: 35px;
}

.economy-item h3 {
    font-size: 16px;
    color: var(--green);
    margin: 10px 0;
}

.economy-item p {
    font-size: 12px;
    color: #77837c;
}

/* =========================
   PETA DESA
========================= */

.map-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-photo {
    background: #f5f7f3;
    padding: 15px;
    border: 1px solid #e5eae4;
}

.map-photo img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.map-info h3 {
    color: var(--green);
    margin-bottom: 20px;
}

.map-info div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #e5eae4;
    font-size: 13px;
}

.map-info span {
    color: #7c8981;
}

.map-info b {
    color: var(--green);
}

/* =========================
   STRUKTUR ORGANISASI
========================= */

.government {
    background: var(--light);
}

.organization {
    background: white;
    padding: 20px;
    border: 1px solid #e8ece7;
}

.organization img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.head-village {
    text-align: center;
    margin-top: 25px;
}

.head-village h3 {
    color: var(--green);
}

.head-village p {
    color: var(--gold);
    font-weight: bold;
}

/* =========================
   GALERI
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    transition: .3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* =========================
   KONTAK
========================= */

.contact {
    background: var(--green);
    color: white;
    padding: 65px 0;
    text-align: center;
}

.contact-content h2 {
    font-size: 32px;
    margin: 10px 0;
}

.contact-content p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: #d5e1da;
    font-size: 14px;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--dark-green);
    color: white;
    padding-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-content h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #e5c58f;
}

.footer-content p,
.footer-content a {
    display: block;
    color: #c3d1c9;
    font-size: 12px;
    margin-bottom: 9px;
    text-decoration: none;
}

.footer-content a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    padding: 18px;
    color: #9fb0a6;
    font-size: 11px;
}

/* =========================
   RESPONSIVE HP / TABLET
========================= */

@media (max-width: 900px) {

    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 18px;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 12px 5px;
        border-bottom: 1px solid #eee;
    }

    .nav-button {
        margin-top: 10px;
        text-align: center;
    }

    .about-grid,
    .history-grid,
    .map-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .economy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .potential-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        height: 570px;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 13px;
    }

    .section-title h2,
    .about-content h2,
    .history h2 {
        font-size: 26px;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 20px 8px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    .potential-grid {
        grid-template-columns: 1fr;
    }

    .economy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid img {
        height: 145px;
    }

    .vision-box p {
        font-size: 17px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-content h2 {
        font-size: 25px;
    }
}
