/* ==========================================================================
   Fonts are served from this site, not from Google.

   Nothing on the page waits for an outside server, so the site cannot hang
   on a slow or blocked third-party request. font-display:swap means text is
   readable immediately even while the font file is still arriving.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-var.woff2") format("woff2-variations"),
       url("assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibmplexsans-var.woff2") format("woff2-variations"),
       url("assets/fonts/ibmplexsans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   The Office Shelf — site styles
   Palette taken from the company logo:
   navy #021231 / blue #0A4FB5
   ========================================================================== */

:root {
  --navy: #0A1936;
  --navy-mid: #14295A;
  --blue: #0A4FB5;
  --blue-dark: #083E8F;
  --tint: #E9F0FB;
  --desk: #E9EDF4;
  --rule: #D3DEEF;
  --ink: #1A2540;
  --muted: #57647F;
  --white: #ffffff;

  --wrap: 1160px;
  --pad-l: 104px;   /* content sits right of the margin rule */
  --pad-r: 88px;
  --rule-x: 56px;   /* where the margin rule is drawn */

  --font-display: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); }

/* --- accessibility ------------------------------------------------------ */

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- typography --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.05rem, 4.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.15rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.lead { font-size: 1.12rem; color: var(--ink); max-width: 60ch; }
.muted { color: var(--muted); }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name span { color: var(--blue); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 4px;
}
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] {
  color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 0;
}
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 9px 13px;
  font: 500 1rem/1 var(--font-display);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  gap: 9px;
}
.nav-toggle:hover { border-color: var(--blue); }
.bars { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.bars::before { top: -6px; }
.bars::after { top: 6px; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 5px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --- the sheet: page content sits on a sheet of paper ------------------- */

.sheet {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto 56px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: none;
  overflow: hidden;
}

/* the margin rule, printed down the left of the page */
.sheet::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--rule-x);
  width: 1px;
  background: var(--rule);
  pointer-events: none;
  z-index: 2;
}

.band { padding: 68px var(--pad-r) 68px var(--pad-l); }
.band-tint { background: var(--tint); }
.band-navy { background: var(--navy); color: #D9E2F3; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band + .band { border-top: 1px solid var(--rule); }
.band-navy + .band, .band + .band-navy { border-top: none; }

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

.hero {
  padding: 76px var(--pad-r) 60px var(--pad-l);
  background-image:
    linear-gradient(to right, #fff 0%, #fff 42%, rgba(255,255,255,0) 72%),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero-logo { justify-self: center; max-width: 330px; }

/* facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.facts div {
  padding: 22px var(--pad-r) 22px 0;
  border-left: 1px solid var(--rule);
}
.facts div:first-child { border-left: none; padding-left: var(--pad-l); }
.facts div:not(:first-child) { padding-left: 28px; }
.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}
.facts span { font-size: .95rem; color: var(--muted); }

/* --- ruled list (used for products, values, who we supply) -------------- */

.ruled { margin: 28px 0 0; }
.ruled > div {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 12px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.ruled > div:last-child { border-bottom: 1px solid var(--rule); }
.ruled dt, .ruled h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  margin: 0;
}
.ruled dd, .ruled p { margin: 0; color: var(--muted); max-width: 62ch; }

/* simple two-column tick list */
.tick-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  columns: 2;
  column-gap: 48px;
  max-width: 760px;
}
.tick-list li {
  break-inside: avoid;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 9px; height: 9px;
  background: var(--blue);
  border-radius: 1px;
}
.band-navy .tick-list li { border-bottom-color: rgba(255,255,255,.18); }
.band-navy .tick-list li::before { background: #5C93E8; }

/* --- steps (a genuine sequence, so numbered) ---------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 34px; }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--muted); }
.band-navy .steps p { color: #C3D2EB; }
.band-navy .step-num { color: #7FADF2; border-bottom-color: #7FADF2; }

/* --- call to action band ------------------------------------------------ */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: #C3D2EB; }

/* --- forms -------------------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.form-field { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .97rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #B9C7DE;
  border-radius: 5px;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(10, 79, 181, .25);
  outline-offset: 0;
}
.req { color: var(--blue); }

.form-note {
  font-size: .92rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: var(--tint);
  font-size: .97rem;
}
.form-status[hidden] { display: none; }

/* contact panel beside the form */
.contact-panel {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue);
  padding: 28px;
  background: var(--white);
}
.contact-panel h3 { margin-top: 0; }
.contact-list { list-style: none; margin: 0 0 8px; padding: 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: none; }
.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}
.contact-list a { color: var(--blue-dark); text-decoration: none; font-size: 1.03rem; }
.contact-list a:hover { text-decoration: underline; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #B9C8E2;
  padding: 52px 24px 30px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 44px;
}
.site-footer h4 {
  color: var(--white);
  font-size: .98rem;
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer p { font-size: .95rem; margin-bottom: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .95rem; }
.site-footer a { color: #B9C8E2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo-box {
  display: inline-block;
  background: var(--white);
  padding: 16px 22px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.footer-logo { width: 148px; }
.footer-base {
  max-width: var(--wrap);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .87rem;
  color: #8FA2C4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* --- page intro (inner pages) ------------------------------------------ */

.page-intro { padding: 60px var(--pad-r) 46px var(--pad-l); background: var(--tint); }
.page-intro h1 { margin-bottom: .25em; }
.page-intro p { margin-bottom: 0; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: none; padding-left: var(--pad-l); }
  .facts div:nth-child(3), .facts div:nth-child(4) { border-top: 1px solid var(--rule); }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-logo { max-width: 260px; justify-self: start; }
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --pad-l: 28px; --pad-r: 28px; }
  .sheet::before { display: none; }
  .sheet { margin-bottom: 0; border-left: none; border-right: none; }
  body { background: var(--white); }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 18px;
    box-shadow: 0 12px 24px rgba(10, 25, 54, .1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: none; }
  .header-inner { position: relative; padding: 10px 20px; }

  .band, .hero, .page-intro { padding-left: 24px; padding-right: 24px; }
  .band, .page-intro { padding-top: 46px; padding-bottom: 46px; }
  .hero { padding-top: 44px; padding-bottom: 40px; background-image: none; }

  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:first-child, .facts div:not(:first-child) {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 16px 24px;
  }
  .facts div:first-child { border-top: none; }

  .ruled > div { grid-template-columns: 1fr; gap: 4px; }
  .tick-list { columns: 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 1.05rem; }
}

/* --- category lists (What we supply) ------------------------------------ */

.ruled > div { scroll-margin-top: 96px; }

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}
.cat-list li {
  break-inside: avoid;
  position: relative;
  padding: 4px 0 4px 17px;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.5;
}
.cat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 1px;
  background: var(--blue);
}

.jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  margin: 26px 0 0;
  padding: 0;
}
.jump a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 13px;
}
.jump a:hover { border-color: var(--blue); color: var(--blue-dark); }

@media (max-width: 860px) {
  .cat-list { columns: 1; }
}

/* --- form notices, honeypot, small utilities ---------------------------- */

.notice {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  background: var(--tint);
  padding: 20px 24px;
  margin-bottom: 26px;
}
.notice h2 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin-bottom: 6px; }
.notice li:last-child { margin-bottom: 0; }

.notice-good { border-left-color: #1E7A46; background: #EAF6EF; border-color: #BFE0CC; }
.notice-bad  { border-left-color: #B3261E; background: #FCEDEC; border-color: #EFC9C6; }

/* Honeypot: kept out of sight and out of the tab order, never display:none
   so that scripts still fill it in. */
.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 22px; }

button[disabled] { opacity: .6; cursor: default; }

/* --- B-BBEE line in the footer ------------------------------------------ */

.bee-badge {
  display: inline-block;
  margin: 4px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-left: 3px solid #5C93E8;
  border-radius: 3px;
  font-size: .85rem;
  line-height: 1.45;
  color: #C3D2EB;
}
.bee-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
}

/* The nav button is the current page marker on contact.php; it should not
   also pick up the underline treatment used for plain nav links. */
.nav a.btn[aria-current="page"] {
  box-shadow: none;
  border-radius: 5px;
  color: var(--white);
}

/* --- designer credit, below the main footer ----------------------------- */

.credit-bar {
  background: #060F22;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 16px 24px;
  text-align: center;
}
.credit-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: .85rem;
  color: #8194B5;
  letter-spacing: .01em;
}
.credit-bar a {
  color: #B9C8E2;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 200, 226, .4);
  padding-bottom: 1px;
}
.credit-bar a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* --- very small phones (320–400px) -------------------------------------- */

@media (max-width: 400px) {
  body { font-size: 16px; }

  .header-inner { padding: 10px 14px; gap: 10px; }
  .brand { gap: 9px; }
  .brand img { height: 32px; }
  .brand-name { font-size: .98rem; }

  /* the word "Menu" is dropped; the button keeps its accessible name */
  .nav-toggle { padding: 10px 12px; }
  .toggle-label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  :root { --pad-l: 20px; --pad-r: 20px; }
  .band, .hero, .page-intro { padding-left: 20px; padding-right: 20px; }
  .facts div, .facts div:first-child, .facts div:not(:first-child) { padding-left: 20px; padding-right: 20px; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  /* buttons go full width so they are easy to hit with a thumb */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { text-align: center; }

  .jump { gap: 8px; }
  .jump a { font-size: .9rem; padding: 8px 11px; }

  .contact-panel { padding: 22px 20px; }
  .bee-badge { font-size: .82rem; }
}

/* Comfortable tap targets and no zoom-on-focus for form fields */
@media (max-width: 860px) {
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;   /* below 16px, iOS Safari zooms in when tapped */
    padding: 13px 14px;
  }
  .btn { padding: 14px 24px; }
  .nav a { padding: 15px 8px; }
  .contact-list a { display: inline-block; padding: 3px 0; }
}

/* Submit button spans the width on phones — easier to hit, and it reads
   as the end of the form rather than a small detail beside it. */
@media (max-width: 640px) {
  #quoteForm button[type="submit"] { display: block; width: 100%; }
}

/* Thumb-friendly tap targets on phones (44px is the accepted minimum) */
@media (max-width: 860px) {
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }
  .site-footer li { margin-bottom: 2px; }
  .site-footer li a { display: inline-block; padding: 8px 0; }
  .credit-bar a { display: inline-block; padding: 6px 0; }
}
