/* Homepage redesign (2026-10): calmer headings, section rhythm, featured project, process steps, contact column, rich footer.
   Loaded only on the homepage, after modern-home.css and nateo.css. New classes use the nx- prefix. */

.modern-home {
  --nx-navy: #172d43;
  --nx-ink: #10263a;
  --nx-muted: #526579;
  --nx-line: #d3dee7;
  --nx-soft: #eef3f7;
  --nx-paper: #fbfcfd;
}

/* --- Section rhythm: light / dark / light / white / light --- */
.modern-home #diensten,
.modern-home #over-ons { background: var(--nx-paper); }
.modern-home #templates,
.modern-home #faq { background: var(--nx-soft); }
.modern-home .parallax-section { border-bottom: 0; }
.modern-home .nx-section .section-content { padding-top: 104px; padding-bottom: 104px; }

/* --- Headings --- */
.nx-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.modern-home .section-title { max-width: 820px; }
.nx-accent { color: var(--accent); }
.nx-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--nx-muted);
  max-width: 660px;
  margin: 0;
}

/* --- Wat we doen: three pillars --- */
.nx-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.nx-pillar {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 32px 30px;
  transition: transform .2s, box-shadow .2s;
}
.nx-pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #1d3a5512; }
.nx-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #087f7814;
  margin-bottom: 22px;
}
.nx-pillar h3,
.nx-step h4,
.nx-subhead {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -.2px;
  color: var(--nx-navy);
}
.nx-pillar h3 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.nx-pillar p { font-size: 16px; line-height: 1.65; color: var(--nx-muted); margin: 0; }

