/* ================================
   NetFusion – Global theme tokens
   ================================ */

:root {
  --nf-bg: #f5f3ee;
  --nf-surface: #ffffff;
  --nf-surface-soft: #f0ede6;

  --nf-border-subtle: rgba(15, 23, 42, 0.08);
  --nf-border-strong: rgba(15, 23, 42, 0.18);

  --nf-text-main: #102133;
  --nf-text-muted: #6b7280;

  --nf-accent: #123a5a;
  --nf-accent-secondary: #ff5c7b;
  --nf-accent-soft: #e1e7f0;
  --nf-accent-strong: #0a2740;

  --nf-radius-lg: 1.25rem;
  --nf-radius-md: 0.9rem;
  --nf-radius-pill: 999px;

  --nf-shadow-soft: 0 14px 45px rgba(15, 23, 42, 0.12);
  --nf-shadow-hover: 0 18px 60px rgba(15, 23, 42, 0.18);
}

/* ================================
   Base reset + layout
   ================================ */

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(82, 186, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 92, 123, 0.10), transparent 50%),
    var(--nf-bg);
  color: var(--nf-text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.nf-main {
  min-height: 60vh;
}

/* ================================
   Header
   ================================ */

.nf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: #ffffff;
  border-bottom: 1px solid var(--nf-border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nf-header-scrolled {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.nf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  gap: 1.5rem;
}

/* Logo */

.nf-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.nf-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--nf-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--nf-accent);
  position: relative;
  overflow: hidden;
}

.nf-logo-icon::before,
.nf-logo-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid var(--nf-accent);
  inset: 6px;
  opacity: 0.35;
}

.nf-logo-text {
  font-weight: 650;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  color: var(--nf-accent-strong);
}

.nf-logo-small .nf-logo-text {
  font-size: 1rem;
}

.nf-header .nf-logo:hover .nf-logo-text {
  color: #e0f2fe;
}

/* Navigation */

.nf-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nf-nav a {
  position: relative;
  color: var(--nf-text-main);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nf-nav a:hover {
  color: var(--nf-accent-strong);
}

.nf-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nf-accent), var(--nf-accent-strong));
  transition: width 0.24s ease;
}

.nf-nav a:hover::after {
  width: 100%;
}

/* ================================
   Buttons
   ================================ */

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--nf-radius-pill);
  border: 1px solid var(--nf-accent);
  background: var(--nf-accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(18, 58, 90, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.nf-btn:hover {
  transform: translateY(-1px);
  background: var(--nf-accent-strong);
  border-color: var(--nf-accent-strong);
  box-shadow: var(--nf-shadow-hover);
}

.nf-btn-outline {
  background: transparent;
  color: var(--nf-accent-strong);
  border-color: rgba(18, 58, 90, 0.25);
  box-shadow: none;
}

.nf-btn-outline:hover {
  background: rgba(18, 58, 90, 0.05);
  box-shadow: 0 6px 18px rgba(18, 58, 90, 0.25);
}

.nf-btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  box-shadow: none;
}

/* ================================
   Hero
   ================================ */

.nf-hero {
  position: relative;
  padding: 5.5rem 0 4.25rem;
  overflow: hidden;
}

.nf-hero-gradient {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 186, 255, 0.10), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(255, 92, 123, 0.10), transparent 60%),
    linear-gradient(135deg, #ffffff, #f4f1ea);
  opacity: 1;
  z-index: -2;
}

.nf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  pointer-events: none;
  z-index: -1;
}

.nf-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.nf-hero-text h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 3.4vw + 1.1rem, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--nf-accent-strong);
}

.nf-hero-text p {
  margin: 0 0 1.8rem;
  max-width: 32rem;
  color: var(--nf-text-muted);
  line-height: 1.6;
}

/* Hero badge + actions */

.nf-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 0.9rem;
  backdrop-filter: blur(12px);
}

