/* ==========================================================================
   BAP SIGNATURES - CORPORATE BUSINESS DESIGN SYSTEM
   Theme: High-Contrast Eye-Comfort Light Sections with Pure Black Header & Footer
   Typography: Plus Jakarta Sans (Optimal Readability across all Devices)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Cinzel:wght@600;700;800&display=swap');

:root {
  /* Header & Footer Black Anchor */
  --bg-header: #090a0f;
  --bg-footer: #090a0f;
  --border-dark-header: rgba(255, 255, 255, 0.12);

  /* Variant Eye-Comfort Light Section Backgrounds */
  --bg-body: #ffffff;
  --bg-section-white: #ffffff;
  --bg-section-comfort: #f8fafc;
  --bg-section-tint: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-badge-light: #f1f5f9;

  /* Typography Colors (Dark on Light) */
  --text-primary: #0f172a;       /* Deepest Slate Black for Headings */
  --text-secondary: #334155;     /* High-legibility Slate for Body text */
  --text-muted: #64748b;         /* Muted Slate for Meta & Subtitles */
  --text-inverse: #ffffff;       /* Pure White for Black Header/Footer */
  --text-inverse-muted: #94a3b8; /* Muted White for Header/Footer */

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Elevation Shadows (Soft & Modern) */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);

  /* Primary Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-brand: 'Cinzel', serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout Container */
  --container-max: 1240px;
  --container-wide: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.68;
  overflow-x: hidden;
  position: relative;
}

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

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout Container (Strict Containment, No Overflow) */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  position: relative;
}

.section {
  padding-top: 85px;
  padding-bottom: 85px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-badge-light);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.eyebrow-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f172a;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  word-break: break-word;
}

.section-title .highlight-dark {
  color: #0f172a;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Corporate Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

/* Primary Button: Solid Black */
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button: Clean White with Crisp Border */
.btn-secondary {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-glass {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.98rem;
}

/* Divider Line */
.section-divider {
  width: 48px;
  height: 3px;
  background: #0f172a;
  margin: 16px 0;
  border-radius: 2px;
}

.section-divider.center {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
