/* ─── Shared styles for Gravity House job pages ─────────────────
   Tokens and components mirrored from index.html / work-with-us.html */

:root {
  --bg:       #141412;
  --surface:  #1e1d1a;
  --surface2: #2a2925;
  --chalk:    #f2ede4;
  --muted:    #9a9080;
  --accent:   #d96b2a;
  --green:    #6b8f4e;
  --border:   rgba(242, 237, 228, 0.08);
  --border-accent: rgba(217, 107, 42, 0.3);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --max-w: 1440px;
  --pad-x: clamp(1.5rem, 4vw, 4rem);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--chalk);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ─── UTILITY ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: 72px;
  background: rgba(20, 20, 18, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 1.2rem; }
.nav-icon { display: block; width: 80px; height: 23px; flex-shrink: 0; }
.nav-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--chalk);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2.5rem);
  min-width: 0;
}
.nav-links li {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a.active { color: var(--chalk); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 2px;
}
.btn-subscribe {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-subscribe:hover { background: #c05a1f; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--chalk); border-radius: 2px; transition: 0.3s; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #c05a1f; transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(242,237,228,0.25);
  color: var(--chalk);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--chalk); transform: translateY(-2px); }

/* ─── SECTION COMMON ────────────────────────────────────────── */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--chalk);
}

/* ─── META CHIPS ────────────────────────────────────────────── */
.position-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.meta-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(107,143,78,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.meta-chip.chip-accent {
  color: var(--accent);
  border-color: var(--border-accent);
}

/* ─── JOB DETAIL ────────────────────────────────────────────── */
.job {
  padding-top: calc(72px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.job::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 40% at 85% 0%, rgba(107,143,78,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 5% 15%, rgba(217,107,42,0.10) 0%, transparent 55%);
}
.job-inner { max-width: 760px; margin-inline: auto; position: relative; z-index: 1; }
.job-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.job-breadcrumb:hover { color: var(--chalk); }
.job-header .section-title { font-size: clamp(2.6rem, 6vw, 4rem); }
.job-header .job-apply-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.job-intro {
  color: var(--chalk);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 2.5rem;
}
.job-intro strong { color: var(--chalk); }

.job-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.job-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 1rem;
}
.job-section p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.job-section p:last-child { margin-bottom: 0; }
.job-section p strong { color: var(--chalk); font-weight: 600; }

.job-list { list-style: none; margin-top: 0.5rem; }
.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.6;
}
.job-list li:last-child { border-bottom: none; }
.job-list li::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 700;
  color: var(--green);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.job-list li strong { color: var(--chalk); font-weight: 600; }

.job-salary {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
}
.job-salary-note { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ─── APPLY ─────────────────────────────────────────────────── */
.apply {
  background: var(--surface);
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.apply-inner { max-width: 640px; margin-inline: auto; }
.apply h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 1rem;
}
.apply-intro {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.apply-intro strong { color: var(--chalk); font-weight: 600; }
.apply-intro a { color: var(--accent); font-weight: 600; }
.apply-intro a:hover { text-decoration: underline; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--chalk);
}
.form-group label .optional { color: var(--muted); font-weight: 400; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid rgba(217, 107, 42, 0.4);
  border-radius: 4px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a9080' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input.field-error,
.form-group textarea.field-error { border-color: #e05050; }
.form-group textarea { resize: vertical; min-height: 180px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.btn-form-submit {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 1.1rem 2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-form-submit:hover { background: #c05a1f; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
}
.apply-direct {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.apply-direct a { color: var(--accent); font-weight: 600; }
.apply-direct a:hover { text-decoration: underline; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { display: block; width: 140px; height: 140px; margin-bottom: 0.5rem; }
.footer-brand .nav-name { font-size: 1.4rem; margin-top: 0.25rem; display: block; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--chalk);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--chalk); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    inset-inline: 0;
    background: rgba(20,20,18,0.97);
    backdrop-filter: blur(6px);
    padding: 2rem var(--pad-x);
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .job-header .job-apply-cta { flex-direction: column; }
}

.nav-subscribe-menu { display: none; }
@media (max-width: 499px) {
  .nav-actions .btn-subscribe { display: none; }
  .nav-links.open .nav-subscribe-menu { display: block; }
}
