/* ============================================================
   Rosario IT Group — styles.css
   Brand: navy #242E53 / orange #F7652D / blue #4079BF / gray #BDBDBD
   Animation language: gray = inactive, blue = connected,
   orange = activity / data pulse
   ============================================================ */

:root {
  --navy: #242E53;
  --navy-deep: #1B2340;
  --navy-soft: #2E3A66;
  --orange: #F7652D;
  --orange-soft: #FFD9C7;
  --blue: #4079BF;
  --blue-soft: #9DBCE0;
  --gray: #BDBDBD;
  --gray-soft: #D9DDE5;
  --ink: #2A3145;
  --muted: #5C6478;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --line: #E3E7F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 46, 83, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", 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);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E8ECF7;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.eyebrow--light { color: var(--orange-soft); }

.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-title--light { color: #fff; }

.section-lede {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.02rem;
}
.section-lede--light { color: #C4CCE4; }

.section-head { margin-bottom: 36px; }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(247, 101, 45, 0.32);
}
.btn--primary:hover { background: #E5551F; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand__logo.is-missing { display: none; }
.brand__text { font-size: 1.06rem; font-weight: 500; letter-spacing: 0.01em; }
.brand__text strong { font-weight: 800; color: var(--orange); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; padding: 8px 20px 16px; }
.nav-link {
  display: block;
  padding: 12px 4px;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--bg-soft);
}
.nav-list li:last-child .nav-link { border-bottom: 0; }
.nav-link--cta { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(64, 121, 191, 0.14), transparent 60%),
    linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--orange); }
.hero-lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

.hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
.hero-visual-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---------- Shared SVG network language ----------
   gray = inactive, blue = connected, orange = pulse */

/* Hero network */
.hero-net { width: 100%; height: auto; }
.hlink {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: link-draw 1.1s ease forwards;
}
.hlink:nth-child(1) { animation-delay: 0.1s; }
.hlink:nth-child(2) { animation-delay: 0.25s; }
.hlink:nth-child(3) { animation-delay: 0.4s; }
.hlink:nth-child(4) { animation-delay: 0.55s; }
.hlink:nth-child(5) { animation-delay: 0.7s; }

.hpulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: pulse-run 2.6s linear infinite;
}
.hpulse:nth-child(1) { animation-delay: 1.2s; }
.hpulse:nth-child(2) { animation-delay: 1.7s; }
.hpulse:nth-child(3) { animation-delay: 2.2s; }
.hpulse:nth-child(4) { animation-delay: 2.7s; }
.hpulse:nth-child(5) { animation-delay: 3.2s; }

.hnode__ring {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2.5;
}
.hnode__icon { color: var(--navy); }
.hnode__icon rect, .hnode__icon path { fill: none; stroke: currentColor; stroke-width: 2; }

