/* ============================================================
   style.css — Yulianto & Partners (Kantor Advokat)
   Custom styles yang melengkapi utilitas Tailwind CSS.
   ============================================================ */

/* ---------- Dasar & smooth scroll ---------- */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Navbar state ---------- */
#navbar {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 16, 64, 0.97); /* navy-950 */
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(8px);
}

/* ---------- Hero pattern ---------- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.08) 0, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(40, 80, 255, 0.15) 0, transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0, transparent 60%);
}

/* ---------- Tombol ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0a1040;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(245, 158, 11, 0.65);
  filter: brightness(1.05);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(251, 191, 36, 0.8);
}

/* ---------- Section heading ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d97706; /* gold-600 */
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0f1a6e; /* navy-900 */
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* ---------- Check icon (Tentang) ---------- */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.15rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Card statistik ---------- */
.card-stat {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 20px -12px rgba(15, 26, 110, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -14px rgba(15, 26, 110, 0.2);
}

/* ---------- Service card ---------- */
.service-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 1.9rem 1.6rem;
  box-shadow: 0 8px 22px -14px rgba(15, 26, 110, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -18px rgba(15, 26, 110, 0.22);
  border-color: #e6c565;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: #0f1a6e;
  color: #fbbf24;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-icon {
  background: #fbbf24;
  color: #0a1040;
  transform: scale(1.06);
}

/* ---------- Team card ---------- */
.team-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.9rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(251, 191, 36, 0.35);
}

/* ---------- Avatar (inisial, tanpa foto eksternal) ---------- */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-lg {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.avatar-sm {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.85rem;
}

/* ---------- Testimonial slider ---------- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  color: #0f1a6e;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 8px 22px -8px rgba(15, 26, 110, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: #0f1a6e;
  color: #fbbf24;
  transform: translateY(-50%) scale(1.06);
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.testimonial-dot.active {
  background: #f59e0b;
  width: 1.25rem;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid #eef2f7;
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: #e6c565;
  box-shadow: 0 12px 28px -16px rgba(15, 26, 110, 0.18);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  text-align: left;
  font-weight: 600;
  color: #0f1a6e;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #d97706;
}

.faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #0f1a6e;
  color: #fbbf24;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.25rem;
  color: #4b5563;
  font-size: 0.925rem;
  line-height: 1.7;
}

/* ---------- Contact card ---------- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 20px -14px rgba(15, 26, 110, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(15, 26, 110, 0.18);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: #fef3c7;
  color: #b45309;
}

/* ---------- Form ---------- */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.7rem;
  font-size: 0.925rem;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #2850ff;
  box-shadow: 0 0 0 3px rgba(40, 80, 255, 0.12);
}

.form-input.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.35rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #0f1a6e;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(15, 26, 110, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #f59e0b;
  color: #0a1040;
}
