/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #3d3d3d;
  background: #fff9f2;
  line-height: 1.7;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #3c2a1d;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0e3d3;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #3c2a1d;
}

.logo span {
  color: #e07b39;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-weight: 600;
}

.nav-links a {
  color: #5b4632;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e07b39;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #3c2a1d;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 70px;
  background: linear-gradient(135deg, #fff9f2 0%, #ffe8d6 100%);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #e07b39;
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #e07b39;
}

.hero-text p {
  font-size: 1.1rem;
  color: #6b5540;
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.btn-primary {
  background: #e07b39;
  color: #fff;
}

.btn-primary:hover {
  background: #c96a2b;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #e07b39;
  border-color: #e07b39;
}

.btn-outline:hover {
  background: #e07b39;
  color: #fff;
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats div {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #3c2a1d;
}

.hero-stats span {
  font-size: 0.85rem;
  color: #8a705a;
}

.hero-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(60, 42, 29, 0.15);
}

.hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ===== SECTION ===== */
.section {
  padding: 75px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 45px;
}

.section-tag {
  display: inline-block;
  color: #e07b39;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-head p {
  color: #7a624d;
}

/* ===== KATEGORI ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cat-card {
  text-align: center;
  background: #fff;
  border: 1px solid #f0e3d3;
  border-radius: 20px;
  padding: 35px 25px;
  cursor: pointer;
  transition: all 0.3s;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(224, 123, 57, 0.15);
  border-color: #e07b39;
}

.cat-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.cat-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cat-card p {
  color: #7a624d;
  margin-bottom: 18px;
}

.cat-btn {
  color: #e07b39;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== FILTER ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #e0d0bd;
  background: transparent;
  color: #6b5540;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #e07b39;
  color: #e07b39;
}

.filter-btn.active {
  background: #e07b39;
  border-color: #e07b39;
  color: #fff;
}

/* ===== RESEP GRID ===== */
.resep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.resep-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(60, 42, 29, 0.08);
  transition: all 0.3s;
  border: 1px solid #f0e3d3;
}

.resep-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(60, 42, 29, 0.15);
}

.resep-card-img {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.resep-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.resep-card:hover .resep-card-img img {
  transform: scale(1.08);
}

.resep-card-img .badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(224, 123, 57, 0.92);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.resep-card-body {
  padding: 20px;
}

.resep-card-body h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.resep-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #8a705a;
  margin-bottom: 12px;
}

.resep-desc {
  font-size: 0.9rem;
  color: #7a624d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resep-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0d0bd;
}

.resep-details h5 {
  color: #3c2a1d;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.resep-details .bahan-list {
  font-size: 0.85rem;
  color: #7a624d;
  margin-bottom: 10px;
  line-height: 1.6;
  white-space: pre-line;
}

.resep-details .cara-list {
  font-size: 0.85rem;
  color: #7a624d;
  line-height: 1.6;
  white-space: pre-line;
}

.resep-details .karya {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #e07b39;
  font-weight: 700;
  font-style: italic;
}

/* ===== GALERI ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.tall {
  grid-row: span 2;
  height: auto;
}

.gallery-item .g-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 25px 15px 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== BERBAGI FORM ===== */
.berbagi-wrap {
  max-width: 720px;
}

.berbagi-form {
  background: #fff;
  border: 1px solid #f0e3d3;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 35px rgba(60, 42, 29, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #3c2a1d;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #e8dac8;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: #3d3d3d;
  background: #fffaf5;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e07b39;
  background: #fff;
}

.form-group.half {
  display: inline-block;
  width: calc(50% - 10px);
}

.form-group.half:first-of-type {
  margin-right: 16px;
}

.form-note {
  margin-top: 15px;
  text-align: center;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  display: none;
}

.form-note.success {
  display: block;
  background: #e8f7ee;
  color: #1c7c3f;
}

.form-note.error {
  display: block;
  background: #fdecec;
  color: #b42a2a;
}

/* ===== KOMUNITAS ===== */
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #8a705a;
  padding: 30px;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
  background: #3c2a1d;
  color: #d9c6b0;
  padding-top: 60px;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #d9c6b0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #e07b39;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-img img {
    height: 320px;
  }

  .categories,
  .resep-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff9f2;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #f0e3d3;
    transform: translateY(-150%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .categories,
  .resep-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 200px;
  }

  .berbagi-form {
    padding: 25px 20px;
  }

  .form-group.half {
    width: 100%;
    margin-right: 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
}
