/* ============================================================
   Neish Networks — main.css
   Shared styles for all pages
   ============================================================ */

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

:root {
  --navy:        #0B1F3A;
  --navy-light:  #132845;
  --accent:      #2563EB;
  --accent-hover:#1D4ED8;
  --accent-light:#EFF6FF;
  --text:        #0B1F3A;
  --text-muted:  #4B5563;
  --text-light:  #6B7280;
  --border:      #E5E7EB;
  --bg:          #FFFFFF;
  --bg-subtle:   #F8FAFC;
  --radius:      10px;
  --radius-lg:   16px;
  --h-pad:       max(5vw, calc((100% - 1200px) / 2));
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── NAV (injected by components.js) ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--h-pad); height: 84px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-logo { text-decoration: none; padding: 8px 0; }
.nav-logo span { color: var(--accent); }
.nav-logo-img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: .6; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 0; min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.nav-links .has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 16px;
  color: var(--text-muted); font-size: 13px;
}
.nav-dropdown a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  transition: background .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-phone { color: var(--text-light) !important; font-size: 13px; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--text);
}
.nav-hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-mobile {
  display: none; flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px var(--h-pad) 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-muted); text-decoration: none;
  padding: 10px 0; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── FOOTER (injected by components.js) ── */
footer {
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 56px var(--h-pad) 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; margin-top: 14px; }
.footer-badge { height: 72px; margin-top: 18px; }
.footer-col h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; transition: color .15s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--text-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── SHARED SECTION STYLES ── */
section { padding: 72px var(--h-pad); }
.section-narrow { }
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: block;
}
h2.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; line-height: 1.7; margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  display: inline-block;
  color: var(--accent);
  padding: 13px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 2px solid var(--accent);
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── HERO (shared base) ── */
.hero {
  background: var(--navy);
  padding: 88px var(--h-pad) 80px;
  color: #fff;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: #60A5FA;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -1px; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: #60A5FA; }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.72);
  max-width: 580px; line-height: 1.65; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-meta strong { color: rgba(255,255,255,0.65); font-weight: 500; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px; border-radius: 4px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.card-icon {
  width: 40px; height: 40px;
  background: var(--accent-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.card-link { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); display: block; }

a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card p { flex: 1; }

/* ── FAQ ── */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-weight: 600; font-size: 15px; padding: 20px 0;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; user-select: none;
}
.faq-q svg {
  flex-shrink: 0; width: 18px; height: 18px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 2; stroke-linecap: round; transition: transform .2s;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; padding-bottom: 20px; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── CONTACT FORM ── */
.contact-section { background: var(--bg-subtle); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-info-item h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 4px;
}
.contact-info-item p,
.contact-info-item a { font-size: 15px; color: var(--text); text-decoration: none; line-height: 1.6; }
.contact-info-item a:hover { color: var(--accent); }

/* Form placeholder — replaced by external tool */
.form-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  color: var(--text-muted);
}
.form-placeholder p { font-size: 14px; line-height: 1.7; }

/* ── PILL GRID ── */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.pill {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--bg);
  text-decoration: none; text-align: center;
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* ── DARK BANNER ── */
.dark-banner { background: var(--navy); color: #fff; }
.dark-banner .section-sub { color: rgba(255,255,255,0.65); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: var(--navy); color: #fff;
  padding: 64px var(--h-pad) 56px;
}
.page-header .hero-eyebrow { margin-bottom: 14px; }
.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.7px; margin-bottom: 16px;
  max-width: 700px;
}
.page-header p {
  font-size: 17px; color: rgba(255,255,255,0.7);
  max-width: 560px; line-height: 1.65;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 52px var(--h-pad); }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
