/* ══════════════════════════════════════════════
   LDRC Design System — CSS Variables & Tokens
   Bootstrap 5 companion styles
══════════════════════════════════════════════ */

/* Web fonts: use @include('partials.google-fonts') in Blade layouts. Static /template/*.html: add the same <link> before this stylesheet, or one-off @import of the same Google URL. */

:root {
  --color-bg: #020617;
  --color-surface: #0f172a;
  --color-surface-2: #1e293b;
  --color-border: rgba(99, 102, 241, 0.12);
  --color-border-hover: rgba(99, 102, 241, 0.35);
  --gold: #6366F1; /* Primary Indigo */
  --gold-light: #818CF8; /* Light Indigo */
  --gold-hover: #4F46E5; /* Dark Indigo */
  --accent: #10B981; /* Emerald for success/sale */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --btn-gradient: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
  --btn-gradient-hover: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  --font-serif: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 12px 48px rgba(99, 102, 241, 0.15);
  --radius: 16px;
  --card-padding: 30px;
  --section-py: 100px;
}

/* Light theme overrides */
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-2: #e2e8f0;
  --color-border: rgba(15, 23, 42, 0.12);
  --color-border-hover: rgba(15, 23, 42, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}

/* Dark theme — explicit tokens when toggled (html defaults to light via data-theme) */
[data-theme="dark"] {
  --color-bg: #020617;
  --color-surface: #0f172a;
  --color-surface-2: #1e293b;
  --color-border: rgba(99, 102, 241, 0.12);
  --color-border-hover: rgba(99, 102, 241, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 12px 48px rgba(99, 102, 241, 0.15);
  color-scheme: dark;
}

/* Light theme consistency fixes for legacy hardcoded dark-mode text/input styles */
[data-theme="light"] .text-white,
[data-theme="light"] .text-light {
  color: var(--text-primary) !important;
}

[data-theme="light"] .text-muted {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .table,
[data-theme="light"] .table td,
[data-theme="light"] .table th {
  color: var(--text-primary) !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-theme="light"] .input-group-text,
[data-theme="light"] textarea,
[data-theme="light"] select,
[data-theme="light"] input {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
}

[data-theme="light"] .dropdown-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="light"] .dropdown-item:hover {
  background: var(--color-surface-2);
  color: var(--text-primary);
}

/* Override frequent inline dark-only colors used in templates */
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #e6edf3"],
[data-theme="light"] [style*="color:#e6edf3"] {
  color: var(--text-primary) !important;
}

[data-theme="light"] [style*="background: var(--color-bg)"] {
  background: var(--color-surface) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]) {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .dropdown-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: var(--color-surface-2);
  color: var(--text-primary);
}

/* ── 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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── 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-muted {
  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;
  }
}

/* ── LDRC Loader ── */
.ldrc-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 24, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.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 ── */
/* Keep below header (z-index 1050) and main content; 9999 covered the navbar when sticky */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  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");
}
[data-theme="light"] body::before {
  opacity: 0.015;
}