/* ═══════════════════════════════════════════════════════════
   PitStop — CSS Landing/Home Page
   ═══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #EBF1FF;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(209, 217, 230, 0.5);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
  background: rgba(67, 97, 238, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login-nav {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid #CDCDCD;
  color: var(--text-dark);
  padding: 0.45rem 1.25rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  box-shadow: none;
}

.btn-login-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.btn-register-nav {
  flex-shrink: 0;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: var(--white);
  padding: 0.45rem 1.25rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
}

.btn-register-nav:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.45);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  gap: 0.25rem;
}

.nav-mobile-menu a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu.open {
  display: flex;
}

/* Tombol Login khusus di Menu Mobile */
.nav-mobile-menu .btn-login-nav {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white) !important;
  border: none;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.nav-mobile-menu .btn-login-nav:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

.nav-mobile-menu .btn-register-nav {
  display: block;
  text-align: center;
  background: var(--white);
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.05);
}

.nav-mobile-menu .btn-register-nav:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -1px;
  animation: slideInLeft 0.6s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  text-align: justify;
  animation: slideInLeft 0.6s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInLeft 0.6s ease 0.4s both;
}

/* Hero Images */
.hero-images {
  position: relative;
  animation: slideInRight 0.6s ease 0.3s both;
}

.hero-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-img-top-left,
.hero-img-top-right,
.hero-img-bottom {
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-img-top-left {
  grid-column: 1;
  grid-row: 1;
}

.hero-img-top-right {
  grid-column: 2;
  grid-row: 1 / 3;
}

.hero-img-bottom {
  grid-column: 1;
  grid-row: 2;
}

.hero-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-img-top-left {
  height: 160px;
}

.hero-img-top-right {
  height: 340px;
}

.hero-img-bottom {
  height: 168px;
}

.hero-img-grid img:hover {
  transform: scale(1.04);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 100px;
  }

  .hero-images {
    order: -1;
  }

  .hero-img-top-left {
    height: 130px;
  }

  .hero-img-top-right {
    height: 270px;
  }

  .hero-img-bottom {
    height: 130px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 1.5rem 60px;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}

/* ════════════════════════════════════════════════════════════
   TENTANG (ABOUT US)
   ════════════════════════════════════════════════════════════ */
.tentang-section {
  background-color: var(--white);
  border-top: 1px solid rgba(209, 217, 230, 0.5);
  border-bottom: 1px solid rgba(209, 217, 230, 0.5);
}

.tentang-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 10fr 12fr;
  gap: 16px;
}

.about-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-img-sm {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.about-img-sm:hover {
  transform: translateY(-2px);
}

.about-img-lg {
  width: 100%;
  height: 376px;
  /* 180px + 180px + 16px gap */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.about-img-lg:hover {
  transform: translateY(-2px);
}

.tentang-images {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.tentang-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s both;
}

.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s both;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  text-align: justify;
  animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both;
}

.tentang-content .btn-primary {
  animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s both;
}

/* Responsivitas Tentang Section */
@media (max-width: 1024px) {
  .tentang-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .tentang-section {
    padding: 60px 0;
  }

  .about-img-sm {
    height: 130px;
  }

  .about-img-lg {
    height: 276px;
    /* 130 + 130 + 16 = 276px */
  }
}

/* ════════════════════════════════════════════════════════════
   LAYANAN (MENGAPA HARUS PITSTOP?)
   ════════════════════════════════════════════════════════════ */
.layanan-section {
  background-color: #EBF1FF;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5.5rem;
}

.layanan-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(209, 217, 230, 0.4);
  box-shadow: 0 4px 14px rgba(67, 97, 238, 0.03);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layanan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.08);
}

.layanan-icon-wrapper {
  width: 46px;
  height: 46px;
  background: #EBF1FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.layanan-icon {
  width: 22px;
  height: 22px;
}

.layanan-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.layanan-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Timeline Stepper */
.timeline-wrapper {
  position: relative;
  margin-top: 2rem;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #CADDFA;
  z-index: 1;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.step-number {
  width: 46px;
  height: 46px;
  background: #C3D5F1;
  border: none;
  color: var(--text-dark);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.step-number.active {
  background: var(--text-dark);
  color: var(--white);
}

.timeline-step h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 250px;
}

/* Responsivitas Layanan & Timeline */
@media (max-width: 1024px) {
  .layanan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .timeline-line {
    display: none;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .timeline-step h4 {
    margin-top: 0;
  }

  .timeline-step p {
    max-width: none;
  }
}

/* ════════════════════════════════════════════════════════════
   FAQ (ACCORDION SECTION)
   ════════════════════════════════════════════════════════════ */
.faq-section {
  background-color: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.faq-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #3C56D0;
  letter-spacing: -0.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: #EBF1FF;
  border-radius: 10px;
  padding: 1.25rem 2rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(209, 217, 230, 0.3);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.08);
}

.faq-item.open {
  background-color: #9FC0F1;
  color: var(--white);
  border-color: #9FC0F1;
}

.faq-question-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.faq-question-row h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color var(--transition);
  line-height: 1.4;
}

.faq-item.open .faq-question-row h3 {
  color: var(--white);
}

.faq-icon-circle {
  width: 28px;
  height: 28px;
  background-color: #9FC0F1;
  color: var(--primary);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}

/* Garis Horizontal Plus */
.faq-icon-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  right: 25%;
  height: 2px;
  background-color: currentColor;
  transform: translateY(-50%);
  transition: background-color var(--transition);
}

/* Garis Vertikal Plus */
.faq-icon-circle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background-color: currentColor;
  transform: translateX(-50%);
  transition: background-color var(--transition);
}

.faq-item.open .faq-icon-circle {
  background-color: var(--white);
  color: #9FC0F1;
  transform: rotate(45deg); /* Memutar plus menjadi silang (x) */
}

/* Sembunyikan teks plus bawaan karena sudah digambar secara pixel-perfect oleh CSS */
.faq-icon {
  display: none;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 150px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  transition: color var(--transition);
}

.faq-item.open .faq-answer p {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsivitas FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-header h2 {
    font-size: 1.8rem;
  }

  .faq-item {
    padding: 1.1rem 1.5rem;
  }
}

/* ════════════════════════════════════════════════════════════
   FOOTER SECTION
   ════════════════════════════════════════════════════════════ */
.footer {
  background-color: #8FA7CE; /* Warna periwinkle biru dari Figma */
  padding: 4.5rem 0 0;
  color: var(--white);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.nav-brand span,
.footer-brand span {
  color: var(--text-dark);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--white);
  color: #8FA7CE;
  transform: translateY(-3px);
}

.social-icon {
  width: 18px;
  height: 18px;
}

.footer-col h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.2px;
  margin-bottom: 0.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--white);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-icon {
  width: 18px;
  height: 18px;
  color: var(--white);
  flex-shrink: 0;
}

/* Footer Bottom Area */
.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1.75rem 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Responsivitas Footer */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .footer {
    padding-top: 3.5rem;
  }
}