/* North Point Digital — lead-site stylesheet (borehole-drilling-johannesburg).
   Brand tokens: Deep Navy #0B1B33, Signal Orange #FF5A1F (used once per view),
   Slate #4A5870, Mist #F3F5F8, White. Sora headings, Albert Sans body.
   No inline styles anywhere: the site CSP is style-src 'self'. */

@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/assets/fonts/AlbertSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/assets/fonts/AlbertSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("/assets/fonts/AlbertSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #0B1B33;
  --white: #FFFFFF;
  --accent: #FF5A1F;
  --mist: #F3F5F8;
  --line: #DDE2EA;
  --line-strong: #C5CEDB;
  --slate: #4A5870;
  --muted: #5A6880;
  --on-navy: #C5CFDF;
  --on-navy-muted: #A9B6CC;
  --navy-line: #2B3B57;
  --error: #B3261E;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 8px 24px rgba(11, 27, 51, .06);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 600; margin-top: 0; }
h3 { font-size: 1.16rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 40; }
.header-container { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.logo img { display: block; }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.main-nav { margin-left: auto; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-block; padding: 9px 12px; border-radius: 8px; color: var(--slate); text-decoration: none; font-weight: 500; }
.nav-link:hover { background: var(--mist); color: var(--navy); }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; font: inherit; color: var(--navy); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: var(--navy); content: ""; position: relative;
}
.nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 5px; }
.nav-toggle-label { position: absolute; left: -9999px; }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #E84E15; }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.header-cta { white-space: nowrap; }

/* ---------- hero ---------- */
.hero { padding: clamp(38px, 6vw, 72px) 0 clamp(26px, 4vw, 46px); }
.hero-copy { max-width: 760px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero-lead { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--slate); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }
.hero-note { font-size: .92rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(26px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.page-head { padding: clamp(28px, 4.5vw, 52px) 0 clamp(10px, 2vw, 20px); }
.page-head .lead { font-size: clamp(1.02rem, 1.7vw, 1.16rem); max-width: 68ch; }
.page-body { padding-bottom: clamp(40px, 6vw, 80px); }
.lead { color: var(--slate); }

.breadcrumbs { margin-bottom: 16px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }

.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list li { margin: 0; }
.link-list a, .link-tiles a {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--navy); font-size: .95rem; background: var(--white);
}
.link-list a:hover, .link-tiles a:hover { border-color: var(--navy); background: var(--mist); }
.link-list.compact { flex-direction: column; gap: 6px; }
.link-tiles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.card h3 { margin-bottom: .35em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin-bottom: .5em; font-size: .98rem; }
.card-sub { font-size: .88rem; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.step { border-left: 3px solid var(--accent); padding-left: 16px; }
.step .figure { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: .95rem; margin-bottom: 4px; }
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { font-size: .96rem; margin: 0; }

.disclosure-note { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 26px 0; }
.disclosure-note p { margin: 0; font-size: .97rem; }

.cta-banner { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin: 30px 0; }
.cta-title { color: #fff; margin-bottom: .35em; }
.cta-text { color: var(--on-navy); max-width: 62ch; }
.cta-banner p:last-child { margin-bottom: 0; }

.faq-block h2 { margin-bottom: 18px; }
.faq-grid { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-question { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--navy); padding: 15px 48px 15px 18px; position: relative; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.3rem; color: var(--accent); }
.faq-item[open] .faq-question::after { content: "\2013"; }
.faq-answer { padding: 0 18px 14px; }
.faq-answer p { margin: 0; }

.sources .source-list { list-style: none; padding: 0; }
.sources .source-list a { text-decoration: none; }
.post-meta { font-size: .9rem; color: var(--muted); }

/* ---------- forms ---------- */
.form-section { background: var(--mist); border-top: 1px solid var(--line); }
.form-intro { max-width: 64ch; }
.lead-form { max-width: 660px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.form-field label { font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.form-field textarea { resize: vertical; }
.form-hint { font-size: .88rem; color: var(--muted); margin: -6px 0 14px; }
.form-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-check input { width: auto; margin-top: 4px; }
.form-check label { font-weight: 400; color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.form-status.is-ok { background: #EAF6EE; color: #14532D; border: 1px solid #B7E2C4; }
.form-status.is-error { background: #FDECEA; color: var(--error); border: 1px solid #F3C3BE; }
.cf-turnstile { margin: 10px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); margin-top: 40px; padding: clamp(36px, 5vw, 60px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-title { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-logo { vertical-align: middle; margin-right: 6px; }
.footer-text { font-size: .95rem; color: var(--on-navy-muted); }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: var(--on-navy); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact-item { margin-bottom: .5em; font-size: .95rem; }
.footer-contact-item a { color: var(--on-navy); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--navy-line); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .88rem; color: var(--on-navy-muted); }
.footer-legal a { color: var(--on-navy-muted); }
.preferred-source { margin-top: 18px; }
.np-consent-choice { color: var(--on-navy-muted); font-size: .85rem; display: inline-block; margin-top: 10px; text-decoration: underline; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 18px 18px; }
  .main-nav.is-open .nav-menu { flex-direction: column; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
