/* ==========================================================================
   Expert DStv Installations & Services Knysna — prospect concept
   Bright and quick. Daytime sky, charcoal, signal green; Franklin-style grotesque.
   ========================================================================== */

:root {
  /* Palette — proposed demo direction (no verified brand colours; no DStv/MultiChoice branding) */
  --sky-top: #6ec3ef;
  --sky-bottom: #d9f0fb;
  --sky-soft: #eef8fd;
  --charcoal: #1e2a32;
  --charcoal-2: #2b3a44;
  --slate: #33424d;
  --green: #2fa866;         /* signal green (button-safe) */
  --green-dark: #23874f;
  --green-bright: #41c779;

  --text: #1e2a32;
  --text-soft: #4d5d68;
  --on-dark: #f1f6f8;
  --on-dark-soft: #b6c6cf;
  --line: #d6e3ea;
  --focus: #1e2a32;

  --font-display: "Franklin Gothic Medium", "Franklin Gothic", "Libre Franklin", "ITC Franklin Gothic", "Segoe UI Semibold", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7rem);

  --radius: 10px;
  --container: 71.25rem;
  --container-wide: 85rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-2); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--container-wide)); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}
.eyebrow--dark { color: var(--green-dark); }
.how .eyebrow { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--lg { min-height: 3.4rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--green { background: var(--green-dark); color: #fff; }
.btn--green:hover { background: #1b6d3f; }
.btn--ghost { border-color: var(--charcoal); color: var(--charcoal); background: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 8px;
  background: var(--charcoal);
  flex: none;
}
.brand-mark svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--green-bright); stroke-width: 3; stroke-linecap: round; }
.brand-mark svg circle { fill: var(--green-bright); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.brand-sub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-soft);
  margin-top: .22rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--green); }

.header-call { padding-inline: .9rem; min-height: 2.6rem; flex: none; }
.header-call span { display: none; }

@media (min-width: 34rem) {
  .header-call span { display: inline; }
}
@media (min-width: 60rem) {
  .site-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero h1 { max-width: 13ch; margin-bottom: var(--space-3); }
.hero h1 span { display: block; color: #17603a; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.22rem); color: var(--charcoal-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--space-4) 0 var(--space-3); }
.avail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.avail li {
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-weight: 600;
  font-size: .9rem;
}
.avail li::before { content: "✓ "; color: var(--green-dark); font-weight: 800; }

/* Dish aligner */
.aligner {
  --q: 0;
  justify-self: center;
  width: min(100%, 26rem);
  padding: var(--space-3);
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -35px rgba(30, 42, 50, .55);
}
.scene { position: relative; }
.roof { width: 100%; height: auto; }
.dish { transition: transform .15s ease; transform-box: view-box; }
.beam { opacity: var(--q); }
.tv {
  position: absolute;
  right: 0; bottom: -.5rem;
  width: 52%;
  padding: .5rem .5rem .4rem;
  border-radius: 10px;
  background: var(--charcoal);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #0d1418;
}
.tv-static {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 5px),
    #39444b;
  opacity: calc(1 - var(--q));
  animation: noise .3s steps(3) infinite;
}
@keyframes noise {
  0% { background-position: 0 0, 0 0; }
  50% { background-position: 0 2px, 3px 0; }
  100% { background-position: 0 1px, 1px 0; }
}
.tv-picture {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7fd0f5, #c8ecfb 60%);
  opacity: var(--q);
}
.tv-picture .hill { position: absolute; left: -10%; right: -10%; bottom: -40%; height: 80%; border-radius: 50%; background: #3fa35f; }
.tv-picture .sun { position: absolute; right: 14%; top: 14%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #ffe08a; }
.tv-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.tv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.bars i { width: 5px; border-radius: 1px; background: rgba(255, 255, 255, .2); }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 45%; } .bars i:nth-child(3) { height: 60%; }
.bars i:nth-child(4) { height: 80%; } .bars i:nth-child(5) { height: 100%; }
.bars i.on { background: var(--green-bright); }
.tv-quality { color: var(--on-dark-soft); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.aligner-label { display: block; margin-top: var(--space-4); font-weight: 700; }
.aligner-range { width: 100%; accent-color: var(--green-dark); cursor: pointer; margin-top: .4rem; }
.aligner-hint { font-size: .9rem; color: var(--text-soft); margin: .5rem 0 0; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { max-width: 44rem; margin-bottom: var(--space-6); }

/* Services as "channels" */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.channels li {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4);
  border-radius: 14px;
  background: var(--sky-soft);
  border-top: 5px solid var(--sky-top);
}
.channels li:nth-child(even) { border-top-color: var(--green-bright); }
.channels p { color: var(--text-soft); margin: 0; }
.ch {
  display: inline-block;
  padding: .15rem .55rem;
  margin-bottom: var(--space-2);
  border-radius: 4px;
  background: var(--charcoal);
  color: var(--green-bright);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (min-width: 48rem) {
  .channels { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 72rem) {
  .channels { grid-template-columns: repeat(4, 1fr); }
}

/* How */
.how { background: var(--charcoal); color: var(--on-dark); }
.how-grid { display: grid; gap: var(--space-6); }
.how-lede { color: var(--on-dark-soft); max-width: 30rem; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.how-steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(241, 246, 248, .14);
}
.how-steps h3 { margin-bottom: .3rem; }
.how-steps p { color: var(--on-dark-soft); margin: 0; }
.step-no { font-family: var(--font-display); font-size: 1.8rem; color: var(--green-bright); line-height: 1; }

@media (min-width: 64rem) {
  .how-grid { grid-template-columns: 1fr 1.3fr; gap: var(--space-8); align-items: start; }
}

/* Contact */
.contact { background: var(--sky-soft); }
.contact-grid { display: grid; gap: var(--space-6); align-items: center; }
.big-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 1;
  text-decoration: none;
  margin: var(--space-2) 0 var(--space-2);
}
.big-phone:hover { color: var(--green-dark); }
.contact-meta { color: var(--text-soft); font-weight: 600; margin-bottom: var(--space-4); }
.guide-card {
  padding: var(--space-4);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.guide-card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.guide { list-style: none; margin: 0; padding: 0; }
.guide li { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.guide span {
  align-self: start;
  padding: .1rem .4rem;
  border-radius: 4px;
  background: var(--charcoal);
  color: var(--green-bright);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--on-dark-soft);
  padding: var(--space-8) 0 calc(var(--space-4) + 4.5rem);
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(241, 246, 248, .14);
}
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand .brand-mark { background: var(--charcoal-2); }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--on-dark); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclosure { margin: var(--space-3) 0 0; font-size: .8rem; opacity: .75; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-bottom: var(--space-4); }
}

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.call-bar .btn { width: 100%; }
.call-bar .btn span { font-weight: 500; opacity: .9; }
@media (min-width: 48rem) {
  .call-bar { display: none; }
}

/* ---------- Copied-number toast (desktop) ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem;
  background: var(--charcoal);
  color: var(--on-dark);
  border-left: 6px solid var(--green-bright);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 47.99rem) {
  .toast { bottom: 5.5rem; }
}

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