/* Modern Cafe Website Styles (Revisi) */
:root {
  --coffee: #6f4e37;        /* Warna utama coklat kopi */
  --cream: #f5eee6;         /* Warna krem background */
  --green: #7bb274;         /* Warna aksen hijau */
  --dark: #2d221b;          /* Teks gelap */
  --white: #fff;            /* Putih */
  --shadow: 0 2px 8px rgba(0,0,0,0.08); /* Bayangan lembut */
  --radius: 12px;           /* Sudut rounded default */
  --font-main: 'Poppins', Arial, sans-serif; /* Font utama */
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--coffee);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar nav {
  display: flex;
  gap: 2rem;
}
.navbar nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar nav a:hover {
  color: var(--green);
}
.navbar-logo {
  height: 80px;
  margin-right: 15px;
  vertical-align: middle;
}
@media (max-width: 750px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .navbar-logo {
    margin: 0 0 12px 0;
    display: block;
    height: 80px;
    max-width: 100vw;
  }
}

/* ---------------- HERO ---------------- */
.hero {
  min-height: 75vh;
  background: url('assets/header_pinisi.jpeg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 2rem;
  color: var(--white);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: #2f221b73;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 65ch;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ---------------- BUTTON ---------------- */
.btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  background: var(--coffee);
}

/* ---------------- BEST SELLER ---------------- */
.best-seller-title {
  text-align: center;
  color: #7a4f10; /* sedikit lebih gelap biar kontras */
  padding: 10px 2px;
  margin: 10px auto;
  font-weight: bold;
  max-width: 90%;
  font-size: 2rem;
}

/* ---------------- HIGHLIGHT CARDS ---------------- */
.highlights {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  width: 210px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.highlight-card img {
  width: 12rem;
  object-fit: cover;
  border-radius: 55%;
  margin-bottom: 1rem;
}
@media (max-width: 450px) {
  .highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    justify-content: center;
    align-items: stretch;
    margin: 1rem 0;
    padding: 0 0.5rem;
  }
  .highlight-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    padding: 1rem 0.5rem;
  }
  .highlight-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 55%;
    display: block;
  }
}

/* ---------------- ABOUT SECTION ---------------- */
.about-section {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; margin: 3rem 0; padding: 0 2rem;
}
.about-section img {
  width: 350px; border-radius: var(--radius);
  box-shadow: var(--shadow); flex-shrink: 0;
}
.about-section .about-text {
  flex: 1; min-width: 250px;
}

/* ---------------- MENU GALLERY ---------------- */
.menu-title {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
  color: #333;
}
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}
@media (max-width: 600px) {
  .menu-gallery {
    grid-template-columns: 1fr;
  }
}
.menu-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.menu-item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
}
.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---------------- GALERI ---------------- */
.galeri-title {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
  color: #333;
}
.galeri-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}
@media (max-width: 600px) {
  .galeri-gallery {
    grid-template-columns: 1fr;
  }
}
.galeri-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.galeri-item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
}
.galeri-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---------------- GALERI SLIDER ---------------- */
.galeri-slider-section {
  margin: 2.5rem auto;
  max-width: 1200px; /* diperbesar biar muat 5 */
}

.galeri-slider-container {
  overflow: hidden;
  width: 100%;
}

.galeri-slider {
  display: flex;
  transition: transform 0.5s ease;
}

/* Default desktop: 5 slide */
.galeri-slide {
  flex: 0 0 20%; /* 5 gambar dalam 100% */
  padding: 12px;
  box-sizing: border-box;
}

.galeri-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Tablet: 3 slide */
@media (max-width: 1024px) {
  .galeri-slide {
    flex: 0 0 33.33%;
  }
}

/* Mobile: 2 slide */
@media (max-width: 600px) {
  .galeri-slide {
    flex: 0 0 50%;
    padding: 8px;
  }

  .galeri-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .galeri-arrow-left {
    left: 8px;
  }

  .galeri-arrow-right {
    right: 8px;
  }
}


/* DESKTOP: pointer disable kecuali panah */
@media (min-width: 601px) {
  .galeri-slider {
    pointer-events: none;
  }
  .galeri-arrow {
    pointer-events: auto;
  }
}

.galeri-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.galeri-arrow {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  color: #6f4e37;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.galeri-arrow:hover {
  background: #7bb274;
  color: #fff;
}

/* --- MOBILE: Panah ngambang di tengah kanan–kiri gambar --- */
@media (max-width: 600px) {
  .galeri-slider-wrapper {
    position: relative;
  }
  .galeri-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .galeri-arrow-left {
    left: 8px;
  }
  .galeri-arrow-right {
    right: 8px;
  }
  .galeri-slider {
    margin-top: 0;
  }
}


/* ---------------- CONTACT ---------------- */
.contact-section {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin: 3rem 0; padding: 0 2rem;
}
.contact-form {
  flex: 1; min-width: 250px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}
.contact-form label {
  display: block; margin-bottom: 0.5rem; font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-main);
  transition: all 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 178, 116, 0.3);
}
.contact-form button {
  width: 100%;
}
.contact-info {
  flex: 1; min-width: 250px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.contact-info iframe {
  width: 100%; height: 180px; border: none; border-radius: var(--radius);
}
.social-links {
  display: block; margin-top: 0.5rem;
}
.social-links a {
  color: var(--coffee); font-size: 1.1rem;
  transition: color 0.2s; margin: 0 0.7em 0 0;
  display: inline-flex; align-items: center;
  text-decoration: none; gap: 0.4em;
}
.social-links a:hover {
  color: var(--green);
}

/* ---------------- FOOTER ---------------- */
footer {
  background: var(--coffee); color: var(--white);
  text-align: center; padding: 1.2rem 0 0.7rem;
  margin-top: 3rem;
}
footer .social-links {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .about-section, .contact-section {
    flex-direction: column; align-items: stretch;
  }
  .about-section img {
    width: 100%; max-width: 350px; margin: 0 auto;
  }
}
