/* ==========================================================================
   layout.css
   Kerangka halaman: container, header (sticky, logo + WhatsApp),
   pembungkus section, dan footer. Dipakai oleh semua halaman.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container--narrow {
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   2. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

/* Ditambahkan oleh main.js saat halaman sudah di-scroll */
.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand-logo img {
  width: 120px;
  height: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   3. Section umum
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
}

.section--tinted {
  background: var(--color-tint);
}

.section--dark {
  background: var(--color-ink);
  color: #c9ced6;
}

/* --------------------------------------------------------------------------
   4. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #aab1bc;
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.site-footer__brand img {
  width: 130px;
}

.site-footer__tagline {
  margin-top: 1rem;
  max-width: 300px;
}

.site-footer__heading {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0;
}

.site-footer__list {
  display: grid;
  gap: 0.7rem;
}

.site-footer__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__list .icon {
  color: var(--color-brand);
}

.site-footer__list a {
  transition: color var(--duration-fast);
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #7d8592;
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Ruang ekstra agar tombol WhatsApp mengambang tidak menutupi teks */
  .site-footer__bottom {
    padding-bottom: 5.5rem;
  }
}
