/* =========================================================
   Lasanra Careers — editorial fashion theme
   Palette: warm ivory + clay accent + forest secondary
   Type: Fraunces (display serif) + Inter (UI)
   ========================================================= */
:root {
  --ivory: #FBF8F3;
  --paper: #FFFFFF;
  --ink: #211D1A;
  --ink-soft: #4A433C;
  --muted: #8A8175;
  --line: #E7DFD3;
  --line-strong: #D8CDBB;
  --clay: #B5613F;
  --clay-dark: #97492B;
  --clay-tint: #F3E6DE;
  --forest: #3E4A3D;
  --forest-tint: #E7EBE4;
  --shadow: 0 1px 2px rgba(33,29,26,.04), 0 10px 30px -12px rgba(33,29,26,.18);
  --shadow-lg: 0 30px 60px -20px rgba(33,29,26,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
em { font-style: italic; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(151,73,43,.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(33,29,26,.03); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.82); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; letter-spacing: .14em; }
.brand-sub { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--clay); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(181,97,63,.22), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(62,74,61,.18), transparent 55%),
    linear-gradient(180deg, #FCF9F4, #F6EFE4);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(33,29,26,.05) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .6;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow, .section-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin: 0 0 18px;
}
.hero-title { font-size: clamp(40px, 7vw, 78px); font-weight: 600; margin-bottom: 24px; }
.hero-title em { color: var(--clay); }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 620px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); margin: 0; padding-top: 34px; border-top: 1px solid var(--line-strong); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: 'Fraunces', serif; font-size: 44px; font-weight: 600; line-height: 1; color: var(--ink); }
.hero-stats dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- mission ---------- */
.mission { padding: clamp(60px, 9vw, 110px) 0; }
.mission-inner { max-width: 900px; }
.mission-statement {
  font-family: 'Fraunces', serif; font-size: clamp(24px, 3.4vw, 38px); font-weight: 400; line-height: 1.32; color: var(--ink); margin: 0;
}
.mission-statement strong { font-weight: 600; color: var(--clay); }

/* ---------- section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-title { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 14px; }
.section-desc { font-size: 17px; color: var(--ink-soft); margin: 0; }

/* ---------- jobs ---------- */
.jobs { padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 10vw, 120px); }
.filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); position: sticky; top: 84px; z-index: 20;
}
.search-wrap { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
#job-search {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 16px 13px 46px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink);
}
#job-search:focus { outline: none; border-color: var(--clay); background: #fff; box-shadow: 0 0 0 3px var(--clay-tint); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font: inherit; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 12px;
}
#dept-filter {
  font: inherit; font-size: 15px; padding: 13px 40px 13px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); appearance: none; cursor: pointer;
}
#dept-filter:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }

.results-count { font-size: 14px; color: var(--muted); margin: 22px 2px 18px; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.job-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px; text-align: left; cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; position: relative; overflow: hidden;
}
.job-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--clay);
  transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.job-card:hover::before { transform: scaleY(1); }
.job-card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--forest-tint); color: var(--forest); margin-bottom: 16px;
}
.job-card h3 { font-size: 23px; margin-bottom: 10px; }
.job-card .job-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.job-card .job-meta svg { width: 16px; height: 16px; flex: none; }
.job-card .job-excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 22px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .job-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.job-card .salary { font-size: 14px; font-weight: 600; color: var(--ink); }
.job-card .apply-link { font-size: 14px; font-weight: 600; color: var(--clay); display: inline-flex; align-items: center; gap: 5px; }
.job-card:hover .apply-link { gap: 9px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 17px; }

/* ---------- why ---------- */
.why { padding: clamp(70px, 10vw, 120px) 0; background: var(--forest); color: #F3EFE7; }
.why .section-eyebrow { color: #D7A78E; }
.why .section-title { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { padding: 30px 26px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.why-ico { display: inline-block; font-size: 20px; color: #D7A78E; margin-bottom: 16px; }
.why-card h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.why-card p { color: rgba(243,239,231,.8); font-size: 15px; margin: 0; }

/* ---------- locations ---------- */
.locations { padding: clamp(70px, 10vw, 120px) 0; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.loc-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); transition: box-shadow .25s; }
.loc-card:hover { box-shadow: var(--shadow); }
.loc-card .loc-top { height: 140px; background: linear-gradient(135deg, var(--clay-tint), var(--forest-tint)); display: flex; align-items: flex-end; padding: 18px; position: relative; }
.loc-card .loc-top span { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 600; color: rgba(33,29,26,.14); position: absolute; top: 8px; right: 18px; }
.loc-card .loc-badge { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--clay); box-shadow: var(--shadow); }
.loc-card .loc-body { padding: 22px 24px 26px; }
.loc-card h3 { font-size: 21px; margin-bottom: 8px; }
.loc-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.loc-card .loc-count { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band { background: var(--clay); color: #fff; padding: clamp(56px, 8vw, 90px) 0; text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.86); font-size: 17px; margin: 0 0 28px; }
.cta-band .btn-primary { background: #fff; color: var(--clay-dark); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9C2B8; padding: clamp(56px,7vw,80px) 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-mark { color: #fff; font-size: 24px; display: inline-block; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 0; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 14.5px; margin-bottom: 10px; line-height: 1.5; }
.footer-col a { color: #C9C2B8; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(33,29,26,.55); backdrop-filter: blur(3px); animation: fade .25s ease; }
.modal-dialog {
  position: relative; width: 100%; max-width: 960px; max-height: 92vh; overflow: auto; background: var(--paper);
  border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); box-shadow: var(--shadow);
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.modal-job { background: var(--ivory); padding: 40px 36px; border-right: 1px solid var(--line); }
.modal-job .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--forest-tint); color: var(--forest); margin-bottom: 16px; }
.modal-job h2 { font-size: 30px; margin-bottom: 12px; }
.modal-job .mj-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.modal-job .mj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.modal-job h4 { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin: 22px 0 10px; }
.modal-job ul { margin: 0; padding-left: 18px; }
.modal-job li { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 7px; }
.modal-job .mj-desc { font-size: 14.5px; color: var(--ink-soft); }

.modal-form-wrap { padding: 40px 36px; }
.modal-form-wrap h3 { font-size: 26px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--clay); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clay); background: #fff; box-shadow: 0 0 0 3px var(--clay-tint); }
input.invalid, select.invalid { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.err { display: block; color: #C0392B; font-size: 12.5px; margin-top: 5px; min-height: 0; }
.form-foot { margin-top: 22px; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.form-success { text-align: center; padding: 30px 10px; }
.success-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--forest-tint); color: var(--forest); font-size: 30px; margin-bottom: 16px; }
.form-success h4 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); margin: 0 0 20px; }
.form-error { background: rgba(192,57,43,.08); color: #C0392B; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 16px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-job { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0; background: var(--ivory);
    border-bottom: 1px solid var(--line); padding: 16px 24px;
  }
  .site-nav.open a { padding: 10px 0; width: 100%; }
  .filters { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-stats dt { font-size: 34px; }
}
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .job-grid { grid-template-columns: 1fr; }
}
