/*
Theme Name: Abtech Recruitment
Theme URI: https://abtechrecruitment.com
Author: Abtech Recruitment Agency
Description: Custom WordPress theme for Abtech Recruitment Agency. Local and international recruitment, job board, candidate and employer portals. Brown and gold brand palette drawn from the ABR logo.
Version: 4.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abtech
Tags: recruitment, jobs, business, custom-colors, custom-menu
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --brown:        #46281A;
  --brown-dark:   #2E1810;
  --brown-light:  #6B4226;
  --gold:         #C9911A;
  --gold-bright:  #E8B33A;
  --gold-pale:    #F5E3BC;
  --silver:       #9A9A9A;
  --mist:         #E5E2DD;
  --bg:           #FDFBF7;
  --surface:      #FFFFFF;
  --surface-alt:  #F7F2E9;
  --text:         #3A3A3A;
  --text-muted:   #6E6E6E;
  --invert:       #FFFFFF;

  --success: #2E7D52;
  --warning: #C97A1A;
  --error:   #B03A2E;

  --gold-grad:  linear-gradient(135deg, #E8B33A 0%, #C9911A 45%, #A87512 100%);
  --brown-grad: linear-gradient(135deg, #6B4226 0%, #46281A 60%, #2E1810 100%);

  --r-sm: 8px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sh-sm: 0 1px 3px rgba(70,40,26,.08);
  --sh:    0 4px 16px rgba(70,40,26,.10);
  --sh-lg: 0 12px 40px rgba(70,40,26,.14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", sans-serif;

  --wrap: 1200px;
  --gut: 24px;
  --header-h: 96px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }

/* Every SVG in this theme is an icon. Giving them a default keeps a missing or
   stale rule from letting one expand to the full width of its container —
   specific rules below still override this, since a class beats a bare type. */
svg { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
a { color: var(--brown); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1,h2,h3,h4,h5 { font-family: var(--font-display); color: var(--brown); margin: 0 0 .5em; line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { padding-left: 1.15em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  z-index: 999; background: var(--brown); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--brown-grad); color: var(--gold-pale); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--gold-pale); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.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: 980px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; max-width: none;
}
@media (max-width: 760px) { .section-head--split { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--brown-dark); box-shadow: var(--sh-sm); }
.btn-gold:hover { box-shadow: var(--sh); color: var(--brown-dark); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-brown:hover { background: var(--brown-dark); color: #fff; }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--brown); }
.btn-sm { padding: 9px 18px; font-size: .87rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,247,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--brown); letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; letter-spacing: .16em; color: var(--gold); font-weight: 600; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 10px 14px; font-size: .93rem; font-weight: 500;
  color: var(--brown); text-decoration: none; border-radius: var(--r-sm);
}
.main-nav a:hover { background: var(--surface-alt); color: var(--brown); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--brown); box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r);
  box-shadow: var(--sh-lg); padding: 8px; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--mist);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--brown); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: 20px var(--gut) 60px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--mist); border-radius: 0; font-size: 1.05rem; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent;
  }
  .main-nav .sub-menu a { font-size: .95rem; color: var(--text-muted); }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; padding-top: 48px; }
.hero-copy { max-width: 760px; margin-bottom: 32px; }
.hero h1 { margin-bottom: 18px; letter-spacing: -.02em; }
.hero-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 400px; background: var(--brown);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,24,16,.15) 0%, rgba(46,24,16,.72) 100%);
}
@media (max-width: 700px) { .hero-media { min-height: 300px; } }

/* Job search bar floating on hero edge */
.job-search {
  position: relative; z-index: 3; margin-top: -56px;
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 18px; display: grid; gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr auto;
}
.job-search label { display: block; font-size: .74rem; font-weight: 600; color: var(--brown-light); margin-bottom: 5px; }
.job-search input, .job-search select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--mist);
  border-radius: var(--r-sm); font-family: var(--font); font-size: .93rem;
  background: var(--bg); color: var(--text);
}
.job-search input:focus, .job-search select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.job-search .btn { align-self: end; height: 44px; }
@media (max-width: 900px) { .job-search { grid-template-columns: 1fr 1fr; margin-top: -32px; } .job-search .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .job-search { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. STAT CARDS / COUNTERS
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2,1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 26px 22px;
}
.stat-num {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 28px; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--sh); border-color: var(--gold-pale); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; flex-grow: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--gold-grad); color: var(--brown-dark);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.card-link {
  margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--brown);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.card-link:hover { color: var(--gold); }
.card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* service card with image */
.svc-card { padding: 0; overflow: hidden; }
.svc-card-img { aspect-ratio: 4/3; background: var(--surface-alt); position: relative; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }

/* on dark band */
.section--dark .card {
  background: rgba(255,255,255,.06); border-color: rgba(245,227,188,.22);
}
.section--dark .card:hover { background: rgba(255,255,255,.1); border-color: var(--gold); box-shadow: none; }
.section--dark .card p { color: rgba(245,227,188,.86); }
.section--dark .card-link { color: var(--gold-bright); }

/* ==========================================================================
   9. REGION GRID (international)
   ========================================================================== */
.region-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .region-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .region-grid { grid-template-columns: 1fr; } }
.region {
  background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r);
  padding: 24px; border-left: 3px solid var(--gold);
}
.region h3 { font-size: 1.15rem; margin-bottom: 8px; }
.region p { font-size: .92rem; color: var(--text-muted); margin-bottom: 12px; }
.region ul { list-style: none; padding: 0; margin: 0; }
.region li { font-size: .85rem; color: var(--brown-light); padding: 4px 0; border-top: 1px solid var(--mist); }

/* ==========================================================================
   10. JOB BOARD
   ========================================================================== */
.job-layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .job-layout { grid-template-columns: 1fr; } }

.job-filters {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) { .job-filters { position: static; } }
.job-filters h3 { font-size: 1rem; margin-bottom: 16px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--brown-light); margin-bottom: 6px; }
.filter-group input, .filter-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--mist);
  border-radius: var(--r-sm); font-family: var(--font); font-size: .9rem; background: var(--bg);
}
.filter-check { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text); }
.filter-check input { width: auto; }

.job-card {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 24px; margin-bottom: 16px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover { box-shadow: var(--sh); border-color: var(--gold-pale); }
.job-card-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.job-card h3 { margin-bottom: 6px; font-size: 1.18rem; }
.job-card h3 a { text-decoration: none; color: var(--brown); }
.job-card h3 a:hover { color: var(--gold); }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.job-excerpt { font-size: .93rem; color: var(--text-muted); margin-bottom: 16px; }
.job-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.job-ref { font-size: .78rem; color: var(--silver); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--gold-pale); color: var(--brown); font-size: .76rem; font-weight: 600;
}
.chip-outline { background: transparent; border: 1px solid var(--mist); color: var(--text-muted); }
.chip-visa { background: var(--gold-grad); color: var(--brown-dark); }
.chip-urgent { background: #FBE9E7; color: var(--error); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* single job */
.job-single { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .job-single { grid-template-columns: 1fr; } }
.job-aside {
  background: var(--surface-alt); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) { .job-aside { position: static; } }
.job-facts { list-style: none; padding: 0; margin: 0 0 22px; }
.job-facts li { padding: 11px 0; border-bottom: 1px solid var(--mist); font-size: .9rem; }
.job-facts li:last-child { border-bottom: 0; }
.job-facts strong { display: block; font-size: .74rem; color: var(--brown-light); font-weight: 600; margin-bottom: 2px; }

.consultant { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--mist); }
.consultant img { width: 54px; height: 54px; border-radius: var(--r-pill); object-fit: cover; }
.consultant p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.consultant strong { color: var(--brown); font-size: .95rem; display: block; }

