/* === SECTION PRODUCT === */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --main-font: "Poppins", sans-serif;
  --primary: #193662;
}

body {
  font-family: var(--main-font);
  padding-top: 120px;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 40px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(25, 54, 98, 0.5);
}

.navbar img {
  height: 65px;
  width: auto;
}

/* === Menu navbar (desktop) === */
.navbar .navbar-nav {
  display: flex;
  align-items: center;
}

.navbar .navbar-nav a {
  display: flex;
  position: relative;
  color: #193662;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 1rem;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.navbar .navbar-nav a:hover {
  color: #dc710c;
}

/* animasi garis bawah saat hover */
.navbar .navbar-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar .navbar-nav a:hover::after {
  width: 100%;
}

.navbar-extra a {
  font-size: 1.4rem;
  margin-left: 15px;
}

.navbar .navbar-extra a {
  color: var(--primary);
  margin: 0 0.5rem;
  font-weight: 500;
}

.navbar .navbar-extra a:hover {
  color: #dc710c;
}

/* === Hamburger button === */
#hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: #193662;
  background: none;
  border: none;
}

#hamburger-menu:hover {
  color: #dc710c;
  transition: color 0.3s ease;
}

/* === Responsive (tablet & HP) === */
@media (max-width: 992px) {
  #hamburger-menu {
    display: inline-block;
  }

  /* Sembunyikan menu default */
  .navbar .navbar-nav {
    position: fixed;
    top: 58%;
    left: -100%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 250px;
    height: auto;
    padding: 40px 20px;
    gap: 15px;
    text-align: center;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.4s ease;
    z-index: 9998;
  }

  /* Saat aktif (hamburger diklik) */
  .navbar .navbar-nav.active {
    left: 0;
  }

  /* Styling link di mobile */
  .navbar .navbar-nav a {
    display: block;
    margin: 0.5rem 0;
    color: #193662;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }

  /* Animasi garis hover tetap ada */
  .navbar .navbar-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
  }

  .navbar .navbar-nav a:hover::after {
    width: 100%;
  }
}

/* Wrapper agar title dan tombol back sejajar */
.title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  margin: 40px 0 20px;
  justify-content: center;
  margin-top: 60px;
}

/* Tombol Back */
.back-button {
  display: flex;
  left: 2rem;
  top: 50%;
  align-items: center;
  gap: 6px; /* biar lebih imut */
  cursor: pointer;
  color: #193662;
  font-weight: 600; /* BOLD */
  font-size: 0.95rem; /* sedikit imut */
  padding: 6px 10px; /* biar terasa tombol */
  border-radius: 8px;
  transition: 0.25s ease;
  transform: translateY(-50%);
  position: absolute;
}

.back-button i {
  width: 20px;
  height: 20px; /* icon diperkecil */
}

/* Hover efek imut */
.back-button:hover {
  color: #dc710c;
  background-color: rgba(220, 113, 12, 0.1);
  transform: translateX(-3px);
}

/* Title styling tetap rapi */
.title-row h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #193662;
  text-align: center;
  z-index: 3;
}

.brother-section {
  padding: 10px 10px;
  background-color: #ffffff;
  text-align: center;
}
.brother-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #002b45;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* === CONTAINER UTAMA === */
.product-page {
  display: flex;
  justify-content: center;
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
  background-color: #ffffff;
  text-align: center;
}

/* === GRID PRODUK (KANAN) === */
.product-grid {
  display: grid;
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  grid-template-columns: repeat(auto-fill, 230px);
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

/* === KARTU PRODUK === */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  max-width: 230px;
  align-items: center;
  width: 200px;
  height: auto;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === GAMBAR PRODUK === */
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}

/* === NAMA PRODUK === */
.product-card h3 {
  font-size: 1rem;
  color: #002b45;
  margin-bottom: 0px;
  font-weight: 600;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */

html,
body {
  margin: 0;
  min-height: 100%;
  display: block;
}

.footer {
  background-color: #063a54;
  color: #fff;
  padding: 60px 10%;
  font-family: "Poppins", sans-serif;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-info,
.footer-office {
  flex: 1 1 300px;
}

.footer h3 {
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.footer h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #ff7f32;
  margin-top: 5px;
}

.footer-column h3 {
  font-weight: 600;
  position: relative;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.footer-column h4 {
  margin-top: 10px;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.footer-contact a:hover {
  color: #ff7f32;
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 127, 50, 0.18);
}

.footer-contact a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  padding: 3px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bbb;
}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.my-float {
  margin-top: 16px;
}

/* 💻 Desktop */
@media (min-width: 993px) {
  .footer-container {
    text-align: left;
  }
  .footer-contact {
    justify-content: flex-start;
  }
}

/* 📱 Tablet */
@media (max-width: 992px) {
  .footer-container {
    text-align: left;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}

/* 📱 Mobile */
@media (max-width: 600px) {
  .footer-container {
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-contact a {
    padding: 8px 14px;
    font-size: 14px;
  }
}
