:root {
  --yellow: #FAB803;
  --black: #000;
  --white: #fff;
  --text: #212529;
  --muted: #6c757d;
  --light: #f4f4f4;
  --border: #dee2e6;
  --heading: 'Merriweather', Georgia, serif;
  --body: 'Roboto', Arial, sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; color: var(--black); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1rem; }
svg { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.bg-light { background: var(--light); }
.bg-black { background: var(--black); color: var(--white); }
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4, .bg-black h5 { color: var(--white); }
.bg-yellow { background: var(--yellow); }
.text-center { text-align: center; }
.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--heading); font-size: 1rem; padding: 12px 28px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; line-height: 1.4; }
.btn-primary { background: var(--yellow); color: var(--text); border-color: var(--yellow); }
.btn-primary:hover { background: #e0a503; border-color: #e0a503; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: #222; }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { background: var(--black); color: var(--white); position: relative; z-index: 20; }
.site-header.is-overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 95px; }
.brand img { width: 75px; height: 75px; }
.main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.nav-list a { display: block; padding: 8px 12px; color: var(--white); text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--yellow); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.icon-link { color: var(--white); display: inline-flex; }
.icon-link:hover { color: var(--yellow); }
.nav-toggle { display: none; }
.nav-mobile-cta { display: none; }

@media (max-width: 991px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 56px; height: 56px; }
  .nav-desktop, .header-tools .icon-link, .header-cta { display: none; }
  .main-nav { order: 3; flex: 0; margin-left: auto; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span { display: block; height: 2px; background: var(--white); }
  .nav-toggle .nav-list { position: absolute; right: 0; top: 52px; flex-direction: column; background: var(--black); min-width: 220px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
  .nav-toggle .nav-mobile-cta { display: block; padding-top: 8px; }
  .nav-toggle .nav-mobile-cta .btn { color: var(--text); text-align: center; }
}

/* Hero */
.hero { position: relative; min-height: 687px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: #000 center/cover no-repeat; padding: 140px 0 112px; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero > .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: .2em; }
.hero h1.sub { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.hero-icon { color: var(--yellow); margin-bottom: 16px; }
.hero-icon svg { width: 56px; height: 56px; }
.hero p { font-size: 1.25rem; margin: 24px 0; }

/* Page title band (inner pages) */
.page-title { background: var(--black); color: var(--white); padding: 64px 0; }
.page-title h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.75rem); margin: 0; }
.page-title p { margin: 12px 0 0; color: #ddd; max-width: 720px; }

/* Grids */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5-7 { grid-template-columns: 5fr 7fr; }
.grid-6-5 { grid-template-columns: 6fr 5fr; gap: 64px; }
.align-center { align-items: center; }
@media (max-width: 991px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5-7, .grid-6-5 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* Key points (home) */
.key-point h3 { font-size: 1.6rem; }
.key-point { border-top: 4px solid var(--yellow); padding-top: 16px; }

/* Showcase list with round icons */
.feature { display: flex; gap: 16px; margin-bottom: 28px; }
.feature-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--black); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex: none; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h5 { margin-bottom: .3em; }

/* Image title band */
.image-band { position: relative; background: #000 center/cover no-repeat; color: var(--white); padding: 144px 0; }
.image-band::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.image-band > .container { position: relative; }
.image-band h2 { color: var(--white); font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 760px; }
.image-band p { font-size: 1.2rem; max-width: 640px; }

/* Numbers */
.stat-number { font-family: var(--heading); font-size: clamp(3rem, 7vw, 5rem); color: var(--yellow); line-height: 1; margin-bottom: 12px; }
.bar { height: 10px; background: #eee; margin: 12px 0 16px; }
.bar span { display: block; height: 100%; background: var(--yellow); }

/* CTA card */
.cta-card { background: var(--yellow); padding: 136px 0 64px; }
.cta-card .panel { background: var(--white); padding: 40px; }
.cta-card img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.check-list svg { color: var(--yellow); }

/* Accordion (details/summary) */
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--heading); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--yellow); }
.accordion details[open] summary::after { content: '−'; }
.accordion details > div { padding: 0 0 18px; }

/* Team */
.team-card { text-align: center; }
.team-card img { width: 192px; height: auto; margin: 0 auto 16px; }
.team-card .role { color: var(--muted); font-style: italic; margin-bottom: 8px; }

/* Jobs list */
.jobs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
@media (max-width: 991px) { .jobs-layout { grid-template-columns: 1fr; } }
.filter-box { border: 1px solid var(--border); padding: 16px; }
.filter-box h2 { font-size: 1rem; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.filter-box ul { list-style: none; padding: 0; margin: 0; }
.filter-box a { display: flex; justify-content: space-between; padding: 6px 8px; text-decoration: none; }
.filter-box a[aria-current="true"] { background: var(--yellow); }
.job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .job-list { grid-template-columns: 1fr; } }
.job-card { border: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: box-shadow .2s, border-color .2s; background: var(--white); }
.job-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--yellow); }
.job-card h3 { font-size: 1.15rem; margin: 0; }
.job-card .company { color: var(--muted); margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--text); margin: 0; padding: 0; list-style: none; }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 1em; height: 1em; color: var(--muted); }
.pill { display: inline-block; background: var(--light); padding: 2px 10px; font-size: .8rem; }
.pagination { display: flex; gap: 8px; margin-top: 32px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: block; padding: 6px 14px; border: 1px solid var(--border); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--yellow); border-color: var(--yellow); }
.results-count { color: var(--muted); margin-bottom: 16px; }

