/* RTechCyber Services — site stylesheet
   Palette relates to ASM Radar's dark navy system but uses a distinct teal
   accent (ASM Radar uses blue) so the two sites read as siblings, not
   duplicates. */

:root {
  --navy-950: #0a0e1a;
  --navy-900: #0f1623;
  --navy-800: #151d2e;
  --navy-700: #1e2a3d;
  --navy-600: #2a394f;

  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-dim: #0f766e;

  --text-primary: #e6ebf2;
  --text-secondary: #9aa7bd;
  --text-muted: #6b7690;

  --border: #253348;
  --danger: #f87171;
  --success: #4ade80;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius: 10px;
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-secondary); }

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-950);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent-light); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.brand-suffix { color: var(--text-muted); font-weight: 400; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); text-decoration: none; }
.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  color: var(--accent-light) !important;
}
.nav-cta:hover { background: rgba(20, 184, 166, 0.1); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--accent-light); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent-dim); }

/* Hero */
.hero {
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(20, 184, 166, 0.12), transparent),
    var(--navy-950);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 780px; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}
.hero-sub { font-size: 1.1rem; max-width: 620px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--navy-900); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-lead { font-size: 1.05rem; }
.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-points li {
  padding: 0.65rem 1rem;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Products */
.product-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
  max-width: 640px;
}
.product-card-header { margin-bottom: 0.75rem; }
.product-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.6rem;
}
.product-card h3 { color: var(--accent-light); }
.product-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-benefits li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.product-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.product-placeholder {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.service-card {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.service-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; margin: 0; }

/* Contact */
.contact-sub { max-width: 560px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}
.contact-direct {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-email {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-light);
  margin: 0.5rem 0;
}
.contact-note { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.contact-form {
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.required { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:invalid[aria-invalid="true"],
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
  min-height: 1em;
}

/* Honeypot — visually hidden but present in DOM/tab order kept out via tabindex="-1" */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.88rem;
  margin: 0 0 1rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--navy-900);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-tagline { font-size: 0.85rem; margin: 0.25rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copyright { width: 100%; font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Legal pages */
.legal-page { padding: 4rem 0 5rem; max-width: 760px; margin: 0 auto; }
.legal-page .container { max-width: 760px; }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.25rem; }

/* Responsive */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav:not(.primary-nav-static) {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .primary-nav:not(.primary-nav-static).open { max-height: 320px; }
  .primary-nav:not(.primary-nav-static) ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
  }
  .primary-nav:not(.primary-nav-static) li { width: 100%; padding: 0.6rem 0; }
  .form-row { grid-template-columns: 1fr; }
}
