/* Gaya kustom template company profile RW */
:root {
  --primary-700: #065f46;
  --primary-600: #059669;
  --primary-500: #10b981;
  --secondary-500: #3b82f6;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: "Inter", sans-serif;
  color: #1f2937;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, .font-heading { font-family: "Poppins", sans-serif; }
section[id] { scroll-margin-top: 84px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-700); }

.hero-bg {
  background-image: linear-gradient(rgba(4, 42, 30, 0.8), rgba(6, 40, 74, 0.76)), url("https://picsum.photos/seed/rw024-hero/1920/1080");
  background-size: cover;
  background-position: center;
}

.hero-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.shadow-card { box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04); }
.shadow-cardHover { box-shadow: 0 18px 35px -12px rgba(6, 95, 70, 0.25); }

.org-level { position: relative; }
.org-level::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #a7f3d0;
  transform: translateX(-50%);
}

.org-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.org-row::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #a7f3d0;
}

.org-row > * { position: relative; }
.org-row > *::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #a7f3d0;
  transform: translateX(-50%);
}

.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
@media (min-width: 1280px) { .masonry { column-count: 4; } }

.floating-whatsapp {
  position: fixed;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 40;
  isolation: isolate;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.28);
  font-size: 1.65rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.05);
  background: #1ebe57;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.34);
}

.floating-whatsapp i { line-height: 1; }

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #22c55e;
  animation: waPulse 2s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

.text-gradient {
  background: linear-gradient(90deg, #34d399, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #ecfdf5;
  color: var(--primary-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.form-control {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  color: #374151;
  font-size: 0.875rem;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #1f2937;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover { background: var(--primary-600); transform: translateY(-2px); }

.site-footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-link::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: #34d399;
  transition: width 0.2s ease, margin-right 0.2s ease;
}

.footer-nav-link:hover { color: #34d399; transform: translateX(2px); }
.footer-nav-link:hover::before { width: 0.75rem; margin-right: 0.4rem; }

.footer-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

a.footer-contact-link:hover { color: #34d399; }

.footer-contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.25);
}

@media (max-width: 639px) {
  .site-footer { padding-bottom: max(6rem, calc(env(safe-area-inset-bottom) + 4.5rem)); }
  .floating-whatsapp {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.5rem;
  }
}

.lightbox-control {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
}

.lightbox-control:hover { background: rgba(255, 255, 255, 0.2); }
[data-aos] { will-change: transform, opacity; }

/*
 * AOS menggeser fade-left/fade-right sejauh kurang lebih 100px. Pada layar
 * sempit transform tersebut dapat memperlebar viewport dan membuat halaman
 * terlihat bergeser ke samping saat discroll. Di mobile animasinya tetap ada,
 * tetapi masuk secara vertikal agar tidak menciptakan overflow horizontal.
 */
@media (max-width: 767px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 24px, 0) !important;
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--secondary-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
