/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background: #fff;
  padding-top: 60px; /* ruang agar konten tidak tertutup header */
  overflow-x: hidden;
}
h1, h2, h3 {
  color: #0d7c8c;
  margin-bottom: 10px;
}
p {
  line-height: 1.5;
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d7c8c;
  color: #fff;
  z-index: 2000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 10px 25px;
  position: relative;
}
.logo {
  height: 45px;
}

/* === NAVBAR (DESKTOP) === */
.navbar {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}
.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar a:hover,
.navbar a.active {
  color: #ffebc6;
}

/* === HAMBURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3000;
}
.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

/* === RESPONSIVE NAVBAR === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .navbar {
    position: absolute;
    top: 60px;
    right: 0;
    background: #0d7c8c;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }
  .navbar.active {
    max-height: 400px;
    opacity: 1;
  }
  .navbar a {
    width: 100%;
    padding: 12px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

/* === HERO === */
.hero {
  position: relative;
  color: white;
  text-align: center;
  background: url("images/torsada-online-shopping-concept.jpg") center/cover no-repeat fixed;
  min-height: 400px;
  overflow: hidden;
  animation: heroFadeIn 1.2s ease-out; 
}
.about-hero {
  position: relative;
  color: white;
  text-align: center;
  background: url("images/torsada-tentang-kami.jpg") center/cover no-repeat fixed;
  min-height: 400px;
  overflow: hidden;
  animation: heroFadeIn 1.2s ease-out;
}
.faq-hero {
  position: relative;
  color: white;
  text-align: center;
  background: url("images/torsada-engineer-illustrator.jpg") center/cover no-repeat fixed;
  min-height: 400px;
  overflow: hidden;
  animation: heroFadeIn 1.2s ease-out;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 185px 20px;
  position: relative;
  z-index: 1;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1.05); }
}

/* === SECTIONS === */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8em;
}

/* === GRID LAYOUT === */
.grid-3, .grid-3, .grid-4 {
  display: grid;
  gap: 25px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* === CARD === */
.card {
  background: white;
  border: 2px solid #0d7c8c;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.price {
  color: #0d7c8c;
  font-weight: bold;
}
.strike {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9em;
}
.order-btn {
  background: #0d7c8c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}
.order-btn:hover {
  background: #0b6878;
}

/* === FORM ORDER === */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}
form input, form select, form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
form button {
  background: #0d7c8c;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #0b6878;
}

/* === ABOUT PAGE === */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.about-image {
  max-width: 100%;
  height: auto; /* Maintains aspect ratio */
  display: block; /* Helps with layout control */
  flex: 1 1 400px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.about-text {
  flex: 1 1 500px;
}
.about-text ul {
  margin: 15px 0 15px 25px;
  line-height: 1.7;
}

/* === FAQ === */
.faq-item {
  margin-bottom: 15px;
}
.faq-question {
  display: flex;
  align-items: center;
  background: #0d7c8c;
  color: white;
  border: none;
  border-radius: 5px;
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-question:hover {
  background: #0b6878;
}
.faq-question .icon {
  margin-right: 10px;
  font-weight: bold;
  font-size: 20px;
  width: 20px;
  text-align: center;
  transition: transform 0.3s;
}
.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  background: #f7f9fa;
  border-left: 5px solid #0d7c8c;
  padding: 15px 20px;
  border-radius: 0 0 5px 5px;
  animation: fadeIn 0.3s ease;
}
.faq-item.active .faq-answer {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* gambar dan teks */
.image-container {
  display: flex;
  flex-direction: column; /* Default: susun elemen secara vertikal (1 kolom) */
  gap: 20px; /* Jarak antara gambar dan teks */
  padding: 20px;
}

.kolom-gambar img {
  max-width: 100%; /* Pastikan gambar responsif */
  height: auto;
  display: block; /* Menghilangkan spasi ekstra di bawah gambar */

}

/* Media query untuk layar yang lebih lebar (misalnya, lebar minimal 768px) */
@media (min-width: 768px) {
  .image-container {
      flex-direction: row; /* Ubah menjadi horizontal (2 kolom) di desktop */
      align-items: center; /* Meratakan item secara vertikal di tengah */
  }

  .kolom-gambar, .kolom-teks {
      flex: 1; /* Memberi ruang yang sama untuk setiap kolom (50% lebar) */
  }

  .kolom-gambar {
      padding-right: 20px; /* Tambahkan sedikit jarak di sisi kanan gambar */
  }
}

/* === FOOTER === */
footer {
  background: #0d7c8c;
  color: white;
  text-align: center;
  padding: 30px 10px;
  font-size: 14px;
}
.background-header {
  max-width: 10%; /* Memastikan gambar tidak melebihi lebar layar/kontainer */
  height: auto;    /* Mempertahankan rasio aspek gambar secara otomatis */
  display: block;    /* Mengubah gambar menjadi elemen blok */
  margin-left: auto; /* Margin kiri otomatis */
  margin-right: auto;/* Margin kanan otomatis */    
}
.img-tanapakotak {
  max-width: 100%;
  height: auto;
  display: block; /* Memastikan pemusatan berfungsi */
  margin: auto;   /* Memastikan pemusatan berfungsi */

  /* Properti baru untuk sudut bulat (rounded corners) */
  border-radius: 15px; /* Contoh: membuat sudut melengkung 15 piksel */
}