/* R-Tek Metalworks — Careers / Online Application
   Industrial, high-contrast, red-on-black. Zero border-radius, everywhere. */

:root {
  --rtek-red: #EE1C25;
  --rtek-red-dark: #C4161C;
  --black: #000000;
  --near-black: #0D0D0D;
  --panel: #141414;
  --white: #FFFFFF;
  --text-light: #C9CDD2;
  --text-dark: #1A1D21;
  --ink-heading: #12161C;
  --border-dim: #262626;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .btn, label, nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, input, button, select, textarea {
  font-family: inherit;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 130ms, color 130ms, border-color 130ms;
  white-space: nowrap;
}

.btn--solid {
  background: var(--rtek-red);
  color: var(--white);
  border-color: var(--rtek-red);
}

.btn--solid:hover {
  background: var(--rtek-red-dark);
  border-color: var(--rtek-red-dark);
}

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

.btn--outline:hover {
  background: var(--rtek-red);
  color: var(--white);
}

.btn--submit {
  width: 100%;
  padding: 16px 26px;
  font-size: 0.9rem;
}

.btn--submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 96px 24px 120px;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(238, 28, 37, 0.08) 0px,
      rgba(238, 28, 37, 0.08) 1px,
      transparent 1px,
      transparent 26px
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(238, 28, 37, 0.08), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  color: var(--rtek-red);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero__title {
  position: relative;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subhead {
  position: relative;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.eyebrow, .hero__title, .hero__subhead {
  text-align: center;
}

/* ---------------------------------------------------------------
   Red divider band
   --------------------------------------------------------------- */
.band {
  background: var(--rtek-red);
  padding: 20px 24px;
}

.band__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.band__label {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------
   Application section
   --------------------------------------------------------------- */
.apply-section {
  background: var(--white);
  padding: 64px 24px 96px;
}

.apply-section__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Flash messages */
.flash-region {
  margin-bottom: 24px;
}

.flash {
  padding: 14px 18px;
  border-left: 3px solid var(--rtek-red);
  background: #FBEAEA;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.flash--success {
  border-left-color: #1E8E3E;
  background: #E9F6EC;
}

.flash--info {
  border-left-color: var(--rtek-red);
  background: #FBEAEA;
}

/* Form */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-heading);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid var(--border-dim);
  background: var(--white);
  color: var(--text-dark);
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: 0;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rtek-red);
}

textarea {
  resize: vertical;
  font-family: 'Barlow', sans-serif;
}

.field-error {
  color: var(--rtek-red-dark);
  font-size: 0.82rem;
  margin: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* File upload */
.file-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-upload__filename {
  font-size: 0.88rem;
  color: var(--text-dark);
  opacity: 0.75;
}

/* ---------------------------------------------------------------
   Position detail (dark cards, red top border)
   --------------------------------------------------------------- */
.position-detail {
  background: var(--panel);
  padding: 28px;
  margin: -6px 0 6px;
}

.position-detail__title {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.position-detail__description {
  color: var(--text-light);
  font-family: 'Barlow', sans-serif;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  margin: 0 0 24px;
}

.position-card {
  background: var(--near-black);
  border-top: 3px solid var(--rtek-red);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.position-card:last-child {
  margin-bottom: 0;
}

.position-card__heading {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.position-card__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.position-card__bullets li {
  color: var(--text-light);
  font-family: 'Barlow', sans-serif;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}

.position-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--rtek-red);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  padding: 32px 24px;
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 4px 0;
}

.site-footer a {
  color: var(--text-light);
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 20px 80px;
  }

  .apply-section {
    padding: 48px 20px 64px;
  }
}
