:root {
  --nm-navy: #223a5c;
  --nm-orange: #f59a33;
  --nm-orange-dark: #d57d1d;
  --nm-text: #213246;
  --nm-muted: #6b7785;
  --nm-light: #f1f1f1;
  --nm-white: #ffffff;
  --nm-shadow: 0 16px 40px rgba(18, 36, 61, 0.12);
  --nm-radius: 4px;
  --nm-wrap: 1120px;
}

html {
  scroll-behavior: smooth;
}

body.newton-moving-theme,
body.newton-moving-theme button,
body.newton-moving-theme input,
body.newton-moving-theme select,
body.newton-moving-theme textarea {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--nm-text);
}

body.newton-moving-theme {
  background: var(--nm-white);
}

body.newton-moving-theme h1,
body.newton-moving-theme h2,
body.newton-moving-theme h3,
body.newton-moving-theme h4,
body.newton-moving-theme h5,
body.newton-moving-theme h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nm-navy);
}

body.newton-moving-theme p {
  line-height: 1.8;
}

.site-header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.site-header .site-branding,
.site-header .site-navigation,
.site-header .site-header-inner,
header.site-header .site-header-inner {
  min-height: 84px;
}

.site-header .custom-logo-link img,
.site-header .site-branding img.custom-logo {
  max-height: 56px;
  width: auto;
}

.site-navigation ul.menu,
.site-navigation ul.menu li,
.site-navigation ul.menu a,
.site-navigation-dropdown ul.menu a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
}

.site-navigation ul.menu a,
.site-navigation-dropdown ul.menu a {
  color: var(--nm-navy);
}

.site-navigation ul.menu a:hover,
.site-navigation ul.menu li.current-menu-item > a,
.site-navigation-dropdown ul.menu a:hover {
  color: var(--nm-orange);
}

.site-navigation .menu-item-has-children:after {
  color: var(--nm-navy);
}

.site-footer {
  display: none;
}

.entry-title,
.page-header {
  display: none;
}

.site-main .page-content,
.site-main article .entry-content,
.site-main .entry-content {
  margin-top: 0;
}

