/* ==========================================================================
   Pembinaan Kerjadi Sdn Bhd - Brand Styling
   ========================================================================== */

/* Import Brand Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Color Palette */
  --color-primary: #319546;          /* Construction brand green */
  --color-primary-dark: #236c32;     /* Darker shade for hover state */
  --color-secondary: #4a5568;        /* Body text gray */
  --color-accent: #3cb85c;           /* Highlights/secondary green */
  --color-bg-light: #f7faf9;         /* Off-white / light section gray */
  --color-dark: #1a202c;             /* Dark headers / deep charcoal */
  --color-border: #e2e8f0;           /* Soft border lines */

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base resets & typography applications */
body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Brand styling helpers */
.text-brand {
  color: var(--color-primary) !important;
}

.bg-brand {
  background-color: var(--color-primary) !important;
}

/* Custom Primary Button Styles */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  box-shadow: 0 4px 12px rgba(49, 149, 70, 0.25);
}

/* Section Padding Utilities */
.section-padding {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Responsive container overrides for a premium feel */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}

/* ==========================================================================
   Header and Navbar Component Customization
   ========================================================================== */
.navbar-custom {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-logo span {
  color: var(--color-primary);
}

.navbar-custom .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active,
.navbar-custom .dropdown-item.active {
  color: var(--color-primary) !important;
}

.navbar-custom .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.navbar-custom .dropdown-item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}

.navbar-custom .dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  padding-left: 1.4rem;
}

/* Scrolling modifier for Header shadow */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

/* ==========================================================================
   Footer Component Customization
   ========================================================================== */
.footer-custom {
  background-color: var(--color-dark);
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-custom h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-custom h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-custom a {
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-custom a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-custom .quick-links li {
  margin-bottom: 8px;
}

.footer-custom .contact-info li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-custom .contact-info i {
  color: var(--color-primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
}

/* ==========================================================================
   Organizational Chart Styling
   ========================================================================== */
.org-chart-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.org-chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.org-connector-vertical {
  width: 2px;
  background-color: var(--color-border);
  height: 24px;
  margin: 0 auto;
}

.org-pillar-header {
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.org-role-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  height: 100%;
  text-align: center;
}

.org-role-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(49, 149, 70, 0.08);
  transform: translateY(-2px);
}

.org-role-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.org-role-dept {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}

