:root {
  --primary: #038aac;
  --secondary: #b58b00;
  --bg: #f7f7f7;
  --text: #333;
  --light: #ffffff;
}

/* RESET & GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* HEADER & NAVBAR */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 60px;
    right: 15px;
    background: var(--primary);
    flex-direction: column;
    padding: 10px 15px;
    display: none;
  }

  nav ul.show {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

/* HERO (Homepage) */
.hero {
  background: linear-gradient(135deg, #0164c7, #111827);
  color: #fff;
  padding: 60px 0 50px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 280px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero-text p {
  margin-bottom: 20px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
  margin-left: 10px;
}

.hero-image {
  flex: 1 1 260px;
  min-height: 220px;
  background: #111827;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #374151;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.95;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* GENERIC PAGE WRAPPER */
.page {
  padding: 40px 0 50px;
}

.page h1 {
  font-size: 1.7rem;
  margin-bottom: 15px;
}

.page p {
  margin-bottom: 12px;
}

/* BUTTON GENERIC */
button,
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
.btn:hover {
  opacity: 0.9;
}

/* SECTIONS (Homepage) */
section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.section-title p {
  color: #666;
  font-size: 0.95rem;
}

/* CARD & GRID UMUM */
.card {
  background: var(--light);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
  max-height: 200px;
}

/* KATEGORI PRODUK (Homepage) */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.card p {
  font-size: 0.92rem;
  color: #555;
}

/* TESTIMONI (Homepage) */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 0.93rem;
}

.testimonial-name {
  margin-top: 10px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

/* BLOG PREVIEW (Homepage) */
.blog-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.blog-card small {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.blog-card a {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

/* PRODUCT LIST (toko.html) */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0 25px;
  font-size: 0.9rem;
}

.product-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-filters input,
.product-filters select {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  min-width: 200px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.product-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.product-card h2 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-card .price {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 5px;
}

.product-card .desc {
  margin-bottom: 10px;
}

/* BLOG PAGE (blog.html) */
.blog-article {
  background: #fff;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-article h2 {
  margin-bottom: 5px;
}

.blog-article small {
  display: block;
  margin-bottom: 10px;
  color: #777;
  font-size: 0.8rem;
}

/* CONTACT PAGE (hubungi-kami.html) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-info h2 {
  margin-bottom: 10px;
}

.contact-info h3 {
  margin: 15px 0 8px;
  font-size: 1rem;
}

.contact-info ul {
  padding-left: 18px;
  font-size: 0.9rem;
}

/* FOOTER */
footer {
  background: #038aac;
  color: #eee;
  padding: 25px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #505667;
  font-size: 0.8rem;
  color: #eee;
}

.copyright {
  text-align: center;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #aaa;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 30px;
  }

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

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