/* 
  ==============================================
  JBPH FINANCIAL SERVICES - STYLESHEET
  ============================================== 
*/

:root {
  /* Color Palette - Premium Banking */
  --primary-navy: #0A192F;
  --primary-dark: #040D1A;
  --secondary-navy: #112240;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #F3E5AB;
  --accent-green: #2E8B57;
  
  --text-main: #333333;
  --text-light: #666666;
  --text-white: #F8F9FA;
  
  --bg-light: #F4F7F6;
  --bg-white: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --section-padding: 80px 0;
  --container-width: 1200px;
  
  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ================== RESET ================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ================== UTILITIES ================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--primary-navy); color: var(--text-white); }
.bg-dark { background-color: var(--primary-dark); color: var(--text-white); }

.text-center { text-align: center; }

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.bg-navy .section-header h2 { color: var(--text-white); }
.bg-navy .section-header p { color: rgba(255,255,255,0.8); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* ================== NAVIGATION ================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.1;
}

.logo-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: var(--primary-navy);
  font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-gold);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ================== HERO SECTION ================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for header */
  background-color: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(4,13,26,0.7) 50%, rgba(4,13,26,0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--text-white);
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-white);
}

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

.hero p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* ================== ABOUT SUMMARY ================== */
.about-summary {
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-gold);
  border-radius: var(--border-radius);
  transform: translate(20px, 20px);
  z-index: -1;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.about-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.about-bullets i {
  color: var(--accent-gold);
}

/* ================== SERVICES GRID ================== */
.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

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

.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 25, 47, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-navy);
  font-size: 1.8rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-navy);
  color: var(--accent-gold);
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--accent-gold);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* ================== WHY CHOOSE US ================== */
.why-choose-us {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ================== COUNTER SECTION ================== */
.counters {
  background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 80px 0;
  color: var(--text-white);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-item i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.counter-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.counter-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

/* ================== LEADERSHIP ================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.leader-card {
  text-align: center;
}

.leader-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.leader-card h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.leader-card > p {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.leader-details p {
  color: var(--text-main);
  font-weight: normal;
  margin-bottom: 5px;
}

.leader-details p strong {
  color: var(--primary-navy);
}

.leader-exp {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ================== CTA SECTION ================== */
.cta-banner {
  background-color: var(--primary-navy);
  padding: 60px 0;
  border-radius: var(--border-radius);
  margin-top: 40px;
  text-align: center;
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0) 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 15px;
}

.cta-banner p {
  margin-bottom: 30px;
  color: rgba(255,255,255,0.8);
}

/* ================== FOOTER ================== */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  padding: 70px 0 20px;
}

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

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

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

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ================== FLOATING ELEMENTS ================== */
.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  color: #FFF;
}

/* ================== ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .about-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Add JS toggle for mobile */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .leadership-grid,
  .counter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
  }
}
