/* ==========================================================================
   JCR Networks — Design System
   ========================================================================== */

:root {
  --color-navy: #0b1f3a;
  --color-red: #d92d2d;
  --color-red-dark: #b91c1c;
  --color-red-light: #ff6b6b;
  --color-np-blue: #1b64b0;
  --color-sky: #38bdf8;
  --color-coral: #ff7a59;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f8ff;
  --color-text: #102a43;
  --color-text-muted: #52606d;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-light: #e6efff;
  --color-border: #d9e2ec;
  --color-card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.09);
  --shadow-lg: 0 14px 32px rgba(16, 42, 67, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-btn: 12px;
  --container-width: 1200px;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

/* Visible focus state for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

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

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.prose h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 58px;
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 6px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo img {
  height: 96px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 120px;
  width: auto;
  background: var(--color-bg);
  border-radius: 14px;
  padding: 10px 16px;
}

.logo-mark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--color-text);
  padding: 12px 2px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-cta {
  display: inline-flex;
}

/* ---- Hero ---- */
.hero {
  overflow: hidden;
  padding: 40px 0 80px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(56, 189, 248, 0.14), transparent 70%),
    var(--color-bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-coral);
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(transparent 82%, var(--color-coral) 82%, var(--color-coral) 92%, transparent 92%);
  padding-bottom: 2px;
}

.hero-copy {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
}

.hero-assurance li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
}

.hero-assurance svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* ---- Device mockups (hero + showcase) ---- */
.device-showcase {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 24px 44px;
  isolation: isolate;
}

/* soft glow + orbit motif behind the devices */
.device-showcase::before {
  content: "";
  position: absolute;
  inset: -6% -8% -6% -4%;
  background:
    url("../assets/images/brand/orbit-light.svg") center / contain no-repeat,
    radial-gradient(closest-side, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

.device-label {
  position: absolute;
  left: 4%;
  bottom: 2px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.device-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
}

.laptop-frame {
  width: 100%;
  max-width: 560px;
  position: relative;
}

.laptop-screen {
  background: var(--color-navy);
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.laptop-screen img {
  border-radius: 6px 6px 0 0;
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
  display: block;
}

.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #2a3044, #161a28);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #0e1220;
  border-radius: 0 0 6px 6px;
}

.phone-frame {
  width: 140px;
  position: absolute;
  right: -4px;
  bottom: -8px;
  background: var(--color-navy);
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 4px;
  background: #2a3044;
  z-index: 2;
}

.phone-screen {
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 18px;
}

.phone-screen img {
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 640px) {
  .phone-frame {
    width: 96px;
    right: -4px;
    bottom: -18px;
  }
}

.laptop-frame,
.phone-frame {
  position: relative;
  z-index: 1;
}

/* ---- Service / feature cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin-inline: auto;
}

.card {
  background: #eef4ff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.section--alt .card {
  background: #fff;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.portfolio-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-accent-light);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
}

.portfolio-body {
  padding: 24px 28px 28px;
}

.portfolio-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.portfolio-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.portfolio-body p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.portfolio-link:hover {
  color: var(--color-accent);
}

/* ---- Marketing tags ---- */
.marketing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin-inline: auto;
}

.marketing-tags span {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---- Process steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-accent);
  border: 2px solid var(--color-accent-light);
  background: var(--color-accent-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ---- Navy full-width section ---- */
.section--navy {
  background: var(--color-navy);
  color: #fff;
  border: 0;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--color-sky);
}

.section--navy .section-intro,
.section--navy p {
  color: rgba(255, 255, 255, 0.8);
}

.section--navy .step-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.section--navy .step-number {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-navy);
}

