/* R&D MeshWorX - rdworx.co.za
   One stylesheet for the whole site. Mobile first.
   No framework. No build step. Safe to edit by hand.
   Colours live in the :root block below - change them in one place. */

/* ---------- brand fonts: Barlow, SIL Open Font License 1.1 ---------- */
/* Self-hosted. Licence text is in fonts/OFL-Barlow.txt. No tracking, no CDN. */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2");
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2");
             font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semicondensed-600.woff2") format("woff2");
             font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semicondensed-700.woff2") format("woff2");
             font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Colours come from the R&D MeshWorX logo. Contrast ratios are measured
     against the background each colour actually sits on. See brand-kit. */
  --ink:        #14171a;   /* body text - the dark in the logo   17.99:1 on white */
  --ink-soft:   #5a6472;   /* helper text                         6.00:1 on white */
  --line:       #dcdee1;   /* hairlines and boxes */
  --paper:      #ffffff;
  --paper-soft: #f4f5f6;   /* tinted sections */
  --brand:      #14171a;   /* header, footer, headings            white on it 17.99:1 */
  --logo:       #f04e12;   /* logo orange - the mark and rules    4.97:1 on --brand */
  --action:     #c9400e;   /* buttons only                        white on it 4.97:1 */
  --action-dk:  #a33309;   /* button hover                        white on it 6.92:1 */
  --link:       #a33309;   /* body links                          6.92:1 on white */
  --slate:      #6b7683;   /* the grey in the logo                4.62:1 on white */
  --slate-lt:   #9aa4b0;   /* quiet text on dark                  7.12:1 on --brand */
  --go:         #1a7a43;   /* WhatsApp green                      white on it 5.37:1 */
  --font-head:  "Barlow Semi Condensed", "Barlow", "Helvetica Neue",
                Arial, sans-serif;
  --font-body:  "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw:       62rem;
  --radius:     10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--action-dk); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

