:root {
  --accent: #83B54A; /* deep grape-brown */
  --accent-2: #7bb26b;
  --bg: #fcfbf8;
  --muted: #6b6b6b;
  --container: 1100px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;

  max-width: 100%;
  overflow-x: hidden;
  position: relative;

}

body {
  margin: 0;
  min-height: 100vh; /* Set tinggi minimum body sebesar viewport height */
  display: flex;          /* Aktifkan flexbox pada body */
  flex-direction: column; /* Susun elemen-elemen dalam body secara vertikal */


  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: var(--bg);
  color: #222;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem;
}

.paragraf {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.1rem 1.25rem;
}

.paragraf-galeri {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.1rem 1.25rem;
  margin-bottom: 20px;
}

p.artikel{
  color: #134E27;
}

p.light, li.light {
  color:#fff
}

h2.light {
  color: #D1F297;
}

.artikel {
  padding-top: 0px;
  padding-bottom: 20px;
  background: #fff;
}

.galeri {
  padding-top: 0px;
  padding-bottom: 20px;
  background: #fff;
}

.site-header {
  background-color: #4CA35E;
  border-bottom: 3px solid #297943;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.logo {
  fill: var(--accent);
}

h1.logo {
  color: #FFDF5A;
  font-size: 27px; /* Sedikit disesuaikan agar proporsional */
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
  line-height: 1; /* Mengurangi tinggi baris agar teks lebih rapat */
  white-space: nowrap; /* Mencegah teks turun ke baris baru */
}

h2.logo {
  color: #D1F297;
  font-size: 12px; /* Sedikit disesuaikan agar proporsional */
  font-weight: 300;
  margin: 0;
  line-height: 1; /* Mengurangi tinggi baris agar teks lebih rapat */
  white-space: nowrap; /* Mencegah teks turun ke baris baru */
  font-style: italic
}

.nav {
  display: flex;
  gap: 0.5 rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  padding: .4rem .6rem;
  color: #D1F297;
  position: relative; /* Diperlukan untuk memposisikan garis bawah */
  transition: color 0.2s ease;
}

/* Garis pemisah vertikal untuk menu desktop */
.nav a:not(:last-child):not(.btn-outline) {
  padding-right: 1rem;
}

/* Menggunakan pseudo-element untuk garis vertikal yang lebih pendek */
.nav a:not(:last-child):not(.btn-outline)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50%; /* Tinggi garis 50% dari tinggi tombol menu */
  width: 1px;
  background-color: rgba(209, 242, 151, 0.3);
}

/* Membuat garis bawah menggunakan pseudo-element */
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; /* Posisi di bawah teks */
  left: 0;
  width: 100%;
  height: 3px; /* Ketebalan garis */
  background-color: #fff;
  transform: scaleX(0); /* Awalnya garis tidak terlihat */
  transform-origin: center; /* Animasi dimulai dari tengah */
  transition: transform 0.3s ease-out; /* Transisi animasi */
}

.nav a:hover::after {
  transform: scaleX(1); /* Garis muncul saat di-hover */
}

.nav .btn-outline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none; /* Menghilangkan outline */
  padding: .3rem .6rem;
  color: #D1F297;
  border-radius: 10px;
}

.nav .btn-outline img {
  height: 16px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 30px; /* Lebar area tombol */
  height: 24px; /* Tinggi area tombol */
  position: relative;
  z-index: 1001; /* Pastikan di atas menu */
}

/* Hero */
.hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(107, 62, 43, 0.06), transparent);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: -10px;
  margin-bottom: -10px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 27px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.hero-text h2 {
  margin-top: -15px;
  font-size: 20px;
}

.hero-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cta-group {
  display: flex;
  gap: .75rem;
}

.btn-primary {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  flex: 1;
}

.btn-primary {
  /* Menambahkan properti ini agar berlaku juga untuk elemen <button> */
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #64A65B;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #83B54A;;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #134E27;
  text-align: center;
  flex: 1;
}

.btn-ghost:hover {
  background: #D1F297;
}

.btn-centered {
  display: block;
  margin: 1.5rem auto 0; /* Jarak atas, rata tengah horizontal, jarak bawah */
  flex: none; /* Meng-override flex: 1 dari .btn-primary */
  width: fit-content; /* Lebar tombol menyesuaikan konten */
  margin-top: 50px;
}

.btn-centered a {
  color:#fff
}

.hero-image {
  flex: 1;
  height: 260px;
  width: 100%;
  min-height: 300px; /* Menambahkan tinggi minimum untuk tampilan mobile */
  background-image: url('images/anggur2.png');
  background-size: cover; /* Mengubah agar gambar mengisi div dan terpotong oleh border-radius */
  background-repeat: no-repeat; /* Mencegah gambar berulang */
  background-position: center;
  border-radius: var(--radius); /* Menggunakan variabel radius untuk konsistensi */
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
  /* box-shadow: 0 8px 20px rgba(11, 12, 0, 0.06); */
}

