/* ==========================================================================
   Pro IT — SHARED PILLAR SITE TEMPLATE
   Pillar: Connect  |  Accent: BLUE #006be9 / #3ea6ff
   Siblings (Managed Hosting / Secure / Manage) share this file verbatim
   except for the --accent / --accent-bright tokens below.
   ========================================================================== */

:root {
  /* Brand (locked ProIT direction) */
  --bg:            #0a1020;
  --surface:       #111a30;
  --surface-2:     #16223d;
  --border:        #22304f;
  --text:          #e7eefb;
  --muted:         #8fa0c0;

  /* Pillar accent — CONNECT = BLUE */
  --accent:        #006be9;
  --accent-bright: #3ea6ff;

  --radius:        14px;
  --radius-sm:     10px;
  --maxw:          1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; color: var(--text); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .98rem;
  padding: .8em 1.4em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  box-shadow: 0 6px 24px -6px rgba(0,107,233,.55);
}
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(0,107,233,.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.textlink {
  color: var(--accent-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,16,32,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: inline-grid; place-items: center;
  box-shadow: 0 3px 14px -3px rgba(0,107,233,.7);
}
.wordmark .dot svg { width: 15px; height: 15px; display: block; }
.wordmark .accent { color: var(--accent-bright); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  padding: .5em .8em;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 22px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7em .6em; }
  .nav-links .btn { margin-left: 0; margin-top: 8px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle at center,
              rgba(0,107,233,.28), rgba(62,166,255,.10) 38%, transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 640px; margin-bottom: 1.9rem; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(62,166,255,.55);
  box-shadow: 0 18px 40px -22px rgba(0,107,233,.65);
}
.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(0,107,233,.14);
  border: 1px solid rgba(62,166,255,.3);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent-bright); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Trust band ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .tick {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,107,233,.14);
  border: 1px solid rgba(62,166,255,.3);
  display: grid; place-items: center;
}
.trust-item .tick svg { width: 16px; height: 16px; stroke: var(--accent-bright); }
.trust-item h3 { font-size: 1rem; margin: 0 0 .2em; }
.trust-item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Feature rows (interior pages) ---------- */
.feature-list { display: grid; gap: 18px; margin-top: 8px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.feature .icon {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,107,233,.14);
  border: 1px solid rgba(62,166,255,.3);
  display: grid; place-items: center;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--accent-bright); }
.feature h3 { margin: 0 0 .25em; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA section ---------- */
.cta {
  background:
    radial-gradient(circle at 50% -40%, rgba(0,107,233,.30), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 68px);
  text-align: center;
}
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--muted); max-width: 540px; margin-inline: auto; margin-bottom: 1.8rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta .email { font-weight: 600; color: var(--accent-bright); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 54px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--muted); font-size: .95rem; }
.footer ul a:hover { color: var(--accent-bright); }
.footer .brand p { color: var(--muted); font-size: .93rem; max-width: 300px; margin-top: 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: .86rem;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* ==========================================================================
   Lead-capture form (shared verbatim across all three pillar sites)
   Accent comes from the existing .btn-primary + --accent-bright tokens,
   so this block is identical per-site; only the accent differs.
   ========================================================================== */
.lead-form { max-width: 560px; margin: 4px auto 0; text-align: left; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .lead-form .row { grid-template-columns: 1fr; } }
.lead-form .field { margin-bottom: 16px; }
.lead-form label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 22%, transparent);
}
.lead-form textarea { min-height: 118px; resize: vertical; }
.lead-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
/* Honeypot — visually hidden, off-screen, not focusable */
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { font-weight: 600; }
.form-msg { border-radius: 12px; padding: 15px 17px; margin-bottom: 18px; font-weight: 500; text-align: left; }
.form-success { background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.45); color: var(--text); }
.form-error   { background: rgba(239,68,68,.10); border: 1px solid rgba(239,68,68,.45); color: var(--text); }
