/* ══════════════════════════════════════════════
   LDRC Design System — CSS Variables & Tokens
   Bootstrap 5 companion styles
══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg:           #080E18;
  --color-surface:      #0F1A2E;
  --color-surface-2:    #152338;
  --color-border:       rgba(228, 210, 167, 0.15);
  --color-border-hover: rgba(228, 210, 167, 0.45);
  --gold:               #C9A961;
  --gold-light:         #E4D2A7;
  --gold-hover:         #B4914A;
  --text-primary:       #F0EBE0;
  --text-secondary:     #B8A98A;
  --text-muted:         #7A6E5F;
  --btn-gradient:       linear-gradient(to bottom, #C9A961 0%, #E4D2A7 100%);
  --btn-gradient-hover: linear-gradient(to bottom, #E4D2A7 0%, #C9A961 100%);
  --font-serif:         'Cormorant Garamond', Georgia, serif;
  --font-sans:          'DM Sans', sans-serif;
  --shadow-card:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover:       0 12px 48px rgba(228,210,167,0.12);
  --radius:             12px;
  --card-padding:       28px;
  --section-py:         100px;
}

/* ── Base body ── */
body {
  background-color: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  margin: 0;
  overflow-x: clip;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
}
p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-pri { color: var(--text-primary) !important; }
.text-sec { color: var(--text-secondary) !important; }

/* ── Gold divider ── */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0;
}
.gold-divider.center { margin: 16px auto; }
.gold-divider.sm { width: 32px; }

/* ── Section label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }

/* ── Cards ── */
.ldrc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}
.ldrc-card:hover {
  border-color: var(--color-border-hover);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Buttons ── */
.btn-ldrc-primary {
  background: var(--btn-gradient);
  color: var(--color-bg);
  border: 1px solid rgba(228,210,167,0.3);
  border-radius: 24px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1.5;
}
.btn-ldrc-primary:hover {
  background: var(--btn-gradient-hover);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(228,210,167,0.3);
  transform: translateY(-2px);
  color: var(--color-bg);
}

.btn-ldrc-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-ldrc-outline:hover {
  background: var(--gold);
  color: var(--color-bg);
  border-color: var(--gold);
}

/* ── Filter pills ── */
.filter-pill {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--gold);
  color: var(--color-bg);
  border-color: var(--gold);
  font-weight: 600;
}

/* ── Surfaces ── */
.bg-surface { background-color: var(--color-surface) !important; }
.bg-surface-2 { background-color: var(--color-surface-2) !important; }
.bg-dark { background-color: var(--color-bg) !important; }
.border-gold { border-color: var(--color-border) !important; }

/* ── Article content (for detail pages) ── */
.article-content h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.3;
}
.article-content h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--gold-light);
  margin: 32px 0 12px;
  line-height: 1.35;
}
.article-content p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-content li {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 32px 0;
  padding: 16px 24px;
  background: rgba(15,26,46,0.5);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
}
.article-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Container System (Matched to React lg:px-20/24) ── */
.ldrc-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 576px) { .ldrc-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 992px) { .ldrc-container { padding-left: 80px; padding-right: 80px; } }
@media (min-width: 1200px) { .ldrc-container { padding-left: 96px; padding-right: 96px; } }

/* ── Typography Responsive Scaling ── */
h1 { font-size: clamp(32px, 8vw, 62px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 6vw, 44px); line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 4vw, 32px); line-height: 1.3; }

/* ── Scrollbar Hide ── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Mobile-first spacing ── */
.section-py { padding-top: 60px; padding-bottom: 60px; }
@media (min-width: 992px) { .section-py { padding-top: 100px; padding-bottom: 100px; } }

/* ── Instant boot cover (injected by inline body script; removed when loader mounts) ── */
#ldrc-boot-curtain {
  position: fixed;
  inset: 0;
  margin: 0;
  background: #080e18;
  z-index: 2147483000;
}

/* ── LDRC Loader ── */
/* No opacity transition: fading a full-screen layer causes visible blink on many GPUs. */
.ldrc-loader-overlay {
  position: fixed;
  inset: 0;
  background: #080e18;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.ldrc-loader-overlay.ldrc-loader--hidden {
  display: none !important;
}
.ldrc-loader-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.ldrc-loader-icon {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ldrc-loader-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  animation: fade-text 1.6s ease-in-out infinite;
}
.ldrc-loader-msg {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: -8px;
}

@keyframes ldrc-spin {
  to { transform: rotate(360deg); }
}
@keyframes arc-pulse {
  0%   { stroke-dasharray: 8 100; stroke-opacity: 0.4; }
  50%  { stroke-dasharray: 55 50;  stroke-opacity: 1; }
  100% { stroke-dasharray: 8 100; stroke-opacity: 0.4; }
}
@keyframes fade-text {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ── Job Detail Page ── */
.job-detail-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-top: 100px;
  padding-bottom: 48px;
}
.job-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.job-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.job-breadcrumb a:hover { color: var(--gold); }
.job-breadcrumb .sep { color: var(--gold); opacity: 0.6; }
.job-breadcrumb .current { color: var(--gold); }

.job-meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
}
.job-meta-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.job-section-block {
  border-left: 2px solid var(--color-border);
  padding-left: 20px;
  margin-bottom: 36px;
  transition: border-color 0.3s;
}
.job-section-block:hover {
  border-left-color: var(--gold);
}

.job-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
}
.job-bullet-item .bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

.job-tag-pill {
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  transition: all 0.3s;
}
.job-tag-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.job-apply-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}

.job-nav-btn {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
}
.job-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}
