/* ============================================================
   BKI Ltd – Brand Design System
   Palette: Purple #5B2D91 · Navy #0C1254 · Orange #F97316
   NOTE: No @apply — Tailwind CDN does not process @apply in
   external stylesheets. All utilities written as plain CSS.
   ============================================================ */

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

:root {
  --navy:         #0C1254;
  --navy-dark:    #060A30;
  --navy-800:     #0F1666;
  --navy-700:     #141E7A;
  --navy-600:     #1A2888;
  --steel:        #5B2D91;
  --steel-lt:     #7B45B5;
  --steel-200:    #9F65D5;
  --gold:         #F97316;
  --gold-lt:      #FB923C;
  --gold-dk:      #EA580C;
  --white:        #FFFFFF;
  --slate-50:     #f8fafc;
  --slate-100:    #f1f5f9;
  --slate-200:    #e2e8f0;
  --slate-300:    #cbd5e1;
  --slate-400:    #94a3b8;
  --slate-500:    #64748b;
  --slate-600:    #475569;
  --slate-700:    #334155;
  --slate-900:    #0f172a;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--slate-900);
  background: #fff;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;          /* slate-200 — clearly visible on dark bg */
  border-radius: 0.5rem;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
}
.nav-link.active {
  color: var(--gold) !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-heading {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #ffffff; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.10);
  color: var(--slate-400);
  transition: all 0.2s;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ── Hero / Backgrounds ───────────────────────────────────── */
.hero-bg {
  background-color: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(6,10,48,0.97) 0%,
    rgba(12,18,84,0.90) 40%,
    rgba(91,45,145,0.55) 75%,
    rgba(91,45,145,0.20) 100%
  );
}
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 48px 48px;
}
.industrial-grid {
  background-image:
    linear-gradient(rgba(249,115,22,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Sections ─────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--gold);
}
.section-badge::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-dark);
}
.section-title-light {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}
.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ── Cards ────────────────────────────────────────────────── */
.service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--slate-100);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
  border-bottom-color: var(--gold);
}
.project-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: var(--navy-800);
  cursor: pointer;
  transition: all 0.3s;
}
.project-card:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.40);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}
.btn-primary:hover {
  background: var(--gold-lt);
  box-shadow: 0 6px 24px rgba(249,115,22,0.45);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.35);
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9375rem;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.08);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(91,45,145,0.3);
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  color: var(--navy-dark);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn-outline-dark:hover {
  border-color: var(--steel);
  background: rgba(91,45,145,0.08);
}
.btn-steel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  background: var(--steel);
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}
.btn-steel:hover { background: var(--steel-lt); }

/* ── Icon boxes ───────────────────────────────────────────── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: rgba(91,45,145,0.10);
  color: var(--steel-lt);
  transition: all 0.2s;
}
.service-card:hover .icon-box {
  background: rgba(249,115,22,0.10);
  color: var(--gold);
}
.icon-box-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: rgba(249,115,22,0.12);
  color: var(--gold);
}
.icon-box-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.10);
  color: var(--gold);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  color: var(--slate-900);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.form-input::placeholder { color: var(--slate-400); }
.form-input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(91,45,145,0.12);
}
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  color: var(--slate-900);
  font-size: 0.875rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.form-textarea::placeholder { color: var(--slate-400); }
.form-textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(91,45,145,0.12);
}
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  color: var(--slate-900);
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
}
.form-select:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(91,45,145,0.12);
}
.form-input-dark {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  background: #1a3555;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.form-input-dark::placeholder { color: rgba(255,255,255,0.40); }
.form-input-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
  background: #1f3d63;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.alert-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  background: var(--navy-dark);
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(91,45,145,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(249,115,22,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Process steps ────────────────────────────────────────── */
.gold-divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0;
}

/* ── KPI counter ──────────────────────────────────────────── */
.kpi-number {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

/* ── Map dot ──────────────────────────────────────────────── */
.map-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.25);
  cursor: pointer;
}
.map-dot::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(249,115,22,0.2);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Pitch deck ───────────────────────────────────────────── */
.slide-container { aspect-ratio: 16/9; min-height: 400px; }
.slide {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  position: relative; overflow: hidden;
}
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
}
.slide-cover   { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--steel) 100%); }
.slide-closing { background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 60%, var(--gold-dk) 150%); }

/* ── Admin sidebar ────────────────────────────────────────── */
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 2px;
}
.admin-sidebar-link:hover {
  background: #293548;
  color: #e2e8f0;
}
.admin-sidebar-link.active {
  background: #C9A227;
  color: #1e293b;
  font-weight: 600;
}
.admin-sidebar-link.active svg {
  color: #1e293b;
}
.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.admin-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ── Tables ───────────────────────────────────────────────── */
.bki-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-500);
}
.bki-table td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f8fafc;
  color: var(--slate-700);
}
.bki-table tr:last-child td { border-bottom: none; }
.bki-table tr:hover td { background: var(--slate-50); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,0.20); }

/* ── Tag / badge ──────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Scroll animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ── ESG card ─────────────────────────────────────────────── */
.esg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.esg-card:hover {
  box-shadow: 0 12px 40px rgba(91,45,145,0.10);
  transform: translateY(-2px);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-lt); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-up    { animation: fadeInUp 0.7s ease both; }
.animate-slide-left { animation: slideInLeft 0.7s ease both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ── Photo overlay utility ────────────────────────────────── */
.img-overlay { position: relative; }
.img-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,10,48,0.85) 0%, rgba(6,10,48,0.3) 60%, transparent 100%);
  border-radius: inherit;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-title, .section-title-light { font-size: 1.875rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  header, footer, .no-print { display: none !important; }
}