/* ==========================================================================
   11. FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--brown); margin-bottom: 7px; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--mist); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .95rem; background: var(--surface); color: var(--text);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold);
}
.field-hint { font-size: .78rem; color: var(--text-muted); margin: 6px 0 0; }
.field input[type="file"] { padding: 10px; background: var(--bg); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); }
.consent input { width: auto; margin-top: 3px; flex-shrink: 0; }

.notice { padding: 15px 18px; border-radius: var(--r-sm); margin-bottom: 22px; font-size: .93rem; }
.notice-success { background: #E8F5EE; border-left: 3px solid var(--success); color: #1E5637; }
.notice-error { background: #FBE9E7; border-left: 3px solid var(--error); color: #7C2A20; }

.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .split-cta { grid-template-columns: 1fr; } }
.split-cta .card { align-items: flex-start; }

/* ==========================================================================
   12. ACCORDION (FAQ / sectors)
   ========================================================================== */
.accordion { border-top: 1px solid var(--mist); }
.acc-item { border-bottom: 1px solid var(--mist); }
.acc-btn {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; text-align: left;
  font-family: var(--font); font-size: 1.02rem; font-weight: 600; color: var(--brown);
}
.acc-btn:hover { color: var(--gold); }
.acc-icon {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex-shrink: 0;
  border: 1px solid var(--mist); display: grid; place-items: center;
  color: var(--gold); font-size: 1.1rem; line-height: 1; transition: transform .2s ease, background .2s ease;
}
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--gold-grad); color: var(--brown-dark); border-color: transparent; transform: rotate(45deg); }
.acc-panel { display: none; padding: 0 0 22px; }
.acc-panel.is-open { display: block; }
.acc-panel p { color: var(--text-muted); margin-bottom: 0; }

/* ==========================================================================
   13. PROCESS STEPS
   ========================================================================== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 26px; border-top: 2px solid rgba(245,227,188,.3); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -13px; left: 0; background: var(--brown-dark);
  padding-right: 12px; font-family: var(--font-display); font-weight: 700;
  font-size: .9rem; color: var(--gold);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; margin: 0; }
.section--alt .step { border-top-color: var(--mist); }
.section--alt .step::before { background: var(--surface-alt); }

/* ==========================================================================
   14. TEAM / TESTIMONIALS / LOGOS
   ========================================================================== */
.person { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r); overflow: hidden; }
.person-photo { aspect-ratio: 1/1; background: var(--surface-alt); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body { padding: 18px 20px 22px; }
.person-body h3 { font-size: 1.02rem; margin-bottom: 3px; }
.person-role { font-size: .8rem; color: var(--gold); font-weight: 600; margin: 0 0 8px; }
.person-body p { font-size: .87rem; color: var(--text-muted); margin: 0; }

.quote {
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 30px;
}
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--brown); line-height: 1.6; }
.quote blockquote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-by img { width: 44px; height: 44px; border-radius: var(--r-pill); object-fit: cover; }
.quote-by strong { display: block; font-size: .92rem; color: var(--brown); }
.quote-by span { font-size: .8rem; color: var(--text-muted); }

.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.logo-strip img { max-height: 34px; width: auto; opacity: .55; filter: grayscale(1); }
.logo-strip img:hover { opacity: 1; filter: none; }

/* ==========================================================================
   15. INSIGHTS
   ========================================================================== */