.hcore__halo {
  fill: rgba(64, 121, 191, 0.12);
  animation: halo-breathe 3.2s ease-in-out infinite;
}
.hcore__ring {
  fill: var(--navy);
  stroke: var(--orange);
  stroke-width: 3;
}
.hcore__icon { color: #fff; }
.hcore__icon path { fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--blue-soft); }
.service-card h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.service-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--navy);
}
.service-card__icon svg { width: 34px; height: 34px; }
.service-card__icon svg path, .service-card__icon svg rect, .service-card__icon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Connection trace along card bottom */
.trace { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 6px; }
.trace__line {
  fill: none;
  stroke: var(--gray-soft);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
.trace__dot {
  fill: var(--orange);
  opacity: 0;
  transform-box: fill-box;
}
[data-trace].is-active .trace__line {
  stroke: var(--blue);
  animation: trace-draw 1s ease forwards;
}
[data-trace].is-active .trace__dot {
  animation: dot-run 1s ease forwards;
}

/* ---------- Signature network stage ---------- */
.net-stage { position: relative; }
.net { width: 100%; height: auto; }

.nlink {
  fill: none;
  stroke: var(--gray);
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.nlink.is-on {
  stroke: var(--blue);
  animation: link-draw 0.9s ease forwards;
}

.npulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 100;
  opacity: 0;
}
.npulse.is-on {
  opacity: 1;
  animation: pulse-run 2.4s linear infinite;
}

.nnode { opacity: 0.45; transition: opacity 0.5s ease; }
.nnode.is-on { opacity: 1; }
.nnode__ring {
  fill: rgba(255, 255, 255, 0.06);
  stroke: var(--gray);
  stroke-width: 2.5;
  transition: stroke 0.5s ease;
}
.nnode.is-on .nnode__ring { stroke: var(--blue); }
.nnode__dot { fill: var(--gray); transition: fill 0.5s ease; }
.nnode.is-on .nnode__dot { fill: var(--orange); }
.nnode__icon { color: #C4CCE4; transition: color 0.5s ease; }
.nnode.is-on .nnode__icon { color: #fff; }
.nnode__icon rect, .nnode__icon path, .nnode__icon circle { fill: none; stroke: currentColor; stroke-width: 2.2; }
.nnode__label {
  fill: #8E97B8;
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
  transition: fill 0.5s ease;
}
.nnode.is-on .nnode__label { fill: #E8ECF7; }

.ncore__halo {
  fill: rgba(64, 121, 191, 0.14);
  animation: halo-breathe 3.4s ease-in-out infinite;
}
.ncore__ring {
  fill: var(--navy-soft);
  stroke: var(--orange);
  stroke-width: 3.5;
}
.ncore__icon { color: #fff; }
.ncore__icon path { fill: none; stroke: currentColor; stroke-width: 2.6; }
.ncore__label {
  fill: #fff;
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

/* Status chips */
.net-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.net-status__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8E97B8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.net-status__item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.net-status__item.is-on {
  color: #E8ECF7;
  border-color: rgba(64, 121, 191, 0.6);
}
.net-status__item.is-on i {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(64, 121, 191, 0.25);
}

/* ---------- Split sections (home / business / more) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.split__body .section-lede { margin-bottom: 18px; }

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.photo-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.photo-frame__img.is-missing { display: none; }
.photo-frame__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(300px 200px at 70% 20%, rgba(64, 121, 191, 0.12), transparent 65%),
    linear-gradient(160deg, #EEF2FA 0%, #E2E8F4 100%);
  color: var(--blue);
}
.photo-frame__fallback svg { width: 72px; height: 72px; }
.photo-frame__fallback svg path, .photo-frame__fallback svg rect {
  fill: none;
  stroke: currentColor;
}
.photo-frame__fallback span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.check-list { margin: 0 0 22px; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 32px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(64, 121, 191, 0.14);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- Topology diagrams ---------- */
.topo-wrap { margin-top: 24px; max-width: 420px; }
.topo { width: 100%; height: auto; }

.tlink {
  fill: none;
  stroke: var(--gray);
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.tlink.is-on {
  stroke: var(--blue);
  animation: link-draw 0.8s ease forwards;
}

.tpulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 100;
  opacity: 0;
}
.tpulse.is-on {
  opacity: 1;
  animation: pulse-run 2.2s linear infinite;
}

.tnode { opacity: 0.5; transition: opacity 0.5s ease; }
.tnode.is-on { opacity: 1; }
.tnode__ring {
  fill: #fff;
  stroke: var(--gray);
  stroke-width: 2.5;
  transition: stroke 0.5s ease;
}
.tnode.is-on .tnode__ring { stroke: var(--blue); }
.tnode__icon { color: var(--muted); transition: color 0.5s ease; }
.tnode.is-on .tnode__icon { color: var(--navy); }
.tnode__icon rect, .tnode__icon path, .tnode__icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.tnode__label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

/* ---------- Network health ---------- */
.health-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.health-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.health-panel--before { border-top: 4px solid var(--gray); }
.health-panel--after { border-top: 4px solid var(--blue); }
.health-panel__title { font-size: 1.05rem; margin-bottom: 12px; }
.health-svg { width: 100%; height: auto; }

.hbad {
  fill: none;
  stroke: var(--gray);
  stroke-width: 2.5;
}
.hbad--dash { stroke-dasharray: 6 6; }
.hbad--flicker { animation: flicker 1.8s steps(2, end) infinite; }
.hbad--broken {
  stroke-dasharray: 30 20 14 36;
  opacity: 0.55;
  animation: flicker 2.6s steps(2, end) infinite;
}

.hbadnode__ring {
  fill: #fff;
  stroke: var(--gray);
  stroke-width: 2.5;
}
.hbadnode__icon { color: var(--muted); }
.hbadnode__icon rect, .hbadnode__icon path, .hbadnode__icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.hbadnode--offline { opacity: 0.55; }
.hbadnode--offline .hbadnode__ring { stroke-dasharray: 4 4; }
.hbadnode__status { fill: var(--gray); }
.hbadnode__status--warn { fill: var(--orange); animation: flicker 1.4s steps(2, end) infinite; }

.hgood {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: link-draw 0.9s ease forwards;
}
.hgood:nth-child(2) { animation-delay: 0.15s; }
.hgood:nth-child(3) { animation-delay: 0.3s; }
.hgood:nth-child(4) { animation-delay: 0.45s; }

.hgoodpulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: pulse-run 2.4s linear infinite;
}
.hgoodpulse:nth-child(1) { animation-delay: 1.1s; }
.hgoodpulse:nth-child(2) { animation-delay: 1.6s; }
.hgoodpulse:nth-child(3) { animation-delay: 2.1s; }
.hgoodpulse:nth-child(4) { animation-delay: 2.6s; }

.hgoodnode__ring {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2.5;
}
.hgoodnode__icon { color: var(--navy); }
.hgoodnode__icon rect, .hgoodnode__icon path, .hgoodnode__icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.hgoodnode__status { fill: var(--blue); }

.health-list { margin-top: 14px; }
.health-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 0.92rem;
  color: var(--muted);
}
.health-list--bad li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
}
.health-list--good li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.health-arrow {
  display: none;
  align-items: center;
  justify-content: center;
}
.health-arrow svg { width: 48px; height: 24px; }
.health-arrow svg path { stroke: var(--orange); }

/* ---------- How It Works (steps) ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}
.step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
  border: 2px solid var(--orange);
}
.step__title { font-size: 1.08rem; margin-bottom: 8px; }
.step__text { font-size: 0.94rem; color: var(--muted); margin: 0; }
.steps-path {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  width: 100%;
  height: 60px;
  z-index: 0;
  pointer-events: none;
}
.steps-path__line {
  fill: none;
  stroke: var(--gray-soft);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.steps.is-active .steps-path__line { animation: link-draw 1.4s ease forwards; }
.steps-path__dot { fill: var(--orange); opacity: 0; }
.steps.is-active .steps-path__dot { animation: dot-run 1.4s ease forwards; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.contact-info .section-lede { margin-bottom: 22px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--orange-soft);
}
.contact-list__icon svg { width: 22px; height: 22px; }
.contact-list__icon svg path, .contact-list__icon svg rect, .contact-list__icon svg circle { stroke: currentColor; }
.contact-list__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E97B8;
}
.contact-list a, .contact-list li > div > span:last-child {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
}
.contact-list a:hover { color: var(--orange-soft); }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field label, .form-fieldset legend {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}
.form-fieldset { border: 0; margin: 0; padding: 0; }
.req { color: var(--orange); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(64, 121, 191, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.radio input { accent-color: var(--orange); width: 16px; height: 16px; }
.radio:has(input:checked) {
  border-color: var(--blue);
  background: rgba(64, 121, 191, 0.1);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #C4CCE4;
  padding: 40px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand__text { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 8px 0 0; font-size: 0.9rem; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #E8ECF7; font-weight: 600; }
.footer-links a:hover { color: var(--orange-soft); }
.footer-bottom { padding-top: 18px; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #8E97B8; }

/* ---------- Keyframes ---------- */
@keyframes link-draw { to { stroke-dashoffset: 0; } }
@keyframes pulse-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes dot-run {
  0% { offset-distance: 0%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}
@keyframes halo-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 0.55; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hlink, .nlink, .tlink, .hgood, .trace__line, .steps-path__line {
    stroke-dashoffset: 0 !important;
  }
  .nlink, .tlink { stroke: var(--blue); }
  .nnode, .tnode { opacity: 1; }
  .nnode__ring, .tnode__ring { stroke: var(--blue); }
  .nnode__dot { fill: var(--orange); }
  .nnode__icon { color: #fff; }
  .nnode__label { fill: #E8ECF7; }
  .tnode__icon { color: var(--navy); }
  .tnode__label { fill: var(--muted); }
  .hpulse, .npulse, .tpulse, .hgoodpulse, .trace__dot, .steps-path__dot { opacity: 0 !important; }
  .hbad--flicker, .hbad--broken, .hbadnode__status--warn {
    animation: none !important;
    opacity: 0.7;
  }
  .net-status__item { color: #E8ECF7; }
  .net-status__item i { background: var(--blue); }
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .section { padding: 84px 0; }
  .hero { padding: 72px 0 84px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: 1fr auto 1fr; }
  .health-arrow { display: flex; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .nav-link {
    padding: 9px 14px;
    border-bottom: 0;
    border-radius: 999px;
    font-size: 0.95rem;
  }
  .nav-link:hover { background: var(--bg-soft); }
  .nav-link--cta { background: var(--orange); color: #fff; }
  .nav-link--cta:hover { background: #E551F; }

  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .hero-visual { margin: 0; }

  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__body { order: 1; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .steps-path { display: block; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .topo-wrap { margin-left: auto; }
}

/* Fix: correct CTA hover color (overrides invalid hex above) */
@media (min-width: 900px) {
  .nav-link--cta:hover { background: #E5551F; }
}

/* Fix: restore hero grid gap (earlier declaration was malformed) */
.hero-inner { gap: 40px; }

/* ---------- Contact result pages (contact.php) ---------- */
.result-page {
  background: var(--bg-soft);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.result {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 28px;
  text-align: center;
}
.result-title { font-size: 1.6rem; margin-bottom: 14px; }
.result-message { color: var(--muted); margin-bottom: 22px; }
.result-alternates {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.result-alternates a { font-weight: 700; }

/* ---------- Larger hero network on a light background ---------- */
.hero-visual {
  max-width: 720px;
  min-width: 0;
}
.hero .nnode { opacity: 1; }
.hero .nnode__ring { fill: #fff; }
.hero .nnode__icon,
.hero .nnode.is-on .nnode__icon { color: var(--navy); }
.hero .nnode__label,
.hero .nnode.is-on .nnode__label {
  fill: var(--navy);
  font-size: 18px;
}
.hero .ncore__label { fill: var(--navy); }
.hero .net-status__item {
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
  font-size: 0.875rem;
}
.hero .net-status__item.is-on {
  color: var(--navy);
  border-color: var(--blue);
  background: #F4F6FB;
}
@media (min-width: 900px) {
  .hero-inner {
    max-width: 1320px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
  }
  .hero-visual { margin: 0; }
}

/* ---------- Footer logo ---------- */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
}

.footer-logo-link:hover {
  text-decoration: none;
}

.footer-logo {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
}

/* ---------- Technician image: preserve full image and caption ---------- */
.more .photo-frame {
  aspect-ratio: auto;
}

.more .photo-frame__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
