/* ==========================================================
   WEBSITE DESA SIDOKARE
   Premium Landing Page
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2e7d32;
  --dark: #1e293b;
  --gray: #64748b;
  --bg: #edf3f8;
  --white: #ffffff;

  --radius: 30px;

  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;

  background: var(--bg);

  color: var(--dark);

  overflow-x: hidden;
}

.container {
  max-width: 1300px;
}

section {
  padding: 90px 0;
}

img {
  max-width: 100%;

  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;

  margin: 0;

  padding: 0;
}

/*=========================
NAVBAR
=========================*/

.navbar-custom {
  margin-top: 25px;

  background: white;

  border-radius: 28px;

  padding: 18px 28px;

  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 30px;

  font-weight: 700;

  color: var(--dark) !important;
}

.logo {
  width: 42px;

  height: 42px;

  object-fit: contain;
}

.navbar-nav {
  gap: 18px;
}

.nav-link {
  font-weight: 500;

  color: var(--dark) !important;

  transition: 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.search-input {
  width: 240px;

  height: 48px;

  border-radius: 50px;

  border: 1px solid #ddd;

  padding: 0 20px;

  outline: none;
}

.login-btn {
  background: var(--dark);

  color: white !important;

  padding: 13px 28px;

  border-radius: 50px;

  font-weight: 600;

  margin-left: 15px;

  transition: 0.3s;
}

.login-btn:hover {
  background: var(--primary);
}

/*=========================
HERO
=========================*/

.hero {
  margin-top: 30px;

  position: relative;

  height: 720px;

  border-radius: 35px;

  overflow: hidden;

  background: url('../img/hero.jpg') center center/cover;
}

.hero::before {
  content: '';

  position: absolute;

  inset: 0;

  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: absolute;

  left: 70px;

  top: 50%;

  transform: translateY(-50%);

  max-width: 620px;

  color: white;

  z-index: 2;
}

.hero-badge {
  display: inline-block;

  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(12px);

  padding: 10px 20px;

  border-radius: 40px;

  margin-bottom: 20px;

  font-weight: 500;
}

.hero h1 {
  font-size: 68px;

  font-weight: 800;

  line-height: 1.1;

  margin-bottom: 20px;
}

.hero p {
  font-size: 19px;

  line-height: 1.9;

  opacity: 0.95;

  margin-bottom: 35px;
}

.hero-btn {
  display: flex;

  gap: 15px;
}

.btn-main {
  background: white;

  color: var(--dark);

  padding: 15px 34px;

  border-radius: 50px;

  font-weight: 600;
}

.btn-second {
  border: 2px solid white;

  color: white;

  padding: 15px 34px;

  border-radius: 50px;

  font-weight: 600;
}

/*=========================
SEARCH CARD
=========================*/

.search-card {
  position: absolute;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  width: 90%;

  max-width: 1050px;

  background: white;

  border-radius: 28px;

  padding: 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  box-shadow: var(--shadow);

  z-index: 5;
}

.search-item {
  flex: 1;
}

.search-item span {
  font-size: 13px;

  color: var(--gray);

  display: block;

  margin-bottom: 6px;
}

.search-item input,
.search-item select {
  width: 100%;

  border: none;

  outline: none;

  font-weight: 600;

  background: transparent;
}

.search-button {
  background: var(--dark);

  color: white;

  padding: 16px 40px;

  border-radius: 50px;

  font-weight: 600;

  border: none;
}

/*=========================
SECTION
=========================*/

.section-title {
  font-size: 44px;

  font-weight: 700;

  margin-bottom: 15px;
}

.section-desc {
  color: var(--gray);

  font-size: 17px;

  line-height: 1.8;

  margin-bottom: 50px;
}

.card-custom {
  background: white;

  border: none;

  border-radius: 25px;

  box-shadow: var(--shadow);

  padding: 30px;

  transition: 0.35s;
}

.card-custom:hover {
  transform: translateY(-8px);
}

/*=========================
RESPONSIVE
=========================*/

@media (max-width: 991px) {
  .hero {
    height: 650px;
  }

  .hero-content {
    left: 35px;

    right: 35px;

    max-width: 100%;
  }

  .hero h1 {
    font-size: 48px;
  }

  .search-card {
    display: none;
  }

  .search-input {
    display: none;
  }

  .navbar-nav {
    margin-top: 20px;

    margin-bottom: 20px;
  }

  .login-btn {
    margin-left: 0;
  }
}

/*==================================
STATISTIK
==================================*/

.stats-section {
  margin-top: 70px;

  margin-bottom: 80px;
}

.stat-card {
  background: white;

  border-radius: 28px;

  padding: 35px;

  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);

  transition: 0.35s;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-icon {
  width: 75px;

  height: 75px;

  margin: auto;

  border-radius: 50%;

  background: #edf6ee;

  color: #2e7d32;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 30px;

  margin-bottom: 25px;
}

.stat-card h2 {
  font-size: 42px;

  font-weight: 700;

  margin-bottom: 10px;
}

.stat-card p {
  color: #64748b;

  margin: 0;

  font-size: 18px;
}

/*=========================
ABOUT
=========================*/

.about-section {
  padding: 90px 0;
}

.about-image {
  overflow: hidden;

  border-radius: 35px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.about-image img {
  width: 100%;

  height: 600px;

  object-fit: cover;

  transition: 0.5s;
}

.about-image:hover img {
  transform: scale(1.05);
}

.section-badge {
  display: inline-block;

  background: #e8f5e9;

  color: #2e7d32;

  padding: 10px 18px;

  border-radius: 30px;

  font-weight: 600;

  margin-bottom: 18px;
}

.about-info {
  margin-top: 35px;
}

.info-box {
  display: flex;

  gap: 20px;

  margin-bottom: 25px;

  padding: 22px;

  background: white;

  border-radius: 22px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-box i {
  font-size: 28px;

  color: #2e7d32;
}

/*==================================
FEATURE
==================================*/

.feature-section {
  padding: 90px 0;
}

.feature-card {
  background: #fff;

  border-radius: 30px;

  padding: 40px 35px;

  text-align: center;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);

  transition: 0.35s;

  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 90px;

  height: 90px;

  background: #eaf7ee;

  color: #2e7d32;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 38px;

  margin: 0 auto 25px;
}

.feature-card h4 {
  font-weight: 700;

  margin-bottom: 15px;
}

.feature-card p {
  color: #64748b;

  line-height: 1.8;

  margin: 0;
}

/*=============================
UMKM
=============================*/

.umkm-section {
  padding: 100px 0;
}

.umkm-card {
  background: white;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

  transition: 0.35s;

  height: 100%;
}

.umkm-card:hover {
  transform: translateY(-12px);
}

.umkm-card img {
  width: 100%;

  height: 240px;

  object-fit: cover;
}

.umkm-body {
  padding: 25px;
}

.category {
  display: inline-block;

  background: #eaf7ee;

  color: #2e7d32;

  padding: 8px 16px;

  border-radius: 30px;

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 15px;
}

.umkm-body h4 {
  font-weight: 700;

  margin-bottom: 12px;
}

.umkm-body p {
  color: #64748b;

  line-height: 1.7;

  margin-bottom: 20px;
}

.umkm-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.umkm-footer a {
  color: #2e7d32;

  font-weight: 600;
}

/*==================================
GALERI
==================================*/

.gallery-section {
  padding: 100px 0;
}

.gallery-card {
  overflow: hidden;

  border-radius: 30px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  width: 100%;

  height: 320px;

  object-fit: cover;

  transition: 0.5s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/*==================================
CONTACT
==================================*/

.contact-section {
  padding: 100px 0;
}

.contact-item {
  display: flex;

  gap: 20px;

  margin-bottom: 25px;

  padding: 25px;

  background: white;

  border-radius: 25px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.contact-item i {
  font-size: 30px;

  color: #2e7d32;
}

/*==================================
FOOTER
==================================*/

.footer {
  background: #1e293b;

  color: white;

  padding: 70px 0;

  text-align: center;

  margin-top: 80px;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.15);

  margin: 30px 0;
}

/* =========================
   UMKM DYNAMIC
========================= */

.umkm-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.umkm-no-image {
  width: 100%;
  height: 200px;

  background: #e8f5e9;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #2e7d32;

  font-size: 40px;
}

.umkm-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* =========================
   GALERI DINAMIS
========================= */

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 300px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* OVERLAY */

.gallery-overlay {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 50px 20px 20px;

  color: white;

  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));

  opacity: 0;

  transition: 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 11px;
  margin: 0;
  opacity: 0.9;
}

/* =========================
   FEATURE LINK
========================= */

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 15px;

  color: #258235;

  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
}

