/* ============================================
   Template 1: "Navy & Gold" — PT Pinjaman Kemakmuran Rakyat
   Primary: #003366 | Accent: #FFD700 | Dark: #002244 | Light: #f8f9fa
   Font: Inter
   ============================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === ROOT VARIABLES === */
:root {
  --primary: #003366;
  --accent: #FFD700;
  --dark: #002244;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === BASE STYLES === */
body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
}

a {
  transition: all 0.3s ease;
}

/* === NAVBAR === */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.custom-navbar .navbar-brand img {
  height: 3rem;
}

.custom-navbar .navbar-caption {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary) !important;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.custom-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a2e !important;
  padding: 8px 18px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(0, 51, 102, 0.06);
}

.custom-navbar .navbar-toggler {
  border: none;
  padding: 8px;
}

.custom-navbar .navbar-toggler:focus {
  box-shadow: none;
}

.btn-black,
.btn.btn-black {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary) !important;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-black:hover,
.btn.btn-black:hover {
  background-color: transparent !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.2);
}

.navbar-buttons {
  margin-left: 1rem;
}

/* === HERO SECTION (Full-Screen Parallax) === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../images/hero-banner.jpg') center/cover no-repeat fixed;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 68, 0.7);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .display-1 {
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.hero-section .display-4 {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.hero-section .btn-gold {
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 6px;
  border: none;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.hero-section .btn-gold:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
}

/* === SECTION STYLES === */
.section-padding {
  padding: 90px 0;
}

.section-heading {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.section-subheading {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* === 3-COLUMN ICON FEATURES === */
.feature-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.2);
  transition: all 0.3s ease;
}

.feature-icon-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 51, 102, 0.3);
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === DARK PARALLAX SECTION === */
.dark-parallax {
  position: relative;
  padding: 100px 0;
  background: url('../images/hero-alt.jpg') center/cover no-repeat fixed;
}

.dark-parallax .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 68, 0.8);
  z-index: 1;
}

.dark-parallax .container {
  position: relative;
  z-index: 2;
}

.dark-parallax h2 {
  color: var(--white);
  font-weight: 800;
}

.dark-parallax p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === 3-COLUMN SERVICE CARDS === */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card .price-wrapper {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card .btn-contact {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.service-card .btn-contact:hover {
  background: var(--primary);
  color: var(--white);
}

/* === FAQ ACCORDION === */
.faq-section {
  background-color: var(--light-bg);
}

.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.accordion-button {
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  padding: 18px 24px;
  font-size: 1rem;
  box-shadow: none !important;
  border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px 8px 0 0 !important;
}

.accordion-button::after {
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  line-height: 1.8;
  background: var(--white);
}

/* === CONTACT FORM === */
.contact-form-section {
  background-color: var(--white);
}

.contact-form-section .form-control {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form-section .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.contact-form-section textarea.form-control {
  min-height: 140px;
}

/* === CONTACT INFO CARDS === */
.contact-info-section {
  background-color: var(--dark);
  padding: 80px 0;
}

.contact-info-card {
  text-align: center;
  padding: 2rem;
}

.contact-info-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
}

.contact-info-card h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === GOOGLE MAP === */
.map-container {
  width: 100%;
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === FOOTER === */
.footer3 {
  background-color: var(--dark);
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer3 .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer3 .footer-links li {
  display: inline;
}

.footer3 .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer3 .footer-links a:hover {
  color: var(--accent);
}

.footer3 .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === ABOUT PAGE === */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 140px 0 80px;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  font-weight: 800;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.8);
}

.about-image-section img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
  border-left: 3px solid var(--accent);
}

.timeline-item:last-child {
  border-left: 3px solid transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--primary);
}

.timeline-item .year {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* === SERVICES PAGE === */
.services-hero {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 140px 0 80px;
  text-align: center;
}

.services-hero h1 {
  color: var(--white);
  font-weight: 800;
}

.service-detail-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  border-top: 4px solid var(--accent);
}

.service-detail-card h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === TESTIMONIALS PAGE === */
.testimonials-hero {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 140px 0 80px;
  text-align: center;
}

.testimonials-hero h1 {
  color: var(--white);
  font-weight: 800;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 4rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  opacity: 0.4;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
  padding-top: 1rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
}

.testimonial-card .role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === FAQ PAGE === */
.faq-page-hero {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 140px 0 80px;
  text-align: center;
}

.faq-page-hero h1 {
  color: var(--white);
  font-weight: 800;
}

/* === STATS BLOCK === */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  padding: 80px 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* === VALUES SECTION === */
.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  border-bottom: 4px solid var(--accent);
}

.value-card .value-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.value-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* === KEY FIGURES === */
.key-figure-card {
  text-align: center;
  padding: 2rem;
}

.key-figure-card .figure-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.key-figure-card .figure-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* === IMAGE-AND-TEXT SPLIT === */
.split-section-row {
  align-items: center;
}

.split-section-row img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
}

/* === LEGAL PAGES === */
.legal-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content h3.wp-block-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.legal-content h4.wp-block-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Cookie table styles */
.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

.cookie-tables-white .wp-block-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

/* Link styles in legal pages */
.container a {
  color: var(--primary);
  text-decoration: none;
}

.container a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-buttons {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero-section .display-1 {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .legal-content {
    padding-top: 100px;
  }

  .about-hero,
  .services-hero,
  .testimonials-hero,
  .faq-page-hero {
    padding: 120px 0 60px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }

  .hero-section .display-1 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}
