/**
 * networks.design — Theme design system & layout
 * Loaded both by the WordPress theme and the static preview.
 * -------------------------------------------------------------
 * Sections:
 *   1. Design tokens (CSS custom properties)
 *   2. Reset / base
 *   3. Typography
 *   4. Layout helpers
 *   5. Buttons
 *   6. Header / navigation
 *   7. Hero
 *   8. Services
 *   9. Projects
 *  10. Why us
 *  11. Partners
 *  12. CTA
 *  13. Footer
 *  14. Utilities / animations
 *  15. Responsive
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --nd-bg:            #080808;
  --nd-bg-2:          #111111;
  --nd-light:         #f6f6f4;
  --nd-light-2:       #ffffff;
  --nd-text-dark-bg:  #ffffff;
  --nd-text-light-bg: #151515;
  --nd-text-muted:    #8a8a8a;
  --nd-accent:        #c7ff00;
  --nd-accent-600:    #b2e600;
  --nd-border-dark:   rgba(255, 255, 255, 0.12);
  --nd-border-light:  #e3e3e3;

  /* Typography */
  --nd-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;

  /* Spacing / rhythm */
  --nd-container: 1320px;
  --nd-gutter: clamp(20px, 4vw, 48px);
  --nd-section-y: clamp(64px, 8vw, 112px);

  /* Radius */
  --nd-radius-sm: 10px;
  --nd-radius-md: 16px;
  --nd-radius-lg: 22px;
  --nd-radius-pill: 999px;

  /* Motion */
  --nd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nd-dur: 0.45s;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nd-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nd-text-light-bg);
  background: var(--nd-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--nd-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.nd-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}

.nd-h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.nd-h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.nd-h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.nd-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--nd-text-muted);
  max-width: 46ch;
}

.nd-accent-text { color: var(--nd-accent); }

/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */
.nd-container {
  width: 100%;
  max-width: var(--nd-container);
  margin-inline: auto;
  padding-inline: var(--nd-gutter);
}

.nd-section { padding-block: var(--nd-section-y); }
.nd-section--light { background: var(--nd-light); color: var(--nd-text-light-bg); }
.nd-section--light-2 { background: var(--nd-light-2); color: var(--nd-text-light-bg); }
.nd-section--dark { background: var(--nd-bg); color: var(--nd-text-dark-bg); }

.nd-section-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.nd-btn {
  --_bg: var(--nd-accent);
  --_fg: #0c0c0c;
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  color: var(--_fg);
  background: var(--_bg);
  border: 1.5px solid var(--_bd);
  border-radius: var(--nd-radius-pill);
  cursor: pointer;
  transition: transform var(--nd-dur) var(--nd-ease),
              background-color var(--nd-dur) var(--nd-ease),
              color var(--nd-dur) var(--nd-ease),
              border-color var(--nd-dur) var(--nd-ease);
}
.nd-btn svg { width: 1.05em; height: 1.05em; }
.nd-btn:hover { transform: translateY(-2px); }
.nd-btn:active { transform: translateY(0); }

.nd-btn--primary:hover { background: var(--nd-accent-600); }

.nd-btn--ghost {
  --_bg: transparent;
  --_fg: currentColor;
  --_bd: var(--nd-border-dark);
}
.nd-btn--ghost:hover { --_bd: var(--nd-accent); color: var(--nd-accent); }

.nd-btn--dark {
  --_bg: transparent;
  --_fg: var(--nd-text-light-bg);
  --_bd: var(--nd-border-light);
}
.nd-btn--dark:hover { --_bd: #151515; }

.nd-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: inherit;
}
.nd-link-arrow svg {
  width: 1.1em; height: 1.1em; color: var(--nd-accent);
  transition: transform var(--nd-dur) var(--nd-ease);
}
.nd-link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   6. HEADER / NAVIGATION
   ============================================================ */
.nd-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color var(--nd-dur) var(--nd-ease),
              border-color var(--nd-dur) var(--nd-ease),
              backdrop-filter var(--nd-dur) var(--nd-ease);
  border-bottom: 1px solid transparent;
}
.nd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.nd-header.is-scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--nd-border-dark);
}

.nd-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nd-logo__mark { width: 34px; height: 34px; color: var(--nd-accent); }
.nd-logo b { font-weight: 800; }

