/* =============================================================================
   styles.css — ninov.io
   Mobile-first, WCAG 2.1 AA, no external dependencies, no JavaScript required.
   ============================================================================= */

/* Variables */
:root {
  --text:          #111827;
  --text-muted:    #4b5563;
  --accent:        #1d4ed8;
  --accent-hover:  #1e40af;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --border:        #e5e7eb;
  --radius:        0.375rem;
  --max-w:         1100px;
  --font:          system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Skip navigation (keyboard / screen-reader accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9000;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-alt);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 700px; margin: 0 auto 1rem; }
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section__inner { max-width: var(--max-w); margin: 0 auto; }

/* ── About ────────────────────────────────────────────────────────────────── */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.about-body p { margin-bottom: 1.25rem; }

/* ── Card grid ────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; }
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-section { max-width: 640px; margin: 0 auto; }
.contact-info { margin-bottom: 2.5rem; }
.contact-info p { font-size: 1.05rem; color: var(--text-muted); }
.contact-detail {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.contact-detail .label { font-weight: 600; color: var(--text); min-width: 70px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Policy pages ─────────────────────────────────────────────────────────── */
.policy-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.policy-wrap h1 { margin-bottom: 0.25rem; }
.policy-meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2.5rem; }
.policy-wrap h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.policy-wrap ul, .policy-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.policy-wrap li { margin-bottom: 0.35rem; }
.policy-wrap a { word-break: break-all; }

/* ── Badges / trust signals ───────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-bar span { display: flex; align-items: center; gap: 0.35rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.8rem; color: #9ca3af; margin: 0 0 0.4rem; }
.footer-pci {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  margin-top: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .section { padding: 3rem 1.25rem; }
  .nav-links { gap: 0.875rem; }
  .policy-wrap { padding: 2rem 1.25rem 3rem; }
}
