:root {
  --bcc-navy: #00173f;
  --bcc-blue: #072b63;
  --bcc-gold: #b98a3d;
  --bcc-warm: #fcf9f8;
}

html { scroll-behavior: smooth; }
body { min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.public-site.public-site {
  /*
   * Public routes share the app's compiled Tailwind utilities, but use Burgan's
   * own semantic palette. Keeping these values in CSS makes the first
   * server-rendered frame identical to the hydrated page.
   */
  --background: #fcf9f8;
  --foreground: #1c1b1b;
  --primary: #00173f;
  --primary-foreground: #ffffff;
  --secondary: #7e570a;
  --secondary-foreground: #ffffff;
  --destructive: #ba1a1a;
  --destructive-foreground: #ffffff;
}

.public-site .bcc-footer {
  background-color: var(--bcc-navy);
  color: #ffffff;
}

.bcc-hero-media {
  background-position: center bottom !important;
  background-repeat: no-repeat;
}

.bcc-glass-button {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 23, 63, 0.08);
}

.bcc-glass-button:hover {
  background: rgba(255, 255, 255, 0.78);
}

/* Maintain readable contrast whenever muted brand text appears on navy panels. */
.bg-primary .text-on-primary-fixed-variant {
  color: #ffffff !important;
}

.bcc-header {
  background: rgba(252, 249, 248, 0.96);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.bcc-header.is-scrolled { background: rgba(255,255,255,.94) !important; box-shadow: 0 8px 28px rgba(0,23,63,.08); }
.bcc-logo { display: flex; align-items: center; flex: 0 0 auto; }
.bcc-logo-image {
  display: block;
  width: 300px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  border-radius: 5px;
  background: transparent;
  mix-blend-mode: multiply;
}
.bcc-nav-link {
  color: #444650;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.bcc-nav-link:hover, .bcc-nav-link.is-active { color: var(--bcc-navy); border-color: var(--bcc-gold); }
.bcc-mobile-menu {
  background: rgba(255,255,255,.98);
  border-top: 1px solid rgba(196,198,209,.35);
  padding: 12px 20px 20px;
  box-shadow: 0 18px 30px rgba(0,23,63,.09);
}
.bcc-mobile-menu a, .bcc-mobile-menu button {
  display: block;
  width: 100%;
  padding: 13px 4px;
  color: var(--bcc-navy);
  text-align: left;
  border-bottom: 1px solid #ece9e7;
  font: 600 14px/1.2 Inter, sans-serif;
}
.footer-link { color: white; transition: color .2s ease; }
.footer-link:hover { color: #f3be6b; }
.bcc-footer-logo-link { display: inline-block; margin-bottom: 16px; border-radius: 8px; background: transparent; overflow: visible; }
.bcc-footer-logo-image { display: block; width: min(200px, 100%); height: auto; }
.footer-portal-link { display: inline-flex; align-items: center; gap: 8px; color: #ffddaf; font-weight: 600; text-align: left; }
.footer-portal-link .material-symbols-outlined { font-size: 17px; }

.bcc-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #1c1b1b;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,23,63,.28);
}
.bcc-dialog[open] { display: block; }
.bcc-dialog::backdrop { background: rgba(0,23,63,.68); backdrop-filter: blur(7px); }
.bcc-dialog-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  padding: 32px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
}
.bcc-dialog-card h2 { color: var(--bcc-navy); font: 700 32px/1.15 "Hanken Grotesk", sans-serif; }
.bcc-dialog-card p { color: #5f616b; font: 400 15px/1.6 Inter, sans-serif; }
.bcc-dialog-card label { display: grid; gap: 7px; color: var(--bcc-navy); font: 600 12px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.bcc-dialog-card input, .bcc-dialog-card select, .bcc-dialog-card textarea {
  width: 100%;
  border: 1px solid #d9dadd;
  border-radius: 8px;
  background: #faf8f5;
  color: #1c1b1b;
  padding: 12px 13px;
  font: 400 15px/1.3 Inter, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.bcc-dialog-card input:focus, .bcc-dialog-card select:focus, .bcc-dialog-card textarea:focus { outline: 2px solid var(--bcc-gold); outline-offset: 1px; }
.bcc-dialog-close { position: absolute; top: 14px; right: 18px; color: var(--bcc-navy); font-size: 28px; line-height: 1; }
.bcc-eyebrow { color: var(--bcc-gold); font: 700 11px/1 Inter, sans-serif; letter-spacing: .14em; }
.bcc-submit { border-radius: 8px; background: var(--bcc-navy); color: white; padding: 14px 18px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bcc-help { color: var(--bcc-blue); text-align: center; font: 600 13px/1.2 Inter, sans-serif; }
.bcc-coming-soon {
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: .62;
  filter: saturate(.35);
  box-shadow: none !important;
  transform: none !important;
}
.bcc-provider-dialog { width: min(920px, calc(100% - 32px)); }
.bcc-provider-card { min-height: 450px; }
.bcc-provider-login { display: grid; gap: 16px; margin-top: 22px; }
.bcc-provider-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.bcc-provider-logout { flex: 0 0 auto; border: 1px solid #c4c6d1; border-radius: 7px; color: var(--bcc-navy); padding: 10px 14px; font: 600 12px/1 Inter, sans-serif; }
.bcc-job-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.bcc-job-card { display: grid; gap: 12px; padding: 20px; border: 1px solid #e0e1e5; border-radius: 10px; background: #faf8f5; }
.bcc-job-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bcc-job-id { color: var(--bcc-gold); font: 700 11px/1 Inter, sans-serif; letter-spacing: .09em; }
.bcc-priority { border-radius: 999px; background: #e7ebf3; color: var(--bcc-navy); padding: 6px 8px; font: 700 9px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.bcc-priority-urgent { background: #ffdad6; color: #93000a; }
.bcc-job-card h3 { color: var(--bcc-navy); font: 700 19px/1.25 "Hanken Grotesk", sans-serif; }
.bcc-job-card > p { color: #5f616b; font: 400 13px/1.45 Inter, sans-serif; }
.bcc-job-meta { display: grid; gap: 8px; color: #444650; font: 400 12px/1.35 Inter, sans-serif; }
.bcc-job-meta span { display: grid; gap: 2px; }
.bcc-job-card label { margin-top: auto; }
.bcc-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 40px));
  padding: 15px 18px;
  border-radius: 9px;
  background: var(--bcc-navy);
  color: white;
  box-shadow: 0 15px 40px rgba(0,23,63,.25);
  font: 600 14px/1.4 Inter, sans-serif;
}

[dir="rtl"] .bcc-dialog-close { right: auto; left: 18px; }
[dir="rtl"] .bcc-mobile-menu a, [dir="rtl"] .bcc-mobile-menu button { text-align: right; }
[dir="rtl"] .material-symbols-outlined { direction: rtl; }

@media (max-width: 900px) {
  .bcc-header nav { padding-left: 20px !important; padding-right: 20px !important; }
  .bcc-logo-image { width: 220px; height: 54px; }
  .bcc-language, .bcc-contact { display: none !important; }
  footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  .bcc-job-list { grid-template-columns: 1fr; max-height: 55vh; overflow-y: auto; padding-right: 4px; }
}

@media (max-width: 560px) {
  .bcc-logo-image { width: 178px; height: 48px; }
  .bcc-footer-logo-image { width: min(180px, 100%); }
  .bcc-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .bcc-dialog-card { gap: 12px; max-height: calc(100dvh - 20px); padding: 28px 20px 22px; }
  .bcc-dialog-card h2 { padding-right: 24px; font-size: 27px; }
  [dir="rtl"] .bcc-dialog-card h2 { padding-right: 0; padding-left: 24px; }
  .bcc-toast { right: 20px; bottom: 20px; }
}

@media (max-height: 760px) {
  .bcc-dialog-card { gap: 10px; padding-top: 24px; padding-bottom: 24px; }
  .bcc-dialog-card h2 { font-size: 27px; }
  .bcc-dialog-card p { line-height: 1.4; }
  .bcc-dialog-card input,
  .bcc-dialog-card select,
  .bcc-dialog-card textarea { padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Main-app integration: complete bidirectional behavior for the public website. */
[dir="rtl"] .public-site { text-align: right; }
[dir="rtl"] .public-site .text-left { text-align: right !important; }
[dir="rtl"] .public-site .text-right { text-align: left !important; }
[dir="rtl"] .public-site .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .public-site .mr-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .bcc-mobile-menu a,
[dir="rtl"] .bcc-mobile-menu button { text-align: right; }
[dir="rtl"] .public-site input,
[dir="rtl"] .public-site textarea,
[dir="rtl"] .public-site select { text-align: right; }
[dir="rtl"] .public-site .material-symbols-outlined { direction: rtl; }
