/* Northern Hiring — site styles
   Brand colours are taken from the logo. Change them here and the whole site updates. */
:root {
  --green: #1da54b;        /* logo green */
  --green-dark: #0b6e4f;   /* logo wordmark green */
  --forest: #0a4a37;       /* deep footer / promise green */
  --mint: #e7f4ea;         /* soft green panels */
  --cream: #fbf7ef;        /* warm page background */
  --sand: #f3ecdf;         /* warm alternate sections */
  --ink: #1d2a23;          /* main text */
  --muted: #5a675f;        /* secondary text */
  --line: #e5ddcd;         /* borders */
  --white: #ffffff;
  --danger: #b4372f;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 42, 35, .06), 0 8px 24px rgba(29, 42, 35, .06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--forest); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .8rem;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--outline { border-color: var(--green-dark); color: var(--green-dark); background: transparent; }
.btn--outline:hover { background: var(--green-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: var(--mint); color: var(--forest); }
.btn--small { padding: .5em 1em; font-size: .9rem; }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: .5em .85em; border-radius: 999px;
}
.nav a:hover { background: var(--mint); color: var(--forest); }
.nav a.active { color: var(--green-dark); background: var(--mint); }
.nav a.btn { margin-left: 10px; color: var(--white); }
.nav a.btn:hover { color: var(--white); }
.nav a.btn.active { background: var(--green-dark); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .nav a.btn { margin: 10px 0 0; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-bottom: 1.8em; }
.hero-card {
  background: var(--white); border-radius: 26px; padding: 32px;
  box-shadow: var(--shadow); position: relative;
}
.hero-card .mountain { position: absolute; right: -14px; top: -78px; width: 130px; opacity: .9; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hero-card li { display: flex; gap: 14px; align-items: flex-start; }
.hero-card li strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.hero-card li span { color: var(--muted); font-size: .95rem; }
.tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 700;
}
.hero-tagline { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-family: var(--font-head); font-style: italic; color: var(--green-dark); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-card .mountain { display: none; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line);
}
.card--mint { background: var(--mint); border-color: transparent; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-weight: 700; color: var(--green-dark); font-size: .85rem; letter-spacing: .1em; display: block; margin-bottom: .6em; }
.card .answer { color: var(--green-dark); font-weight: 700; font-size: .92rem; margin-top: .8em; }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mint); color: var(--green-dark);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Split / feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Fee comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card { text-align: center; }
.compare .price { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 600; line-height: 1; margin: .2em 0 .3em; }
.compare .card--mint .price { color: var(--green-dark); }
.compare .card:first-child .price { color: var(--muted); }
@media (max-width: 540px) { .compare { grid-template-columns: 1fr; } }

.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--mint); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td.fixed { font-weight: 700; color: var(--green-dark); }
.fee-table td.contingency { color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.step strong { display: block; color: var(--green-dark); font-family: var(--font-head); font-size: 1.1rem; }
.step span { font-size: .92rem; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Promise band */
.promise { background: var(--forest); color: var(--white); border-radius: 28px; padding: clamp(32px, 6vw, 64px); position: relative; overflow: hidden; }
.promise h2, .promise h3 { color: var(--white); }
.promise .eyebrow { color: #9fe0b4; }
.promise p { color: rgba(255,255,255,.85); }
.promise .grid .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.promise .grid .card p { color: rgba(255,255,255,.8); }
.promise .mountain { position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .08; }

/* Testimonial */
.quote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; margin: 0 0 1em; }
.quote::before { content: "“"; color: var(--green); }
.quote::after { content: "”"; color: var(--green); }
.quote-by { font-weight: 700; color: var(--green-dark); }

/* Person */
.person { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.person img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; background: #dbe9f7; }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; } .person img { width: 180px; height: 180px; } }

/* CTA band */
.cta-band { background: var(--green); color: var(--white); border-radius: 28px; padding: clamp(32px, 6vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .2em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }

/* Commit lists */
.commit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.commit-list li { padding-left: 28px; position: relative; }
.commit-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Jobs */
.job-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 28px; }
@media (max-width: 720px) { .job-filters { grid-template-columns: 1fr; } }
.job-list { display: grid; gap: 16px; }
.job-card {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.job-card h3 { margin-bottom: .3em; }
.job-card p { margin: .4em 0 0; color: var(--muted); }
.job-card .arrow { color: var(--green-dark); font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .job-card { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--mint); color: var(--forest); font-size: .82rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; }
.tag--sand { background: var(--sand); color: var(--ink); }
.empty { text-align: center; padding: 40px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.job-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.job-layout aside { position: sticky; top: 100px; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } .job-layout aside { position: static; } }
.job-facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.job-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.job-facts li span:first-child { color: var(--muted); }
.job-facts li span:last-child { font-weight: 600; text-align: right; }

/* Rich text (job descriptions, blog posts) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }

/* Blog */
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.post-card .band { height: 10px; background: linear-gradient(90deg, var(--green), var(--green-dark)); }
.post-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .6em; }
.post-card p { color: var(--muted); }
.post-card .read { margin-top: auto; color: var(--green-dark); font-weight: 700; }
.post-header { max-width: 760px; }
.post-header .meta { color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,165,75,.15); }
input[type=file] { font: inherit; font-size: .95rem; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--cream); width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-message.show { display: block; }
.form-message.success { background: var(--mint); color: var(--forest); }
.form-message.error { background: #fbe9e7; color: var(--danger); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--forest); color: rgba(255,255,255,.82); padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-tagline { font-family: var(--font-head); font-style: italic; color: #9fe0b4; font-size: 1.1rem; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Admin */
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs { display: inline-flex; background: var(--sand); padding: 5px; border-radius: 999px; gap: 4px; }
.tabs button { border: 0; background: transparent; font: 600 .95rem var(--font-body); padding: .6em 1.2em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.tabs button.active { background: var(--white); color: var(--forest); box-shadow: var(--shadow); }
.admin-list { display: grid; gap: 12px; }
.admin-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; flex-wrap: wrap; }
.admin-item h4 { font-family: var(--font-body); font-size: 1.05rem; margin: 0 0 4px; }
.admin-item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { font-size: .78rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.status--live { background: var(--mint); color: var(--forest); }
.status--draft { background: var(--sand); color: var(--muted); }
.status--filled { background: #fdf0d5; color: #8a5a00; }
.editor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.notice { background: #fff7e0; border: 1px solid #f1dfa6; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; }
[hidden] { display: none !important; }

/* Social links (LinkedIn) */
.social-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.social-link svg { width: 30px; height: 30px; flex: none; border-radius: 6px; transition: transform .15s; }
.social-link:hover { text-decoration: none; }
.social-link:hover svg { transform: translateY(-2px); }
.site-footer .social-link { color: var(--white); }
.site-footer .social-link:hover { text-decoration: none; color: #9fe0b4; }
.social-link--light { color: var(--green-dark); margin-top: 6px; }
.social-link--light svg { color: #0a66c2; }
.social-link--light span { text-decoration: underline; }