.nf-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.nf-link-soft {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nf-link-soft::after {
  content: "→";
  font-size: 0.9em;
  opacity: 0.8;
}

/* Hero metrics row – light pills, dark text */

.nf-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.4rem;
  color: var(--nf-text-main);
}

.nf-hero-meta-item {
  min-width: 9rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--nf-border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.nf-hero-meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nf-text-muted);
  margin-bottom: 0.2rem;
}

.nf-hero-meta-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--nf-text-main);
}

/* ================================
   Hero visual / live preview card
   ================================ */

.nf-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.nf-hero-card {
  position: relative;
  width: 100%;
  max-width: 22rem;
  border-radius: 1.6rem;
  padding: 1.25rem 1.15rem 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(82, 186, 255, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 92, 123, 0.22), transparent 45%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--nf-shadow-soft);
  color: #e5e7eb;
  overflow: hidden;
}

.nf-hero-card-header {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
}

.nf-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.nf-dot-green { background: #22c55e; }
.nf-dot-amber { background: #fbbf24; }
.nf-dot-rose  { background: #fb7185; }

.nf-hero-showcase-label {
  margin-left: auto;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226, 232, 240, 0.82);
}

/* Simple “devices” illustration (current markup on index.php) */

.nf-hero-devices {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.nf-hero-device {
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.nf-hero-device-desktop {
  flex: 1.3;
  min-height: 7rem;
}

.nf-hero-device-mobile {
  flex: 0.6;
  min-height: 5.3rem;
}

.nf-hero-device-bar {
  height: 0.55rem;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.7), rgba(129, 230, 217, 0.9));
}

.nf-hero-device-body {
  padding: 0.55rem 0.7rem 0.7rem;
}

.nf-hero-device-line {
  display: block;
  height: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(56, 189, 248, 0.8));
  margin-bottom: 0.35rem;
}

.nf-hero-device-line-wide {
  width: 80%;
}

.nf-hero-device-line-soft {
  width: 55%;
  background: rgba(148, 163, 184, 0.8);
}

/* Stack pills */

.nf-hero-tech {
  margin-top: 0.85rem;
}

.nf-hero-tech-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.35rem;
}

.nf-hero-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nf-tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.9);
}

/* Optional: “chip” row above stack */

.nf-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.95);
}

.nf-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Live-preview rotating layouts (new) */

.nf-live-preview {
  margin-bottom: 0.9rem;
}

.nf-live-window {
  position: relative;
  border-radius: 1rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.5rem;
  overflow: hidden;
  height: 160px;
}

/* Slides */

.nf-live-slide {
  position: absolute;
  inset: 0.5rem;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.18), transparent 55%),
    #020617;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.nf-live-slide-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shared primitives */

.nf-live-topbar {
  height: 0.6rem;
  border-radius: 0.55rem;
  margin: 0.4rem 0.5rem 0.5rem;
  background: linear-gradient(90deg,
      rgba(59, 130, 246, 0.9),
      rgba(45, 212, 191, 0.9));
}

.nf-live-body {
  padding: 0 0.75rem 0.7rem;
}

.nf-live-hero-line {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  margin-bottom: 0.25rem;
}

.nf-live-hero-line-wide {
  width: 70%;
}

.nf-live-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.nf-live-block {
  height: 1.6rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.85),
      rgba(56, 189, 248, 0.85));
  margin-bottom: 0.35rem;
}

.nf-live-block-soft {
  background: rgba(30, 64, 175, 0.6);
}

.nf-live-line {
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.18rem;
}

.nf-live-line-short {
  width: 60%;
}

/* Dashboard-style slide */

.nf-live-topbar-dashboard {
  background: linear-gradient(90deg,
      rgba(221, 214, 254, 0.95),
      rgba(129, 230, 217, 0.95));
}

.nf-live-body-dashboard {
  display: grid;
  grid-template-columns: 0.85fr 1.8fr;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.6rem;
}