.hero-socials {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-socials a {
  color: var(--muted);
  display: inline-flex; /* Helps with vertical alignment */
  align-items: center;
  transition: transform 0.2s ease-out;
  position: relative; /* Diperlukan untuk memposisikan tooltip */
}

/* Tooltip style */
.hero-socials a::after {
  content: attr(aria-label); /* Mengambil teks dari atribut aria-label */
  position: absolute;
  bottom: calc(100% + 5px); /* Posisi di atas ikon + 5px jarak */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap; /* Mencegah teks turun baris */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.hero-socials a:hover {
  transform: translateY(-3px);
}

.hero-socials img {
  width: 30px;
  height: 30px;
}

.hero-socials a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Sections */
.section {
  padding: .25rem 0;
}

.section.alt {
  background: #D1F297;  /*blok kontak */
  margin-top: 30px;
  padding-bottom: 30px;
}

.split {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.split>div {
  flex: 1;
}

.contact .split > div {
  /* Penyesuaian agar bisa menjadi 3 kolom */
  width: 32%;
  flex: 1 1 300px; /* Basis flex untuk responsivitas */
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
}

.card.black {
  background: #D1F297;
  color: #222;
  text-align: center;
}

hr {
  border: none;
  height: 3px;
  background-color: #297943;
  margin: 1.5rem 0;
}

.hr-line-kontak {
  border: none;
  height: 1px;
  background-color: #297943;
  margin: 1.5rem 0;
}

.features {
  padding-left: 1rem;
}

.features li {
  margin: .4rem 0;
}

.link {
  text-decoration: none;
  color: #D1F297;
}

.muted {
  color: var(--muted);
  font-size: .95rem;
}

/* Grid products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 1rem;
  margin-top: 1rem;
}

.product {
  background: #D1F297;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 2rem;
}

.product img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out; /* Menambahkan transisi agar zoom mulus */
}

.product:hover img {
  transform: scale(1.1); /* Efek zoom saat kartu produk di-hover */
}

.product h4 {
  margin: .6rem 0 0;
}

h1.intro, h2.intro {
  color: #297943;
}

h2.center  {
  background-color: #fff;
  color: #FE7223; /* Mengubah warna teks menjadi putih agar terbaca di atas background gelap */
  text-align: left;
  padding: 0.5rem 0; /* Menambahkan ruang di dalam background */
  margin-bottom: 1.5rem; /* Menambah jarak dengan grid produk di bawahnya */
  display: flex; /* Mengaktifkan flexbox */
  align-items: stretch; /* Membuat item flex (termasuk ::after) meregang setinggi kontainer */
  gap: 1rem; /* Memberi jarak antara teks dan garis */
}

h2.center::after {
  content: '';
  flex-grow: 1; /* Membuat elemen ini mengisi sisa ruang */
  border-bottom: 3px solid #FE7223; /* Menggambar garis di bagian bawah pseudo-element */
  margin-bottom: 0.8em; /* Menyesuaikan posisi vertikal garis agar di tengah teks */
}

h2.artikel  {
  background-color: #fff;
  color: #FE7223; /* Mengubah warna teks menjadi putih agar terbaca di atas background gelap */
  text-align: left;
  padding: 0.5rem 0; /* Menambahkan ruang di dalam background */
  margin-bottom: 1.5rem; /* Menambah jarak dengan grid produk di bawahnya */
  display: flex; /* Mengaktifkan flexbox */
  align-items: stretch; /* Membuat item flex (termasuk ::after) meregang setinggi kontainer */
  gap: 1rem; /* Memberi jarak antara teks dan garis */
}

h2.artikel::after {
  content: '';
  flex-grow: 1; /* Membuat elemen ini mengisi sisa ruang */
  border-bottom: 3px solid #FE7223; /* Menggambar garis di bagian bawah pseudo-element */
  margin-bottom: 0.8em; /* Menyesuaikan posisi vertikal garis agar di tengah teks */
}

h3.jam, p.jam {
  color: #134E27;
}

.price {
  color: #64A65B;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  margin-top: 0.5rem;
}

.btn-gofood {
  display: inline-block;
  background-color: #83B54A;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  flex: 1;
}
.btn-gofood:hover {
  background-color: #64A65B;
}

.section#about {
  background-color: #64A65B;
  color: #fff;
  padding: 1rem
}

/* Masonry gallery */
.masonry {
  display: flex;
  gap: 10px;
}

.masonry-item {
  flex: 1 1 33%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative; /* Diperlukan untuk positioning caption */
  overflow: hidden; /* Memastikan caption tidak keluar dari border-radius */
  transition: transform 0.3s ease-in-out; /* Menambahkan transisi halus */
}

.masonry-item:hover {
  transform: scale(1.05); /* Efek zoom saat hover */
}

.masonry-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.9rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.masonry-item:hover .masonry-caption {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1000;
}

.contact p, .contact a {
  color: #297943;
  font-weight: 500; /* Sedikit menebalkan teks agar lebih mudah dibaca */
}
.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #297943;
}
.contact h3 {
  color: #297943;
  margin-top: 0;
  border-bottom: 2px solid #297943;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.lightbox.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
  border-radius: 8px;
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: .95rem;
}