.post-card { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--sh); }
.post-thumb { aspect-ratio: 16/10; background: var(--surface-alt); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post-cat { font-size: .74rem; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-card h3 a { text-decoration: none; color: var(--brown); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: .9rem; color: var(--text-muted); flex-grow: 1; }
.post-date { font-size: .78rem; color: var(--silver); margin-top: 14px; }

.entry-content { max-width: 760px; }
.entry-content img { border-radius: var(--r); margin-block: 24px; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content blockquote {
  border-left: 3px solid var(--gold); padding-left: 22px; margin-left: 0;
  font-size: 1.08rem; color: var(--brown);
}

/* ==========================================================================
   16. TRUST / ANTI-FRAUD
   ========================================================================== */
.trust-band {
  background: var(--gold-pale); border-radius: var(--r);
  padding: 26px 30px; display: flex; gap: 20px; align-items: flex-start;
}
.trust-band svg { width: 30px; height: 30px; color: var(--brown); flex-shrink: 0; }
.trust-band h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-band p { margin: 0; font-size: .92rem; color: var(--brown-light); }
@media (max-width: 560px) { .trust-band { flex-direction: column; } }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.site-footer { background: var(--brown-dark); color: var(--gold-pale); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer p { color: rgba(245,227,188,.8); font-size: .92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(245,227,188,.85); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand img {
  width: 76px; height: 76px; object-fit: contain;
  margin-bottom: 16px; background: var(--bg);
  border-radius: 50%; padding: 5px; display: block;
}
.footer-tagline { font-family: var(--font-display); color: var(--gold-bright); font-size: 1rem; margin-bottom: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid rgba(245,227,188,.3); display: grid; place-items: center;
}
.social-row a:hover { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(245,227,188,.18); padding-block: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(245,227,188,.65);
}
.footer-bottom a { font-size: .84rem; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

.newsletter-band { background: var(--brown); border-radius: var(--r-lg); padding: 40px; margin-bottom: 56px; }
.newsletter-band h2 { color: #fff; margin-bottom: 8px; }
.newsletter-band p { color: var(--gold-pale); margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px; padding: 13px 16px; border: 1px solid rgba(245,227,188,.35);
  border-radius: var(--r-pill); background: rgba(255,255,255,.1); color: #fff; font-family: var(--font);
}
.newsletter-form input::placeholder { color: rgba(245,227,188,.6); }

/* ==========================================================================
   18. WHATSAPP FLOAT
   ========================================================================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: var(--r-pill);
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); text-decoration: none;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   19. PAGE HEADER
   ========================================================================== */
.page-hero { background: var(--brown-grad); color: #fff; padding-block: clamp(48px, 7vw, 84px); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--gold-pale); font-size: 1.08rem; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .82rem; color: rgba(245,227,188,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(245,227,188,.9); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ==========================================================================
   20. PAGINATION & MISC
   ========================================================================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 9px 15px; border: 1px solid var(--mist); border-radius: var(--r-sm);
  text-decoration: none; color: var(--brown); font-size: .9rem; background: var(--surface);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { margin-inline: auto; color: var(--text-muted); }

.eyebrow-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--gold); font-size: .84rem; font-weight: 600; }
.eyebrow-rule::after { content: ""; height: 1px; flex: 1; background: var(--gold); opacity: .35; }
.section--dark .eyebrow-rule { color: var(--gold-bright); }

/* Logo sizing. The badge is circular, so width and height are always set
   together — height alone lets the 512px source stretch the box sideways.
   It runs larger now that it stands alone in the header without a text lockup
   beside it, since the badge itself carries the name and the tagline. */
.brand img { width: 76px; height: 76px; object-fit: contain; }
@media (max-width: 900px) { .brand img { width: 64px; height: 64px; } }
@media (max-width: 520px) { .brand img { width: 54px; height: 54px; } }

/* ==========================================================================
   21. PAGE TEMPLATE COMPONENTS
   ========================================================================== */

/* Mission / vision statement blocks */
.statement {
  background: var(--surface-alt); border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 30px 32px;
}
.statement p {
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5;
  color: var(--brown); margin: 0;
}

/* Support checklist on the services hub */
.support-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .92rem; margin: 0 0 4px; color: var(--gold-pale);
}
.support-tick { width: 16px; height: 16px; color: var(--gold-bright); flex-shrink: 0; margin-top: 4px; }

/* Fee policy headline block */
.policy-headline {
  background: var(--gold-pale); border-radius: var(--r-lg);
  padding: 40px; text-align: center;
}
.policy-headline svg { width: 40px; height: 40px; color: var(--brown); margin: 0 auto 16px; }
.policy-headline h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.policy-headline p { color: var(--brown-light); margin-inline: auto; margin-bottom: 24px; }

/* Cost transparency table */
.cost-table {
  margin-top: 28px; border: 1px solid var(--mist);
  border-radius: var(--r); overflow: hidden;
}
.cost-row {
  display: grid; grid-template-columns: 1.5fr 1.2fr 1.3fr; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--mist);
  font-size: .92rem; background: var(--surface);
}
.cost-row:last-child { border-bottom: 0; }
.cost-row--head {
  background: var(--brown); color: #fff; font-weight: 600; font-size: .82rem;
}
.cost-row--mark { background: var(--gold-pale); font-weight: 600; color: var(--brown); }
@media (max-width: 640px) {
  .cost-row { grid-template-columns: 1fr; gap: 4px; }
  .cost-row--head { display: none; }
  .cost-row span:nth-child(1) { font-weight: 600; color: var(--brown); }
  .cost-row span:nth-child(2)::before { content: "Paid to: "; color: var(--text-muted); }
  .cost-row span:nth-child(3)::before { content: "Paid by: "; color: var(--text-muted); }
}

/* Scam warning list */
.warn-list { list-style: none; padding: 0; margin: 24px 0 0; }
.warn-list li {
  position: relative; padding: 13px 16px 13px 44px; margin-bottom: 8px;
  background: #FBE9E7; border-radius: var(--r-sm); font-size: .94rem; color: #7C2A20;
}
.warn-list li::before {
  content: "!"; position: absolute; left: 16px; top: 13px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--error); color: #fff; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Light-background variant of the numbered steps */
.steps--light .step { border-top-color: var(--mist); }
.steps--light .step::before { background: var(--bg); color: var(--gold); }
.steps--light .step h3 { color: var(--brown); }
.steps--light .step p { color: var(--text-muted); }

/* ==========================================================================
   22. LANDING PAGE — full reference layout
   ========================================================================== */

/* Photo placeholders. Delete this rule once real photography is in. */
.ph-fill {
  background: repeating-linear-gradient(45deg, #EFE7DA, #EFE7DA 10px, #E8DECD 10px, #E8DECD 20px);
  position: relative; display: block; width: 100%; height: 100%;
}
.ph-fill::after {
  content: attr(data-ph); position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 12px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #A08A6B;
}

/* ---------- Hero ---------- */
.hero-full { position: relative; padding-top: 0; }
.hero-full-media {
  position: absolute; inset: 0 0 90px 0;
  overflow: hidden; background: var(--brown);
}
.hero-full-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-full-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(46,24,16,.92) 0%, rgba(46,24,16,.72) 42%, rgba(46,24,16,.30) 100%);
}
.hero-full-inner { position: relative; z-index: 2; padding-block: clamp(72px, 11vw, 150px) clamp(56px, 8vw, 96px); }
.hero-full-copy { max-width: 640px; }
.hero-full-copy h1 { color: #fff; letter-spacing: -.02em; margin-bottom: 18px; }
.hero-full-copy p { color: var(--gold-pale); font-size: 1.1rem; max-width: 52ch; }
.hero-full .wrap:last-child { position: relative; z-index: 3; }
.job-search--hero { margin-top: 0; }
@media (max-width: 700px) {
  .hero-full-media::after {
    background: linear-gradient(180deg, rgba(46,24,16,.75) 0%, rgba(46,24,16,.9) 100%);
  }
}

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "text feature report"
    "photo feature wide";
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "text feature" "report feature" "photo wide";
  }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "text" "feature" "report" "photo" "wide"; }
}
.bento-cell {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--mist);
  padding: 28px; min-height: 200px;
}
.bento-cell--text    { grid-area: text; }
.bento-cell--report  { grid-area: report; }
.bento-cell--photo   { grid-area: photo; padding: 0; min-height: 190px; }
.bento-cell--wide    { grid-area: wide; padding: 0; min-height: 190px; }
.bento-cell--feature {
  grid-area: feature; background: var(--gold-grad); border-color: transparent;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
}
.bento-cell--feature h3 { color: var(--brown-dark); font-size: 1.35rem; margin-bottom: 0; }
.bento-cell h2 { font-size: 1.4rem; margin-bottom: 10px; }
.bento-cell h3 { font-size: 1.12rem; }
.bento-cell p { font-size: .93rem; color: var(--text-muted); margin-bottom: 0; }
.bento-media { position: absolute; inset: 0; }
.bento-cell--photo .bento-media, .bento-cell--wide .bento-media { position: static; height: 100%; min-height: 190px; }

.bento-tag {
  display: inline-block; margin-bottom: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
}
.bento-tag--onGold { color: var(--brown-dark); opacity: .75; }

.bento-arrow {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  border: 1px solid var(--mist); background: var(--surface);
  display: grid; place-items: center; color: var(--brown);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.bento-arrow svg { width: 15px; height: 15px; }
.bento-arrow:hover { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }
.bento-arrow--dark { background: var(--brown); border-color: transparent; color: #fff; }
.bento-arrow--dark:hover { background: var(--brown-dark); color: #fff; }

/* ---------- Section head variants ---------- */
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center p { margin-inline: auto; }
.eyebrow-rule--center { justify-content: center; }
.eyebrow-rule--center::after { display: none; }
.section-cta { text-align: center; margin: 36px 0 0; }

/* ---------- Service tiles ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-tile {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--mist);
  transition: box-shadow .2s ease, transform .2s ease;
}
.svc-tile:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.svc-tile-icon {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--gold-grad); color: var(--brown-dark);
  display: grid; place-items: center;
}
.svc-tile-icon svg { width: 18px; height: 18px; }
.svc-tile-media { display: block; aspect-ratio: 3/4; }
.svc-tile-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
}
.svc-tile-label { font-weight: 600; font-size: .95rem; color: var(--brown); }
.svc-tile-arrow {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex-shrink: 0;
  border: 1px solid var(--mist); display: grid; place-items: center; color: var(--brown);
}
.svc-tile-arrow svg { width: 14px; height: 14px; }
.svc-tile:hover .svc-tile-arrow { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }

/* ---------- Philosophy band ---------- */
.philosophy {
  position: relative; background: var(--brown-grad);
  border-radius: var(--r-lg); padding: clamp(36px, 5vw, 60px);
  color: var(--gold-pale);
}
.philosophy::after {
  content: ""; position: absolute; left: 48px; bottom: -18px;
  width: 0; height: 0;
  border-left: 22px solid transparent; border-right: 0 solid transparent;
  border-top: 20px solid var(--brown-dark);
}
.philosophy h2 { color: #fff; max-width: 20ch; margin-bottom: 36px; }
.philosophy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy-col {
  background: rgba(255,255,255,.07); border: 1px solid rgba(245,227,188,.18);
  border-radius: var(--r); padding: 22px;
}
.philosophy-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-pill); background: var(--gold-grad);
  color: var(--brown-dark); margin-bottom: 14px;
}
.philosophy-icon svg { width: 16px; height: 16px; }
.philosophy-col h3 { color: #fff; font-size: 1rem; margin-bottom: 7px; }
.philosophy-col p { font-size: .88rem; color: rgba(245,227,188,.85); margin: 0; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { padding: 20px 22px; background: var(--surface-alt); border-radius: var(--r); }
.stat-cell .stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brown); line-height: 1;
}
.stat-cell .stat-label {
  display: block; margin-top: 8px; font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ---------- Wide banner ---------- */
.banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
}
.banner-media { position: absolute; inset: 0; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(46,24,16,.9) 0%, rgba(46,24,16,.55) 55%, rgba(46,24,16,.25) 100%);
}
.banner-body { position: relative; z-index: 2; padding: clamp(28px, 4vw, 44px); max-width: 620px; }
.banner-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-pill); background: var(--gold-grad);
  color: var(--brown-dark); margin-bottom: 16px;
}
.banner-icon svg { width: 18px; height: 18px; }
.banner-body h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 20px; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; gap: 30px; } }
.sectors-intro h2 { margin-bottom: 14px; }
.sectors-intro p { color: var(--text-muted); margin-bottom: 22px; }
.sectors-list { border-top: 1px solid var(--mist); }
.sector-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--mist);
  text-decoration: none; transition: padding-left .18s ease;
}
.sector-row:hover { padding-left: 12px; }
.sector-name { flex: 1; font-weight: 600; color: var(--brown); font-size: 1rem; }
.sector-count { font-size: .8rem; color: var(--text-muted); }
.sector-arrow {
  width: 30px; height: 30px; border-radius: var(--r-pill); flex-shrink: 0;
  border: 1px solid var(--mist); display: grid; place-items: center; color: var(--brown);
}
.sector-arrow svg { width: 14px; height: 14px; }
.sector-row:hover .sector-arrow { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.proof-quote { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px; }
.proof-quote-media { position: absolute; inset: 0; }
.quote--float {
  position: relative; z-index: 2; margin: 24px; max-width: 380px;
  box-shadow: var(--sh-lg);
}
.quote--float blockquote { font-size: .98rem; }

.success-card {
  background: var(--gold-grad); border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 40px); display: flex; flex-direction: column;
}
.success-card h3 { color: var(--brown-dark); font-size: 1.45rem; margin-bottom: 24px; }
.success-metric { margin-top: auto; margin-bottom: 24px; }
.success-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2.6rem; color: var(--brown-dark); line-height: 1; margin-bottom: 10px;
}
.success-metric p { font-size: .9rem; color: rgba(46,24,16,.8); margin: 0; }