.nf-live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.1rem;
}

.nf-live-pill {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
}

.nf-live-pill-soft {
  background: rgba(148, 163, 184, 0.9);
}

.nf-live-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nf-live-chart {
  height: 2.2rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg,
      rgba(56, 189, 248, 0.95),
      rgba(15, 23, 42, 0.3));
}

/* Mobile-style slide */

.nf-live-mobile-shell {
  position: absolute;
  inset: 0.35rem 2.3rem 0.35rem 2.3rem;
  border-radius: 1.2rem;
  border: 2px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  display: flex;
  flex-direction: column;
}

.nf-live-mobile-bar {
  height: 0.4rem;
  border-radius: 0 0 0.7rem 0.7rem;
  margin: 0;
  background: linear-gradient(90deg,
      rgba(56, 189, 248, 0.9),
      rgba(244, 114, 182, 0.9));
}

.nf-live-mobile-body {
  padding: 0.4rem 0.45rem 0.45rem;
}

.nf-live-mobile-line {
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  margin-bottom: 0.18rem;
}

.nf-live-mobile-line-wide {
  width: 70%;
}

.nf-live-mobile-card {
  height: 1.1rem;
  border-radius: 0.6rem;
  background: rgba(37, 99, 235, 0.9);
  margin-top: 0.2rem;
}

.nf-live-mobile-card-soft {
  background: rgba(99, 102, 241, 0.85);
}

/* ================================
   Sections, grids, cards
   ================================ */

.nf-section {
  padding: 4.25rem 0;
}

.nf-section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.96));
}

.nf-section-header {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.nf-section-header-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nf-section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 58, 90, 0.06);
  color: var(--nf-accent-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.nf-section-title,
.nf-page-title {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--nf-accent-strong);
}

.nf-section-title {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.nf-page-title {
  margin-bottom: 0.4rem;
}

.nf-section-subtitle,
.nf-page-intro {
  margin: 0 0 1.8rem;
  max-width: 40rem;
  color: var(--nf-text-muted);
  line-height: 1.65;
}

.nf-grid {
  display: grid;
  gap: 1.7rem;
}

.nf-grid-2 {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
}

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

.nf-card {
  position: relative;
  border-radius: var(--nf-radius-md);
  padding: 1.4rem 1.5rem;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  will-change: transform;
}

.nf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.22s ease;
}

.nf-card h2,
.nf-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--nf-accent-strong);
}

.nf-card p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: var(--nf-text-muted);
}

.nf-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--nf-text-muted);
}

.nf-card li + li {
  margin-top: 0.25rem;
}

.nf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nf-shadow-hover);
  border-color: rgba(18, 58, 90, 0.3);
  background: linear-gradient(180deg, #ffffff, #f8f5f0);
}

.nf-card:hover::after {
  border-color: rgba(18, 58, 90, 0.25);
}

.nf-card-highlight {
  background: linear-gradient(145deg, #ffffff, #eef2f8);
}

.nf-card-service {
  border-style: solid;
}

.nf-card-contact {
  background: #faf6ef;
}

/* Services */

.nf-services-grid {
  align-items: stretch;
}

.nf-service-card {
  position: relative;
  border-radius: 1.4rem;
  padding-top: 1.7rem;
  padding-bottom: 1.7rem;
}

.nf-service-icon {
  margin-bottom: 1rem;
}

.nf-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(18, 58, 90, 0.18), transparent 60%),
    rgba(18, 58, 90, 0.06);
  font-size: 1.1rem;
}

/* Process */

