/* ==========================================================================
   SP-LAYOUT.CSS — Modern Header & Footer (mirip beranda Nuxt)
   Standalone – tidak mengubah layout frontend utama
   ========================================================================== */

/* ─ Shared tokens ────────────────────────────────────────────────────── */
:root {
  --sp-primary:    #0B5ED7;
  --sp-primary-dk: #1565C0;
  --sp-darkblue:   #0F172A;
  --sp-darkblue2:  #1E293B;
  --sp-blue-300:   #93C5FD;
  --sp-blue-200:   #BFDBFE;
  --sp-border:     #E2E8F0;
  --sp-transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════════════════════════
   1.  HEADER
═══════════════════════════════════════════════════════════════════════ */
.sp-hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 0 #E2E8F0;
  transition: box-shadow .3s ease, background .3s ease;
}
.sp-hdr.sp-hdr-scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
}

.sp-hdr .container,
.sp-hdr-container {
  width: 100%;
  max-width: 1720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
@media (max-width: 1200px) {
  .sp-hdr .container,
  .sp-hdr-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.sp-hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 14px;
  width: 100%;
}

/* ── Brand / Logo ── */
.sp-hdr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.sp-hdr-logo {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
}
.sp-hdr-logo-fallback {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #0B5ED7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sp-hdr-brand-texts { line-height: 1.25; }
.sp-hdr-brand-name {
  font-size: .9rem;
  font-weight: 800;
  color: #0F172A;
  display: block;
  letter-spacing: -.01em;
  transition: color .2s;
  white-space: nowrap;
}
.sp-hdr-brand:hover .sp-hdr-brand-name { color: #0B5ED7; }
.sp-hdr-brand-sub {
  font-size: .68rem;
  color: #64748B;
  display: block;
  white-space: nowrap;
}

/* ── Desktop Nav (Centered) ── */
.sp-hdr-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 auto;
}

.sp-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: .83rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--sp-transition);
  white-space: nowrap;
}
.sp-nav-link:hover { background: #f8fafc; color: #0B5ED7; }
.sp-nav-link.sp-nav-active {
  color: #0B5ED7;
  background: #EFF6FF;
  font-weight: 700;
}
.sp-nav-link.sp-nav-active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #0B5ED7;
}
.sp-nav-chevron {
  font-size: .6rem;
  transition: transform .2s;
  opacity: .6;
}

@media (max-width: 1536px) {
  .sp-nav-link {
    padding: 6px 8px;
    font-size: .8rem;
    gap: 4px;
  }
}

@media (max-width: 1366px) {
  .sp-nav-link {
    padding: 5px 6px;
    font-size: .76rem;
    gap: 3px;
  }
  .sp-hdr-brand-name {
    font-size: .82rem;
  }
  .sp-hdr-brand-sub {
    font-size: .64rem;
  }
}

