/* ParSec static content pages — shared styles.
   Palette mirrors the React app (index.html :root tokens). */
:root {
  --brand-dark: #2D4769;
  --brand-mid: #557089;
  --brand-muted: #8EA3B5;
  --brand-light: #C5D2E0;
  --brand-bg: #F0F2F5;
  --brand-border: #E1E6EB;
  --brand-accent: #8B5CF6;
  --brand-green: #10B981;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--brand-bg);
  background-size: 40px 40px;
  background-image: radial-gradient(circle, #2D476910 1px, transparent 1px);
  color: var(--brand-mid);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body[dir="rtl"] {
  font-family: 'Poppins', 'Segoe UI', Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-accent); }

h1, h2, h3 { color: var(--brand-dark); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 2.1rem; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 1.5rem; margin: 44px 0 12px; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 26px 0 8px; font-weight: 700; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.85rem; }
}

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--brand-dark); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--brand-border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
  text-decoration: none;
}
.brand span { color: var(--brand-accent); }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--brand-mid);
}

/* Breadcrumb */
.crumbs { font-size: 0.78rem; color: var(--brand-muted); margin: 22px 0 10px; }
.crumbs a { color: var(--brand-muted); }

main { padding-bottom: 40px; }

.eyebrow {
  display: inline-block;
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lede { font-size: 1.15rem; color: var(--brand-mid); max-width: 46em; }

.card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(45, 71, 105, 0.05);
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.pricebox {
  border-inline-start: 4px solid var(--brand-accent);
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.note {
  font-size: 0.85rem;
  color: var(--brand-muted);
}

table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--brand-border); vertical-align: top; }
th { color: var(--brand-dark); font-weight: 700; background: #fff; }
td { background: #fff; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.faq details p { margin: 12px 0 0; }

/* CTA */
.cta {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  margin: 48px 0 24px;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #D6DEE8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.btn-primary { background: var(--brand-green); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.35); }

/* Lead form */
.lead-form { margin-top: 22px; display: grid; gap: 10px; }
@media (min-width: 700px) { .lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
.lead-form input, .lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #A9BACB; }
.lead-form button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: #fff;
  color: var(--brand-dark);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  justify-self: start;
}
/* Spam honeypot: fully removed from layout and from the accessibility tree.
   A real user never sees it; a naive bot fills it and the API drops the lead. */
.hp-field { display: none; }

/* Visually hidden (skip link).
   Must NOT use `left: -9999px`: in an RTL document that offset extends the
   document scroll width and gives the whole page a horizontal scrollbar. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
a.hp:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  display: inline-block;
  padding: 10px 16px;
  background: var(--brand-dark);
  color: #fff;
}
.form-status { font-size: 0.9rem; color: #fff; min-height: 1.2em; }

/* Related links */
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 12px; }
.related a { font-weight: 700; }
.related .desc { display: block; font-size: 0.9rem; color: var(--brand-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--brand-border);
  padding: 28px 0 48px;
  font-size: 0.88rem;
  color: var(--brand-muted);
  background: rgba(255,255,255,0.5);
}
.site-footer .cols { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 700px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 {
  color: var(--brand-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--brand-mid); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.lang-switch { font-size: 0.8rem; }
