/**
 * NAVEEN — main stylesheet (mobile-first).
 */

:root {
  --ns-accent: #1d4ed8;
  --ns-accent-dark: #0b2a6b;
  --ns-ink: #0f172a;
  --ns-body: #475069;
  --ns-muted-bg: #f4f6fb;
  --ns-line: #e2e7f2;
  --ns-white: #ffffff;
  --ns-radius: 14px;
  --ns-radius-lg: 22px;
  --ns-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 30px rgba(15, 23, 42, 0.06);
  --ns-shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12);
  --ns-max: 1140px;
  --ns-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--ns-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ns-body);
  background: var(--ns-white);
  overflow-x: hidden;
}

img,
svg,
iframe,
video {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ns-ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--ns-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.ns-container {
  width: 100%;
  max-width: var(--ns-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.ns-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.ns-btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

.ns-btn--primary {
  background: var(--ns-accent);
  color: var(--ns-white);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}

.ns-btn--primary:hover {
  background: var(--ns-accent-dark);
  color: var(--ns-white);
}

.ns-btn--outline {
  background: transparent;
  border-color: var(--ns-line);
  color: var(--ns-ink);
}

.ns-btn--outline:hover {
  border-color: var(--ns-accent);
  color: var(--ns-accent);
}

.ns-btn--light {
  background: var(--ns-white);
  color: var(--ns-accent-dark);
}

.ns-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ns-white);
}

.ns-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ns-white);
}

.ns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.ns-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.ns-icon--sm {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--ns-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ns-ink);
  letter-spacing: -0.02em;
}

.site-title:hover {
  text-decoration: none;
  color: var(--ns-accent);
}

.site-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ns-body);
}

.custom-logo {
  max-height: 52px;
  width: auto;
}

.ns-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ns-white);
  border: 1px solid var(--ns-line);
  border-radius: 12px;
  cursor: pointer;
}

.ns-menu-toggle__bars,
.ns-menu-toggle__bars::before,
.ns-menu-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ns-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ns-menu-toggle__bars {
  position: relative;
}

.ns-menu-toggle__bars::before,
.ns-menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.ns-menu-toggle__bars::before {
  top: -6px;
}

.ns-menu-toggle__bars::after {
  top: 6px;
}

.ns-menu-toggle[aria-expanded="true"] .ns-menu-toggle__bars {
  background: transparent;
}

.ns-menu-toggle[aria-expanded="true"] .ns-menu-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.ns-menu-toggle[aria-expanded="true"] .ns-menu-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.main-navigation {
  display: none;
  width: 100%;
  padding-bottom: 18px;
}

.main-navigation.is-open {
  display: block;
}

.ns-menu,
.ns-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-menu > li > a,
.ns-menu a {
  display: block;
  padding: 12px 4px;
  color: var(--ns-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ns-line);
}

.ns-menu a:hover,
.ns-menu .current-menu-item > a {
  color: var(--ns-accent);
  text-decoration: none;
}

.main-navigation__cta {
  margin-top: 14px;
}

.main-navigation__cta .ns-btn {
  width: 100%;
}

/* ---------- Sections ---------- */
.ns-section {
  padding: 62px 0;
}

.ns-section--muted {
  background: var(--ns-muted-bg);
}

.ns-section__head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.ns-section__title {
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
}

.ns-section__text {
  margin: 0;
  font-size: 1.03rem;
}

.ns-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ns-accent);
}

/* ---------- Hero ---------- */
.ns-hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(29, 78, 216, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ns-muted-bg), var(--ns-white));
  padding: 56px 0 62px;
}

.ns-hero__inner {
  display: grid;
  gap: 34px;
}

.ns-hero__title {
  font-size: clamp(2rem, 7vw, 3.25rem);
  margin-bottom: 16px;
}

.ns-hero__text {
  font-size: 1.1rem;
  max-width: 34em;
}

.ns-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.ns-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.ns-hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ns-ink);
  font-weight: 600;
}

.ns-hero__meta svg {
  color: var(--ns-accent);
}

.ns-hero__media img,
.ns-hero__placeholder {
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
  width: 100%;
}

.ns-hero__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 260px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(140deg, var(--ns-accent), var(--ns-accent-dark));
  color: rgba(255, 255, 255, 0.9);
}

.ns-hero__placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.ns-hero__monogram {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

/* ---------- Grids and cards ---------- */
.ns-grid {
  display: grid;
  gap: 20px;
}

.ns-card {
  background: var(--ns-white);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-lg);
  padding: 26px;
  box-shadow: var(--ns-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ns-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ns-shadow-hover);
}

.ns-card--plain {
  box-shadow: none;
}

.ns-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--ns-accent);
  color: #fff;
}

.ns-card__icon--soft {
  background: rgba(29, 78, 216, 0.1);
  color: var(--ns-accent);
}

.ns-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ns-card__text {
  margin-bottom: 14px;
}

/* ---------- Split sections ---------- */
.ns-split {
  display: grid;
  gap: 30px;
  align-items: center;
}

.ns-media-placeholder {
  min-height: 260px;
  border-radius: var(--ns-radius-lg);
  background: linear-gradient(140deg, rgba(29, 78, 216, 0.18), rgba(11, 42, 107, 0.28));
}

.ns-split__media img {
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
  width: 100%;
}

.ns-prose > :last-child {
  margin-bottom: 0;
}

/* ---------- CTA ---------- */
.ns-cta {
  padding: 54px 0;
  background: linear-gradient(120deg, var(--ns-accent-dark), var(--ns-accent));
  color: rgba(255, 255, 255, 0.92);
}

