/* 
 * BPR Pandaan Arta Jaya - Modern Style System (2026)
 * Custom Premium Design System for Financial Institutions
 */

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

:root {
  /* Colors */
  --primary: #0a2540;
  --primary-light: #1e3a5f;
  --primary-rgb: 10, 37, 64;
  --secondary: #d4af37;
  --secondary-hover: #b89327;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-gold: #f5e6c4;
  --white: #ffffff;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 24px;
  
  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(10, 37, 64, 0.08), 0 1px 3px rgba(10, 37, 64, 0.03);
  --shadow-hover: 0 20px 40px -15px rgba(10, 37, 64, 0.15), 0 2px 8px rgba(10, 37, 64, 0.05);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Containers */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .info-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.top-bar .info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar .info-list i {
  color: var(--secondary);
}

/* Header Main */
.main-header {
  background-color: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.main-header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-container img.logo-main {
  height: 45px;
}

.logo-container img.logo-bpr {
  height: 35px;
  border-right: 1px solid var(--border);
  padding-right: 15px;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  color: var(--primary);
  padding: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-item.active > .nav-link {
  color: var(--secondary);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--white);
  min-width: 180px;
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--primary);
}

.nav-dropdown li a:hover, .nav-dropdown li.active a {
  background-color: var(--bg-light);
  color: var(--secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 37, 64, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 30%, rgba(10, 37, 64, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 40px 0;
}

.hero-content h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.2s;
  animation-fill-mode: both;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s;
  animation-fill-mode: both;
}

/* Services / Products Cards on Home */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--secondary);
  color: var(--white);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
}

/* Sejarah Section split */
.sejarah-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.sejarah-text h3, .sejarah-text h4 {
  font-size: 24px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.sejarah-text p {
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: justify;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--white);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Legalitas Section list */
.legalitas-section {
  margin-top: 40px;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius);
  border-left: 5px solid var(--secondary);
}

.legalitas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  margin-top: 20px;
}

.legal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.legal-item i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 3px;
}

.legal-item span {
  font-weight: 500;
}

/* Products detailed templates */
.product-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.product-intro {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.product-sub {
  font-size: 20px;
  margin: 35px 0 15px 0;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

/* Table styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  padding: 12px 18px;
  font-weight: 600;
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* Checklists */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 25px;
  margin: 20px 0;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.checklist li i {
  color: var(--secondary);
  font-size: 18px;
}

/* Contact page structures */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.office-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.office-card h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-card h3 i {
  color: var(--secondary);
}

.office-info {
  list-style: none;
  margin-bottom: 25px;
}

.office-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.office-info li i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 3px;
}

.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
}

.work-hours {
  margin-top: 30px;
  background-color: rgba(212,175,55,0.08);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.work-hours i {
  font-size: 28px;
  color: var(--secondary);
}

/* Gallery & Reports (Dynamic grids) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-img-wrapper {
  overflow: hidden;
  height: 200px;
  background-color: #eee;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 20px;
  text-align: center;
}

.gallery-info h4 {
  font-size: 16px;
  color: var(--primary);
}

/* Reports Grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.report-card {
  background-color: var(--white);
  padding: 30px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.report-icon {
  font-size: 40px;
  color: #ef4444; /* PDF red icon */
  margin-bottom: 20px;
}

.report-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--primary);
  flex-grow: 1;
}

.report-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.report-actions a {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-preview {
  background-color: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-preview:hover {
  background-color: var(--border);
}

.btn-download {
  background-color: var(--primary);
  color: var(--white);
}

.btn-download:hover {
  background-color: var(--primary-light);
}

/* Admin panel UI */
.admin-login-wrapper {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}

.admin-login-wrapper h2 {
  text-align: center;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
  outline: none;
}

.admin-dashboard {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.admin-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  background-color: var(--bg-light);
}

.admin-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Footer modern styles */
.site-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 20px 0;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.8;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  background-color: transparent;
  transition: var(--transition);
}

.footer-logos img:hover {
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll To Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--secondary);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .services-grid, .gallery-grid, .reports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sejarah-layout, .contact-grid, .footer-top, .admin-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none; /* Hide top bar on smaller screens */
  }
  
  .menu-toggle {
    display: block; /* Show burger menu */
  }
  
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 40px;
    gap: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
  }
  
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--secondary);
    border-radius: 0;
    padding-left: 15px;
    margin-top: 5px;
    display: none; /* Toggle with JS on mobile */
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item:hover .nav-dropdown {
    transform: none;
  }
  
  .nav-item.open .nav-dropdown {
    display: block;
  }
  
  .services-grid, .gallery-grid, .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .checklist {
    grid-template-columns: 1fr;
  }
  
  .legalitas-grid {
    grid-template-columns: 1fr;
  }
}
