/* ═══════════════════════════════════════════════════════════════
   McNS — McNetworkSolutions
   Main Stylesheet v2 — Steel Grey + Space
   /css/mcns.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:          #e8eaee;
  --bg2:         #dfe2e7;
  --surface:     #f0f2f5;
  --surface2:    #ffffff;
  --surface3:    #f7f8fa;

  --blue:        #1d52cc;
  --blue-h:      #1a45b8;
  --blue-dim:    rgba(29,82,204,0.07);
  --blue-border: rgba(29,82,204,0.18);

  --green:       #15803d;
  --green-dim:   rgba(21,128,61,0.07);
  --green-border:rgba(21,128,61,0.2);

  --text:        #191c26;
  --text2:       #586075;
  --text3:       #9aa0b2;

  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(0,0,0,0.14);

  --shadow-sm:   0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow:      0 2px 8px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.05);

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ───────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Stars — subtle on light bg ─────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #1a2040;
  animation: star-pulse var(--d, 4s) ease-in-out infinite var(--del, 0s);
}
@keyframes star-pulse {
  0%, 100% { opacity: var(--a, .015); }
  50%       { opacity: var(--b, .06); }
}

/* ── Grid overlay — very faint ──────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(29,52,100,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,52,100,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.mc-nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  height:64px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rule);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(1.2rem,4vw,3rem);
}

.mc-nav-brand img{
  height:30px;
  width:auto;
}

.mc-nav-links{
  position:absolute;
  top:64px;
  right:clamp(1.2rem,4vw,3rem);
  width:min(280px,calc(100vw - 2.4rem));
  background:#fff;
  border:1px solid var(--rule);
  display:flex;
  flex-direction:column;
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  pointer-events:none;
  transition:.25s var(--ease);
}

.mc-nav-links.active{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.mc-nav-link{
  font-family:var(--mono);
  font-size:.7rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--graphite);
  padding:1rem 1.2rem;
  border-bottom:1px solid var(--rule);
}

.mc-nav-link:last-child{
  border-bottom:none;
}

.mc-nav-link:hover{
  color:var(--ink);
  background:var(--smoke);
}

.mc-hamburger{
  width:44px;
  height:44px;
  border:1px solid var(--ink);
  background:var(--ink);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);
}

.mc-hamburger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--paper);
  transition:.25s var(--ease);
}

.mc-hamburger.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.mc-hamburger.active span:nth-child(2){
  opacity:0;
}

.mc-hamburger.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}


/* ── Page hero ──────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 148px 6% 88px;
  border-bottom: 1px solid var(--border);
}
.page-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-tag::before {
  content: '';
  display: block;
  width: 22px; height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.page-title em { font-style: italic; color: var(--text2); }
.page-sub {
  font-size: 0.95rem;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.9;
  font-weight: 300;
}

/* ── Sections ───────────────────────────────────────────────────── */
.block {
  position: relative;
  z-index: 1;
  padding: 90px 6%;
}
.block.alt {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.section-title em { font-style: italic; color: var(--text2); }
.section-sub {
  font-size: 0.9rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.9;
  font-weight: 300;
}
.section-header { margin-bottom: 3.5rem; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 28px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 7px;
  transition: background 0.15s, transform 0.2s var(--ease);
}
.btn-primary:hover { background: var(--blue-h); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text2);
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text2);
  padding: 12px 28px;
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 7px;
  border: 1px solid var(--border2);
  transition: all 0.15s;
}
.btn-outline:hover { color: var(--text); border-color: var(--blue-border); background: var(--blue-dim); }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  padding: 12px 28px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
  transition: all 0.15s;
}
.btn-white:hover { background: #f0f4ff; transform: translateY(-1px); }

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.15s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.card:hover {
  border-color: var(--blue-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Service cards ──────────────────────────────────────────────── */
.svc-icon {
  width: 42px; height: 42px;
  background: var(--blue-dim);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 19px;
}
.svc-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.svc-card p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.svc-card ul {
  list-style: none;
  margin-top: 0.8rem;
}
.svc-card ul li {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
}
.svc-card ul li:last-child { border-bottom: none; }
.svc-card ul li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s;
}
.svc-link:hover { gap: 8px; }

/* ── Who cards ──────────────────────────────────────────────────── */
.who-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.who-card p {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
}
.who-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  border-radius: 100px;
  padding: 3px 10px;
  font-weight: 500;
}

/* ── Process steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--border2);
  z-index: 0;
}
.step { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px;
  background: var(--surface2);
  border: 1.5px solid var(--blue-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--blue);
  margin: 0 auto 1.2rem;
  box-shadow: var(--shadow-sm);
}
.step h4 { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.step p  { font-size: 0.8rem; color: var(--text2); line-height: 1.8; font-weight: 300; }

/* ── Why items ──────────────────────────────────────────────────── */
.why-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.why-check {
  width: 18px; height: 18px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 9px;
  flex-shrink: 0;
}
.why-item p { font-size: 0.83rem; color: var(--text2); line-height: 1.8; font-weight: 300; }

/* ── CTA band ───────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  z-index: 1;
  background: var(--blue);
  padding: 72px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.cta-band h3 em { font-style: italic; opacity: 0.75; }
.cta-band p { font-size: 0.88rem; color: rgba(255,255,255,0.7); font-weight: 300; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ── Stats ──────────────────────────────────────────────────────── */
.stats {
  position: relative;
  z-index: 1;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 2.4rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.75rem; color: var(--text2); font-weight: 300; }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-green {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.badge-green .badge-dot { background: var(--green); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ── Trust items ────────────────────────────────────────────────── */
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text2);
}
.trust-check {
  width: 16px; height: 16px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 9px;
  flex-shrink: 0;
}

/* ── Quick finder panel ─────────────────────────────────────────── */
.finder-panel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.finder-header {
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}
.finder-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.finder-tag {
  font-size: 0.68rem;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 10px;
}
.finder-body { padding: 1.4rem 1.6rem; }
.finder-q { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.option-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.option {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  user-select: none;
}
.option:hover {
  border-color: var(--blue-border);
  background: var(--blue-dim);
  color: var(--text);
}
.option.selected {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--text);
}
.option-dot {
  width: 8px; height: 8px;
  border: 1.5px solid var(--text3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
}
.option:hover .option-dot,
.option.selected .option-dot {
  border-color: var(--blue);
  background: var(--blue);
}
.finder-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 11px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}
.finder-btn:hover { background: var(--blue-h); }
.finder-note { font-size: 0.7rem; color: var(--text3); text-align: center; margin-top: 0.8rem; }

/* ── Forms ──────────────────────────────────────────────────────── */
.cform {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { margin-bottom: 1.3rem; }
.fg label {
  display: block;
  font-size: 0.74rem;
  color: var(--text2);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.fg input, .fg textarea, .fg select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text3); }
.fg textarea { resize: none; min-height: 88px; }
.fg select { cursor: pointer; }
.fg select option { background: #fff; }
.form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s;
  margin-top: 0.3rem;
}
.form-submit:hover { background: var(--blue-h); }
.form-note { font-size: 0.7rem; color: var(--text3); text-align: center; margin-top: 0.8rem; }

/* ── Contact details ────────────────────────────────────────────── */
.cdetail {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}
.cdetail a { color: var(--text2); text-decoration: none; transition: color 0.15s; }
.cdetail a:hover { color: var(--text); }
.cdetail-icon {
  width: 28px; height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* ── Hours table ────────────────────────────────────────────────── */
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}
.hours-row:last-child { border-bottom: none; }
.hours-row span { color: var(--text3); }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 2.4rem 6%;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-logo img {
  height: 24px;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(200deg) brightness(0.3);
  opacity: 0.5;
}
.foot-links { display: flex; gap: 2rem; }
.foot-links a {
  color: var(--text3);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.15s;
}
.foot-links a:hover { color: var(--text2); }
.foot-copy { color: var(--text3); font-size: 0.78rem; }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.on { opacity: 1; transform: none; }

/* ── Portal ──────────────────────────────────────────────────────── */
.portal-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 60px;
}
.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.8rem;
  box-shadow: var(--shadow);
}
.portal-back {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 2.5rem;
}
.portal-back a {
  font-size: 0.78rem;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}
.portal-back a:hover { color: var(--text2); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.6rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-icon {
  color: var(--blue);
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 300;
}
.faq-a {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.9;
  font-weight: 300;
  max-width: 680px;
  display: none;
  padding-top: 0.9rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 5%; }
  .page-hero { padding: 120px 5% 60px; }
  .block { padding: 70px 5%; }
  .cta-band { padding: 55px 5%; flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--border); }
  footer { padding: 2rem 5%; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .frow { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}