/* ============================================================
   FOOTER — Al-Waliy Sejahtera
   Base styles berlaku di semua breakpoint. Semua treatment
   "editorial/creative" (tipografi besar bold sans-serif, ghost
   wordmark, grid asimetris, reveal animation, magnetic hover)
   DIBATASI ke @media (min-width: 1025px) di bagian bawah file
   ini — mobile & tablet (<=1024px) TETAP PERSIS SEPERTI
   SEBELUMNYA, gak ada perubahan visual/behavior sama sekali.
   ============================================================ */

.page-content {
  position: static !important;
  transform: none !important;
  padding-bottom: 0 !important;
  z-index: auto !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.footer-reveal-outer {
  position: static !important;
}

/* ── FOOTER BASE ── */
.sf {
  position: relative;
  background: #152e24;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body, "Plus Jakarta Sans", "Inter", sans-serif);
  overflow: hidden; /* wadah buat ghost wordmark biar gak tembus keluar footer */
}

/* ── DIVIDER ATAS ── */
.sf::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #d4af6a 0%, #f3dba0 50%, #d4af6a 100%);
  position: relative;
  z-index: 2;
}

/* Elemen dekoratif desktop-only — default disembunyikan, baru
   dimunculkan di media query >1025px paling bawah file ini. */
.sf-ghost-text {
  display: none;
}

/* ── INNER GRID ── */
.sf-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.5fr;
  gap: 0;
}

/* Kolom selain brand */
.sf-col {
  padding-left: 2rem;
  margin-left: 0;
}
.sf-col + .sf-col {
  padding-left: 1.75rem;
}

/* ── BRAND ── */
.sf-brand {
  padding-right: 2.5rem;
}
.sf-brand-logo {
  height: 60px;
  width: auto;
  margin-bottom: 0.6rem;
  display: block;
}
.sf-brand-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.sf-brand-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── SOSMED ── */
.sf-socials {
  display: flex;
  gap: 8px;
  margin-bottom: 1.75rem;
}
.sf-social-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}
.sf-social-btn:hover {
  border-color: #d4af6a;
  color: #d4af6a;
  background: rgba(212, 175, 106, 0.08);
}

/* ── SERTIFIKAT ── */
.sf-certs {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.sf-cert-item img {
  height: 56px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 5px 8px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.sf-cert-item:hover img {
  background: #fff;
  transform: translateY(-2px);
}
.sf-cert-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ── KOLOM LABEL ── */
.sf-col-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af6a;
  margin-bottom: 1.1rem;
  display: block;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(212, 175, 106, 0.25);
}

/* ── DROPDOWN TRIGGER ── */
.sf-dropdown-trigger {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 106, 0.25);
  padding: 0 0 0.6rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.sf-dropdown-trigger:hover {
  color: rgba(255, 255, 255, 0.7);
}
.sf-drop-chevron {
  font-size: 0.55rem;
  opacity: 0.5;
  margin-left: auto;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.sf-dropdown-trigger.open .sf-drop-chevron {
  transform: rotate(180deg);
}

/* ── DROPDOWN LIST — animasi grid-template-rows: 0fr → 1fr. ── */
.sf-dropdown-list {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  opacity: 0;
}
.sf-dropdown-list.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.sf-dropdown-list > * {
  min-height: 0;
  overflow: hidden;
}

/* ── LINKS ── */
.sf-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sf-links li {
  margin-bottom: 9px;
}

.sf-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}
.sf-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #d4af6a;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.sf-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.sf-link:hover {
  color: #fff;
}

/* Slot machine label */
.sf-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  white-space: nowrap;
}
.sf-label::before,
.sf-label::after {
  content: attr(data-text);
  display: block;
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}
.sf-label::before {
  transform: translateY(0);
}
.sf-label::after {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
  color: #d4af6a;
}
.sf-link:hover .sf-label::before {
  transform: translateY(-100%);
}
.sf-link:hover .sf-label::after {
  transform: translateY(0);
}

/* ── KONTAK ── */
.sf-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.sf-contact-link::after {
  display: none;
}
.sf-contact-link i {
  font-size: 0.82rem;
  margin-top: 2px;
  color: #d4af6a;
  opacity: 0.8;
  flex-shrink: 0;
}
.sf-contact-link span {
  font-size: 0.78rem;
  word-break: break-word;
}
.sf-contact-link:hover span {
  color: #fff;
}

/* ── FORM KONTAK ── */
.sf-contact-form-wrap {
  margin-top: 1.25rem;
}

.sf-form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid rgba(212, 175, 106, 0.3);
  color: #d4af6a;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  width: 100%;
  justify-content: center;
}
.sf-form-toggle:hover {
  background: rgba(212, 175, 106, 0.2);
  border-color: rgba(212, 175, 106, 0.5);
}
.sf-form-toggle i {
  font-size: 0.8rem;
}

.sf-form-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition:
    grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  opacity: 0;
}
.sf-form-body.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.sf-form-body > * {
  min-height: 0;
  overflow: hidden;
}

.sf-field {
  margin-top: 8px;
}
.sf-field:first-child {
  margin-top: 12px;
}