.nf-process {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.nf-process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nf-process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 1.1rem;
  background: var(--nf-surface);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.nf-process-step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

/* CTA */

.nf-cta-block {
  margin-top: 3rem;
  border-radius: var(--nf-radius-lg);
  padding: 1.9rem 1.7rem;
  background:
    radial-gradient(circle at left, rgba(18, 58, 90, 0.12), transparent 55%),
    var(--nf-accent-soft);
  border: 1px solid rgba(18, 58, 90, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nf-cta-block h2 {
  margin: 0;
  color: var(--nf-accent-strong);
}

.nf-cta-block p {
  margin: 0 0 0.7rem;
  color: var(--nf-text-muted);
}

/* Big CTA panel (e.g. at bottom of home) */

.nf-cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem 2rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(18, 58, 90, 0.12), transparent 55%),
    var(--nf-accent);
  color: #e5e7eb;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.28);
}

.nf-cta-panel h3 {
  margin: 0 0 0.4rem;
  color: #ffffff;
}

.nf-cta-panel p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
}

.nf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================
   Forms
   ================================ */

.nf-form {
  display: grid;
  gap: 1rem;
}

.nf-form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nf-text-main);
}

.nf-form-group input,
.nf-form-group textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--nf-border-subtle);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.nf-form-group input:focus,
.nf-form-group textarea:focus {
  border-color: var(--nf-accent);
  box-shadow: 0 0 0 1px rgba(18, 58, 90, 0.12);
  background: #ffffff;
}

.nf-note {
  font-size: 0.8rem;
  color: var(--nf-text-muted);
}

/* ================================
   Testimonials
   ================================ */

.nf-testimonials {
  max-width: 900px;
}

.nf-testimonial-shell {
  position: relative;
  margin-top: 1.2rem;
  min-height: 210px;
}

.nf-testimonial-card {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 680px;
  padding: 1.4rem 1.6rem 1.5rem;
  border-radius: 1.3rem;
  background: var(--nf-surface);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: pointer;
}

.nf-testimonial-card::before {
  content: "“";
  position: absolute;
  top: -1.5rem;
  left: 1.4rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.35);
}

.nf-testimonial-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nf-testimonial-quote {
  margin: 0 0 1.1rem;
  font-size: 0.97rem;
  color: var(--nf-text-main);
}

.nf-testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.nf-testimonial-name {
  font-weight: 600;
  color: var(--nf-accent-strong);
}

.nf-testimonial-role {
  font-size: 0.82rem;
  color: var(--nf-text-muted);
}

.nf-testimonial-rating span {
  font-size: 1rem;
  color: #f59e0b;
}

.nf-testimonial-hint {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--nf-text-muted);
  text-align: center;
}

/* ================================
   Footer
   ================================ */

.nf-footer {
  border-top: 1px solid var(--nf-border-subtle);
  background: #f4f1ea;
  margin-top: 2rem;
}

.nf-footer-inner {
  padding: 1.7rem 0 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.nf-footer-text {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--nf-text-muted);
}

.nf-footer-text-small {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--nf-text-muted);
}

.nf-footer-contact p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

.nf-footer-contact a {
  color: var(--nf-accent-strong);
}

.nf-footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--nf-text-muted);
}

.nf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.nf-social a {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--nf-radius-pill);
  border: 1px solid rgba(18, 58, 90, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

/* ================================
   Animations helpers
   ================================ */

@keyframes nf-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nf-hero-text,
.nf-hero-card,
.nf-section {
  animation: nf-fade-up 0.6s ease-out;
}

.nf-hero-card {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.nf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.nf-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 960px) {
  .nf-hero-inner,
  .nf-process {
    grid-template-columns: minmax(0, 1fr);
  }

  .nf-hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .nf-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nf-section-header-center {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .nf-header-inner {
    padding-inline: 0;
  }

  .nf-nav {
    display: none;
  }

  .nf-hero {
    padding-top: 4.25rem;
  }

  .nf-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .nf-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .nf-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nf-cta-panel {
    padding: 1.5rem 1.4rem;
  }

  .nf-testimonial-card {
    padding: 1.2rem 1.2rem 1.3rem;
  }

  .nf-testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */

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