/* --- Featured project (dark band) --- */
.modern-home .nx-dark, .modern-home #project.nx-dark { background: radial-gradient(ellipse at 100% 0, #087f7840, transparent 55%), var(--nx-ink); }
.nx-dark .section-title { color: #fff; }
.nx-dark .nx-kicker { color: #7fd8cf; }
.nx-dark .nx-lead { color: #c3d1dd; }
.nx-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
.nx-checks { list-style: none; margin: 28px 0 34px; padding: 0; }
.nx-checks li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 16px;
  color: #e3ebf2;
}
.nx-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #087f78 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.nx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.nx-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.nx-link:hover { text-decoration: underline; }
.nx-dark .nx-link { color: #9fe3da; }
.nx-project-shot {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px #00000059, 0 0 0 1px #ffffff1a;
  transform: perspective(1400px) rotateY(-6deg);
  transition: transform .4s;
}
.nx-project-shot:hover { transform: perspective(1400px) rotateY(0); }
.nx-browserbar { display: flex; gap: 6px; padding: 11px 14px; background: #eef2f5; }
.nx-browserbar i { width: 9px; height: 9px; border-radius: 50%; background: #c6d0d8; }
.nx-project-shot img { display: block; width: 100%; height: auto; }

/* --- Aanbod: calmer titles --- */
.modern-home .offer-title { text-transform: none; letter-spacing: -.5px; }
.modern-home .styles-title { text-transform: none; letter-spacing: -.5px; }
.modern-home .offer-cta { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* --- Over Nateo + werkwijze --- */
.nx-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.nx-about .section-title { margin-bottom: 0; }
.nx-about-text p { font-size: 18px; line-height: 1.7; color: var(--nx-muted); margin: 0 0 14px; }
.nx-about-text p:last-child { margin-bottom: 0; }
.nx-subhead { font-size: 22px; font-weight: 700; margin: 72px 0 26px; }
.nx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.nx-step { position: relative; padding-top: 26px; border-top: 2px solid var(--nx-line); }
.nx-step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.nx-step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #087f7814;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.nx-step h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.nx-step p { font-size: 15px; line-height: 1.6; color: var(--nx-muted); margin: 0; }

/* --- Contact: info column + form --- */
.modern-home #contact .section-content.nx-contact {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.modern-home #contact .nx-contact .contact-form-wrap { margin: 0; max-width: none; }
.nx-contact-list { list-style: none; margin: 34px 0 0; padding: 0; }
.nx-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--nx-line);
}
.nx-contact-list strong { color: var(--nx-navy); font-size: 16px; }
.nx-contact-list span { color: var(--nx-muted); font-size: 15px; }
.nx-contact-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.nx-contact-list a:hover { text-decoration: underline; }
.modern-home .btn-submit { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* --- Rich footer --- */
.modern-home .nx-footer { background: var(--nx-paper); border-top: 1px solid var(--nx-line); padding: 64px 32px 28px; text-align: left; }
.nx-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.nx-footer-logo { width: 150px; height: auto; margin-bottom: 14px; }
.nx-footer-brand p { color: var(--nx-muted); font-size: 15px; line-height: 1.6; max-width: 360px; margin: 0; }
.nx-footer-col { display: flex; flex-direction: column; gap: 10px; }
.nx-footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--nx-navy);
  margin: 0 0 4px;
}
.nx-footer-col a { color: var(--nx-muted); text-decoration: none; font-size: 15px; }
.nx-footer-col a:hover { color: var(--accent); }
.nx-footer-copy {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--nx-line);
  font-size: 13px;
  color: var(--nx-muted);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .nx-pillars { grid-template-columns: 1fr; }
  .nx-project,
  .nx-about,
  .modern-home #contact .section-content.nx-contact { grid-template-columns: 1fr; gap: 40px; }
  .nx-project-shot { transform: none; }
  .nx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .modern-home .nx-section .section-content { padding-top: 68px; padding-bottom: 68px; }
  .nx-lead { font-size: 17px; }
  .nx-steps { grid-template-columns: 1fr; }
  .nx-subhead { margin-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-pillar, .nx-project-shot { transition: none; }
  .nx-project-shot { transform: none; }
}

/* --- Fixes on top of Astra's base styles (footer was centred, some titles too light) --- */
.modern-home .nx-footer,
.modern-home .nx-footer p,
.modern-home .nx-footer a,
.modern-home .nx-footer h3 { text-align: left; letter-spacing: 0; }
.modern-home .nx-footer-col h3 { letter-spacing: 1.6px; }
.modern-home .nx-footer-col { align-items: flex-start; }
.modern-home .offer-title,
.modern-home .styles-title { font-weight: 700; color: var(--nx-navy); }
.modern-home .styles-title { font-size: 30px; }
.modern-home .templates-note { letter-spacing: 0; text-align: center; }
#templatemo-footer.nx-footer p,
#templatemo-footer.nx-footer a { letter-spacing: 0; text-transform: none; }

/* --- Wider layout on large screens (content used to stop at 1200px and looked centred/narrow) --- */
@media (min-width: 1400px) {
  .modern-home { --nx-max: min(1800px, calc(100vw - 200px)); }
  .modern-home .nav-container { max-width: calc(var(--nx-max) + 96px); padding: 0 48px; }
  .modern-home .section-content,
  .modern-home .section-content.content-wide { max-width: calc(var(--nx-max) + 96px); padding-left: 48px; padding-right: 48px; }
  .nx-footer-grid,
  .nx-footer-copy { max-width: var(--nx-max); }
  .modern-home .nx-footer { padding-left: 48px; padding-right: 48px; }
  .modern-home .modern-hero { gap: 96px; }
  .modern-home .section-title.hero-title { font-size: clamp(64px, 4.6vw, 88px); max-width: none; }
  .modern-home .hero-description { font-size: 20px; max-width: 600px; }
  .modern-home .section-title { font-size: clamp(48px, 3.3vw, 60px); max-width: 980px; }
  .nx-lead { font-size: 20px; max-width: 760px; }
  .nx-pillars { gap: 32px; }
  .nx-pillar { padding: 40px 38px; }
  .nx-project { gap: 96px; }
}

/* --- FAQ: heading left, questions right --- */
@media (min-width: 961px) {
  .modern-home #faq .section-content {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: 72px;
    align-items: start;
  }
  .nx-faq-head { position: sticky; top: 130px; }
  .modern-home #faq .faq-list { max-width: none; margin: 0; }
}
.nx-faq-head .nx-lead { font-size: 17px; }

/* --- Sub pages in the homepage theme (privacy) --- */
.modern-home .nav-links li:last-child a.nx-nav-contact {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; line-height: 1.4;
  padding: 10px 18px; border-radius: 999px; border: 1px solid #bdcdd9; background: #e5edf4; text-decoration: none;
}
.modern-home .nav-links li:last-child a.nx-nav-contact::after { display: none; content: none; }
.modern-home .nav-links li:last-child a.nx-nav-contact:hover { background: #087f78; border-color: #087f78; color: #fff; }
@media (min-width: 769px) { .modern-home .nav-links li:last-child a.nx-nav-contact { position: relative; top: -6px; } }

.nx-page-head {
  background: radial-gradient(ellipse at 85% 30%, #bce8e680, transparent 55%), radial-gradient(ellipse at 0% 100%, #d3e6fa70, transparent 50%), #f7fafc;
  border-bottom: 1px solid var(--nx-line);
}
.modern-home .nx-page-head .section-content { padding-top: 88px; padding-bottom: 72px; }
.nx-updated { margin: 22px 0 0; font-size: 14px; color: var(--nx-muted); }
.modern-home .nx-doc-wrap { background: var(--nx-paper); }
.modern-home .nx-doc-wrap .section-content { padding-top: 80px; padding-bottom: 96px; }

.nx-doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.nx-toc { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--nx-line); padding-left: 18px; }
.nx-toc-title { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--nx-navy); margin: 0 0 8px; }
.nx-toc a { color: var(--nx-muted); text-decoration: none; font-size: 15px; padding: 5px 0; }
.nx-toc a:hover { color: var(--accent); }
.nx-doc-body { max-width: 880px; }
.nx-doc-body section { padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--nx-line); scroll-margin-top: 120px; }
.nx-doc-body section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.nx-doc-body h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; letter-spacing: -.5px; text-transform: none; color: var(--nx-navy); margin: 0 0 14px; }
.nx-doc-body p, .nx-doc-body li { font-size: 17px; line-height: 1.75; color: #40566a; letter-spacing: 0; }
.nx-doc-body p { margin: 0 0 14px; }
.nx-doc-body ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.nx-doc-body li::marker { color: var(--accent); }
.nx-doc-body a { color: var(--accent); font-weight: 600; }
.nx-note { margin-top: 18px; padding: 16px 20px; border-radius: 14px; background: #087f7810; border: 1px solid #087f7830; color: #2c4a5c; font-size: 16px; line-height: 1.65; }
.nx-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.nx-providers div { background: #fff; border: 1px solid var(--nx-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.nx-providers strong { color: var(--nx-navy); font-size: 16px; }
.nx-providers span { color: var(--nx-muted); font-size: 15px; line-height: 1.55; }

/* --- Portfolio --- */
.modern-home .nx-case .section-content { padding-top: 96px; padding-bottom: 96px; }
.modern-home .nx-demos { background: var(--nx-paper); }
.nx-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.nx-demo {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nx-line); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s;
}
.nx-demo:hover { transform: translateY(-4px); box-shadow: 0 22px 50px #1d3a5516; }
.nx-demo-shot { display: block; background: var(--nx-soft); padding: 18px 18px 0; }
.nx-demo-shot .nx-browserbar { border-radius: 10px 10px 0 0; background: #fff; }
.nx-demo-shot img { display: block; width: 100%; height: auto; border-radius: 0; }
.nx-demo-body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; }
.nx-demo-meta { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.nx-demo-body strong { font-size: 21px; color: var(--nx-navy); }
.nx-demo-text { font-size: 15px; line-height: 1.6; color: var(--nx-muted); }
.nx-demo-body .nx-link { margin-top: 6px; }
.modern-home .nx-cta-band { background: radial-gradient(ellipse at 0 0, #afd8d660, transparent 65%), #e2eaf2; }
.nx-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.nx-cta-inner .section-title { margin-bottom: 10px; }

@media (max-width: 960px) {
  .nx-demo-grid { grid-template-columns: 1fr; max-width: 560px; }
  .nx-doc { grid-template-columns: 1fr; gap: 32px; }
  .nx-toc { position: static; }
}
@media (max-width: 560px) {
  .nx-providers { grid-template-columns: 1fr; }
  .nx-doc-body h2 { font-size: 24px; }
}