/* ---------- Logo strip ---------- */
.logo-strip-label {
  text-align: center; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px;
}
.logo-slot {
  flex: 1 1 120px; text-align: center; padding: 14px 10px;
  border: 1px dashed var(--mist); border-radius: var(--r-sm);
  font-size: .74rem; color: var(--silver); letter-spacing: .06em;
}

/* ---------- Connect ---------- */
.connect {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--mist);
  border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 900px) { .connect { grid-template-columns: 1fr; } }
.connect-form { padding: clamp(28px, 4vw, 48px); }
.connect-form h2 { margin-bottom: 10px; }
.connect-form > p { color: var(--text-muted); margin-bottom: 26px; }
.connect-form .btn { margin-top: 22px; }
.connect-side { position: relative; display: flex; flex-direction: column; min-height: 320px; }
.connect-media { flex: 1; }
.connect-call {
  display: flex; gap: 14px; align-items: center;
  padding: 20px 24px; background: var(--brown-dark);
}
.connect-call-icon {
  width: 38px; height: 38px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--gold-grad); color: var(--brown-dark); display: grid; place-items: center;
}
.connect-call-icon svg { width: 17px; height: 17px; }
.connect-call p { margin: 0; font-size: .9rem; color: var(--gold-pale); }
.connect-call a { color: #fff; font-weight: 600; }

/* ==========================================================================
   23. FIXES — navigation breakpoint, mobile fit, button sizing
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navigation
   The desktop menu was collapsing into the hamburger at 1040px, which hid it
   on ordinary laptops. It now stays visible down to 900px, with tighter
   spacing so a six-item menu still fits beside the larger logo.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; transform: none; visibility: visible; inset: auto; padding: 0; background: none; overflow: visible; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .main-nav a { padding: 9px 11px; font-size: .88rem; border-bottom: 0; border-radius: var(--r-sm); }
  .header-actions .btn { display: inline-flex; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .main-nav a { padding: 8px 8px; font-size: .84rem; }
  .brand img { width: 62px; height: 62px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: 16px var(--gut) 60px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
    z-index: 99;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--mist); border-radius: 0; font-size: 1rem; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent;
  }
}

/* --------------------------------------------------------------------------
   2. Mobile fit
   Nothing should be able to push the page wider than the viewport. The rules
   below cap the document, tighten the gutter on small screens, and stop the
   landing-page sections that use absolute positioning or negative margins
   from spilling over the edge.
   -------------------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }
img, svg, video, iframe, table { max-width: 100%; }

@media (max-width: 620px) {
  :root { --gut: 16px; --header-h: 76px; }
  .section { padding-block: 44px; }
  .section--tight { padding-block: 32px; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }

  /* Hero: stack the copy and let the search bar sit below the image rather
     than floating over its edge, which was the main source of overflow. */
  .hero-full-inner { padding-block: 48px 28px; }
  .hero-full-media { inset: 0; }
  .hero-full-copy p { font-size: 1rem; }
  .job-search--hero { margin-top: 0; }
  .job-search { padding: 14px; gap: 10px; border-radius: var(--r); }

  /* Cards and panels lose some inner padding so text is not squeezed. */
  .bento-cell, .card, .job-card, .quote, .abtp-panel { padding: 20px; }
  .philosophy { padding: 26px 20px; }
  .philosophy-col { padding: 18px; }
  .connect-form { padding: 24px 20px; }
  .banner-body { padding: 24px 20px; }
  .success-card { padding: 24px 20px; }
  .stat-cell { padding: 16px 18px; }

  /* The floating quote was wider than the screen once its margins were added. */
  .quote--float { margin: 14px; max-width: none; }
  .proof-quote { min-height: 260px; }

  /* Tab strips and filter rows scroll instead of stretching the page. */
  .abtp-tabs, .abtp-track { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 400px) {
  .job-meta { gap: 8px; font-size: .8rem; }
  .chip { font-size: .7rem; padding: 4px 9px; }
}

/* --------------------------------------------------------------------------
   3. Buttons
   They were running wide — too much horizontal padding, and in flex rows they
   were stretching to fill. Tightened, and stopped from growing.
   -------------------------------------------------------------------------- */
.btn {
  padding: 11px 20px;
  font-size: .89rem;
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 100%;
}
.btn-sm { padding: 8px 15px; font-size: .82rem; }
.btn-block { width: 100%; align-self: stretch; }
.hero-actions .btn, .section-cta .btn, .split-cta .btn { align-self: auto; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* On the narrowest screens a full-width button reads better than two stubs. */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .job-search .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   4. Slot images
   -------------------------------------------------------------------------- */
.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-media .slot-img, .banner-media .slot-img,
.proof-quote-media .slot-img, .connect-media .slot-img { position: absolute; inset: 0; }
.bento-cell--photo .bento-media, .bento-cell--wide .bento-media { position: relative; }
.svc-tile-media { position: relative; overflow: hidden; }
.svc-tile-media .slot-img { aspect-ratio: 3/4; }

/* ==========================================================================
   24. PANEL LIBRARY
   ========================================================================== */

/* Fallback featured images supplied by the panel library. */
.abtech-panel { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb .abtech-panel, .svc-card-img .abtech-panel { aspect-ratio: 16/10; }
.person-photo .abtech-panel { aspect-ratio: 1/1; }

/* Sector rows with a thumbnail */
.sector-thumb {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  overflow: hidden; background: var(--surface-alt); border: 1px solid var(--mist);
  display: grid; place-items: center;
}
.sector-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sector-row:hover .sector-thumb { border-color: var(--gold); }
@media (max-width: 420px) { .sector-thumb { display: none; } }

/* Page hero with a banner panel behind it */
.page-hero--banner { position: relative; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(46,24,16,.94) 0%, rgba(46,24,16,.78) 45%, rgba(46,24,16,.45) 100%);
}
.page-hero--banner .wrap { position: relative; z-index: 2; }

/* ==========================================================================
   25. LOGO SIZE & MOBILE JOB CARDS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo
   Larger again now that it stands alone in the header. The header height rises
   with it so the badge is not cropped by the sticky bar.
   -------------------------------------------------------------------------- */
:root { --header-h: 112px; }
.brand img { width: 92px; height: 92px; }

@media (max-width: 1180px) and (min-width: 901px) {
  .brand img { width: 78px; height: 78px; }
}
@media (max-width: 900px) {
  :root { --header-h: 100px; }
  .brand img { width: 80px; height: 80px; }
}
@media (max-width: 620px) {
  :root { --header-h: 88px; }
  .brand img { width: 70px; height: 70px; }
}
@media (max-width: 400px) {
  :root { --header-h: 78px; }
  .brand img { width: 60px; height: 60px; }
}

/* --------------------------------------------------------------------------
   Job cards on small screens
   The header row and footer were both laid out side by side, which squeezed
   the chips against the title and left the button stranded next to the
   reference. Both stack below 620px, and the button goes full width.
   -------------------------------------------------------------------------- */
@media (max-width: 620px) {
  .job-card { padding: 20px; }

  .job-card-top { flex-direction: column; gap: 12px; }
  .job-card-top .chip-row { order: -1; }

  .job-card h3 { font-size: 1.08rem; }
  .job-meta { gap: 10px 14px; }

  .job-excerpt { font-size: .9rem; margin-bottom: 18px; }

  .job-card-foot {
    flex-direction: column; align-items: stretch; gap: 12px;
    padding-top: 16px; border-top: 1px solid var(--mist);
  }
  .job-card-foot .job-ref { order: 2; text-align: center; font-size: .76rem; }
  .job-card-foot .btn {
    width: 100%; justify-content: center; align-self: stretch;
    padding: 12px 20px; font-size: .9rem;
  }
}

/* ==========================================================================
   26. MOBILE MENU — reliable full height
   ==========================================================================
   The panel was anchored with inset:0, which measures the full viewport. On a
   phone the visible area is shorter than that once the browser's address bar
   is counted, so the bottom of the list was being cut off below the fold with
   no obvious way to reach it. It now uses dynamic viewport height, scrolls
   within itself, and carries the call to action that is hidden from the bar.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    background: var(--bg);
    padding: 12px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  .main-nav ul { display: block; margin: 0; padding: 0; }
  .main-nav li { display: block; width: 100%; }

  .main-nav a {
    display: block;
    padding: 15px 4px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--brown);
    border-bottom: 1px solid var(--mist);
    border-radius: 0;
  }
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a {
    color: var(--gold);
    box-shadow: none;
    font-weight: 600;
  }

  /* Second-level items, indented and quieter rather than hidden. */
  .main-nav .sub-menu {
    position: static; display: block; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; background: transparent;
    padding: 0 0 0 18px; margin: 0; min-width: 0;
  }
  .main-nav .sub-menu a { font-size: .93rem; color: var(--text-muted); padding: 12px 4px; }

  /* The header CTA is hidden on small screens; surface it here instead so the
     panel ends on something useful and the list is visibly complete. */
  .main-nav::after {
    content: "";
    display: block;
    height: 8px;
  }
  .mobile-cta { display: block; margin-top: 22px; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
  .mobile-cta-note {
    margin: 14px 0 0; text-align: center; font-size: .84rem; color: var(--text-muted);
  }
  .mobile-cta-note a { font-weight: 600; }
}

@media (min-width: 901px) {
  .mobile-cta { display: none; }
}

/* ==========================================================================
   27. CLIENT CONTENT COMPONENTS
   ========================================================================== */

.footer-sub {
  font-size: .86rem; color: rgba(245,227,188,.7); margin: -8px 0 14px;
}

/* "The future we envision" list on the About page */
.envision { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
@media (max-width: 700px) { .envision { grid-template-columns: 1fr; } }
.envision-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0; font-size: .95rem; color: var(--gold-pale);
}
.envision-tick { width: 16px; height: 16px; color: var(--gold-bright); flex-shrink: 0; margin-top: 5px; }

/* Commitment list in the gold card */
.commit-list { list-style: none; padding: 0; margin: 0 0 24px; }
.commit-list li {
  padding: 9px 0; border-bottom: 1px solid rgba(46,24,16,.18);
  font-size: .93rem; color: rgba(46,24,16,.85);
}
.commit-list li:last-child { border-bottom: 0; }
.commit-list strong { color: var(--brown-dark); }

/* ==========================================================================
   28. LOGO — larger again
   ==========================================================================
   The badge is the only brand mark in the header, so it carries the weight
   that a wordmark would otherwise share. Sized up across every breakpoint,
   with the header height following so it is never clipped by the sticky bar.
   -------------------------------------------------------------------------- */
:root { --header-h: 132px; }
.brand img { width: 112px; height: 112px; }

@media (max-width: 1180px) and (min-width: 901px) {
  :root { --header-h: 120px; }
  .brand img { width: 98px; height: 98px; }
  .main-nav a { padding: 8px 7px; font-size: .83rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 116px; }
  .brand img { width: 96px; height: 96px; }
}

@media (max-width: 620px) {
  :root { --header-h: 100px; }
  .brand img { width: 82px; height: 82px; }
}

@media (max-width: 400px) {
  :root { --header-h: 88px; }
  .brand img { width: 70px; height: 70px; }
}

/* ==========================================================================
   29. GRIEVANCE CHANNEL
   ========================================================================== */
.grievance-anon {
  margin-top: 20px; padding: 18px 20px;
  background: var(--gold-pale); border-radius: var(--r);
}
.grievance-anon .consent { align-items: flex-start; font-size: .9rem; color: var(--brown-light); }
.grievance-anon strong { color: var(--brown); }
#g-contact-fields.is-hidden { display: none; }

.chip-verified {
  background: #E3F3E9; color: #1E5637;
}

/* ==========================================================================
   30. OPEN ROLES SLIDER
   ==========================================================================
   Built on native scroll snapping rather than a slider library: it works
   without JavaScript, responds to a swipe on a phone, and stays keyboard
   accessible. The buttons and dots are enhancements on top of that.
   -------------------------------------------------------------------------- */
.jobs-slider { position: relative; }

.jobs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 10px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jobs-track::-webkit-scrollbar { display: none; }
.jobs-slide { scroll-snap-align: start; min-width: 0; }
.jobs-slide .job-card { height: 100%; margin-bottom: 0; display: flex; flex-direction: column; }
.jobs-slide .job-excerpt { flex-grow: 1; }

@media (max-width: 860px) { .jobs-track { grid-auto-columns: calc(75% - 10px); } }
@media (max-width: 620px) { .jobs-track { grid-auto-columns: 88%; gap: 14px; } }

.jobs-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 26px;
}
.jobs-nav {
  width: 44px; height: 44px; border-radius: var(--r-pill); cursor: pointer;
  border: 1.5px solid var(--mist); background: var(--surface);
  display: grid; place-items: center; color: var(--brown);
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.jobs-nav:hover:not([disabled]) { background: var(--gold-grad); border-color: transparent; color: var(--brown-dark); }
.jobs-nav[disabled] { opacity: .35; cursor: default; }
.jobs-nav-icon { width: 17px; height: 17px; }
.jobs-nav-icon--back { transform: rotate(180deg); }

.jobs-dots { display: flex; gap: 7px; }
.jobs-dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: var(--mist); border: 0; padding: 0; cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.jobs-dot.is-active { width: 24px; background: var(--gold); }

/* Lead paragraph on interior pages */
.entry-content .lede {
  font-size: 1.12rem; line-height: 1.6; color: var(--brown-light);
  margin-bottom: 1.4em;
}

/* ==========================================================================
   31. HERO ROLES TICKER
   ==========================================================================
   A continuous strip at the foot of the hero. The track holds the list twice
   and travels exactly half its own width, so the loop closes with no visible
   jump. Pauses on hover and on keyboard focus; disabled outright for anyone
   who has asked for reduced motion.
   -------------------------------------------------------------------------- */
:root { --ticker-duration: 46s; }

.hero-ticker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: stretch;
  /* A solid band directly beneath the hero rather than a translucent panel
     over the photograph. Over an image the contrast changes as the slides
     rotate, so text that reads on one frame disappears on the next — there
     is no colour that works against an unknown background. */
  background: var(--brown-dark);
  border-bottom: 1px solid rgba(245, 227, 188, .14);
}

.ticker-label {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown-dark);
  background: var(--gold-grad);
}