/* Dropdown */
.sp-nav-dropdown { position: relative; }
.sp-nav-dropdown:hover > .sp-nav-link { background: #f8fafc; color: #0B5ED7; }
.sp-nav-dropdown:hover > .sp-nav-link .sp-nav-chevron { transform: rotate(180deg); }
.sp-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px -8px rgba(15,23,42,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.sp-nav-dropdown:hover .sp-dropdown-menu,
.sp-nav-dropdown:focus-within .sp-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--sp-transition);
}
.sp-dropdown-item:hover { background: #EFF6FF; color: #0B5ED7; transform: translateX(2px); }
.sp-dropdown-item i { font-size: .8rem; opacity: .7; }

/* ── Header Actions ── */
.sp-hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sp-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: #0B5ED7;
  color: #fff;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--sp-transition);
  white-space: nowrap;
}
.sp-hdr-btn:hover { background: #1565C0; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,94,215,.25); }

/* ── Mobile Hamburger ── */
.sp-mobile-toggle {
  background: none;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--sp-transition);
}
.sp-mobile-toggle:hover { border-color: #93C5FD; background: #EFF6FF; }
.sp-hamburger { display: flex; flex-direction: column; gap: 5px; }
.sp-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: var(--sp-transition);
}
.sp-toggle-open .sp-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-toggle-open .sp-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sp-toggle-open .sp-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Panel ── */
.sp-mobile-nav {
  display: none;
  border-top: 1px solid #F1F5F9;
  background: #fff;
  padding: 12px 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.sp-mobile-nav.sp-mobile-nav-open {
  display: block;
  max-height: 80vh;
  overflow-y: auto;
}
.sp-mob-link {
  display: block;
  padding: 10px 4px;
  font-size: .9rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #F8FAFC;
  transition: color .2s;
}
.sp-mob-link:hover { color: #0B5ED7; }
.sp-mob-group { border-bottom: 1px solid #F8FAFC; }
.sp-mob-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 4px;
  font-size: .9rem;
  font-weight: 600;
  color: #334155;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.sp-mob-chevron { font-size: .65rem; transition: transform .25s ease; }
.sp-mob-open .sp-mob-chevron { transform: rotate(180deg); }
.sp-mob-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 12px;
}
.sp-mob-child {
  display: block;
  padding: 8px 4px;
  font-size: .85rem;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #F8FAFC;
}
.sp-mob-child:hover { color: #0B5ED7; }
.sp-mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: #0B5ED7;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
}
.sp-mob-cta:hover { background: #1565C0; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   2.  FOOTER
═══════════════════════════════════════════════════════════════════════ */
.sp-footer {
  background: #0F172A;
  color: #fff;
  margin-top: 0;
}

.sp-ftr-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding: 64px 0 48px;
}
@media (max-width: 1024px) { .sp-ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .sp-ftr-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; } }

/* Brand column */
.sp-ftr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}
.sp-ftr-brand-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #0B5ED7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sp-ftr-brand-name { font-size: .9rem; font-weight: 800; color: #fff; line-height: 1.25; }
.sp-ftr-brand-sub  { font-size: .7rem; color: #93C5FD; margin-top: 2px; }

.sp-ftr-about {
  font-size: .85rem;
  color: #BFDBFE;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sp-ftr-contact { display: flex; flex-direction: column; gap: 8px; }
.sp-ftr-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: #93C5FD;
  text-decoration: none;
  line-height: 1.4;
}
.sp-ftr-contact-item:hover { color: #fff; }
.sp-ftr-contact-item i { margin-top: 2px; flex-shrink: 0; font-size: .8rem; }

/* Nav columns */
.sp-ftr-heading {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.sp-ftr-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-ftr-links li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: #BFDBFE;
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.sp-ftr-links li a:hover { color: #fff; transform: translateX(3px); }

/* Hours */
.sp-ftr-hours {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-ftr-hours li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  color: #94A3B8;
  border-bottom: 1px dashed rgba(255,255,255,.07);
  padding-bottom: 8px;
}
.sp-ftr-hours li span:first-child { color: #BFDBFE; }
.sp-ftr-hours li span:last-child  { color: #4ADE80; font-weight: 600; }

/* Social icons */
.sp-ftr-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sp-ftr-social-link {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--sp-transition);
}
.sp-ftr-social-link:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.sp-ftr-social-wa { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.3); color: #34D399; }
.sp-ftr-social-wa:hover { background: #10B981; border-color: #10B981; color: #fff; }

/* Bottom bar */
.sp-ftr-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.sp-ftr-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sp-ftr-copy {
  font-size: .82rem;
  color: #64748B;
  margin: 0;
}
.sp-ftr-copy a { color: #93C5FD; text-decoration: none; }
.sp-ftr-copy a:hover { color: #fff; }
.sp-ftr-bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: #475569;
  flex-wrap: wrap;
}
.sp-ftr-bottom-links a { color: #64748B; text-decoration: none; transition: color .2s; }
.sp-ftr-bottom-links a:hover { color: #93C5FD; }
.sp-ftr-bottom-sep { color: #334155; }

/* ═══════════════════════════════════════════════════════════════════════
   3.  SCROLL-TO-TOP BUTTON
═══════════════════════════════════════════════════════════════════════ */
.sp-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #0B5ED7;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(11,94,215,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 500;
}
.sp-scroll-top.sp-scroll-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sp-scroll-top:hover { background: #1565C0; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,94,215,.4); }

/* ═══════════════════════════════════════════════════════════════════════
   4.  RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .sp-hdr-nav { display: none !important; }
}
@media (max-width: 480px) {
  .sp-hdr-inner { height: 60px; }
  .sp-ftr-bottom-inner { justify-content: center; text-align: center; }
}