.nd-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nd-nav__list { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nd-nav__list a {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 6px;
  transition: color var(--nd-dur) var(--nd-ease);
}
.nd-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--nd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--nd-dur) var(--nd-ease);
}
.nd-nav__list a:hover,
.nd-nav__list .current-menu-item > a,
.nd-nav__list a[aria-current="page"] { color: #fff; }
.nd-nav__list a:hover::after,
.nd-nav__list .current-menu-item > a::after,
.nd-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nd-header .nd-btn { color: #0c0c0c; }

/* Burger */
.nd-burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--nd-border-dark);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nd-burger span,
.nd-burger span::before,
.nd-burger span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  transition: transform var(--nd-dur) var(--nd-ease),
              opacity var(--nd-dur) var(--nd-ease);
}
.nd-burger span { position: relative; }
.nd-burger span::before { position: absolute; top: -6px; }
.nd-burger span::after { position: absolute; top: 6px; }

/* Mobile drawer */
.nd-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--nd-bg);
  padding: 100px var(--nd-gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--nd-dur) var(--nd-ease);
  visibility: hidden;
}
.nd-mobile.is-open { transform: translateX(0); visibility: visible; }
.nd-mobile a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--nd-border-dark);
}
.nd-mobile .nd-btn { margin-top: 24px; justify-content: center; }
body.nd-no-scroll { overflow: hidden; }

/* ============================================================
   7. HERO
   ============================================================ */
.nd-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  background: var(--nd-bg);
  color: #fff;
  overflow: hidden;
  padding-top: 84px;
}
.nd-hero__media {
  position: absolute;
  inset: 0 0 0 40%;
}
.nd-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.nd-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--nd-bg) 0%, rgba(8,8,8,0.65) 28%, rgba(8,8,8,0.15) 100%);
}
.nd-hero__inner { position: relative; z-index: 2; }
.nd-hero__content { max-width: 640px; }
.nd-hero .nd-eyebrow { margin-bottom: 22px; letter-spacing: 0.2em; }
.nd-hero__title { margin-bottom: 26px; }
.nd-hero__lead { margin-bottom: 38px; color: rgba(255,255,255,0.72); }
.nd-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.nd-hero .nd-btn--ghost { color: #fff; }

/* Decorative lines */
.nd-hero__lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}
.nd-hero__lines path { fill: none; stroke: var(--nd-accent); stroke-width: 1.2; opacity: 0.5; }

/* ============================================================
   8. SERVICES
   ============================================================ */
.nd-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.nd-service {
  padding: 4px;
}
.nd-service__icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-md);
  background: #fff;
  margin-bottom: 22px;
  transition: border-color var(--nd-dur) var(--nd-ease),
              box-shadow var(--nd-dur) var(--nd-ease);
}
.nd-service__icon svg { width: 28px; height: 28px; color: #151515; }
.nd-service:hover .nd-service__icon {
  border-color: var(--nd-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.nd-service h3 { margin-bottom: 10px; font-size: 1.2rem; }
.nd-service p { margin: 0; color: var(--nd-text-muted); font-size: 0.96rem; }

/* ============================================================
   9. PROJECTS
   ============================================================ */
.nd-projects {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.nd-projects__intro { position: sticky; top: 110px; }
.nd-projects__intro h2 { margin-bottom: 28px; }

.nd-projects__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.nd-projects__track::-webkit-scrollbar { display: none; }

.nd-project-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--nd-radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 3.4;
  background: var(--nd-bg-2);
  isolation: isolate;
}
.nd-project-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--nd-ease);
}
.nd-project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0) 35%, rgba(8,8,8,0.9) 100%);
  z-index: 1;
}
.nd-project-card:hover img { transform: scale(1.06); }
.nd-project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
}
.nd-project-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nd-accent);
  margin-bottom: 10px;
}
.nd-project-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.nd-project-card p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.nd-project-card__link {
  position: absolute;
  right: 20px; bottom: 20px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--nd-accent);
}
.nd-project-card__link svg { width: 20px; height: 20px; }

.nd-projects__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.nd-projects__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--nd-border-light);
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color var(--nd-dur) var(--nd-ease),
              color var(--nd-dur) var(--nd-ease);
}
.nd-projects__nav button:hover { border-color: var(--nd-accent); color: var(--nd-accent); }
.nd-projects__nav button svg { width: 18px; height: 18px; }

/* ============================================================
   10. WHY US
   ============================================================ */
.nd-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.nd-why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--nd-border-dark);
  border-radius: var(--nd-radius-md);
  overflow: hidden;
}
.nd-stat { padding: 32px; background: var(--nd-bg-2); }
.nd-stat__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--nd-accent); }
.nd-stat__label { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-top: 6px; }

/* ============================================================
   11. PARTNERS
   ============================================================ */