.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  /* Fade the strip out at both edges so items enter and leave rather than
     appearing to be cut off by the viewport. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: abtech-ticker var(--ticker-duration) linear infinite;
}
.hero-ticker:hover .ticker-track,
.hero-ticker:focus-within .ticker-track { animation-play-state: paused; }

@keyframes abtech-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  white-space: nowrap;
  text-decoration: none;
  border-right: 1px solid rgba(245, 227, 188, .14);
  transition: background .18s ease;
}
.ticker-item:hover { background: rgba(245, 227, 188, .08); }
.ticker-item:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -3px; }

.ticker-role  { font-weight: 600; font-size: .92rem; color: var(--invert); }
.ticker-where { font-size: .84rem; color: rgba(245, 227, 188, .86); }
.ticker-type  { font-size: .78rem; color: rgba(245, 227, 188, .62); }

.ticker-flag {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--gold-grad); color: var(--brown-dark);
}
.ticker-flag--urgent { background: #F3D8D2; color: #7A2E1C; }

@media (max-width: 760px) {
  .ticker-label { padding: 0 13px; font-size: .66rem; }
  .ticker-item  { padding: 11px 16px; gap: 8px; }
  .ticker-role  { font-size: .86rem; }
  .ticker-type  { display: none; }
}
@media (max-width: 440px) {
  .ticker-where { display: none; }
}

/* An animation nobody asked for should not run for someone who has said no. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ticker-viewport::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   32. MOTION
   ==========================================================================
   Three things: sections revealing as they enter view, the hero photograph
   crossfading, and hover states that respond.

   All of it is an enhancement layered on a page that is already complete. If
   the JavaScript never runs, every section is visible and every image is in
   place — nothing here is load-bearing.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Section reveals
   Only applied once the script confirms it is running, via .js-motion on the
   root element. Without that class nothing is hidden, so a failed script can
   never leave the page blank.
   -------------------------------------------------------------------------- */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .72s cubic-bezier(.22,1,.28,1),
              transform .72s cubic-bezier(.22,1,.28,1);
  will-change: opacity, transform;
}
/* Left the viewport upward, so it returns from above rather than from below.
   A shorter distance on the way back: re-entry should feel like the element
   settling into place, not arriving for the first time. */