/* ---------- skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1rem;
}
.skip:focus { left: 0; }

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

.site-head {
  background: var(--brand);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-head a { color: #fff; }

.head-row {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap; row-gap: .4rem;
  max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.1rem;
}

.logo {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em;
  text-decoration: none; line-height: 1.15; margin-right: auto;
}
.logo-mark { height: 2rem; width: auto; flex: 0 0 auto; }
.logo-text span { display: block; font-family: var(--font-body);
  font-size: .66rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }

.head-tel {
  font-weight: 700; text-decoration: none; white-space: nowrap;
  font-size: .95rem; padding: .4rem 0;
}
.head-tel::before { content: "\260E\00A0"; font-weight: 400; }

.btn {
  display: inline-block; font-family: var(--font-head);
  background: var(--action); color: #fff !important;
  font-weight: 700; text-decoration: none;
  padding: .8rem 1.15rem; border-radius: var(--radius);
  border: 0; cursor: pointer; text-align: center;
  font-size: 1rem; line-height: 1.25;
}
.btn:hover, .btn:focus { background: var(--action-dk); color: #fff !important; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.5rem; width: 100%; }
.btn-head { display: none; }

/* second-choice button - never competes with "Get a quote" */
.btn-quiet {
  background: transparent; color: var(--brand) !important;
  border: 2px solid var(--brand); padding: .7rem 1.1rem;
}
.btn-quiet:hover, .btn-quiet:focus { background: var(--brand); color: #fff !important; }

/* ---------- navigation (no JavaScript) ---------- */

.nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-label {
  display: block; cursor: pointer; font-weight: 700; font-size: .95rem;
  padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px; white-space: nowrap;
}
.nav-toggle-label::before { content: "\2630\00A0"; }

.site-nav { display: none; border-top: 1px solid rgba(255,255,255,.18); }
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:focus-visible ~ .nav-toggle-label { outline: 3px solid #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { max-width: var(--maxw); margin: 0 auto; padding: .3rem 1.1rem .9rem; }
.site-nav a {
  display: block; text-decoration: none; font-weight: 600;
  padding: .62rem .2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-nav a[aria-current="page"] { color: #ffd9b8; }
.site-nav .sub a { padding-left: 1.2rem; font-weight: 500; opacity: .92; font-size: .97rem; }
.site-nav .sub a::before { content: "\2192\00A0"; opacity: .7; }

/* ---------- proof bar ---------- */

.proof-bar {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-soft);
}
.proof-bar ul {
  list-style: none; margin: 0 auto; max-width: var(--maxw);
  padding: .55rem 1.1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem;
}
.proof-bar li { font-weight: 600; color: var(--ink); }
.proof-bar li + li::before { content: "\00B7\00A0"; color: var(--ink-soft); font-weight: 400; }

/* ---------- page body ---------- */

main { padding-bottom: 2.5rem; }

h1 {
  font-size: 1.95rem; line-height: 1.15; letter-spacing: -.02em;
  color: var(--brand); margin: 1.6rem 0 .8rem; font-weight: 700;
  font-family: var(--font-head);
}
h2 {
  font-size: 1.4rem; line-height: 1.25; letter-spacing: -.01em;
  color: var(--brand); margin: 2.2rem 0 .7rem; font-weight: 700;
  font-family: var(--font-head);
}
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; color: var(--brand);
     font-family: var(--font-head); }

p, ul.plain, ol.plain { margin: 0 0 1rem; }
.lead { font-size: 1.18rem; line-height: 1.5; }
.price-line { font-size: 1.1rem; }

main ul { margin: 0 0 1.1rem; padding-left: 1.3rem; }
main li { margin-bottom: .4rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.section { padding: 1.4rem 0; }
.section-tint { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.8rem 0; margin: 2.2rem 0; }

/* hero */

.hero { background: var(--paper-soft); border-bottom: 1px solid var(--line); padding: .5rem 0 2rem; }
.hero h1 { margin-top: 1.2rem; }

/* call to action block */

.cta { margin: 1.6rem 0; }
.cta .alt { margin: .7rem 0 0; font-size: .97rem; color: var(--ink-soft); }
.cta-panel {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.2rem; margin: 2.4rem 0 1rem;
}
.cta-panel h2 { color: #fff; margin-top: 0; }
.cta-panel a:not(.btn) { color: #ffd9b8; }
.cta-panel .alt { color: rgba(255,255,255,.85); }

/* "does this sound like you" cards */

.cards { display: grid; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--paper);
}
.card p { margin: 0 0 .5rem; }
.card .quote { font-weight: 700; color: var(--brand); }
.card .go { margin: 0; font-size: .95rem; font-weight: 600; }

/* numbered steps */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--brand); }

/* tables */

.table-scroll { overflow-x: auto; margin: 1rem 0 1.1rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-soft); color: var(--brand); font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
td:last-child, th:last-child { white-space: normal; }
.price-table td:last-child { font-weight: 700; color: var(--brand); white-space: nowrap; }

.fineprint { font-size: .92rem; color: var(--ink-soft); }

/* notes and callouts */

.note {
  border-left: 4px solid var(--logo); background: #fff6f1;
  padding: .9rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.2rem 0;
}
.note p:last-child { margin-bottom: 0; }

.phone-panel {
  background: #8c1d1d; color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.2rem; margin: 1.4rem 0;
}
.phone-panel a { color: #fff; }
.phone-panel .tel-big {
  display: inline-block; font-size: 1.5rem; font-weight: 800;
  text-decoration: none; margin: .2rem 0 .5rem; letter-spacing: -.01em;
}
.phone-panel p:last-child { margin-bottom: 0; }

/* questions / FAQ */

.qa { margin: 0 0 1.6rem; }
.qa dt { font-weight: 700; color: var(--brand); margin: 1.2rem 0 .3rem; }
.qa dd { margin: 0; }

/* portfolio */

.jobs { display: grid; gap: 1.4rem; margin: 1.2rem 0; }
.job { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job-body { padding: 1rem 1.1rem; }
.job-body h2 { margin-top: 0; font-size: 1.25rem; }
.job-body p { margin: 0 0 .6rem; }

/* photo and video slots - the owner drops the file into /images */

.slot {
  border: 2px dashed #b9c2cf; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f7f9fc, #f7f9fc 10px, #eef1f6 10px, #eef1f6 20px);
  padding: 1rem; margin: 1.1rem 0; text-align: left;
  min-height: 7rem; display: flex; flex-direction: column; justify-content: center;
}
.slot .slot-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #6b7686; margin-bottom: .35rem;
}
.slot .slot-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem; font-weight: 700; color: var(--brand);
  word-break: break-all; margin-bottom: .3rem;
}
.slot .slot-shot { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.slot-row { display: grid; gap: .8rem; }
figure { margin: 1.1rem 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); }

/* quote form */

.form-intro { margin-bottom: 1.4rem; }

form.quote { margin: 0 0 2rem; }
.field { margin-bottom: 1.4rem; }
.field > label, .field > .field-label {
  display: block; font-weight: 700; color: var(--brand); margin-bottom: .2rem;
}
.field .help { display: block; font-size: .92rem; color: var(--ink-soft); margin-bottom: .45rem; }
.req { color: var(--action-dk); font-weight: 700; }
.opt { font-weight: 500; color: var(--ink-soft); font-size: .9rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .75rem; border: 1px solid #9aa5b4; border-radius: 8px;
  background: #fff;
}
input[type="file"] { padding: .55rem; background: #fff; }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--action); outline-offset: 1px; border-color: var(--brand); }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .4rem; margin: 0 0 1.4rem; }
legend { font-weight: 700; color: var(--brand); padding: 0 .4rem; }
fieldset .help { display: block; font-size: .92rem; color: var(--ink-soft); margin: -.2rem 0 .8rem; }
.file-row { margin-bottom: .8rem; }
.file-row label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }

.under-button { font-size: .95rem; color: var(--ink-soft); margin: .7rem 0 0; }

.fallback {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-soft); padding: 1.1rem; margin: 2rem 0;
}
.fallback h2 { margin-top: 0; font-size: 1.15rem; }
.fallback ul { list-style: none; padding: 0; margin: 0; }
.fallback li { margin-bottom: .55rem; font-weight: 600; }

.form-warning {
  display: none; background: #fff4d6; border: 1px solid #e0b64a;
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.2rem;
  font-size: .95rem;
}
.form-warning p:last-child { margin-bottom: 0; }

/* ---------- WhatsApp button ---------- */

.wa-float {
  position: fixed; right: .85rem; bottom: .85rem; z-index: 60;
  background: var(--go); color: #fff !important;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .8rem 1rem; border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.wa-float:hover { background: #17703d; }
.wa-float .wa-word { display: none; }

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

.site-foot {
  background: var(--brand); color: #d7dbe0;
  padding: 2rem 0 5.5rem; font-size: .95rem; margin-top: 2rem;
}
.site-foot a { color: #fff; }
.site-foot .foot-name { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: .2rem; }
.site-foot p { margin: 0 0 1rem; }
.site-foot .vat { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; color: #c8d6e0; }
.foot-links { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.foot-links a { font-weight: 600; }

/* ---------- wider screens ---------- */

@media (min-width: 46rem) {
  body { font-size: 1.09rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.7rem; }
  .lead { font-size: 1.28rem; }
  .btn-lg { width: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .slot-row { grid-template-columns: 1fr 1fr; }
  .jobs { gap: 2rem; }
}

@media (min-width: 60rem) {
  .btn-head { display: inline-block; padding: .6rem 1rem; font-size: .95rem; }
  .nav-toggle-label { display: none; }
  .site-nav { display: block; border-top: 1px solid rgba(255,255,255,.18); }
  .site-nav > ul { display: flex; gap: .2rem; padding: 0 1.1rem; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a { border-bottom: 0; padding: .7rem .8rem; }
  .site-nav > ul > li > a:hover { background: rgba(255,255,255,.12); }
  .site-nav .sub {
    display: none; position: absolute; left: 0; top: 100%;
    background: #1f242a; min-width: 16rem; padding: .3rem 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
  }
  .site-nav > ul > li:hover .sub,
  .site-nav > ul > li:focus-within .sub { display: block; }
  .site-nav .sub a { border-bottom: 0; padding: .55rem 1rem; }
  .site-nav .sub a:hover { background: rgba(255,255,255,.14); }
  .site-nav .sub a::before { content: none; }
  .has-sub > a::after { content: "\00A0\25BE"; font-size: .8em; opacity: .8; }
  .slot-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .wa-float .wa-word { display: inline; }
  .foot-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
}

@media print {
  .site-head, .site-nav, .wa-float, .proof-bar, .slot { display: none; }
  body { font-size: 11pt; }
}

/* ---------- social links in the footer ---------- */
/* The markup ships commented out. Switch it on only once the accounts exist. */

.foot-social {
  list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
}
.foot-social a { font-weight: 600; color: #fff; }
.foot-social a:hover, .foot-social a:focus { color: var(--logo); }

/* LAUNCH: hide photo slots that have no photo yet. Added by the CEO on RDM-31, 8 Oct 2026.
   A slot with a real photo in /images still shows, because site.js swaps it for the picture.
   Delete this line when every photo is in. */
.slot { display: none; }