.nd-partners { background: var(--nd-bg); }
.nd-partners__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  padding-block: clamp(30px, 4vw, 44px);
}
.nd-partners__logo {
  color: rgba(255,255,255,0.5);
  filter: grayscale(1);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: color var(--nd-dur) var(--nd-ease), filter var(--nd-dur) var(--nd-ease);
}
.nd-partners__logo:hover { color: #fff; filter: grayscale(0); }
.nd-partners__logo img { height: 30px; width: auto; opacity: 0.6; transition: opacity var(--nd-dur) var(--nd-ease); }
.nd-partners__logo:hover img { opacity: 1; }

/* ============================================================
   12. CTA
   ============================================================ */
.nd-cta { background: var(--nd-bg-2); color: #fff; text-align: center; }
.nd-cta__inner { max-width: 720px; margin-inline: auto; }
.nd-cta h2 { margin-bottom: 20px; }
.nd-cta p { color: rgba(255,255,255,0.7); margin-bottom: 34px; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.nd-footer { background: var(--nd-bg); color: rgba(255,255,255,0.7); }
.nd-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}
.nd-footer__about p { margin: 18px 0 0; max-width: 34ch; }
.nd-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.nd-footer__links li + li { margin-top: 12px; }
.nd-footer__links a { transition: color var(--nd-dur) var(--nd-ease); }
.nd-footer__links a:hover { color: var(--nd-accent); }
.nd-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--nd-border-dark);
  font-size: 0.86rem;
}
.nd-footer__social { display: flex; gap: 14px; }
.nd-footer__social a {
  width: 40px; height: 40px;
  border: 1px solid var(--nd-border-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color var(--nd-dur) var(--nd-ease), color var(--nd-dur) var(--nd-ease);
}
.nd-footer__social a:hover { border-color: var(--nd-accent); color: var(--nd-accent); }
.nd-footer__social svg { width: 18px; height: 18px; }

/* ============================================================
   14. UTILITIES / ANIMATIONS
   ============================================================ */
.nd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--nd-ease), transform 0.7s var(--nd-ease);
}
.nd-reveal.is-visible { opacity: 1; transform: none; }

.nd-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nd-accent);
  color: #0c0c0c;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.nd-skip-link:focus { left: 0; }

/* Filter buttons (project archive) */
.nd-btn.is-active {
  background: #151515;
  color: #fff;
  border-color: #151515;
}

/* Long-form content (pages, single project/service) */
.nd-content { font-size: 1.02rem; line-height: 1.75; }
.nd-content > * + * { margin-top: 1.1em; }
.nd-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.nd-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.nd-content ul, .nd-content ol { padding-left: 1.3em; }
.nd-content ul { list-style: disc; }
.nd-content ol { list-style: decimal; }
.nd-content li + li { margin-top: 0.4em; }
.nd-content a { color: var(--nd-text-light-bg); text-decoration: underline; text-decoration-color: var(--nd-accent-600); text-underline-offset: 3px; }
.nd-content img { border-radius: var(--nd-radius-sm); }
.nd-content blockquote {
  margin: 1.4em 0; padding-left: 1.2em;
  border-left: 3px solid var(--nd-accent); color: var(--nd-text-muted);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.nd-prose { max-width: 760px; }
.nd-prose p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; margin: 0 0 1.1em; }
.nd-prose p:last-child { margin-bottom: 0; }

.nd-negatives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.nd-negative {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-md);
  background: #fff;
}
.nd-negative__x {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--nd-bg-2);   /* dark chip so the lime mark reads on white */
}
.nd-negative__x svg { width: 17px; height: 17px; color: var(--nd-accent); }
.nd-negative strong { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }

.nd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nd-chip {
  padding: 9px 18px;
  border: 1px solid var(--nd-border-dark);
  border-radius: var(--nd-radius-pill);
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

.nd-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.nd-value {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-md);
}
.nd-value svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--nd-accent-600); margin-top: 1px; }
.nd-value b { font-weight: 600; }

@media (max-width: 860px) {
  .nd-negatives { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.nd-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.nd-svc-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-md);
  background: #fff;
}
.nd-svc-card__mark { color: var(--nd-accent-600); margin-bottom: 14px; line-height: 0; }
.nd-svc-card__mark svg { width: 26px; height: 26px; }
.nd-svc-card h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 0 0 10px; }
.nd-svc-card > p { color: var(--nd-text-muted); margin: 0; }

.nd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nd-tag {
  padding: 6px 13px;
  border-radius: var(--nd-radius-pill);
  background: var(--nd-light);
  border: 1px solid var(--nd-border-light);
  font-size: 0.83rem;
  color: #3a3a3a;
}