.js-motion .reveal.is-above { transform: translateY(-22px); }
.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Exit is faster than entry, and without the stagger. */
.js-motion .reveal:not(.is-visible) { transition-duration: .38s; }
.js-motion .reveal-stagger:not(.is-visible) > * {
  transition-duration: .32s;
  transition-delay: 0s !important;
}

/* Children stagger slightly, so a grid arrives as a sequence rather than a
   block. Kept short — anything longer reads as sluggish rather than crafted. */
.js-motion .reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .6s cubic-bezier(.22,1,.28,1),
              transform .6s cubic-bezier(.22,1,.28,1);
}
.js-motion .reveal-stagger.is-above > * { transform: translateY(-18px) scale(.99); }
.js-motion .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js-motion .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .00s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .10s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .30s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .40s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .50s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .58s; }
.js-motion .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .66s; }

/* --------------------------------------------------------------------------
   Hero crossfade
   -------------------------------------------------------------------------- */
.hero-full-media.has-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

/* A very slow drift on the active image. Small enough to register as depth
   rather than as movement — at 6% over twelve seconds nobody consciously
   sees it happen. */
.hero-slide.is-active { animation: abtech-drift 12s ease-out forwards; }
@keyframes abtech-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-dots {
  position: absolute; right: 24px; bottom: 22px; z-index: 4;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px; padding: 0; cursor: pointer;
  border-radius: var(--r-pill);
  border: 1px solid rgba(253,251,247,.65);
  background: rgba(253,251,247,.25);
  transition: width .25s ease, background .25s ease;
}
.hero-dot.is-active { width: 26px; background: var(--gold-bright); border-color: transparent; }
@media (max-width: 620px) { .hero-dots { right: 14px; bottom: 16px; } }

/* --------------------------------------------------------------------------
   Hover states
   -------------------------------------------------------------------------- */
.job-card {
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, border-color .22s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--gold-pale); }

.card { transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* Service tiles: the image grows inside a fixed frame rather than the tile
   itself moving, which keeps the grid steady while still responding. */
.svc-tile-media { overflow: hidden; }
.svc-tile-media img,
.svc-tile-media .slot-img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.svc-tile:hover .svc-tile-media img,
.svc-tile:hover .svc-tile-media .slot-img { transform: scale(1.055); }

.post-card .post-thumb { overflow: hidden; }
.post-card .post-thumb img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-thumb img { transform: scale(1.05); }

/* Arrows travel a few pixels on hover. */
.sector-row .sector-arrow,
.bento-arrow svg,
.svc-tile-arrow svg { transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.sector-row:hover .sector-arrow,
.bento-cell:hover .bento-arrow svg,
.svc-tile:hover .svc-tile-arrow svg { transform: translateX(4px); }

.btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Typography rhythm
   Small corrections that nobody notices individually.
   -------------------------------------------------------------------------- */
h1 { letter-spacing: -.022em; }
h2 { letter-spacing: -.017em; }
h3 { letter-spacing: -.008em; }
.entry-content p { line-height: 1.72; }
.entry-content h2 { margin-top: 1.9em; }
.entry-content h3 { margin-top: 1.5em; }
.section-head p { max-width: 62ch; }

/* --------------------------------------------------------------------------
   Reduced motion
   Everything above is decoration. Someone who has asked their system for less
   movement gets the finished page with none of it — not a degraded version.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal,
  .js-motion .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-slide.is-active { animation: none; }
  .hero-slide { transition: none; }
  .job-card:hover, .card:hover, .btn:hover { transform: none; }
  .svc-tile:hover .svc-tile-media img,
  .post-card:hover .post-thumb img { transform: none; }
}

/* ==========================================================================
   33. MOTION — additional treatments
   ==========================================================================
   The reveal above is one movement applied everywhere, which is why a long
   page starts to feel repetitive. These give particular elements their own
   behaviour, so scrolling produces variety rather than the same 34px lift
   twelve times.
   -------------------------------------------------------------------------- */

/* Media uncovers rather than sliding: the frame stays put while the image is
   revealed through it and settles back from a slight zoom. */
.js-motion .reveal-media img,
.js-motion .reveal-media .slot-img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition: clip-path 1s cubic-bezier(.16,1,.3,1),
              transform 1.2s cubic-bezier(.16,1,.3,1);
}
.js-motion .reveal-media.is-visible img,
.js-motion .reveal-media.is-visible .slot-img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
/* Re-entering from above uncovers downward, matching the scroll direction. */
.js-motion .reveal-media.is-above img,
.js-motion .reveal-media.is-above .slot-img { clip-path: inset(100% 0 0 0); }

/* The gold rule above a heading draws itself in. */
.js-motion .reveal .eyebrow-rule::after,
.js-motion .reveal-stagger .eyebrow-rule::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.16,1,.3,1) .12s;
}
.js-motion .reveal.is-visible .eyebrow-rule::after,
.js-motion .reveal-stagger.is-visible .eyebrow-rule::after { transform: scaleX(1); }