.ns-cta__inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.ns-cta__title {
  color: #fff;
  font-size: clamp(1.6rem, 4.6vw, 2.2rem);
  margin-bottom: 8px;
}

.ns-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.ns-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Contact ---------- */
.ns-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ns-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ns-ink);
}

.ns-contact-list svg {
  color: var(--ns-accent);
}

.ns-form {
  background: var(--ns-white);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-lg);
  padding: 24px;
  box-shadow: var(--ns-shadow);
}

.ns-field {
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.ns-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ns-ink);
}

.ns-field input,
.ns-field textarea,
.ns-search-form input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ns-ink);
  background: var(--ns-white);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius);
}

.ns-field input:focus,
.ns-field textarea:focus {
  border-color: var(--ns-accent);
}

.ns-field--submit {
  margin-bottom: 0;
}

.ns-form-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--ns-radius);
  font-size: 0.94rem;
}

.ns-form-notice--success {
  background: #e8f7ee;
  color: #14663a;
}

.ns-form-notice--error {
  background: #fdecec;
  color: #9b1c1c;
}

/* ---------- Blog ---------- */
.ns-page-head {
  padding: 46px 20px 10px;
  text-align: center;
}

.ns-page-title {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  margin-bottom: 10px;
}

.ns-page-subtitle {
  margin: 0 auto 14px;
  max-width: 640px;
}

.ns-page-head .ns-search-form {
  max-width: 480px;
  margin: 18px auto 0;
}

.ns-search-form {
  display: flex;
  gap: 10px;
}

.ns-layout {
  display: grid;
  gap: 34px;
  padding-top: 26px;
  padding-bottom: 60px;
  align-items: start;
}

.ns-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ns-white);
  border: 1px solid var(--ns-line);
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow);
}

.ns-post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ns-post-card__body {
  padding: 22px;
}

.ns-post-card__title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.ns-post-card__title a {
  color: var(--ns-ink);
}

.ns-post-card__title a:hover {
  color: var(--ns-accent);
  text-decoration: none;
}

.entry-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ns-body);
}

.entry-meta li + li::before {
  content: "•";
  margin-right: 10px;
  color: var(--ns-line);
}

.ns-featured img {
  width: 100%;
  border-radius: var(--ns-radius-lg);
  margin-bottom: 8px;
}

.ns-post-nav {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--ns-line);
  font-weight: 600;
}

.pagination,
.comments-pagination {
  margin-top: 30px;
}

.pagination .page-numbers,
.comments-pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 12px;
  margin: 0 4px 8px 0;
  text-align: center;
  border: 1px solid var(--ns-line);
  border-radius: 10px;
  color: var(--ns-ink);
}

.pagination .page-numbers.current {
  background: var(--ns-accent);
  border-color: var(--ns-accent);
  color: #fff;
}

.ns-empty {
  padding: 30px 0 60px;
}

.ns-error404 {
  padding: 70px 20px 90px;
  text-align: center;
}

.ns-error404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

/* ---------- Widgets ---------- */
.widget {
  margin-bottom: 26px;
  padding: 22px;
  background: var(--ns-muted-bg);
  border-radius: var(--ns-radius-lg);
}

.widget-title {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

.widget li + li {
  margin-top: 8px;
}

/* ---------- Comments ---------- */
.ns-comments {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--ns-line);
}

.comment-list,
.comment-list ul {
  list-style: none;
  padding: 0;
}

.comment-list .children {
  padding-left: 18px;
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--ns-line);
}

.comment-form .submit {
  background: var(--ns-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1224;
  color: rgba(255, 255, 255, 0.72);
  padding: 52px 0 26px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 30px;
}

.site-footer__brand,
.site-footer__title {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer__brand {
  font-size: 1.25rem;
}

.site-footer__list,
.ns-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ns-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.site-footer .widget {
  background: rgba(255, 255, 255, 0.05);
}

.site-footer .widget-title {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
}

/* ---------- Blocks / editor content ---------- */
.entry-content img {
  border-radius: var(--ns-radius);
}

.entry-content blockquote {
  margin: 0 0 1.2em;
  padding: 6px 0 6px 20px;
  border-left: 4px solid var(--ns-accent);
  color: var(--ns-ink);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--ns-line);
  padding: 10px;
}

.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .ns-grid--2,
  .ns-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 782px) {
  .ns-section {
    padding: 80px 0;
  }

  .ns-hero {
    padding: 76px 0 86px;
  }

  .ns-hero__inner,
  .ns-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 46px;
  }

  .ns-split--reverse .ns-split__content {
    order: 1;
  }

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

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

  .ns-cta__inner {
    grid-template-columns: 1.3fr auto;
  }

  .ns-post-nav {
    grid-template-columns: 1fr 1fr;
  }

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

  .site-footer__widgets {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .ns-menu-toggle {
    display: none;
  }

  .main-navigation {
    display: flex !important;
    align-items: center;
    gap: 26px;
    width: auto;
    padding-bottom: 0;
  }

  .ns-menu {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .ns-menu a {
    padding: 10px 12px;
    border-bottom: 0;
    border-radius: 10px;
  }

  .ns-menu a:hover {
    background: var(--ns-muted-bg);
  }

  .ns-menu li {
    position: relative;
  }

  .ns-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px;
    background: var(--ns-white);
    border: 1px solid var(--ns-line);
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
  }

  .ns-menu li:hover > .sub-menu,
  .ns-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
  }

  .main-navigation__cta {
    margin-top: 0;
  }

  .main-navigation__cta .ns-btn {
    width: auto;
  }

  .ns-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  body.no-sidebar .ns-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