.nd-support {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 12px 44px; align-items: baseline;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-md);
  background: var(--nd-light-2);
}
.nd-support h3 { font-size: 1.3rem; flex: 0 0 auto; }
.nd-support p { margin: 0; color: var(--nd-text-muted); max-width: 62ch; }

.nd-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 680px;
}
.nd-step { display: flex; gap: 14px; align-items: flex-start; }
.nd-step__mark { flex: 0 0 auto; color: var(--nd-accent); line-height: 0; margin-top: 1px; }
.nd-step__mark svg { width: 22px; height: 22px; }
.nd-step p { margin: 0; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 860px) {
  .nd-svc-grid { grid-template-columns: 1fr; }
  .nd-support { flex-direction: column; gap: 12px; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.nd-contact {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.nd-contact__info { display: grid; gap: 26px; }
.nd-contact__row { display: flex; gap: 14px; align-items: flex-start; }
.nd-contact__row svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--nd-accent-600); margin-top: 2px; }
.nd-contact__row dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nd-text-muted); margin-bottom: 3px; }
.nd-contact__row dd { margin: 0; font-weight: 600; }
.nd-contact__row dd a { text-decoration: none; }
.nd-contact__row dd a:hover { color: var(--nd-accent-600); }

.nd-contact__form-wrap {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--nd-border-light);
  border-radius: var(--nd-radius-lg);
  background: #fff;
}

/* Fluent Forms — theme skin (scoped, robust to markup) */
.nd-contact-form .ff-el-group,
.nd-contact-form .ff_row_col,
.nd-contact-form p { margin-bottom: 18px; }
.nd-contact-form label,
.nd-contact-form .ff-el-input--label label {
  font-weight: 600; font-size: 0.9rem; color: var(--nd-text-light-bg);
  display: inline-block; margin-bottom: 7px;
}
.nd-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.nd-contact-form textarea,
.nd-contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--nd-border-light);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--nd-text-light-bg);
  transition: border-color var(--nd-dur) var(--nd-ease), box-shadow var(--nd-dur) var(--nd-ease);
}
.nd-contact-form textarea { min-height: 130px; resize: vertical; }
.nd-contact-form input:focus,
.nd-contact-form textarea:focus,
.nd-contact-form select:focus {
  outline: none;
  border-color: var(--nd-accent-600);
  box-shadow: 0 0 0 3px rgba(199, 255, 0, 0.28);
}
/* Triple class raises specificity above Fluent Forms' own !important skin. */
.nd-contact-form button[type="submit"],
.nd-contact-form input[type="submit"],
.nd-contact-form .ff-btn-submit.ff-btn-submit.ff-btn-submit {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0.75em 1.7em;
  background: var(--nd-accent) !important;
  color: #0c0c0c !important;
  border: none !important;
  border-radius: var(--nd-radius-pill) !important;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--nd-dur) var(--nd-ease), transform var(--nd-dur) var(--nd-ease);
}
.nd-contact-form button[type="submit"]:hover,
.nd-contact-form .ff-btn-submit.ff-btn-submit.ff-btn-submit:hover {
  background: var(--nd-accent-600) !important;
  transform: translateY(-2px);
}
.nd-contact-form .ff-el-form-check label,
.nd-contact-form .ff-el-checkbox label { font-weight: 400; font-size: 0.9rem; color: var(--nd-text-muted); }

@media (max-width: 860px) {
  .nd-contact { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-links .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--nd-border-light); border-radius: 10px;
  transition: border-color var(--nd-dur) var(--nd-ease), color var(--nd-dur) var(--nd-ease);
}
.nav-links .page-numbers:hover { border-color: var(--nd-accent); }
.nav-links .page-numbers.current { background: #151515; color: #fff; border-color: #151515; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .nd-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nd-services__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .nd-projects { grid-template-columns: 1fr; }
  .nd-projects__intro { position: static; }
  .nd-why__grid { grid-template-columns: 1fr; }
  .nd-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nd-nav { display: none; }
  .nd-burger { display: grid; }
  .nd-hero { padding-top: 100px; padding-bottom: 60px; min-height: auto; }
  .nd-hero__media { position: absolute; inset: 0; opacity: 0.28; }
  .nd-hero__media::before { background: linear-gradient(180deg, rgba(8,8,8,0.4), var(--nd-bg)); }
  .nd-hero__content { max-width: 100%; }
  .nd-hero__actions .nd-btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  .nd-services__grid { grid-template-columns: 1fr; }
  .nd-why__stats { grid-template-columns: 1fr 1fr; }
  .nd-footer__top { grid-template-columns: 1fr; }
  .nd-partners__inner { justify-content: center; }
}
