/* =====================================================================
   Russel's DSTV — stylesheet
   Visual language borrowed from microsoft.com: white ground, Segoe type,
   one blue, chevron links, 4-up product tiles, quiet gray footer.
   ===================================================================== */

:root {
  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont,
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --ink:        #171717;
  --ink-2:      #262626;
  --ink-3:      #616161;
  --line:       #e6e6e6;
  --ground:     #ffffff;
  --ground-2:   #f2f2f2;
  --ground-3:   #e6e6e6;

  --blue:       #0067b8;
  --blue-hover: #005da6;
  --blue-press: #005494;
  --dark:       #1b1a19;
  --whatsapp:   #128c7e;

  --max: 1600px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;

  --tile-gap: 24px;
  --header-h: 54px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--blue); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { top: 8px; }

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

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 20px;
  font: inherit; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-primary:active { background: var(--blue-press); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.btn-outline:hover { background: var(--ground-2); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #ededed; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #0f766a; }
.btn-sm { min-height: 32px; padding: 4px 14px; font-size: 13px; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--blue);
}
.link-more::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); margin-top: 1px;
  transition: transform .15s;
}
.link-more:hover { text-decoration: underline; }
.link-more:hover::after { transform: translateX(3px) rotate(45deg); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-color: var(--line); }

.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.primary-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.primary-nav ul { display: flex; gap: 22px; }
.primary-nav ul a { color: var(--ink-2); font-size: 13px; padding: 4px 0; border-bottom: 2px solid transparent; }
.primary-nav ul a:hover { text-decoration: none; border-bottom-color: var(--ink-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--ink-2); font-size: 13px; font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ground-2); }
.hero-track { position: relative; }
.hero-slide {
  position: relative;
  min-height: clamp(420px, 52vw, 640px);
  display: grid; align-items: center;
  overflow: hidden;
}
.hero-slide[hidden] { display: none; }
.hero-slide.is-active { animation: heroIn .5s ease-out both; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-slide.is-active { animation: none; } }

.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-art--dstv     { background: #dfe7ef; }
.hero-art--security { background: #1f2a37; }
.hero-art--business { background: #e8e3d8; }

.hero-content { position: relative; z-index: 1; padding-block: 48px; }
.hero-card {
  max-width: 520px;
  background: rgba(255,255,255,.96);
  padding: 36px 40px;
  border-radius: var(--radius);
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
}
.hero-card h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; margin-bottom: 14px; }
.hero-card p:not(.eyebrow) { font-size: 16px; color: var(--ink-2); }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
}
.hero-pause {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.hero-pause svg { fill: currentColor; }
.hero-pause[data-state="playing"] .icon-play  { display: none; }
.hero-pause[data-state="paused"]  .icon-pause { display: none; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0;
  border: 1px solid var(--ink-3); background: transparent; cursor: pointer;
}
.hero-dots button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: 56px 48px; }
.section--tight { padding-block: 40px 56px; }
.section-title { font-size: 24px; margin-bottom: 24px; }

/* ---------- Tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tile-gap);
}
.tile { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 16px); }
.tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden; border-radius: var(--radius);
  background: var(--ground-2);
  margin-bottom: 20px;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); margin-bottom: 14px; flex: 1; }

/* ---------- Banners ---------- */
.banner { background: var(--ground-2); scroll-margin-top: var(--header-h); }
.banner--dark { background: var(--dark); }
.banner-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 40px;
  min-height: 460px;
}
.banner-inner--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.banner-inner--reverse .banner-copy { order: 2; }
.banner-inner--reverse .banner-art { order: 1; }
.banner-copy { padding-block: 56px; max-width: 540px; }
.banner-copy h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.banner-copy p:not(.eyebrow) { font-size: 16px; }
.banner--dark .banner-copy h2, .banner--dark .banner-copy p { color: #fff; }
.banner--dark .eyebrow { color: #c8c6c4; }
.banner-art { align-self: stretch; display: flex; align-items: flex-end; }
.banner-art img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; object-position: bottom; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap);
  counter-reset: step;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-num { display: inline-block; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; font-size: 13px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact { background: var(--ground-2); scroll-margin-top: var(--header-h); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; padding-block: 64px;
}
.contact-copy h2 { font-size: 32px; margin-bottom: 10px; }
.contact-copy > p { font-size: 16px; max-width: 46ch; }
.contact-list { margin: 28px 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label { font-size: 13px; color: var(--ink-3); }
.contact-list a { font-size: 18px; font-weight: 600; color: var(--ink); word-break: break-all; }

.quote-form {
  background: #fff; padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
}
.quote-form h3 { font-size: 20px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .optional { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: 8px 10px; min-height: 40px;
  border: 1px solid #8a8886; border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a4262c; box-shadow: inset 0 0 0 1px #a4262c; }
.form-error { color: #a4262c; font-size: 13px; margin-bottom: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ground-2); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 11px; color: var(--ink-3); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.footer-cols h4 { font-size: 15px; margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--ink-3); font-size: 11px; }
.footer-cols a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-actions { margin: 16px 0 0; justify-content: space-between; }

  .hero-slide { min-height: 0; grid-template-rows: auto auto; }
  .hero-art { position: relative; aspect-ratio: 16 / 9; }
  .hero-art img { object-position: center; }
  .hero-content { padding-block: 24px 56px; }
  .hero-card { max-width: none; padding: 24px; box-shadow: none; background: transparent; }
  .hero-controls { bottom: 18px; }

  .banner-inner, .banner-inner--reverse { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .banner-inner--reverse .banner-copy { order: 1; }
  .banner-inner--reverse .banner-art { order: 2; }
  .banner-copy { padding-block: 40px 24px; }
  .banner-art img { max-height: 360px; }

  .steps { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; padding-block: 48px; }
}

@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Compact list layout: square thumbnail on the left, copy on the right. */
  .tile {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .tile-media { grid-row: 1 / span 3; grid-column: 1; aspect-ratio: 1; margin: 0; }
  .tile h3 { grid-column: 2; font-size: 17px; }
  .tile p { grid-column: 2; font-size: 14px; margin-bottom: 8px; flex: none; }
  .tile .link-more { grid-column: 2; justify-self: start; }

  .quote-form { padding: 22px; }
  .form-actions .btn { flex: 1 1 100%; justify-content: center; }
}
