/* ============================================================
   Danamas - PT Pasar Dana Pinjaman
   Template 15: Navy & Teal (Accessible Modern)
   Primary: #003B5C | Accent: #00A7A0 | Dark: #001F33 | Light: #F2F9FA
   Font: Albert Sans
   ============================================================ */

/* --- Base & Typography --- */
:root {
  --primary: #003B5C;
  --accent: #00A7A0;
  --dark: #001F33;
  --light-bg: #F2F9FA;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-light: #555;
}

body {
  font-family: 'Albert Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--primary);
}

/* --- Navbar --- */
.custom-navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,31,51,0.08);
  padding: 0.5rem 0;
}
.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
}
.custom-navbar .navbar-brand img {
  height: 3rem;
  margin-right: 0.75rem;
}
.custom-navbar .navbar-caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark) !important;
}
.custom-navbar .navbar-caption strong {
  color: var(--primary);
}
.custom-navbar .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(0,167,160,0.08);
}
.custom-navbar .navbar-buttons .btn {
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
}
.btn-secondary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-secondary:hover {
  background: #008a84;
  border-color: #008a84;
  color: var(--white);
}
.btn-black {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.btn-black:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn-black-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}
.btn-black-outline:hover {
  background: var(--dark);
  color: var(--white);
}

/* --- Hero Section (header3 style - No full-screen, No parallax) --- */
.hero-section {
  padding: 4rem 0;
  background: var(--light-bg);
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero-section .lead {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-section img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,31,51,0.12);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

/* --- Section Styling --- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 3rem;
}
.section-padding {
  padding: 5rem 0;
}
.bg-light-custom {
  background: var(--light-bg);
}
.bg-primary-custom {
  background: var(--primary);
  color: var(--white);
}
.bg-dark-custom {
  background: var(--dark);
  color: var(--white);
}

/* --- Client Type Cards (features-image) --- */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,31,51,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,31,51,0.12);
}
.feature-card .item-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.feature-card .item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.feature-card:hover .item-img img {
  transform: scale(1.05);
}
.feature-card .card-body {
  padding: 1.5rem;
}
.feature-card .card-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.feature-card .card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Advantages Section --- */
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.3s;
}
.advantage-item:hover {
  box-shadow: 0 5px 25px rgba(0,31,51,0.08);
}
.advantage-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}
.advantage-text h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.advantage-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Services Section --- */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,31,51,0.06);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,31,51,0.12);
  border-top-color: var(--accent);
}
.service-card .service-icon {
  width: 70px;
  height: 70px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
  color: var(--accent);
}
.service-card h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.accordion-section .accordion-item {
  border: none;
  margin-bottom: 0.75rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,31,51,0.04);
}
.accordion-section .accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  box-shadow: none;
  padding: 1.1rem 1.5rem;
  border-radius: 10px !important;
}
.accordion-section .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--light-bg);
}
.accordion-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300A7A0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-section .accordion-body {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem;
}

/* --- Contact Form --- */
.contact-form-section .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.contact-form-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(0,167,160,0.15);
}
.contact-form-section textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Contact Info Row --- */
.contact-info-item {
  text-align: center;
  padding: 2rem 1rem;
}
.contact-info-item .ci-icon {
  width: 60px;
  height: 60px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--accent);
}
.contact-info-item h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Google Map --- */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,31,51,0.08);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0;
  text-align: center;
}
.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin: 0 0.75rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--accent);
}
.footer .copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Stats Section --- */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0,31,51,0.06);
  height: 100%;
}
.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.testimonial-card .testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-card .testimonial-author {
  font-weight: 700;
  color: var(--dark);
}
.testimonial-card .testimonial-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Page Header (internal pages) --- */
.page-header {
  background: var(--light-bg);
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
}
.page-header .breadcrumb {
  justify-content: center;
  margin-top: 0.5rem;
}
.page-header .breadcrumb a {
  color: var(--accent);
}

/* --- Legal Pages --- */
.legal-content {
  padding: 3rem 0;
}
.legal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.legal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.legal-content ul {
  padding-left: 1.25rem;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
}
.legal-content table, .legal-content th, .legal-content td {
  border: 1px solid #ddd;
}
.legal-content th, .legal-content td {
  padding: 10px 12px;
  font-size: 0.9rem;
}
.legal-content th {
  background: var(--light-bg);
  font-weight: 700;
}

/* --- About Page --- */
.about-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,31,51,0.12);
}
.about-image-wrapper img {
  width: 100%;
  object-fit: cover;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.timeline-year {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.timeline-content h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.timeline-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Team Section --- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 25px rgba(0,31,51,0.06);
  transition: transform 0.3s;
}
.team-card:hover {
  transform: translateY(-5px);
}
.team-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--light-bg);
}
.team-card h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-section {
    padding: 2rem 0;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section img {
    margin-top: 2rem;
    max-height: 300px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-padding {
    padding: 3rem 0;
  }
  .stat-number {
    font-size: 2rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }
  .hero-section h1 {
    font-size: 1.7rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}
