/* AuditBEE Connect – colours and fonts taken from auditbee.co.za */
:root {
  --black: #000;
  --ink: #202026;
  --orange: #f28006;
  --orange-dark: #d16e04;
  --grey-hero: #5b5b5b;
  --grey-bg: #f2f2f2;
  --grey-text: #555;
  --white: #fff;
  --radius: 14px;
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--grey-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: #111; color: #ccc; font-size: 13px; }
.topbar__inner { display: flex; gap: 22px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* Header */
.header { background: var(--black); color: var(--white); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.brand__name { font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.brand__name strong { color: var(--orange); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.nav > a:not(.btn) { text-decoration: none; }
.nav > a:not(.btn):hover { color: var(--orange); }

/* Buttons */
.btn { display: inline-block; border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; transition: background .2s; }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--small { padding: 8px 16px; font-size: 13px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0)), var(--grey-hero);
  color: var(--white);
  text-align: center;
  padding: 72px 0 84px;
}
.hero__eyebrow { margin: 0 0 10px; color: var(--orange); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin: 0 auto 16px; max-width: 760px; font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.15; }
.hero__lead { margin: 0 auto; max-width: 620px; font-size: 18px; color: #eee; }

/* Services */
.services { padding: 64px 0 80px; }
.services h2 { margin: 0 0 32px; text-align: center; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
/* Flex (not grid) so an unfinished last row sits centred */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

.tile {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px 26px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 5px solid var(--orange);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-decoration: none;
  color: var(--ink);
}
.tile__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.tile__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__badge {
  position: absolute; top: 22px; right: 22px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: #e8f5e9; color: #1b6e2a;
}
.tile__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.tile__text { margin: 0 0 20px; color: var(--grey-text); font-size: 15px; }
.tile__action { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--orange); }

.tile--live { transition: transform .18s, box-shadow .18s; }
.tile--live:hover, .tile--live:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.tile--live:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.tile--soon { cursor: not-allowed; border-top-color: #c9c9c9; background: #fafafa; }
.tile--soon .tile__icon { background: #d6d6d6; }
.tile--soon .tile__icon svg { stroke: #8a8a8a; }
.tile--soon .tile__title { color: #8a8a8a; }
.tile--soon .tile__text { color: #9a9a9a; }
.tile--soon .tile__badge { background: #ececec; color: #6b6b6b; }
.tile--soon .tile__action { color: #9a9a9a; }

.notice { text-align: center; color: var(--grey-text); }

/* Footer */
.footer { background: var(--black); color: #ddd; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: start; padding-top: 48px; padding-bottom: 40px; }
.footer h4 { margin: 0 0 12px; color: var(--white); font-size: 16px; font-weight: 800; }
.footer p { margin: 0 0 8px; }
.footer a { color: #ddd; }
.footer a:hover { color: var(--orange); }
.footer__logo { width: 72px; height: auto; }
.footer__bottom { background: var(--grey-hero); color: #eee; font-size: 13px; padding: 14px 0; }

/* Tablet */
@media (max-width: 960px) {
  .tile { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { display: none; }
}

/* Phone */
@media (max-width: 600px) {
  .topbar__inner { justify-content: center; }
  .header__inner { min-height: 66px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; }
  .brand__name { font-size: 16px; white-space: nowrap; }
  .nav .btn--small { padding: 7px 12px; font-size: 12px; }
  .nav > a:not(.btn) { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero__lead { font-size: 16px; }
  .services { padding: 44px 0 56px; }
  .grid { gap: 18px; }
  .tile { flex-basis: 100%; min-width: 0; min-height: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; padding-bottom: 28px; }
}
