/* Shared styles for /jobs pages — tokens and components mirror index.html */
:root {
  --bg: #f7f6f3;
  --white: #ffffff;
  --black: #111110;
  --ink: #1c1c1a;
  --mid: #706f6b;
  --light: #b8b5ae;
  --border: #e3e0da;
  --accent: #1a3a5c;
  --accent2: #2e5f8a;
  --gold: #b8965a;
  --gold-light: #d4af76;
  --cream: #f0ede6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--ink); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(247,246,243,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-icon { width: 34px; height: 34px; background: var(--accent); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-wordmark { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--black); line-height: 1.1; }
.logo-wordmark span { display: block; font-family: 'Outfit', sans-serif; font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); }
.nav-btn { background: var(--accent) !important; color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 2px; }
.nav-btn:hover { background: var(--accent2) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--black); }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--white); z-index: 300; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-nav.open { display: flex; }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--black); }
.mobile-nav a { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--black); text-decoration: none; }
.mobile-nav a:hover { color: var(--accent); }

/* ── SHARED ── */
.section-wrap { max-width: 1180px; margin: 0 auto; padding: 0 4rem; }
.eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.section-h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--black); }
.section-h2 em { font-style: italic; color: var(--accent); }
.section-lead { font-size: 1rem; font-weight: 300; color: var(--mid); line-height: 1.75; }
.btn-solid { background: var(--accent); color: #fff; padding: 0.8rem 1.9rem; border-radius: 2px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; transition: background 0.2s; display: inline-block; }
.btn-solid:hover { background: var(--accent2); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); padding: 0.8rem 1.9rem; border-radius: 2px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; font-family: 'Outfit', sans-serif; transition: background 0.2s, color 0.2s; display: inline-block; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── PAGE HEADER BAND ── */
.page-header { padding: 10rem 0 4.5rem; background: var(--accent); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.06); }
.page-header::after { content: ''; position: absolute; right: -50px; top: -50px; width: 250px; height: 250px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.page-header-inner { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold-light); }
.page-header .eyebrow::before { background: var(--gold-light); }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 700px; }
.page-header h1 em { font-style: italic; color: var(--gold-light); }
.page-header p { font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.68); max-width: 560px; line-height: 1.75; }
.breadcrumb { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 1.5rem; font-weight: 400; letter-spacing: 0.02em; transition: color 0.2s; }
.breadcrumb:hover { color: #fff; }

/* ── JOB LISTINGS ── */
.jobs-list-section { padding: 5.5rem 0 7rem; background: var(--white); }
.job-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 3rem; }
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2rem 2.25rem; text-decoration: none; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.job-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--accent); }
.job-card-main { display: flex; flex-direction: column; gap: 0.6rem; }
.job-card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.job-card-tags .pill { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: 100px; background: var(--white); }
.job-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--black); line-height: 1.15; }
.job-card-summary { font-size: 0.88rem; font-weight: 300; color: var(--mid); line-height: 1.6; max-width: 560px; }
.job-card-cta { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.job-card:hover .job-card-cta { color: var(--accent2); }
.jobs-empty-note { margin-top: 2.5rem; font-size: 0.85rem; color: var(--light); }

/* ── JOB DETAIL ── */
.job-detail-section { padding: 5rem 0 7rem; background: var(--white); }
.job-detail-grid { max-width: 800px; margin: 0 auto; }
.job-meta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.75rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.job-content { font-size: 0.95rem; line-height: 1.75; color: var(--ink); }
.job-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 700; color: var(--black); margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.job-content h2:first-child { margin-top: 0; }
.job-content h3 { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin: 1.5rem 0 0.75rem; }
.job-content p { font-weight: 300; color: var(--mid); margin-bottom: 1rem; }
.job-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.25rem; }
.job-content ul li { display: flex; align-items: flex-start; gap: 0.65rem; font-weight: 300; color: var(--mid); }
.job-content ul li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 0.55rem; }
.job-content strong { font-weight: 600; color: var(--ink); }
.job-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 6px; }
.job-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.job-table th { background: var(--cream); text-align: left; font-weight: 600; color: var(--ink); padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.job-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--mid); font-weight: 300; vertical-align: top; }
.job-table tr:last-child td { border-bottom: none; }
.job-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ── APPLY BOX ── */
.apply-box { margin-top: 3rem; background: var(--cream); border-radius: 6px; padding: 2.25rem 2.5rem; }
.apply-box .eyebrow { margin-bottom: 0.75rem; }
.apply-box p { font-size: 0.9rem; font-weight: 300; color: var(--mid); line-height: 1.7; margin-bottom: 1.25rem; }
.apply-box p:last-of-type { margin-bottom: 0; }
.apply-box a.email-link { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.apply-box a.email-link:hover { color: var(--accent2); border-color: var(--accent2); }
.back-link-row { margin-top: 3rem; }
.back-link { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.back-link:hover { color: var(--accent2); }

/* ── FOOTER ── */
footer { background: var(--black); padding: 4.5rem 0 2rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 2rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.75; font-weight: 300; margin-top: 1rem; max-width: 260px; }
.footer-logo-wm { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: #fff; line-height: 1.1; }
.footer-logo-wm span { display: block; font-family: 'Outfit', sans-serif; font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.footer-col h4 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.42); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(255,255,255,0.22); flex-wrap: wrap; gap: 0.5rem; }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1.1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section-wrap { padding: 0 2rem; }
  .footer-inner { padding: 0 2rem; }
  .page-header { padding: 8.5rem 0 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card-cta { align-self: flex-start; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .apply-box { padding: 1.75rem; }
}