.section--navy .step-card p {
  color: rgba(255, 255, 255, 0.78);
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, #102a43, #1c4a7a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 16px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-band .btn-group {
  justify-content: center;
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  background: #0b1f33;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 32px;
  margin-top: 96px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo-mark {
  color: #fff;
}

.footer-brand .logo-tagline {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-local p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.footer-local a {
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid var(--color-sky);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Simple page hero (secondary pages) ---- */
.page-hero {
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero .eyebrow {
  display: block;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
  margin-bottom: 18px;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- Content list (websites / marketing pages) ---- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  gap: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-item .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ---- Contact form ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info .card {
  margin-bottom: 20px;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-info p,
.contact-info a {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.contact-info a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: #1a7d3c;
}

.form-status[data-state="error"] {
  color: #c92a2a;
}

/* ---- Simple content page (about) ---- */
.prose {
  max-width: 720px;
  margin-inline: auto;
}

.prose p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.philosophy-box {
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
  text-align: center;
}

.philosophy-box p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .container,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero .container {
    gap: 48px;
  }

  .card-grid--2 {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px 28px;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  body.nav-open .header-cta {
    display: flex;
  }

  .hero {
    padding: 24px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid,
  .feature-list,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 48px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-frame {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .btn-group {
    flex-direction: column;
  }
}


/* ---- Statement band + brand motif ---- */
.section--navy {
  position: relative;
  overflow: hidden;
}

.section--navy::before,
.cta-band::before {
  content: "";
  position: absolute;
  right: -4%;
  top: 50%;
  width: min(620px, 60%);
  aspect-ratio: 600 / 520;
  transform: translateY(-50%);
  background: url("../assets/images/brand/orbit-dark.svg") center / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.section--navy > .container,
.cta-band > * {
  position: relative;
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.statement {
  padding: 96px 0;
}

.statement-inner {
  max-width: 760px;
}

.statement h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 22px;
}

.statement-soft {
  color: var(--color-sky);
}

.statement-support {
  font-size: 1.1875rem;
  max-width: 600px;
}

.page-hero {
  background: url("../assets/images/brand/orbit-light.svg") right -60px center / 420px no-repeat;
}

/* ---- Trust chips ---- */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.trust-chips li {
  background: var(--color-accent-light);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .portfolio-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---- Small screens: simplify decoration, compact header ---- */
@media (max-width: 720px) {
  .device-showcase::before,
  .section--navy::before,
  .cta-band::before,
  .page-hero {
    background-image: none;
  }

  .section--navy::before,
  .cta-band::before {
    display: none;
  }

  .logo img {
    height: 64px;
  }

  .statement {
    padding: 64px 0;
  }

  .nav-links a {
    padding: 12px 2px;
    display: block;
  }

  .footer-links a {
    display: inline-block;
    padding: 6px 0;
  }
}

.prose.text-center h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

/* ==========================================================================
   Aligned with the NP Local Business look: white header with blue rule,
   deep-navy hero, red calls to action, bold caps headlines, script tagline.
   ========================================================================== */

.site-header {
  background: #fff;
  backdrop-filter: none;
  border-bottom: 4px solid var(--color-np-blue);
}

.btn-primary {
  background: var(--color-red);
  box-shadow: 0 8px 20px rgba(217, 45, 45, 0.28);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--color-red-dark);
}

.eyebrow,
.portfolio-category {
  color: var(--color-red);
}

.eyebrow::before {
  background: var(--color-red);
  box-shadow: 0 0 0 4px rgba(217, 45, 45, 0.15);
}

.portfolio-link {
  border-bottom-color: var(--color-red);
}

.card-icon {
  background: var(--color-navy);
  border: 0;
  color: #fff;
  border-radius: 50%;
}

.step-number {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

/* Hero: deep navy with orbit motif */
.hero {
  background:
    radial-gradient(55% 70% at 85% 40%, rgba(56, 189, 248, 0.2), transparent 70%),
    linear-gradient(160deg, #0b1f3a 0%, #12335a 100%);
  color: #fff;
  padding: 48px 0 112px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  margin-bottom: -1px;
}

.hero h1,
.page-hero h1 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1.02;
}

.hero h1 .accent {
  background: linear-gradient(transparent 84%, var(--color-red) 84%, var(--color-red) 94%, transparent 94%);
}

.hero-eyebrow {
  color: var(--color-red-light);
}

.hero-eyebrow::before {
  background: var(--color-red);
}

.hero-copy {
  color: rgba(255, 255, 255, 0.86);
}

.hero-assurance li {
  color: #fff;
}

.hero-assurance svg {
  color: var(--color-sky);
}

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.device-showcase::before {
  background:
    url("../assets/images/brand/orbit-dark.svg") center / contain no-repeat,
    radial-gradient(closest-side, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 100%);
}

.laptop-screen,
.phone-frame {
  background: #06142a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.device-label-dot {
  background: var(--color-red);
}

/* Secondary page headers match the hero */
.page-hero {
  background:
    url("../assets/images/brand/orbit-dark.svg") right -80px center / 460px no-repeat,
    linear-gradient(160deg, #0b1f3a 0%, #12335a 100%);
  color: #fff;
  padding: 64px 0 72px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}

.page-hero .eyebrow {
  color: var(--color-red-light);
}

.page-hero .eyebrow::before {
  background: var(--color-red);
  box-shadow: none;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

/* Navy sections */
.section--navy .eyebrow {
  color: var(--color-red-light);
}

.statement-soft {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.15em;
  line-height: 1.15;
  color: #fff;
  background: linear-gradient(transparent 88%, var(--color-red) 88%, var(--color-red) 94%, transparent 94%);
  padding-bottom: 6px;
}

.cta-band {
  background: linear-gradient(135deg, #0b1f3a, #12335a);
}

.cta-band .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* Footer: curved top edge and script tagline */
.site-footer {
  position: relative;
  background: var(--color-navy);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: var(--color-navy);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.footer-brand p,
.footer-bottom p:last-child {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 720px) {
  .hero {
    padding: 28px 0 80px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
  }

  .page-hero {
    background-image: linear-gradient(160deg, #0b1f3a 0%, #12335a 100%);
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    overflow-wrap: break-word;
  }
}


/* ==========================================================================
   Motion + polish
   Everything animated is progressive: with no JS, or prefers-reduced-motion,
   all content simply shows.
   ========================================================================== */

/* ---- Header: shrinks on scroll, with a reading-progress line ---- */
.site-header {
  transition: box-shadow 0.25s ease;
}

.logo img {
  transition: height 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.12);
}

.site-header.is-scrolled .logo img {
  height: 72px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 4px;
  width: 100%;
  background: var(--color-red);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Hamburger becomes an X */
.nav-toggle span {
  transform-origin: center;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn-arrow::after {
  content: "\2192";
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-arrow:hover::after {
  transform: translateX(5px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Load-in (hero + page heroes) ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(48px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@keyframes drift {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(217, 45, 45, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(217, 45, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 45, 45, 0); }
}

@keyframes draw-underline {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}

[data-hero] {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 100ms);
}

.device-showcase[data-hero] {
  animation-name: slide-in;
  animation-duration: 1s;
}

/* Heading accent underline draws in after the headline lands */
.hero h1 .accent {
  background-repeat: no-repeat;
  background-position: left;
  animation: draw-underline 0.9s ease 0.9s both;
}

.phone-frame {
  animation: float 6s ease-in-out 1.4s infinite;
}

.device-label-dot {
  animation: pulse-dot 2.4s ease-out infinite;
}

/* Orbit motif slowly turns behind the devices and in the navy bands */
.device-showcase::before {
  animation: spin-slow 140s linear infinite;
}

.section--navy::before,
.cta-band::before {
  animation: drift 160s linear infinite;
}

/* Hero devices get a gentle scroll parallax (set from JS) */
.device-parallax {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  transform: translateY(calc(var(--parallax, 0) * 1px));
  will-change: transform;
}

/* ---- Scroll reveal ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 100ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Cards keep their hover lift once revealed */
.js .card[data-reveal].is-visible:hover,
.js .portfolio-card[data-reveal].is-visible:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

/* ---- Process: connecting line draws between steps ---- */
.steps-grid {
  position: relative;
}

.step-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.2s, background-color 0.3s ease;
}

.js .step-card[data-reveal]:not(.is-visible) .step-number {
  transform: scale(0.4);
}

.step-card:hover .step-number {
  background: var(--color-red);
  border-color: var(--color-red);
}

@media (min-width: 961px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    left: calc(26px + 36px + 12px);
    right: -24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 6px, transparent 6px 12px);
    transform-origin: left;
    transition: transform 0.9s ease 0.5s;
    z-index: 0;
  }

  .js .step-card[data-reveal]:not(.is-visible)::after {
    transform: scaleX(0);
  }
}

/* ---- Icons wake up on hover ---- */
.card-icon {
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.2s ease;
}

.card:hover .card-icon,
.feature-item:hover .card-icon {
  transform: rotate(-8deg) scale(1.1);
  background: var(--color-red);
}

.feature-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

/* ---- Honest expectations ---- */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 48px auto 0;
}

.expect-col {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-np-blue);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.expect-col--no {
  border-top-color: var(--color-red);
}

.expect-col h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.tick-list li,
.cross-list li {
  position: relative;
  padding: 6px 0 6px 34px;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.tick-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
}

.tick-list li::before {
  content: "\2713";
  background: var(--color-np-blue);
}

.cross-list li::before {
  content: "\2715";
  background: var(--color-red);
}

/* ---- FAQ ---- */
.faq {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq details {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--color-red);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  animation: rise 0.4s ease both;
}

/* ---- Small layout fixes ---- */
.site-footer {
  margin-top: 0;
}

.section--alt + .site-footer,
main > .section:last-child {
  margin-bottom: 0;
}

.contact-info .card:hover {
  transform: none;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 960px) {
  .expect-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header.is-scrolled .logo img {
    height: 52px;
  }

  .phone-frame {
    animation: none;
  }
}

/* Reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  [data-hero],
  .js [data-reveal],
  .phone-frame,
  .device-label-dot,
  .device-showcase::before,
  .section--navy::before,
  .cta-band::before,
  .hero h1 .accent,
  .faq details p {
    animation: none !important;
    opacity: 1 !important;
    transform: none;
  }

  .section--navy::before,
  .cta-band::before {
    transform: translateY(-50%);
  }

  .device-parallax {
    transform: none;
  }
}

/* Label sits beneath the devices now they share a parallax wrapper */
.device-label {
  bottom: -40px;
}

@media (max-width: 720px) {
  .device-label {
    bottom: -36px;
  }
}

.footer-phone {
  margin-top: 14px;
}

.footer-phone a {
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--color-red);
}


/* ==========================================================================
   Stronger colour: richer bands so the page isn't all pale
   ========================================================================== */

:root {
  --color-bg-alt: #dbe8fa;
  --color-accent-light: #cfe0f8;
  --color-border: #c3d3e6;
}

.card {
  background: #e4eefc;
}

.section--alt .card {
  background: #fff;
}

.marketing-tags span,
.trust-chips li {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

/* Bold blue band (services) */
.section--blue {
  background: linear-gradient(160deg, #1b64b0 0%, #174f8f 100%);
  color: #fff;
  border: 0;
}

.section--blue h2 {
  color: #fff;
}

.section--blue .eyebrow {
  color: #fff;
}

.section--blue .eyebrow::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.section--blue .card {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(5, 20, 45, 0.25);
}

.section--blue .card:hover {
  border-color: var(--color-red);
}

/* Navy process band: white step cards stand out */
.section--steps .step-card {
  background: #fff;
  border-color: transparent;
}

.section--steps .step-card h3 {
  color: var(--color-navy);
}

.section--steps .step-card p {
  color: var(--color-text-muted);
}

.section--steps .step-number {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.section--steps .step-card:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 6px, transparent 6px 12px);
}

.section--navy.section--steps::before {
  display: none;
}

/* Page heroes and CTA band: a touch more depth */
.cta-band {
  background: linear-gradient(135deg, #0b1f3a, #1b64b0);
}

.section--alt .cta-band {
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.25);
}

.section--blue .card h3 {
  color: var(--color-navy);
}

.section--blue .card p {
  color: var(--color-text-muted);
}

/* Services: five cards always fill their rows evenly, last row centred */
.section--blue .card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.section--blue .card {
  flex: 0 0 calc((100% - 96px) / 5);
}

@media (max-width: 1100px) {
  .section--blue .card {
    flex-basis: calc((100% - 48px) / 3);
  }
}

@media (max-width: 720px) {
  .section--blue .card {
    flex-basis: 100%;
  }
}

/* Hero: a single laptop mockup, sized well on every screen */
.laptop-frame {
  max-width: 600px;
}

@media (max-width: 720px) {
  .device-showcase {
    padding: 8px 0 56px;
  }

  .laptop-frame {
    max-width: 100%;
    width: 100%;
  }
}

/* Mobile: laptop and phone both show Panteg, phone tucked at the corner */
@media (max-width: 720px) {
  .laptop-frame {
    width: 88%;
    margin-right: auto;
  }

  .phone-frame {
    display: block;
    width: 36%;
    max-width: 150px;
    right: 0;
    bottom: 20px;
    border-radius: 22px;
    padding: 6px;
  }

  .phone-screen,
  .phone-screen img {
    border-radius: 16px;
  }
}

/* Phone screen matches the Panteg screenshot's proportions so nothing is cropped */
.phone-screen {
  aspect-ratio: 780 / 1471;
}

.phone-frame {
  width: 150px;
}

@media (max-width: 720px) {
  .phone-frame {
    width: 34%;
    max-width: 140px;
  }
}

/* Odd number of portfolio cards: centre the last one on wide screens */
@media (min-width: 721px) {
  .portfolio-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 16px);
    justify-self: center;
  }
}

/* Inline text links (e.g. NP Local Business mentions) */
.section-intro a,
.faq details p a,
.cta-band p a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.section-intro a:hover,
.faq details p a:hover {
  color: var(--color-accent);
}

/* About page: pull-quote that stands out and wraps neatly */
.philosophy-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-red);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  text-align: left;
}

.philosophy-box p {
  max-width: 32ch;
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  text-wrap: balance;
  color: var(--color-navy);
}

@media (max-width: 720px) {
  .philosophy-box {
    padding: 28px 24px;
  }

  .philosophy-box p {
    max-width: none;
  }
}
