/* ---------------------------------------------------------------
   All in One Staffing Agency — site stylesheet
   --------------------------------------------------------------- */

:root {
  /* Brand */
  --teal: #1f5560;
  --teal-deep: #173f48;
  --teal-soft: #dde8eb;
  --rust: #c25b3f;
  --rust-soft: #f4ddd2;
  --mustard: #d4a03a;
  --cream: #f1e7cf;        /* accent only */
  --cream-2: #f6efde;      /* accent only */

  /* Neutrals — cool clinical near-whites */
  --paper: #f4f7f8;        /* base background */
  --paper-2: #e9eff1;      /* alternate band */
  --paper-3: #fdfefe;      /* cards on tinted band */
  --ink: #14181c;
  --ink-2: #2f363c;
  --ink-3: #5d6970;
  --rule: #d6dee1;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;

  /* Type */
  --serif: "Newsreader", "Source Serif 4", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(31,85,96,0.15);
  overflow-x: clip; /* guard against accidental horizontal scroll without breaking sticky header */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rust);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
p.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------------- Header ---------------- */

/* ---------------- Utility bar ---------------- */
.utility-bar {
  background: var(--teal-deep);
  color: rgba(244,236,216,0.86);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 38px;
}
.utility-bar__left {
  display: flex; align-items: center; gap: 22px;
}
.utility-bar__left .pulse {
  display: inline-flex; align-items: center; gap: 8px;
}
.utility-bar__left .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6dd28d;
  box-shadow: 0 0 0 0 rgba(109,210,141,0.6);
  animation: pulse-dot 2.1s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(109,210,141,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(109,210,141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109,210,141, 0); }
}
.utility-bar__right {
  display: flex; align-items: center; gap: 20px;
}
.utility-bar a {
  color: rgba(244,236,216,0.86);
  transition: color .15s;
}
.utility-bar a:hover { color: var(--mustard); }
.utility-bar .sep {
  width: 1px; height: 14px; background: rgba(255,255,255,0.16);
}
@media (max-width: 720px) {
  /* Keep tap-to-call visible on mobile; drop the secondary location + email */
  .utility-bar__left .sep,
  .utility-bar__left > span:last-child { display: none; }
  .utility-bar__right { gap: 0; }
  .utility-bar__right .sep,
  .utility-bar__right a[href^="mailto"] { display: none; }
  .utility-bar__right a[href^="tel"] { font-weight: 600; }
}
@media (max-width: 430px) {
  /* Very narrow: dedicate the bar to the call link */
  .utility-bar__left { display: none; }
  .utility-bar__inner { justify-content: center; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,247,248,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s, background .2s;
}
.site-header.is-scrolled {
  background: rgba(244,247,248,0.96);
  box-shadow: 0 8px 28px -22px rgba(20,24,28,0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand__mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: 9px;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__type {
  display: flex; flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__tag {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 5px;
  font-weight: 600;
}
.brand:hover .brand__name { color: var(--teal); }
.brand__name, .brand__tag { transition: color .2s; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 6px;
  transition: color .18s;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--rust);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.nav a:not(.nav__cta):hover { color: var(--teal); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav a.active { color: var(--teal); }
.nav a.active::after { transform: scaleX(1); }

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px 11px 18px;
  background: var(--teal);
  color: #f4f7f8 !important;
  border-radius: 999px;
  margin-left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s, transform .18s;
}
.nav__cta:hover { background: var(--teal-deep) !important; transform: translateY(-1px); }
.nav__cta::after { content: "→"; transition: transform .2s; }
.nav__cta:hover::after { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-rust { background: var(--rust); color: var(--paper); }
.btn-rust:hover { background: #a84c33; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: var(--paper); color: var(--teal-deep); }
.btn .arrow { width: 14px; height: 14px; }

/* ---------------- Sections ---------------- */

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lead { color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

.divider {
  border: 0;
  height: 1px;
  background: var(--rule);
}

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  background: var(--teal-deep);
  color: var(--cream);
  padding: clamp(64px, 8vw, 104px) 0 30px;
  margin-top: 100px;
  overflow: hidden;
  isolation: isolate;
}
/* Soft depth + brand wash */
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 120% at 88% 8%, rgba(212,160,58,0.14), transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(31,85,96,0.55), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Giant outlined wordmark watermark */
.site-footer::after {
  content: "All in One.";
  position: absolute;
  left: clamp(-24px, -1vw, 0px);
  bottom: -1.5vw;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241,231,207,0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.site-footer .container { position: relative; z-index: 2; }

/* Mustard hairline accent across the top */
.site-footer .footer-grid::before {
  content: "";
  position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 2px;
  background: linear-gradient(90deg, var(--mustard), transparent 70%);
}

.site-footer h4 {
  color: var(--mustard);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(241,231,207,0.16);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-grid li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  color: rgba(241,231,207,0.82);
  font-weight: 500;
}
.footer-grid li a {
  display: inline-block;
  color: rgba(241,231,207,0.82);
  padding-bottom: 1px;
  background-image: linear-gradient(var(--mustard), var(--mustard));
  background-position: 0 100%;
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  transition: background-size .35s ease, color .18s;
}
.footer-grid li a:hover {
  color: var(--cream);
  background-size: 100% 1.5px;
}
.footer-brand p {
  color: rgba(241,231,207,0.7);
  font-size: 16px;
  max-width: 36ch;
  line-height: 1.55;
}
.footer-brand p + p,
.footer-brand p[style] {
  margin-top: 18px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: rgba(241,231,207,0.45) !important;
}
.footer-brand::after {
  content: "Est. 2026 · Adelaide, SA";
  display: inline-block;
  margin-top: 22px;
  padding: 7px 18px 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mustard);
  border: 1px solid rgba(212,160,58,0.5);
  border-radius: 999px;
  transform: rotate(-2deg);
  background: rgba(212,160,58,0.06);
}
.footer-mark {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.footer-mark__circle {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: rgba(241,231,207,0.06);
  border: 1px solid rgba(241,231,207,0.14);
  border-radius: 12px;
  padding: 8px;
}
.footer-mark__circle img { width: 100%; height: 100%; object-fit: contain; }
.footer-mark__type {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.footer-mark__type small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--mustard);
  margin-top: 7px;
  font-weight: 500;
  text-transform: uppercase;
}

.footer-legal {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241,231,207,0.5);
}
.footer-legal a {
  color: rgba(241,231,207,0.78);
  padding-bottom: 1px;
  background-image: linear-gradient(var(--mustard), var(--mustard));
  background-position: 0 100%;
  background-size: 0% 1px;
  background-repeat: no-repeat;
  transition: background-size .3s ease, color .18s;
}
.footer-legal a:hover { color: var(--mustard); background-size: 100% 1px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 8px; align-items: flex-start; }
  .site-footer::after { font-size: 24vw; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer::after { display: none; }
}

/* ---------------- Page hero ---------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  padding: clamp(44px, 6vw, 80px) 0 clamp(52px, 7vw, 92px);
  /* 2px mustard brand rule pinned to the top + diagonal teal depth gradient */
  background:
    linear-gradient(var(--mustard), var(--mustard)) top left / 100% 2px no-repeat,
    linear-gradient(155deg, var(--teal) 0%, var(--teal-deep) 82%);
  border-bottom: 1px solid rgba(241,231,207,0.14);
}
/* Fine grain — tactile, non-flat surface (ties to the landing hero) */
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.91  0 0 0 0 0.81  0 0 0 0.5 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* Editorial ledger hairlines fading in from the right — replaces the glow blob */
.page-hero::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(46%, 560px);
  z-index: -1;
  background: repeating-linear-gradient(90deg,
    rgba(241,231,207,0.06) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 78%);
  mask-image: linear-gradient(90deg, transparent, #000 78%);
  pointer-events: none;
}

.page-hero h1 { color: var(--cream); max-width: 20ch; margin-top: 22px; }
.page-hero .lede { color: rgba(241,231,207,0.86); margin-top: 22px; max-width: 56ch; }
.page-hero .eyebrow { color: var(--mustard); }
.page-hero .eyebrow::before { background: var(--mustard); }

/* Editorial breadcrumb: mono, uppercase, layered contrast */
.page-hero__crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.page-hero__crumbs a { color: rgba(241,231,207,0.72); transition: color .15s; }
.page-hero__crumbs a:hover { color: var(--mustard); }
.page-hero__crumbs span { color: rgba(241,231,207,0.4); }       /* separators */
.page-hero__crumbs span:last-child { color: var(--cream); }     /* current page */

/* ---------------- Cards ---------------- */

.card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(31,85,96,0.18);
}
.card__index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card__index::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--rust);
  border-radius: 50%;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------------- Utilities ---------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.bg-teal { background: var(--teal); color: var(--cream); }
.bg-teal h2 { color: var(--cream); }
.bg-teal p { color: rgba(244,236,216,0.8); }
.bg-cream { background: var(--cream-2); }
.bg-paper2 { background: var(--paper-2); }

.placeholder-photo {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(31,85,96,0.06) 0 1px,
      transparent 1px 14px
    ),
    var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  display: grid; place-items: center;
  text-align: center;
  padding: 16px;
  letter-spacing: 0.04em;
  min-height: 200px;
}
.placeholder-photo::before {
  content: "[ image ]";
  position: absolute; top: 14px; left: 16px;
  color: var(--ink-3);
}

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    padding: 14px var(--gutter) 22px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a { padding: 14px 12px; border-radius: 8px; font-size: 16px; }
  .nav a:not(.nav__cta)::after { display: none; }
  .nav a.active { background: var(--teal-soft); }
  .nav__cta { margin: 8px 0 0; justify-content: center; }
}
