/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fffaf3;
  color: #333;
  line-height: 1.6;
}

/* ================= HEADER ================= */

header {
  background: linear-gradient(135deg, #d62828, #f77f00);
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.logo {
  color: white;
  font-size: 1.7rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* ================= NAVBAR ================= */

nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* hover */
nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

/* active */
nav a.active {
  background: white;
  color: #d62828;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ================= HERO ================= */

/* ================= HERO ================= */

.hero {
  position: relative;

  width: 100%;

  height: 100vh;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.35);

  z-index: 1;
}

/* content */
.hero-content {
  position: relative;

  z-index: 2;

  text-align: center;

  color: white;

  padding: 20px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-content p {
  max-width: 650px;
  margin: auto;
  margin-bottom: 30px;
}

/* ================= BUTTON ================= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #d62828, #f77f00);
  color: white;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(214, 40, 40, 0.25);
}

/* ================= SECTION ================= */

.section {
  padding: 30px 8%;
  text-align: center;
}

.section h1,
.section h2 {
  font-family: "Playfair Display", serif;
  color: #b22222;
  margin-bottom: 20px;
}

.section p {
  max-width: 800px;
  margin: auto;
  color: #555;
}

/* ================= CARDS ================= */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 35px;
}

.card {
  width: 280px;
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
}

.card h3 {
  color: #b22222;
  margin-bottom: 10px;
}

.price {
  margin: 15px 0;
  color: #2e7d32;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ================= ABOUT ================= */

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.about-text,
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ================= FORM ================= */

form {
  max-width: 650px;
  margin: auto;
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: left;
}

form label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #f77f00;
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.12);
}

.radio-group,
.checkbox-group {
  margin-top: 8px;
  line-height: 2;
}

.radio-group input,
.checkbox-group input {
  width: auto;
  margin-right: 8px;
}

form button {
  margin-top: 25px;
  width: 100%;
}

/* ================= FOOTER ================= */

footer {
  background: #8b1e1e;
  color: white;
  margin-top: 60px;
}

.footer-container {
  padding: 30px 8%;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 50px;
  align-items: start;
}

/* kiri */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* kanan */
.footer-right {
  width: 100%;
}

.footer-box h3,
.footer-right h3 {
  margin-bottom: 12px;
  color: #ffd166;
  font-family: "Playfair Display", serif;
}

.footer-box p {
  color: #f1f1f1;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* FORM */

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: "Poppins", sans-serif;
}

.footer-form textarea {
  min-height: 130px;
  resize: none;
}

.footer-form button {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  background: #f77f00;
  color: white;
  transition: 0.3s;
}

.footer-form button:hover {
  background: #ff9d2f;
}

/* copyright */

.footer-bottom {
  text-align: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */

/* tablet */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-top: 15px;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-left {
    grid-template-columns: 1fr;
  }

  .footer-right {
    width: 100%;
  }
}

/* mobile */
@media (max-width: 768px) {
  header {
    padding: 18px 20px;
    justify-content: center;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  /* NAVBAR PINDAH KE BAWAH */
  nav {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;

    width: 95%;
    max-width: 430px;
    padding: 10px;

    border-radius: 25px;

    /* transparan */
    background: rgba(255, 255, 255, 0.18);

    /* blur */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    z-index: 9999;
  }

  nav a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.7rem;
    border-radius: 16px;
    color: #fa921a;
  }

  /* hover */
  nav a:hover {
    background: rgba(111, 0, 255, 0.2);
    border-radius: 16px;
  }

  /* active */
  nav a.active {
    background: white;
    color: #ff8800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  }
  .hero {
    height: 45vh;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 330px;
  }

  .section {
    padding: 50px 20px;
  }

  form {
    padding: 25px;
  }

  /* kasih ruang supaya footer/content ga ketutup navbar */
  body {
    padding-bottom: 95px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* very small mobile */
@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  nav a {
    width: 100%;
  }
}
