/* ==========================================================================
   SatelliteDish.net — Shared Stylesheet
   Design system: "Signal Blue / Space Navy"
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #0a1628;
  --navy-800: #0f2440;
  --navy-700: #16305a;
  --blue-600: #1e6fd6;
  --blue-500: #2f86e6;
  --signal:   #3ea6ff;
  --sky-50:   #eaf3fb;
  --sky-100:  #dbeafc;

  /* Neutrals */
  --ink:      #16233b;
  --body:     #33445f;
  --muted:    #6b7c96;
  --line:     #e2e9f2;
  --line-2:   #cfdaea;
  --white:    #ffffff;
  --bg:       #f6f9fc;

  /* System */
  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 6px 24px rgba(15, 36, 64, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 36, 64, 0.14);
  --maxw:     1140px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -0.5px; }
h2 { font-size: 1.75rem; letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 74px;
}
.brand img { height: 40px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--blue-600); border-bottom-color: var(--signal); text-decoration: none;
}
.nav-cta {
  background: var(--blue-600); color: #fff !important; padding: 9px 18px !important;
  border-radius: 999px; border-bottom: none !important;
}
.nav-cta:hover { background: var(--navy-800); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-800); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--blue-600); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(62,166,255,.28), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: #eaf1fb; padding: 84px 0 90px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p.lede { font-size: 1.2rem; color: #c6d6ec; max-width: 60ch; margin-bottom: 1.6em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .78rem; font-weight: 700; color: var(--signal); margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-tight { padding: 44px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Topic grid (cards) ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
  display: block; color: inherit;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; }
.card .ico {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--sky-50); font-size: 24px; margin-bottom: 14px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: .6em; }
.card .meta { font-size: .82rem; color: var(--blue-600); font-weight: 600; }

/* ---------- Trust / feature row ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 56px 0 52px;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #b9cbe4; margin: 0; max-width: 62ch; }
.breadcrumb { font-size: .85rem; color: #8fa6c6; margin-bottom: 14px; }
.breadcrumb a { color: #b9cbe4; }

/* ---------- Prose (legal / article pages) ---------- */
.prose { background: var(--white); }
.prose .container { padding-top: 52px; padding-bottom: 64px; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; }
.prose h3 { margin-top: 1.3em; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.prose a { text-decoration: underline; }
.callout {
  background: var(--sky-50); border: 1px solid var(--sky-100); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.6em 0; font-size: .96rem; color: var(--ink);
}
.toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin-bottom: 2em;
}
.toc strong { display: block; margin-bottom: .5em; color: var(--ink); font-size: .95rem; }
.toc ul { columns: 2; margin: 0; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(62,166,255,.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.contact-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-aside h3 { font-size: 1.05rem; }
.contact-aside p { font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7dc; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9c7dc; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: #8ea3c2; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid #1c3055; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #7e93b3;
}
.footer-bottom a { color: #9db2d2; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: inline-block; margin-top: 10px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .toc ul { columns: 1; }
  .hero { padding: 60px 0 64px; }
}