.sf-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-family: inherit;
  padding: 9px 11px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  box-sizing: border-box;
}
.sf-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.sf-input:focus {
  border-color: #d4af6a;
  background: rgba(255, 255, 255, 0.07);
}
.sf-input--err {
  border-color: #f87171 !important;
}

.sf-textarea {
  resize: vertical;
  min-height: 76px;
}

.sf-field-err {
  display: block;
  font-size: 0.65rem;
  color: #f87171;
  margin-top: 3px;
}

.sf-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  background: transparent;
  color: #d4af6a;
  border: 1px solid #d4af6a;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.sf-form-submit:hover {
  background: #d4af6a;
  color: #152e24;
}
.sf-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sf-form-success {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 6px;
  color: #4ade80;
  font-size: 0.72rem;
  padding: 9px 11px;
  line-height: 1.4;
}
.sf-form-success i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sf-form-error {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
  color: #f87171;
  font-size: 0.72rem;
  padding: 9px 11px;
  line-height: 1.4;
}
.sf-form-error i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── BOTTOM ── */
.sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}
.sf-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.22);
}
.sf-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.sf-bottom-link {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.2s;
}
.sf-bottom-link:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* Reset khusus buat versi <button> dari sf-bottom-link (Pengaturan Cookie) */
.sf-bottom-link--btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* ============================================================
   EDITORIAL / CREATIVE — DESKTOP ONLY (>1024px)
   Semua rule di bawah ini SENGAJA gak nyentuh breakpoint <=1024px
   sama sekali, biar tampilan mobile/tablet 100% seperti sebelumnya.
   ============================================================ */
@media (min-width: 1025px) {
  /* Ghost wordmark raksasa di background — murni dekoratif,
       diposisikan DI BELAKANG grid (.sf-inner sudah z-index:1). */
  .sf-ghost-text {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -3.2rem;
    transform: translate(-50%, 0);
    z-index: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 800;
    font-size: clamp(6rem, 14vw, 13rem);
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
  }

  /* Brand: tagline "naik" jadi headline editorial, nama brand
       jadi byline kecil di bawahnya — cuma reorder VISUAL lewat
       flex `order`, markup HTML gak berubah sama sekali. */
  .sf-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* WAJIB: tanpa ini, default flexbox
           align-items:stretch bikin <img> logo (width:auto) ikut
           di-stretch ngisi penuh lebar kolom — itu penyebab logo
           keliatan gepeng/melebar padahal tinggi tetap 60px. */
    padding-right: 3.5rem;
  }
  .sf-brand-logo {
    order: -1;
    margin-bottom: 1.4rem;
  }
  .sf-brand-tagline {
    order: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fdf7ea;
    margin-bottom: 0.9rem;
    max-width: 22ch;
  }
  .sf-brand-name {
    order: 1;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4af6a;
    margin-bottom: 1.9rem;
  }
  .sf-socials {
    order: 2;
  }
  .sf-certs {
    order: 3;
  }

  .sf-inner {
    padding: 3.2rem 2rem 4.5rem;
    align-items: start;
  }

  /* Label kolom: tipografi editorial bold sans-serif. */
  .sf-col .sf-col-label {
    display: block;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #fdf7ea;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.6rem;
  }
  .sf-col .sf-drop-chevron {
    display: none !important;
  }

  /* Kontak: nomor WhatsApp dikasih bobot editorial (pull-quote). */
  .sf-contact-list li:first-child .sf-contact-link {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fdf7ea;
  }
  .sf-contact-list li:first-child .sf-contact-link i {
    font-size: 1.05rem;
  }

  /* Reveal animation — class 'sf-anim-ready' & 'sf-in-view'
       ditambahin lewat footer.js (IntersectionObserver). Progressive
       enhancement: kalau JS gak jalan, class 'sf-anim-ready' gak
       pernah ke-attach, jadi elemen TETAP kebaca normal (gak ke-hide
       permanen). */
  .sf-anim-ready {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sf-anim-ready.sf-in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE (mobile/tablet — TIDAK DIUBAH dari sebelumnya) ── */
@media (max-width: 1024px) {
  .sf-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }
  .sf-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: none;
  }
  .sf-col {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: none;
    margin-left: 0;
  }
  .sf-col--contact {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
  }
}
@media (max-width: 600px) {
  .sf-inner {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem 1rem;
  }
  .sf-brand {
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
  }
  .sf-brand-logo {
    height: 44px;
    margin-bottom: 0.4rem;
  }
  .sf-brand-tagline {
    margin-bottom: 0.9rem;
  }
  .sf-cert-item img {
    height: 40px;
    padding: 4px 6px;
  }
  .sf-col {
    padding: 0.85rem 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0.85rem;
    margin-bottom: 0;
  }
  .sf-col-label {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .sf-dropdown-list.open {
    margin-top: 0.85rem;
  }
  .sf-col--contact {
    border-bottom: none;
    padding-top: 0.85rem;
  }
  .sf-bottom-inner {
    padding: 0.9rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .sf-bottom-links {
    gap: 0.5rem 1rem;
    font-size: 0.62rem;
  }
}