.nm-wrap {
  max-width: var(--nm-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.nm-hero {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(110,63,20,0.72) 0%, rgba(34,58,92,0.22) 28%, rgba(34,58,92,0.08) 52%, rgba(34,58,92,0.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.18)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900" viewBox="0 0 1600 900"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="%23506a86"/><stop offset="1" stop-color="%23243c5d"/></linearGradient></defs><rect width="1600" height="900" fill="url(%23g)"/><circle cx="1180" cy="350" r="270" fill="rgba(255,255,255,.06)"/><circle cx="1380" cy="180" r="160" fill="rgba(245,154,51,.17)"/><rect x="860" y="170" width="500" height="370" rx="28" fill="rgba(255,255,255,.08)"/><rect x="914" y="220" width="392" height="118" rx="14" fill="rgba(34,58,92,.55)"/><text x="955" y="297" font-size="64" font-family="Arial" font-weight="700" fill="white">IMAGE</text></svg>') center/cover no-repeat;
}

.nm-hero__overlay {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.nm-hero__content {
  max-width: 630px;
  padding: 96px 0 82px;
}

.nm-kicker {
  display: inline-block;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.nm-hero h1 {
  color: var(--nm-white);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 4px 14px rgba(0,0,0,.28);
}

.nm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 11px 16px;
  background: rgba(34,58,92,.92);
  color: var(--nm-white);
  border-left: 4px solid var(--nm-orange);
  border-radius: var(--nm-radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nm-intro,
.nm-section,
.nm-services,
.nm-process,
.nm-cta,
.nm-site-footer-note,
.nm-highlight {
  position: relative;
}

.nm-intro,
.nm-section,
.nm-process {
  padding: 82px 0;
}

.nm-intro {
  background: var(--nm-navy);
  color: rgba(255,255,255,.92);
}

.nm-intro h2,
.nm-intro h3,
.nm-intro strong,
.nm-intro p,
.nm-highlight h2,
.nm-highlight p,
.nm-cta h2,
.nm-cta p,
.nm-site-footer-note p,
.nm-site-footer-note strong {
  color: inherit;
}

.nm-intro h2 {
  color: var(--nm-white);
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 26px;
}

.nm-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 54px;
  align-items: center;
}

.nm-form-placeholder {
  position: relative;
  background: linear-gradient(120deg, #f3f3f3 0 53%, #f59a33 53% 100%);
  padding: 36px 34px;
  box-shadow: var(--nm-shadow);
  color: var(--nm-navy);
  min-height: 320px;
  clip-path: polygon(0 0, 88% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}

.nm-form-placeholder h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 28px;
}

.nm-form-placeholder p {
  max-width: 380px;
  color: var(--nm-navy);
}

.nm-form-placeholder code {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(34,58,92,.92);
  color: #fff;
  border-radius: var(--nm-radius);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.nm-services {
  padding: 84px 0 90px;
  background: #f6f6f6;
}

.nm-services h2,
.nm-process h2,
.nm-section h2,
.nm-cta h2 {
  text-align: center;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
}

.nm-services h2::after,
.nm-process h2::after,
.nm-section h2::after,
.nm-cta h2::after {
  content: '';
  display: block;
  width: 122px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--nm-orange);
}

.nm-grid {
  display: grid;
  gap: 28px;
}

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

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

.nm-card,
.nm-process-card {
  background: var(--nm-white);
  box-shadow: var(--nm-shadow);
  border-bottom: 6px solid var(--nm-navy);
  transition: transform .22s ease, box-shadow .22s ease;
}

.nm-card:hover,
.nm-process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(18,36,61,.18);
}

.nm-card h3,
.nm-process-card h3 {
  margin: 0;
  padding: 18px 22px 8px;
  font-size: 20px;
}

.nm-card p,
.nm-process-card p {
  margin: 0;
  padding: 0 22px 24px;
  color: #425061;
  font-size: 15px;
}

.nm-placeholder {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(34,58,92,.04), rgba(34,58,92,.16)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.35) 18px, rgba(245,154,51,.18) 18px, rgba(245,154,51,.18) 36px),
    linear-gradient(135deg, #ddd 0%, #bbb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--nm-navy);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nm-placeholder-tall {
  min-height: 420px;
}

.nm-highlight {
  padding: 34px 0;
  background: linear-gradient(90deg, var(--nm-orange) 0%, #f8a23c 100%);
  color: var(--nm-navy);
}

.nm-highlight .nm-wrap {
  max-width: 960px;
}

.nm-highlight p,
.nm-highlight h2 {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.nm-highlight h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.nm-process > .nm-wrap > p,
.nm-section > .nm-wrap > p {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
  color: #445367;
}

.nm-cta {
  padding: 92px 0;
  background:
    linear-gradient(180deg, rgba(245,154,51,.78), rgba(215,129,33,.78)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900"><rect width="1600" height="900" fill="%23d48b35"/><g fill="none" stroke="rgba(255,255,255,.18)" stroke-width="3"><path d="M120 0v900"/><path d="M460 0v900"/><path d="M920 0v900"/><path d="M1360 0v900"/><path d="M0 210h1600"/><path d="M0 600h1600"/></g></svg>') center/cover no-repeat;
  color: var(--nm-white);
}

.nm-cta__grid {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 36px;
  align-items: center;
}

.nm-cta__actions {
  display: flex;
  justify-content: center;
}

.nm-btn,
button,
input[type='submit'],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--nm-radius);
  background: var(--nm-navy);
  color: var(--nm-white);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(18,36,61,.18);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.nm-btn:hover,
button:hover,
input[type='submit']:hover,
.wp-block-button__link:hover {
  background: var(--nm-orange);
  color: var(--nm-white);
  transform: translateY(-2px);
}

.nm-map-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #e9edf2 0%, #ccd5df 100%);
  border: 1px solid rgba(34,58,92,.08);
  box-shadow: var(--nm-shadow);
  color: var(--nm-navy);
}

.nm-site-footer-note {
  padding: 52px 0;
  background: var(--nm-navy);
  color: rgba(255,255,255,.92);
  text-align: center;
}

.nm-site-footer-note .nm-small {
  opacity: .72;
  font-size: 12px;
}

.nm-sticky-call {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .2s ease, transform .2s ease;
}

.nm-sticky-call.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nm-sticky-call {
  justify-content: center;
  background: var(--nm-orange);
  color: var(--nm-navy);
  font-weight: 800;
  text-decoration: none;
  padding: 15px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(18,36,61,.28);
}

.nm-sticky-call:hover {
  color: var(--nm-white);
  background: var(--nm-navy);
}

@media (max-width: 1024px) {
  .nm-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-two-col,
  .nm-cta__grid {
    grid-template-columns: 1fr;
  }

  .nm-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .nm-wrap {
    padding: 0 18px;
  }

  .nm-hero {
    min-height: 360px;
  }

  .nm-hero__content {
    padding: 74px 0 58px;
  }

  .nm-intro,
  .nm-section,
  .nm-process,
  .nm-services,
  .nm-cta {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .nm-grid-4,
  .nm-grid-2 {
    grid-template-columns: 1fr;
  }

  .nm-form-placeholder {
    clip-path: none;
    min-height: 240px;
  }

  .nm-placeholder-tall {
    min-height: 260px;
  }

  .nm-card h3,
  .nm-process-card h3 {
    font-size: 18px;
  }

  .site-header .site-branding,
  .site-header .site-navigation,
  .site-header .site-header-inner,
  header.site-header .site-header-inner {
    min-height: 72px;
  }
}
