/* ============================================================
   Berdikari Manajemen Investasi, PT
   Template 12 - Finance/Investment
   Color Palette: Deep Navy (#0A1628), Gold (#C8A951)
   Fonts: Playfair Display (headings), Inter (body)
   ============================================================ */

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

:root {
  --primary: #0A1628;
  --primary-light: #1B2A4A;
  --primary-lighter: #243356;
  --gold: #C8A951;
  --gold-light: #D4B96A;
  --gold-dark: #A88D35;
  --white: #FFFFFF;
  --light-bg: #F4F6F9;
  --light-bg-alt: #EDF0F5;
  --text-dark: #1E293B;
  --text-medium: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --success: #16A34A;
  --danger: #DC2626;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  transition: all 0.3s ease;
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar-brand .brand-gold { color: var(--gold); }

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-medium) !important;
  padding: 8px 16px !important;
  transition: all 0.3s;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gold-dark) !important;
}

.navbar .nav-link.active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  margin: 4px auto 0;
  transition: width 0.3s;
}

.navbar-toggler {
  border: none;
  padding: 8px;
  color: var(--primary);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  opacity: 0.35;
  filter: grayscale(30%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.75) 50%, rgba(10,22,40,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 169, 81, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(200, 169, 81, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 .gold-text { color: var(--gold); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary-custom {
  background: var(--gold);
  color: var(--primary);
  border: 2px solid var(--gold);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.btn-outline-custom:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat h4 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header { margin-bottom: 56px; }

.section-label {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 36px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-medium);
  max-width: 560px;
  line-height: 1.8;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 169, 81, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--gold-dark);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 100px 0; background: var(--white); }

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-experience {
  position: absolute;
  bottom: 32px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-experience h4 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0;
  line-height: 1;
}

.about-experience span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.about-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
}

.about-features li i {
  color: var(--gold-dark);
  font-size: 18px;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  padding: 100px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.why-section .section-label { color: var(--gold-light); }
.why-section .section-title { color: var(--white); }
.why-section .section-desc { color: rgba(255,255,255,0.6); }

.why-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
  height: 100%;
}

.why-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-section { padding: 100px 0; background: var(--white); }

.testimonial-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-medium);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h6 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.cta-section h2 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  margin-bottom: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { padding: 100px 0; background: var(--light-bg); }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  height: 100%;
  border: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(200, 169, 81, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 20px;
}

.contact-info-item h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  margin: 0;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: all 0.3s;
  background: var(--light-bg);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.12);
  background: var(--white);
}

.form-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ============================================================
   PAGE BANNER (INNER PAGES)
   ============================================================ */
.page-banner {
  padding: 120px 0 60px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-alt.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.page-banner .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.page-banner .breadcrumb-item.active { color: var(--gold-light); }

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}

.footer-top { padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--primary);
}

.footer-bottom {
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-content { padding: 80px 0; }

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.content-block h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 28px;
  color: var(--primary);
}

.content-block p {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-block ul {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
}

.content-block ul li { margin-bottom: 8px; }

/* Sidebar */
.sidebar-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card ul li { margin-bottom: 8px; }

.sidebar-card ul li a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.sidebar-card ul li a:hover,
.sidebar-card ul li a.active {
  background: var(--gold);
  color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat h4 { font-size: 28px; }
  .about-image-wrapper { margin-bottom: 40px; }
  .about-image-wrapper img { height: 320px; }
  .about-experience { right: 0; bottom: 16px; }
  .section-title { font-size: 28px; }
  .contact-info-card { margin-bottom: 24px; }
  .navbar-collapse { padding-top: 16px; }
  .navbar .nav-link { padding: 10px 0 !important; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero-content { padding: 100px 0 60px; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { margin-top: 36px; padding-top: 28px; }
  section { padding: 60px 0 !important; }
  .service-card { padding: 28px 20px; }
  .page-banner { padding: 100px 0 40px; }
  .footer-top { padding-bottom: 32px; }
  .why-card { margin-bottom: 20px; }
  .about-experience {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -30px;
    width: fit-content;
    margin-left: auto;
    margin-right: 20px;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER (inline, no CDN dependency)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(10,22,40,0.15);
  padding: 16px 0;
  font-family: var(--font-body);
}

.cookie-banner.cookie-hidden { display: none; }

.cookie-banner .cookie-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.cookie-banner .cookie-text {
  font-size: 14px;
  color: var(--text-medium);
  flex: 1;
  min-width: 260px;
  line-height: 1.6;
}

.cookie-banner .cookie-text a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-banner .cookie-btn.accept {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.cookie-banner .cookie-btn.accept:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--primary);
}

.cookie-banner .cookie-btn.reject {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.cookie-banner .cookie-btn.reject:hover {
  background: var(--primary);
  color: var(--white);
}