/* Section headings lead, their supporting paragraph follows a beat later. */
.js-motion .reveal .section-head h2 { transition-delay: .05s; }
.js-motion .reveal .section-head p  {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1) .22s,
              transform .7s cubic-bezier(.16,1,.3,1) .22s;
}
.js-motion .reveal.is-visible .section-head p { opacity: 1; transform: none; }

/* Statistics count up, and the cell scales in fractionally as they do. */
.js-motion .stat-cell { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.js-motion .reveal-stagger.is-visible .stat-cell { transform: none; }

/* The dark banner slides its content in from the left, against the image. */
.js-motion .reveal .banner-body > * {
  opacity: 0; transform: translateX(-22px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.js-motion .reveal.is-visible .banner-body > * { opacity: 1; transform: none; }
.js-motion .reveal.is-visible .banner-body > *:nth-child(2) { transition-delay: .10s; }
.js-motion .reveal.is-visible .banner-body > *:nth-child(3) { transition-delay: .20s; }
.js-motion .reveal.is-visible .banner-body > *:nth-child(4) { transition-delay: .30s; }

/* Hero copy arrives on load rather than on scroll, since it is already in view. */
.js-motion .hero-full-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: abtech-hero-in .9s cubic-bezier(.16,1,.3,1) forwards;
}
.js-motion .hero-full-copy > *:nth-child(1) { animation-delay: .15s; }
.js-motion .hero-full-copy > *:nth-child(2) { animation-delay: .28s; }
.js-motion .hero-full-copy > *:nth-child(3) { animation-delay: .41s; }
@keyframes abtech-hero-in {
  to { opacity: 1; transform: none; }
}

/* The search bar lifts into place under the hero copy. */
.js-motion .job-search--hero {
  opacity: 0;
  transform: translateY(26px);
  animation: abtech-hero-in .9s cubic-bezier(.16,1,.3,1) .54s forwards;
}

/* Hero parallax: the photograph drifts at a fraction of the scroll speed.
   The offset is set by script on a custom property so the CSS stays simple. */
.hero-slide { transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04); }
.js-motion .hero-slide.is-active { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal-media img,
  .js-motion .reveal-media .slot-img { clip-path: none !important; transform: none !important; }
  .js-motion .hero-full-copy > *,
  .js-motion .job-search--hero { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js-motion .reveal .section-head p,
  .js-motion .reveal .banner-body > * { opacity: 1 !important; transform: none !important; }
  .js-motion .reveal .eyebrow-rule::after { transform: scaleX(1) !important; }
  .hero-slide { transform: none !important; }
}

/* ==========================================================================
   34. MOTION — the real work
   ==========================================================================
   Fading a whole block upward is the default everyone reaches for, and it is
   why most sites feel the same. The difference is in four things:

     1. Headlines revealed line by line from behind a mask, so type appears to
        rise out of the page rather than fade onto it.
     2. Photographs that move inside their own frame as you scroll, so the
        page has depth rather than being flat things sliding about.
     3. A transition between pages, so navigation is continuous instead of a
        white flash.
     4. Easing with weight. Everything below uses a long expo curve —
        fast at the start, settling slowly — which is what reads as expensive.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   1. Masked headline reveal
   Each line sits in a container with hidden overflow, and the words inside
   start below it. They rise into view rather than appearing in place.
   -------------------------------------------------------------------------- */
.js-motion .split-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;   /* room for descenders, which the mask would clip */
  margin-bottom: -.08em;
}
.js-motion .split-word {
  display: inline-block;
  transform: translateY(115%) rotate(2deg);
  opacity: 0;
  transition:
    transform .95s cubic-bezier(.16,1,.3,1),
    opacity   .6s  cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js-motion .is-visible .split-word,
.js-motion .split-ready .split-word {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   2. In-frame parallax
   The photograph is taller than its frame and slides within it as the frame
   crosses the viewport. This is what gives a page depth — the alternative,
   moving whole blocks, just looks like things sliding around.
   -------------------------------------------------------------------------- */
.js-motion [data-parallax] { overflow: hidden; }
.js-motion [data-parallax] img,
.js-motion [data-parallax] .slot-img {
  height: 118%;
  transform: translate3d(0, var(--py, 0%), 0) scale(1.02);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   3. Page transition
   A brown curtain closes over the page on the way out and lifts on the way
   in, so moving between pages reads as one continuous motion rather than a
   flash of white. Purely additive: if the script fails, links behave normally.
   -------------------------------------------------------------------------- */
.page-curtain {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--brown-dark);
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}
.js-motion .page-curtain {
  transform: translateY(0);
  animation: abtech-curtain-up .85s cubic-bezier(.76,0,.24,1) forwards;
}
.js-motion .page-curtain.is-closing {
  animation: abtech-curtain-down .5s cubic-bezier(.76,0,.24,1) forwards;
}
@keyframes abtech-curtain-up   { to { transform: translateY(-100%); } }
@keyframes abtech-curtain-down { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* The mark sits in the curtain so the moment is branded rather than blank. */
.page-curtain::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-grad);
  opacity: .12;
  clip-path: polygon(0 100%, 100% 60%, 100% 100%);
}

/* --------------------------------------------------------------------------
   4. Buttons with weight
   A sheen crosses the button on hover. Cheap to run, and it makes a button
   feel like an object rather than a coloured rectangle.
   -------------------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(253,251,247,.28) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.btn:hover::before { transform: translateX(130%); }

/* --------------------------------------------------------------------------
   5. Process steps that light as they pass
   -------------------------------------------------------------------------- */
.js-motion .step { transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.js-motion .steps.is-visible .step { opacity: .45; }
.js-motion .steps.is-visible .step.is-lit { opacity: 1; }
.js-motion .steps.is-visible .step.is-lit h3 { color: var(--gold); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-motion .split-word { transform: none !important; opacity: 1 !important; transition: none !important; }
  .js-motion [data-parallax] img,
  .js-motion [data-parallax] .slot-img { height: 100%; transform: none !important; }
  .page-curtain { display: none !important; }
  .btn::before { display: none; }
  .js-motion .steps.is-visible .step { opacity: 1; }
}

/* ==========================================================================
   35. MOTION ON SMALL SCREENS
   ==========================================================================
   The desktop values were set against a wide viewport, where a 34px lift is a
   small fraction of the screen. The same distance on a phone reads as slighter
   and slower, so the amplitude goes up and the timing tightens — a phone user
   scrolls faster and waits less.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .js-motion .reveal {
    transform: translateY(46px);
    transition-duration: .66s;
  }
  .js-motion .reveal-stagger > * {
    transform: translateY(34px) scale(.972);
    transition-duration: .56s;
  }

  /* Shorter gaps: only two cards are visible at once on a phone, so a long
     stagger leaves the reader waiting on something already in front of them. */
  .js-motion .reveal-stagger.is-visible > *:nth-child(1)   { transition-delay: .00s; }
  .js-motion .reveal-stagger.is-visible > *:nth-child(2)   { transition-delay: .07s; }
  .js-motion .reveal-stagger.is-visible > *:nth-child(3)   { transition-delay: .14s; }
  .js-motion .reveal-stagger.is-visible > *:nth-child(4)   { transition-delay: .21s; }
  .js-motion .reveal-stagger.is-visible > *:nth-child(n+5) { transition-delay: .26s; }

  /* Headline words arrive faster, so a three-line heading is not still
     assembling as the reader reaches the paragraph beneath it. */
  .js-motion .split-word {
    transition-duration: .78s;
    transition-delay: calc(var(--i, 0) * 36ms);
  }

  /* Parallax reduced: at full strength inside a small frame the crop shifts
     far enough to cut the top off a head. */
  .js-motion [data-parallax] img,
  .js-motion [data-parallax] .slot-img { height: 112%; }

  /* Navigation should feel immediate on a phone. */
  .js-motion .page-curtain { animation-duration: .6s; }
  .js-motion .page-curtain.is-closing { animation-duration: .36s; }
}

/* --------------------------------------------------------------------------
   Interior page heroes animate on arrival, as the homepage does.
   -------------------------------------------------------------------------- */
.js-motion .page-hero .breadcrumb,
.js-motion .page-hero > .wrap > p {
  opacity: 0;
  transform: translateY(18px);
  animation: abtech-hero-in .8s cubic-bezier(.16,1,.3,1) forwards;
}
.js-motion .page-hero .breadcrumb  { animation-delay: .06s; }
.js-motion .page-hero > .wrap > p  { animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .page-hero .breadcrumb,
  .js-motion .page-hero > .wrap > p { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   36. MOBILE MENU — plain dropdown
   ==========================================================================
   The panel previously slid in from the right as a fixed overlay. That has two
   failure modes on a phone: it depends on the viewport height being reported
   correctly, and if a transform is interrupted the panel can end up parked
   off-screen with the links unreachable.

   This replaces it with the ordinary thing people expect — a panel that drops
   down under the header, full width, links in a plain list. It is anchored to
   the header rather than the viewport, so there is nothing to compute and
   nothing to end up in the wrong place.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Deliberately not position: relative here. A sticky element already
     establishes the containing block the dropdown needs, and overriding it
     would stop the header following the reader down the page. */

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    transform: none;              /* no sliding: it opens where it sits */
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg);
    border-top: 1px solid var(--mist);
    box-shadow: 0 18px 40px rgba(46, 24, 16, .16);
    padding: 0 var(--gut);
    transition: opacity .22s ease, max-height .3s ease, visibility 0s linear .3s;
    z-index: 120;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    /* Generous, and scrollable if the menu is ever longer than the screen. */
    max-height: calc(100dvh - var(--header-h) - 20px);
    overflow-y: auto;
    padding: 6px var(--gut) calc(22px + env(safe-area-inset-bottom, 0px));
    transition: opacity .22s ease, max-height .34s ease, visibility 0s;
  }

  .main-nav ul { display: block; margin: 0; padding: 0; list-style: none; }
  .main-nav li { display: block; width: 100%; }

  .main-nav a {
    display: block;
    padding: 15px 2px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--brown);
    border-bottom: 1px solid var(--mist);
    border-radius: 0;
    text-decoration: none;
  }
  .main-nav li:last-child > a { border-bottom: 0; }
  .main-nav a:hover,
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a { color: var(--gold); }

  /* Sub-menus indent rather than hide, with a rule marking the nesting. */
  .main-nav .sub-menu {
    position: static; display: block; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; background: transparent;
    margin: 0 0 4px; padding: 0 0 0 14px;
    border-left: 2px solid var(--gold-pale);
  }
  .main-nav .sub-menu a {
    font-size: .93rem; color: var(--text-muted); padding: 12px 2px;
    border-bottom: 1px dashed var(--mist);
  }

  .mobile-cta { display: block; margin-top: 18px; }
  .mobile-cta .btn { width: 100%; justify-content: center; }

  /* Larger tap target on the button itself. */
  .nav-toggle {
    width: 44px; height: 44px;
    justify-content: center; align-items: center; gap: 5px;
  }
}


