/* ==============================================
  STYLE GUIDE
  ==============================================
  1.  Global Styles & Variables
  2.  Navbar
  3.  Hero Section
  4.  About Section
  5.  Product Section
  6.  Certificates Section
  7.  Contact Section
  8.  Footer
  ==============================================
*/

/* 1. Global Styles & Variables
--------------------------------------------- */
:root {
  --primary: #795757;
  --secondary: #ff6500;
  --bg: #fff0d1;
  --text-dark: #3b3030;
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
}

/* 2. Navbar
--------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7%;
  background-color: rgb(255, 255, 255);
  border-bottom: 1px solid #c9a9a9;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.navbar .navbar-logo img {
  width: 110px;
}

.navbar .navbar-nav a {
  color: var(--text-dark);
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--secondary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: var(--text-dark);
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none; /* Sembunyikan di desktop */
}

/* 3. Hero Section
--------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../aset/header-bg1.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 8%, rgba(255, 255, 255, 0) 50%);
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 4em;
  color: #fff9d6;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.7);
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.4rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 400;
  color: #fff9d6;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.7);
}

.hero .content .cta {
  margin-top: 1.8rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  color: var(--text-light);
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.6);
  transition: background-color 0.2s ease;
}
.hero .content .cta:hover {
  background-color: var(--secondary);
}

/* 4. About Section
--------------------------------------------- */
.about,
.products,
.testimoni,
.kontak {
  padding: 7rem 7% 1.4rem;
}

.about h2,
.products h2,
.testimoni h2,
.kontak h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.about .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about .row .about-img {
  flex: 1 1 30rem;
}

.about .row .about-img img {
  width: 100%;
  border-radius: 1rem;
}

.about .row .content {
  flex: 1 1 35rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
}

.about .visi-misi {
  padding-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.visi-misi .card {
  flex: 1 1 100%; /* Default width for both */
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}
.visi-misi .card:hover {
  transform: translateY(-5px);
}

.visi-misi .card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.visi-misi .card p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 5. Product Section
--------------------------------------------- */
.products {
  background-color: var(--text-dark);
}

.products h2,
.products > p {
  color: var(--bg);
  text-align: center;
}
.products > p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.products .product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.products .product-cards .card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s;
}
.products .product-cards .card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.products .card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.products .card h3 {
  margin: 0.5rem 0; /* Margin atas dan bawah untuk judul */
  color: #743f1b; /* Warna judul produk */
}

.products .card p {
  margin: 0; /* Margin untuk deskripsi dan harga */
  text-align: center;
}
 .products .card .price {
  font-weight: bold; /* Menebalkan teks harga */
  color: #e67e22; /* Warna untuk harga */
}
/* 6. Certificates Section
--------------------------------------------- */
.testimoni .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimoni .card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.testimoni .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimoni .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7. Contact Section
--------------------------------------------- */
.kontak {
  background-color: #fff;
}
.kontak .containers {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.kontak .map {
  flex: 1 1 40rem;
  width: 100%;
  object-fit: cover;
}
.kontak .map iframe {
  width: 100%;
  height: 100%;
}

.kontak .info {
  flex: 1 1 30rem;
  padding: 2rem;
  color: var(--text-dark);
}
.kontak .info h1 {
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-size: 2rem;
}
.kontak .info p {
  margin: 1rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* 8. Footer
--------------------------------------------- */
footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0 3rem;
  margin-top: 3rem;
}

footer .socials {
  padding: 1rem 0;
}

footer .socials a {
  color: var(--text-light);
  margin: 1rem;
  transition: color 0.2s ease;
}

footer .socials a:hover {
  color: var(--secondary);
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  color: var(--text-light);
  padding: 0.7rem 1rem;
  transition: color 0.2s ease;
}

footer .links a:hover {
  color: var(--secondary);
}

footer .credit {
  font-size: 0.8rem;
  color: var(--bg);
}

footer .credit a {
  color: var(--bg);
  font-weight: 700;
}

/* ==============================================
    MEDIA QUERIES (RESPONSIVE)
   ============================================== */

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 80%; /* Sedikit mengecilkan font dasar */
  }

  #hamburger-menu {
    display: inline-block; /* Tampilkan hamburger menu */
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: var(--text-light);
    width: 8rem;
    height: 50vh;
    transition: 0.3s;
    border-left: 1px solid #ccc;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--text-dark);
    display: block;
    margin: 1rem;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }
  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .about .row {
    flex-direction: column;
  }

  .about .row .about-img {
    text-align: center;
  }
  .about .row .about-img img {
    height: auto;
    max-width: 80%;
  }

  .about .row .content {
    padding-top: 1rem;
  }

  .kontak .map {
    height: 300px;
  }
}

/* Mobile Phone */
@media (max-width: 480px) {
  html {
    font-size: 70%;
  }

  .navbar .navbar-logo img {
  width: 60px;
}

  .hero {
  background-image: url("../aset/gambar2.jpg");
  /* background-image: none; */
}

  .hero .content h1 {
    font-size: 3.5em;
  }

  
}

