/* ================================================================
   VERTRAUS CAREERS PORTAL - Shared styles
   Navy / Gold palette matching vertraus.com
================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --navy: #1d2426;
  --navy-mid: #2c3436;
  --navy-dark: #101419;
  --navy-deep: #0b0f11;
  --gold: #cfb37b;
  --gold-bright: #e2c992;
  --gold-soft: rgba(207, 179, 123, 0.12);
  --bg-light: #efeee9;
  --bg-cream: #f6f5f1;
  --text-dark: #16191c;
  --text-mid: #4A4A4A;
  --text-light: #777b7b;
  --border-soft: rgba(17, 20, 24, 0.1);
  --border-medium: rgba(17, 20, 24, 0.18);
  --danger: #B91C1C;
  --success: #15803D;
  --font-display: 'Manrope', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --max-width: 1280px;
  --content-width: 1140px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--navy-dark); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }
p { margin-bottom: 1rem; color: var(--text-mid); }
.display-italic { font-style: italic; font-weight: 400; color: var(--gold); }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 2rem;
  background: rgba(15, 26, 46, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.1;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
  text-align: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.5rem 0;
  transition: color 0.25s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { border-bottom: 1px solid var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.6rem 1.3rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

/* ===== Mobile nav (hamburger + drawer) ===== */
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  padding: 0;
  position: relative;
  background: none; border: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: #fff;
  margin: 5px auto;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 100%; max-width: 340px;
  height: 100vh;
  background: var(--navy-dark);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1200;
  padding: 5.5rem 2rem 2rem;
  box-shadow: -8px 0 32px rgba(0,0,0,0.35);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; }
.nav-mobile li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile a { display: block; padding: 1.05rem 0; color: #fff; font-size: 1.05rem; font-weight: 500; }
.nav-mobile .nav-cta-mobile { display: block; text-align: center; background: var(--gold); color: var(--navy-dark); padding: 0.9rem; border-radius: 2px; font-weight: 600; margin-top: 1.5rem; }
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1100;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: block; }
  .nav-overlay { display: block; }
}

/* ========== PAGE HERO BANNER ========== */
.page-hero {
  position: relative;
  background: var(--navy-dark);
  color: #fff;
  padding: 9rem 0 4rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 168, 76, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(46, 74, 122, 0.4), transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ========== CONTAINERS ========== */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-medium);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--bg-light); }
.btn-dark {
  background: var(--navy-dark);
  color: #fff;
}
.btn-dark:hover { background: var(--navy); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(185, 28, 28, 0.3);
}
.btn-danger:hover { background: rgba(185, 28, 28, 0.05); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }

/* ========== FORM ELEMENTS ========== */
.form-group { margin-bottom: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
label .req { color: var(--danger); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border-medium);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: all 0.2s;
}
input:focus, select:focus, textarea:focus {
  
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.help-text {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* ========== CARDS / PANELS ========== */
.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1.75rem;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(15, 26, 46, 0.06);
}

/* ========== STATS / CHIPS ========== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 500;
}
.chip-gold { background: var(--gold-soft); border-color: rgba(201, 168, 76, 0.3); color: var(--navy-dark); }
.chip-green { background: #DCFCE7; border-color: #86EFAC; color: #15803D; }
.chip-dot::before { content: ''; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ========== ALERTS ========== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  border-left: 3px solid;
}
.alert-success { background: #DCFCE7; border-color: var(--success); color: #166534; }
.alert-danger { background: #FEE2E2; border-color: var(--danger); color: #991B1B; }
.alert-info { background: #DBEAFE; border-color: #2563EB; color: #1E40AF; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.88rem;
}
.footer a { color: var(--gold); }
.footer a:hover { color: var(--gold-bright); }
.footer .cert { margin-top: 0.5rem; font-size: 0.78rem; opacity: 0.6; }

/* ========== LOADING ========== */
.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

/* ========== EMPTY STATES ========== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ========== MOBILE ========== */
@media (max-width: 960px) {
  .nav { padding: 0.9rem 1.25rem; }
  .nav-logo img { height: 36px; }
  .nav-logo-text { font-size: 1.15rem; }
  .nav-logo-text small { font-size: 0.55rem; }
  .nav-menu { gap: 1.25rem; }
  .nav-menu .nav-link { font-size: 0.84rem; }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .container { padding: 0 1.25rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
}

/* Keyboard focus on portal search, application and admin controls */
:is(a,button,input,select,textarea,summary):focus-visible{
  outline:2px solid #956829;
  outline-offset:3px;
  box-shadow:0 0 0 2px #f6f5f1;
}