/* Job detail - content imported from the old site keeps its card layout */
.job-header { background: var(--black); color: var(--white); padding: 56px 0; }
.job-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
.job-header .job-meta { color: #ddd; font-size: 1rem; }
.job-header .job-meta svg { color: var(--yellow); }
.job-body .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 24px; }
.job-body .row > * { grid-column: span 12; }
@media (min-width: 992px) {
  .job-body .col-lg-3 { grid-column: span 3; }
  .job-body .col-lg-4 { grid-column: span 4; }
  .job-body .col-lg-5 { grid-column: span 5; }
  .job-body .col-lg-6 { grid-column: span 6; }
  .job-body .col-lg-7, .job-body .col-lg-8 { grid-column: span 8; }
  .job-body .col-lg-12 { grid-column: span 12; }
}
.job-body section { padding: 24px 0; }
.job-body section.bg-200 { background: var(--light); padding: 32px 24px; margin: 0 -24px; }
@media (max-width: 640px) { .job-body section.bg-200 { margin: 0 -20px; padding: 24px 20px; } .job-body .row { gap: 16px; } }
.job-body { overflow-wrap: anywhere; }
.job-body .container { padding: 0; }
.job-body .card { border: 1px solid var(--border); background: var(--white); height: 100%; }
.job-body .card.shadow { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.job-body .card-header { margin: 0; padding: 14px 18px; background: var(--light); font-size: 1.1rem; }
.job-body .text-bg-primary > .card-header, .job-body .card-header.text-bg-primary { background: var(--yellow); color: var(--text); }
.job-body .card-body { padding: 18px; }
.job-body .card-body img { max-width: 220px; margin: 0 auto 16px; }
.job-body .list-group { list-style: none; margin: 0; padding: 0; }
.job-body .list-group-item { padding: 12px 18px; border-top: 1px solid var(--border); }
.job-body .list-group-item:first-child { border-top: 0; }
.job-body blockquote { border-left: 4px solid var(--yellow); background: var(--light); margin: 16px 0; padding: 12px 20px; }
.job-body blockquote p { margin: 4px 0; }
.job-body .job-company-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 18px 18px; }
.job-body .job-company-links a { border: 1px solid var(--border); padding: 4px 12px; text-decoration: none; font-size: .9rem; }
.job-body .job-company-links a:hover { border-color: var(--yellow); }
.apply-box { background: var(--light); padding: 32px; margin-top: 32px; scroll-margin-top: 20px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin-bottom: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 500; }
.form label input, .form label select, .form label textarea { display: block; margin-top: 6px; }
.form label small { display: inline; }
.form label textarea + small { display: block; margin-top: 4px; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #ced4da; background: var(--white); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--yellow); }
.form input[type=file] { padding: 8px; }
.req { color: #c0392b; }
.hp { position: absolute; left: -9999px; }
.cf-turnstile { margin-bottom: 16px; }
.alert { background: #fff3cd; border-left: 4px solid var(--yellow); padding: 16px; }
.contact-details li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.contact-details { list-style: none; padding: 0; }
.contact-details a { text-decoration: none; }

/* Blog */
.post-list { display: grid; gap: 24px; }
.post-card { border: 1px solid var(--border); padding: 24px; text-decoration: none; display: block; }
.post-card:hover { border-color: var(--yellow); }
.post-card h2 { font-size: 1.5rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.prose { font-size: 1.075rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.75rem; }
.prose li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.site-footer a { color: #ddd; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #aaa; font-size: .9rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