/* ==========================================================================
   37. MOBILE MENU — call to action
   ==========================================================================
   Restrained on purpose. This sits at the end of a list of plain text links,
   so anything with weight to it — bordered cards, stacked blocks — competes
   with the navigation rather than closing it. One button, then two quiet
   lines. The candidate route stays present without being given equal visual
   weight to the commercial one.
   -------------------------------------------------------------------------- */
.mobile-cta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--mist);
  text-align: center;
}

.mcta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  background: var(--gold-grad);
  color: var(--brown-dark);
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 650;
  letter-spacing: -.005em;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(201, 145, 26, .5);
  transition: transform .16s ease, box-shadow .16s ease;
}
.mcta-primary:active {
  transform: scale(.98);
  box-shadow: 0 4px 12px -6px rgba(201, 145, 26, .5);
}
.mcta-arrow { width: 16px; height: 16px; flex-shrink: 0; }

.mcta-alt {
  margin: 16px 0 0;
  font-size: .89rem;
  color: var(--text-muted);
}
.mcta-alt a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.mcta-alt a:hover { color: var(--gold); }

.mcta-call {
  display: inline-block;
  margin-top: 10px;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  text-decoration: none;
}
.mcta-call:hover { color: var(--gold); }

@media (min-width: 901px) { .mobile-cta { display: none; } }

/* ==========================================================================
   38. HEADER LAYOUT — stated explicitly
   ==========================================================================
   The header bar is built from rules spread across several earlier sections,
   which is how the toggle ended up out of position. Rather than adjust one of
   them and hope, this states the whole arrangement in one place, last: one
   row, logo left, toggle right, vertically centred, never wrapping.
   -------------------------------------------------------------------------- */
.site-header .header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  position: relative;
}

.site-header .brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;   /* pinned right whatever sits between */
  gap: 10px;
}

@media (max-width: 900px) {
  /* The nav is taken out of the flow, so the row holds only the logo and the
     toggle — nothing left to push either of them onto a second line. */
  .site-header .main-nav { flex: none; }

  .site-header .nav-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
    border-radius: 12px;
  }

  /* Slightly smaller logo so the pair always fits a narrow screen without the
     row needing to give way. */
  .site-header .brand img { width: 74px; height: 74px; }
}

@media (max-width: 400px) {
  .site-header .brand img { width: 62px; height: 62px; }
  .site-header .nav-toggle { width: 42px; height: 42px; }
}

/* ==========================================================================
   39. SCROLL MOTION — polish
   ==========================================================================
   Bidirectional reveals are easy to get wrong: replay everything at full
   strength in both directions and the page never settles. These are the
   corrections that keep it calm.
   -------------------------------------------------------------------------- */

/* Nothing animates during the first moments after load. Without this, a page
   restored mid-scroll by the browser plays every section at once. */
.js-motion.is-settling .reveal,
.js-motion.is-settling .reveal-stagger > *,
.js-motion.is-settling .reveal-media img { transition: none !important; }

/* The hero never replays. It is the first thing seen and re-animating it on
   the way back up looks like the page reloading. */
.js-motion .hero-full .reveal,
.js-motion .hero-full-copy > * { transition-delay: 0s; }

/* Large blocks move less than small ones. A full-width dark banner travelling
   34px reads as the whole page lurching; a card travelling the same distance
   reads as precise. */
.js-motion .banner.reveal,
.js-motion .section--dark.reveal { transform: translateY(20px); }
.js-motion .banner.reveal.is-above,
.js-motion .section--dark.reveal.is-above { transform: translateY(-14px); }

/* Elements only partly scrolled past should not be mid-animation while the
   reader is still looking at them — opacity bottoms out at a readable level
   rather than going to zero on the way out. */
.js-motion .reveal:not(.is-visible) { opacity: 0; }
.js-motion .reveal.is-above:not(.is-visible) { opacity: .001; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal.is-above,
  .js-motion .reveal-stagger.is-above > *,
  .js-motion .reveal-media.is-above img { transform: none !important; clip-path: none !important; opacity: 1 !important; }
}