.feature-link:hover {
  color: #1f6b2b;
}

.feature-link i {
  transition: 0.2s;
}

.feature-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================
   MOBILE UI V1
========================================================== */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 55px 0;
  }

  .container {
    padding: 0 18px;
  }

  /* ======================
NAVBAR
====================== */

  .navbar-custom {
    margin-top: 15px;

    padding: 15px 18px;

    border-radius: 20px;
  }

  .navbar-brand {
    gap: 10px;
  }

  .navbar-brand div:last-child {
    display: none;
  }

  .logo {
    width: 42px;
    height: 42px;
  }

  .navbar-collapse {
    margin-top: 20px;
  }

  .navbar-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 12px 8px;

    border-bottom: 1px solid #eee;
  }

  .search-input {
    display: none;
  }

  .login-btn {
    width: 100%;

    margin: 18px 0 0;

    text-align: center;
  }

  /* ======================
HERO
====================== */

  .hero {
    height: auto;

    min-height: 580px;

    border-radius: 25px;
  }

  .hero-content {
    position: relative;

    left: auto;

    top: auto;

    transform: none;

    max-width: 100%;

    padding: 60px 22px;

    text-align: center;
  }

  .hero-badge {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 36px;

    line-height: 1.25;
  }

  .hero p {
    font-size: 15px;

    line-height: 1.8;
  }

  .hero-btn {
    display: flex;

    flex-direction: column;

    gap: 12px;
  }

  .btn-main,
  .btn-second {
    width: 100%;

    justify-content: center;

    text-align: center;
  }

  /* SEARCH */

  .search-card {
    display: flex;

    position: relative;

    left: auto;

    bottom: auto;

    transform: none;

    width: 100%;

    margin-top: 20px;

    flex-direction: column;

    border-radius: 22px;
  }

  .search-item {
    width: 100%;
  }

  .search-button {
    width: 100%;
  }

  /* ======================
SECTION
====================== */

  .section-title {
    font-size: 30px;
  }

  .section-desc {
    font-size: 15px;

    margin-bottom: 30px;
  }

  /* ======================
ABOUT
====================== */

  .about-image img {
    height: 320px;
  }

  .info-box {
    flex-direction: column;

    text-align: center;
  }

  /* ======================
STATISTIK
====================== */

  .stat-card {
    margin-bottom: 15px;
  }

  /* ======================
FEATURE
====================== */

  .feature-card {
    padding: 28px;
  }

  /* ======================
UMKM
====================== */

  .umkm-section .d-flex {
    flex-direction: column;

    align-items: flex-start !important;

    gap: 20px;
  }

  .umkm-card {
    border-radius: 22px;
  }

  .umkm-card img {
    height: 220px;
  }

  .umkm-footer {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
  }

  /* ======================
GALERI
====================== */

  .gallery-card {
    height: 240px;

    border-radius: 22px;
  }

  /* ======================
CONTACT
====================== */

  .contact-item {
    padding: 18px;
  }

  /* ======================
FOOTER
====================== */

  .footer {
    padding: 45px 20px;
  }
}
