/* ============================================================
   EZYHIRE — global stylesheet
   One file for every page. Per-page accent colour is set by
   <body data-accent="traffic|labour|waste|equipment|home|values">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #111111;
  --ink: #1a1a1a;
  --grey-700: #444;
  --grey-500: #6b6b6b;
  --line: #e6e6e2;
  --bg: #faf9f6;
  --bg-alt: #f1f0ec;
  --white: #ffffff;
  --gold: #c99700;

  /* default accent (overridden per page below) */
  --accent: #c99700;
  --accent-ink: #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.18);
}

/* per-page accent colours + header band colour */
body[data-accent="traffic"]   { --accent: #e8650a; --band: #e8650a; }
body[data-accent="labour"]    { --accent: #1c6ea4; --band: #1c6ea4; }
body[data-accent="waste"]     { --accent: #1e8a4c; --band: #1e8a4c; }
body[data-accent="equipment"] { --accent: #b26a00; --band: #b26a00; }
body[data-accent="home"]      { --accent: #c99700; --band: #111111; }
body[data-accent="values"]    { --accent: #b23a2e; --band: #111111; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-light   { background: #fff; color: var(--black); }
.btn-light:hover { box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-ghost   { background: transparent; color: var(--grey-700); padding: 13px 18px; }

/* ---------- Top contact bar ---------- */
.topbar {
  background: var(--band); color: rgba(255,255,255,.92); font-size: 13.5px;
}
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.92); font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: #fff; }
@media (max-width: 620px) {
  .topbar-inner { justify-content: center; gap: 16px; height: auto; padding: 8px 0; flex-wrap: wrap; font-size: 12.5px; }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: #fff;
  border-bottom: 3px solid var(--accent);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand .wordmark {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 22px;
  letter-spacing: .04em; color: #fff;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 14.5px;
  color: #e9e9e9; padding: 8px 14px; border-radius: 8px;
  position: relative; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--accent);
}
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  color: #fff; cursor: pointer; padding: 8px;
}

/* mobile dropdown */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px 16px 16px;
    border-bottom: 3px solid var(--accent);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { padding: 14px; border-radius: 8px; }
  .nav-links a.active::after { left: 14px; right: auto; width: 28px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--band); color: #fff;
  text-align: center; padding: 70px 0 78px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/background.png');
  background-size: 720px; opacity: .26; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .hero-ico { width: 56px; height: 56px; margin: 0 auto 16px; color: #fff; }
.hero .hero-ico svg { width: 56px; height: 56px; }
.hero .eyebrow {
  font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; }
.hero .banner-logo { max-width: 360px; margin: 0 auto 24px; }
.hero .lead {
  max-width: 680px; margin: 20px auto 0; font-size: clamp(16px,2vw,19px);
  color: rgba(255,255,255,.88);
}
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; font-size: 12.5px; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--black); }
.section-head p { margin-top: 16px; color: var(--grey-700); font-size: 17px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 18px; color: var(--grey-700); font-size: 17px; }
.prose p:first-of-type { font-size: 19px; color: var(--ink); }

/* ---------- Dark patterned band (e.g. About) ---------- */
.band {
  position: relative; overflow: hidden;
  background: #111; color: #fff; text-align: center; padding: 76px 0;
}
.band::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/background.png');
  background-size: 720px; opacity: .2; pointer-events: none;
}
.band .container { position: relative; z-index: 1; }
.band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; }
.band p { max-width: 760px; margin: 18px auto 0; color: #cfcfcf; font-size: 17px; }

/* ---------- Service / feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--grey-500); font-size: 15px; }

/* clickable service tiles (home) */
.tile {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tile .ico svg { width: 28px; height: 28px; }
.tile h3 { font-size: 21px; font-weight: 800; }
.tile p { color: var(--grey-500); font-size: 15px; }
.tile .more { margin-top: auto; font-family: 'Archivo',sans-serif; font-weight: 700; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.tile.t-traffic   .ico { background: #e8650a; }
.tile.t-labour    .ico { background: #1c6ea4; }
.tile.t-waste     .ico { background: #1e8a4c; }
.tile.t-equipment .ico { background: #c99700; }

/* ---------- Hero accent rule ---------- */
.hero-rule { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--accent); margin: 22px auto 0; }

/* ---------- Service / item list ---------- */
.svc-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.svc-list li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 20px; font-weight: 600; font-size: 15.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.svc-list li .li-ico { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; display: inline-flex; }
.svc-list li .li-ico svg { width: 22px; height: 22px; }

/* ---------- Terms panel ---------- */
.terms { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; max-width: 880px; margin: 0 auto; }
.terms h3 { font-size: 19px; margin-bottom: 14px; }
.terms h4 { font-family: 'Archivo', sans-serif; font-size: 15px; color: var(--accent); margin: 22px 0 10px; letter-spacing: .02em; }
.terms ul { margin: 0 0 6px 20px; }
.terms li { margin-bottom: 8px; color: #4a4a4a; font-size: 15px; }
.terms ul ul { margin: 8px 0 8px 18px; }

/* ---------- Terms + documents layout ---------- */
.terms-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; max-width: 1120px; margin: 0 auto; align-items: start; }
.terms-layout .terms { max-width: none; margin: 0; }
.doc-panel { display: grid; gap: 18px; position: sticky; top: 20px; }
.doc-panel h4 { font-family: 'Archivo', sans-serif; font-size: 15px; color: var(--accent); letter-spacing: .02em; margin-bottom: 2px; }
.doc-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.doc-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.doc-card .doc-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.doc-card .doc-ico svg { width: 24px; height: 24px; }
.doc-card .doc-text { display: grid; gap: 2px; }
.doc-card .doc-title { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px; }
.doc-card .doc-sub { font-size: 12.5px; color: #7a7a7a; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--accent); color: #fff; padding: 72px 0;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/background.png');
  background-size: 720px; opacity: .22; pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.cta p { margin: 14px auto 0; max-width: 560px; color: rgba(255,255,255,.9); font-size: 17px; }
.cta .cta-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact bar ---------- */
.contactbar {
  background: var(--black); color: #fff; padding: 26px 0;
}
.contactbar .row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.contactbar a { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.contactbar a:hover { color: var(--accent); }
.contactbar svg { width: 19px; height: 19px; color: var(--accent); }

/* ---------- Work slideshow (continuous right-to-left) ---------- */
.work { padding: 64px 0 72px; overflow: hidden; }
.work .track-mask { overflow: hidden; }
.work-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 40s linear infinite;
}
.work .work-track:hover { animation-play-state: paused; }
.work-track figure {
  flex: 0 0 auto; width: 440px; height: 300px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow);
}
.work-track figure img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black); color: #d7d7d7; text-align: center;
  padding: 50px 0 40px;
}
.footer .f-name {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 24px;
  letter-spacing: .04em; color: #fff;
}
.footer .f-legal {
  font-size: 13.5px; letter-spacing: .14em; color: #b9b9b9; margin-top: 5px;
}
.footer .f-copy { font-size: 13px; color: #8a8a8a; margin-top: 18px; }
.footer .f-logos {
  display: flex; gap: 30px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 32px;
}
.footer .f-logos img { height: 84px; width: auto; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10,10,10,.62); backdrop-filter: blur(2px);
  padding: 24px; overflow-y: auto;
}
.modal-backdrop.open { display: grid; place-items: start center; }
.modal {
  background: #fff; color: var(--ink); border-radius: 18px; width: 100%; max-width: 560px;
  margin: 40px 0; box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--accent); color: #fff;
}
.modal-head h3 { font-size: 20px; font-weight: 800; }
.modal-close { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,.32); }
.modal-body { padding: 24px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .group > legend {
  display: block; font-family: 'Archivo',sans-serif; font-weight: 700;
  font-size: 14px; margin-bottom: 7px; color: var(--ink);
}
.field .req { color: #d23b2e; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input[type="file"] {
  padding: 10px 12px; border-style: dashed; cursor: pointer; font-size: 14px;
}
.field input[type="file"]::file-selector-button {
  font: inherit; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  border: 0; background: var(--accent); color: #fff; padding: 8px 14px;
  border-radius: 8px; margin-right: 12px; cursor: pointer;
}
.form-hint { font-size: 12.5px; color: var(--grey-500); margin-top: 6px; }
.group { margin-bottom: 18px; border: 0; }
.checks { display: grid; gap: 8px; margin-top: 4px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.check:hover { border-color: var(--accent); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.check span { font-size: 14.5px; }
.check.agree { align-items: flex-start; }
.check.agree span { font-size: 13.5px; color: var(--grey-700); line-height: 1.5; }

/* Yes / No toggle */
.yesno { display: flex; gap: 10px; margin-top: 4px; }
.yesno label {
  flex: 1; text-align: center; padding: 11px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14.5px;
  font-family: 'Archivo',sans-serif; transition: all .15s ease;
}
.yesno input { position: absolute; opacity: 0; pointer-events: none; }
.yesno input:checked + span { display: block; }
.yesno label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }

.form-error { color: #d23b2e; font-size: 13px; margin-top: 6px; display: none; }
.form-error.show { display: block; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1; justify-content: center; }
.form-note {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 11px 14px; font-size: 14px; color: var(--grey-700); margin-bottom: 18px;
}
.form-note strong { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--black); color: #fff; padding: 15px 24px; border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 10px; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok    { border-left: 4px solid #2faa5c; }
.toast.err   { border-left: 4px solid #d23b2e; }
.toast svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .terms-layout { grid-template-columns: 1fr; }
  .doc-panel { position: static; }
}
@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 50px 0 56px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .hero .hero-ico, .hero .hero-ico svg { width: 46px; height: 46px; }
  .band, .cta { padding: 54px 0; }
  .terms { padding: 24px 20px; }
  .cards, .cards.cols-2, .cards.cols-4 { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .work-track figure { width: 290px; height: 200px; }
  .work-track { gap: 12px; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}