.contact-form input,
.contact-form textarea {
  padding: .6rem;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.map-placeholder {
  height: 300px; /* Menyesuaikan tinggi agar peta lebih terlihat */
  border-radius: 8px;
  overflow: hidden; /* Memastikan peta mengikuti border-radius */  
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
}

.food-delivery {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.delivery-logo {
  height: auto;
  width: 90%;
  margin-bottom: 1rem;
}
.food-delivery .btn-primary {
  width: 90%; /* Menyamakan lebar tombol */
  margin-top: auto; /* Mendorong tombol ke bagian bawah kartu */
  color: #fff;
}
/* Footer */
.site-footer {
  padding: 0 0;
  background: #4CA35E;
  margin-top: auto;        /* Dorong footer ke bagian bawah */
  border-top: 3px solid #297943;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 300;
  font-size: 14px;
  text-align: center;
}

.footer-inner a{
  text-decoration: none;
  color: #fff;
}

/* To-Top Button */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #297943;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s ease;
  z-index: 999;
}

.to-top.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.btn-whatsapp,
.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Memusatkan konten di dalam tombol */
  gap: 10px;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  width: 300px; /* Menetapkan lebar yang sama */
  box-sizing: border-box;
}

.btn-whatsapp img,
.btn-email img {
  height: 24px;
  width: 24px;
}

.btn-whatsapp {
  background-color: #1DA851;
}
.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-email {
  background-color: #4b5563;
}
.btn-email:hover {
  background-color: #6b7280; /* Warna abu-abu lebih gelap saat hover */
}

/* Promo Popup */
.promo-popup {
    /* Posisi diatur oleh container */
    position: absolute;
    bottom: 0;
    right: 0;
    background: #203D43;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 320px;
    width: calc(100vw - 40px); /* Lebar popup di mobile */
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.promo-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.promo-popup p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

#closePromo {
    background: #DC4E4E;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closePromo:hover {
    background: #c74242; /* A slightly darker shade of primary */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-link {
    color: #F8C674;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.popup-link:hover {
    color: white;
    text-decoration: underline;
}

.promo-popup p {
    font-size: 14px;
    text-align: center;
}

/* Wadah untuk elemen fixed */
.fixed-elements-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    margin-top: -50px;
  }

  .hero-text h1 {
    margin-top: 0px;
    margin-bottom: 10px;
  }

  .hero-text h2 {
    margin-top: -15px;
    margin-bottom: 10px;
  }

  .split {
    flex-direction: column;
  }

  .contact .split > div {
    width: 100%; /* Mengembalikan lebar penuh untuk mobile */
  }

  /* Masonry gallery */
.masonry {
  display: flex;
  flex-wrap: wrap; /* Izinkan item untuk pindah ke baris baru */
  gap: 10px;
}

.masonry-item {
  flex-basis: calc(50% - 5px); /* Set lebar dasar 50% dikurangi setengah gap */
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative; /* Diperlukan untuk positioning caption */
  overflow: hidden; /* Memastikan caption tidak keluar dari border-radius */
  transition: transform 0.3s ease-in-out; /* Menambahkan transisi halus */
}
}

@media (max-width: 700px) {
  .header-inner {
    padding: 0.5rem 20px;
  }

  .product img {
    height: 250px;
  }

  .nav {
    position: absolute;
    right: 1rem;
    top: 74px; /* Sedikit jarak dari header */
    background: #297943;
    padding: 1.5rem; /* Padding di dalam dropdown */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
    z-index: 1000; /* Pastikan menu di atas konten lain */
  }

  /* Menambahkan garis pemisah antar menu di mobile */
  .nav a:not(:last-child) {
    border-bottom: 1px solid rgba(209, 242, 151, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  /* Menghilangkan garis vertikal dari desktop di tampilan mobile */
  .nav a:not(:last-child):not(.btn-outline)::before {
    display: none; /* Sembunyikan pseudo-element garis di mobile */
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-toggle {
    display: block;
  }

  .hamburger-bar {
    display: block;
    width: 100%;
    height: 3px; /* Ketebalan garis */
    background-color: #D1F297;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-bar:nth-child(1) {
    top: 0;
  }

  .hamburger-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-bar:nth-child(3) {
    bottom: 0;
  }

  .nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}
