/* ==================================================================
   No1 London — shared page design system
   Loaded on every page, after main.css. All selectors are .n1-prefixed
   so nothing here can leak into the legacy Bexon components.
   ================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500&display=swap");

:root {
  --n1-red:    #C42424;
  --n1-red-d:  #A81C1C;
  --n1-blue:   #151A9A;
  --n1-navy:   #161133;
  --n1-soft:   #F3F4FB;
  --n1-line:   #E1E3EF;
  --n1-ink:    #161133;
  --n1-muted:  #6B7086;
  --n1-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --n1-serif:  'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* ---- shell -------------------------------------------------------- */
.n1-page {
  font-family: var(--n1-sans);
  color: var(--n1-ink);
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.n1-page *, .n1-page *::before, .n1-page *::after { box-sizing: border-box; }
.n1-page a { color: inherit; text-decoration: none; }
.n1-page img { max-width: 100%; display: block; }
.n1-page ul { list-style: none; margin: 0; padding: 0; }
.n1-page p { margin: 0; }
.n1-page h1, .n1-page h2, .n1-page h3, .n1-page h4 {
  font-family: var(--n1-sans);
  font-weight: 500;
  color: var(--n1-ink);
  margin: 0;
  letter-spacing: -0.015em;
}

.n1-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 1100px) { .n1-wrap { padding: 0 24px; } }
@media (max-width: 700px)  { .n1-wrap { padding: 0 16px; } }

.n1-section { padding: 76px 0; }
.n1-section--soft { background: var(--n1-soft); }
.n1-section--tight { padding: 56px 0; }
@media (max-width: 991px) { .n1-section { padding: 56px 0; } }

/* ---- shared bits -------------------------------------------------- */
.n1-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n1-red);
}

.n1-rule {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--n1-red);
  margin-bottom: 16px;
}

.n1-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.n1-sec-head h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
@media (max-width: 600px) { .n1-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; } }

.n1-more { font-size: 14px; color: var(--n1-red); white-space: nowrap; }
.n1-more:hover { text-decoration: underline; }

.n1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--n1-sans);
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.n1-btn--red   { background: var(--n1-red); color: #fff; }
.n1-btn--red:hover { background: var(--n1-red-d); color: #fff; }
.n1-btn--ghost { background: #fff; color: var(--n1-ink); border-color: var(--n1-line); }
.n1-btn--ghost:hover { border-color: var(--n1-ink); }
.n1-btn--onnavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.n1-btn--onnavy:hover { background: rgba(255,255,255,.1); color: #fff; }

.n1-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .n1-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .n1-grid-3 { grid-template-columns: 1fr; } }

/* ---- page header (replaces .tj-page-header) ----------------------- */
.n1-page-head {
  background: var(--n1-soft);
  border-bottom: 1px solid var(--n1-line);
  padding: 52px 0 46px;
}
.n1-page-head h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.n1-page-head .n1-rule { margin-bottom: 20px; }

/* breadcrumbs — Yoast is filtered to .tj-page-link in functions.php */
.n1-page-head .tj-page-link,
.n1-crumbs {
  font-size: 13px;
  color: var(--n1-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.n1-page-head .tj-page-link a,
.n1-crumbs a { color: var(--n1-muted); }
.n1-page-head .tj-page-link a:hover,
.n1-crumbs a:hover { color: var(--n1-red); }
.n1-page-head .tj-page-link i,
.n1-crumbs i { color: var(--n1-red); font-size: 10px; }

.n1-page-head__lead {
  color: var(--n1-muted);
  font-size: 15px;
  max-width: 60ch;
  margin-top: 14px;
}

/* ---- numbered process steps ---------------------------------------- */
.n1-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.n1-step__no {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--n1-red);
  padding-top: 14px;
  border-top: 3px solid var(--n1-red);
  margin-bottom: 10px;
}
.n1-step h3 { font-size: 16px; margin-bottom: 8px; }
.n1-step p { font-size: 13px; color: var(--n1-muted); }
@media (max-width: 991px) { .n1-process { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 600px) { .n1-process { grid-template-columns: 1fr; } }

.n1-divider { border: 0; border-top: 1px solid var(--n1-line); margin: 0; }

/* ---- media card (articles, services, projects) --------------------- */
.n1-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--n1-line);
  transition: border-color .18s ease;
}
.n1-card:hover { border-color: var(--n1-red); }

.n1-card__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--n1-soft);
}
.n1-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.n1-card:hover .n1-card__img img { transform: scale(1.04); }

.n1-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.n1-card__title { font-size: 18px; line-height: 1.3; }
.n1-card__title a:hover { color: var(--n1-red); }
.n1-card__desc { font-size: 14px; color: var(--n1-muted); }
.n1-card__meta {
  font-size: 12px;
  color: var(--n1-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.n1-card__meta a:hover { color: var(--n1-red); }
.n1-card__link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 14px;
  color: var(--n1-red);
}
.n1-card__link:hover { text-decoration: underline; }

/* ---- navy cta band ------------------------------------------------- */
.n1-cta {
  background: var(--n1-navy);
  color: #fff;
  padding: 64px 0;
}
.n1-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.n1-cta h2 {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
  margin: 0 0 18px;
}
.n1-cta p { color: rgba(255,255,255,.72); font-size: 14px; margin-bottom: 26px; }
.n1-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.n1-cta__media { aspect-ratio: 3 / 2; overflow: hidden; background: rgba(255,255,255,.06); }
.n1-cta__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) {
  .n1-cta__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- pagination ---------------------------------------------------- */
.n1-pagination { margin-top: 48px; display: flex; justify-content: center; }
.n1-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.n1-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--n1-line);
  border-radius: 2px;
  font-size: 14px;
  color: var(--n1-ink);
  background: #fff;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.n1-pagination .page-numbers:hover { border-color: var(--n1-ink); }
.n1-pagination .page-numbers.current {
  background: var(--n1-red);
  border-color: var(--n1-red);
  color: #fff;
}
.n1-pagination .page-numbers.dots { border-color: transparent; }

/* ---- empty state ---------------------------------------------------- */
.n1-empty {
  padding: 48px 0;
  color: var(--n1-muted);
  font-size: 15px;
}
