/* Sierra Nevada Corporation — corporate site styles */

:root {
  --bg: #0d0f12;
  --bg-alt: #14171c;
  --bg-card: #1a1e24;
  --bg-card-hover: #20252c;
  --border: #2a2f37;
  --text: #f2f4f7;
  --text-muted: #9aa3ad;
  --text-dim: #6b7480;
  --accent: #c9ccd1;
  --danger: #e5484d;
  --radius: 6px;
  --maxw: 1180px;
  --header-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.brand .logo-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid var(--text);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
  padding: 8px 0;
  display: inline-block;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 120px 0 130px;
  text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(70, 80, 95, 0.35), transparent 70%),
    linear-gradient(180deg, #15181d 0%, #0d0f12 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 14px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--text);
  color: #0d0f12;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-dim);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ---------------------------------------------------------------- Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section .lead {
  color: var(--text-muted);
  max-width: 760px;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.section .subline {
  color: var(--text-dim);
  font-style: italic;
  margin-top: 14px;
}

.section-head {
  margin-bottom: 48px;
}

/* ---------------------------------------------------------------- Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.job-card,
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.job-card:hover,
.location-card:hover {
  border-color: var(--text-dim);
  background: var(--bg-card-hover);
}

.job-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.job-meta {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}

.job-meta li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3px 0 3px 18px;
  position: relative;
}

.job-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.location-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.location-card .loc-place {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.location-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* "Site Sierra" — looks identical to every other location heading. No hint
   that it is a link: same colour, size, weight, no underline, no hover state. */
.location-card h3 a,
.location-card h3 a:hover,
.location-card h3 a:focus,
.location-card h3 a:active,
.location-card h3 a:visited {
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: #090a0c;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.site-footer p + p {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal p {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.auth-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  width: 100%;
  max-width: 380px;
}

.auth-card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.field {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  margin-bottom: 16px;
}

.field:focus {
  outline: none;
  border-color: var(--text-dim);
}

.auth-hint {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.error-msg {
  color: var(--danger);
  font-size: 0.92rem;
  margin-top: 6px;
  margin-bottom: 10px;
  min-height: 1.2em;
}

/* ---------------------------------------------------------------- Oops page */
.oops-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.oops-page .auth-brand {
  margin-bottom: 60px;
}

.oops-text {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.oops-text .addr {
  color: var(--text);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav li {
    border-top: 1px solid var(--border);
  }

  .main-nav li:first-child {
    border-top: none;
  }

  .main-nav a {
    padding: 14px 24px;
    display: block;
  }

  .hero {
    padding: 80px 0 90px;
  }

  .section {
    padding: 64px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
