/* ================================================
   Support King — Website Stylesheet
   ================================================ */

/* --- Design Tokens --- */
:root {
  /* Primary palette */
  --ink:      #0d1321;
  --navy:     #1a2a5e;
  --blue:     #2563eb;
  --blue-lt:  #eff4ff;

  /* Neutrals */
  --text:     #1e293b;
  --muted:    #64748b;
  --subtle:   #94a3b8;
  --rule:     #e2e8f0;
  --bg:       #f8fafc;
  --white:    #ffffff;

  /* Extended blues (dark backgrounds) */
  --blue-link:   #93c5fd;
  --blue-border: #bfdbfe;
  --dark-muted:  #475569;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1100px;
  --nav-height: 74px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  scroll-margin-top: var(--nav-height);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  height: 54px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Hero Section --- */
.hero {
  background: var(--ink);
  padding: 80px 0 64px;
}

.hero-label {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero p {
  font-size: 1em;
  color: var(--subtle);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost { background: transparent; color: var(--blue-link); border: 1.5px solid var(--blue-link); }

/* --- Section Styles --- */
.section-light {
  padding: 64px 0;
  background: var(--white);
}

.section-alt {
  padding: 64px 0;
  background: var(--bg);
}

.section-dark {
  padding: 64px 0;
  background: var(--ink);
}

.section-heading {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-body {
  font-size: 0.95em;
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
}

.section-body p + p {
  margin-top: 16px;
}

/* --- Service Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  padding: 24px;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.card h3 {
  font-size: 0.92em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.82em;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Pricing Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tier-header {
  background: var(--navy);
  padding: 20px 24px;
  color: var(--white);
}

.tier-header h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-header .tier-audience {
  font-size: 0.78em;
  color: var(--blue-link);
  font-weight: 400;
}

.tier-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tier-body ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.tier-body li {
  font-size: 0.85em;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 20px;
  position: relative;
}

.tier-body li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

.tier-price {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.tier-price span {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--muted);
}

/* --- USP Strip --- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.usp-card {
  padding: 24px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--rule);
}

.usp-card h3 {
  font-size: 0.92em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.usp-card p {
  font-size: 0.82em;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Diagnostics Section --- */
.diagnostics-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 24px 0;
}

.diagnostics-features li {
  font-size: 0.88em;
  color: var(--text);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  list-style: none;
}

.diagnostics-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

/* --- Callout Band --- */
.callout {
  background: var(--blue-lt);
  border: 1px solid var(--blue-border);
  border-radius: 6px;
  padding: 16px 20px;
}

.callout p {
  font-size: 0.88em;
  color: var(--navy);
  line-height: 1.65;
}

.callout strong {
  font-weight: 600;
}

/* --- Contact / Footer --- */
.contact {
  background: var(--ink);
  padding: 80px 0 40px;
}

.contact-content {
  margin-bottom: 48px;
}

.contact h2 {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact .contact-body {
  font-size: 0.95em;
  color: var(--subtle);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 24px;
}

.contact a {
  color: var(--blue-link);
  font-weight: 500;
}

.contact a:hover {
  color: var(--white);
}

.contact .contact-location {
  font-size: 0.85em;
  color: var(--dark-muted);
  margin-top: 12px;
}

/* --- Footer Bar --- */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bar p {
  font-size: 0.78em;
  color: var(--dark-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.78em;
  color: var(--dark-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-link);
}

/* --- Legal / Subpage Prose --- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.prose h1 {
  font-size: 1.8em;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.prose .prose-subtitle {
  font-size: 0.88em;
  color: var(--muted);
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 0.95em;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p {
  font-size: 0.9em;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin: 12px 0 14px 20px;
  font-size: 0.9em;
  line-height: 1.7;
  color: var(--text);
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .card-grid,
  .tier-grid,
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2em;
  }

  .section-title {
    font-size: 1.5em;
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .card-grid,
  .tier-grid,
  .usp-grid {
    grid-template-columns: 1fr;
  }

  .diagnostics-features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 1.6em;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .section-light,
  .section-alt,
  .section-dark {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3em;
  }

  .contact {
    padding: 48px 0 32px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
