/* ==========================================================================
   nearcasashore — modern-minimal theme layer
   Load this AFTER the existing template CSS. Everything is prefixed `ncs-`
   so it never collides with Superio/Bootstrap classes. Pages not yet
   migrated keep their old styling untouched.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --ncs-brand:      #0F5BA8;
  --ncs-brand-50:   #EAF2FB;
  --ncs-accent:     #E2613C;
  --ncs-accent-50:  #FBEDE7;

  --ncs-ink:        #1A2230;
  --ncs-text:       #555E6B;
  --ncs-muted:      #8A929E;
  --ncs-surface:    #F7F8FA;
  --ncs-border:     #E6E8EC;
  --ncs-white:      #FFFFFF;

  --ncs-success:    #1F8A5B;
  --ncs-success-50: #E5F4EC;
  --ncs-warn:       #9A5E0E;
  --ncs-warn-50:    #FCF1DD;
  --ncs-danger:     #C8453B;

  --ncs-r-sm: 6px;
  --ncs-r-md: 10px;
  --ncs-r-lg: 16px;

  --ncs-shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.05);
  --ncs-shadow-md: 0 4px 12px rgba(16,24,40,.08);

  --ncs-container: 1180px;
  --ncs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- container -------------------------------------------------------- */
.ncs-container {
  max-width: var(--ncs-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- scoped base (only affects migrated pages wrapped in .ncs-page) ---- */
.ncs-page {
  font-family: var(--ncs-font);
  color: var(--ncs-ink);
  font-size: 16px;
  line-height: 1.6;
  background: var(--ncs-white);
}
.ncs-page h1, .ncs-page h2, .ncs-page h3 { color: var(--ncs-ink); font-weight: 600; margin: 0 0 .5em; }
.ncs-page h1 { font-size: 28px; }
.ncs-page h2 { font-size: 22px; }
.ncs-page h3 { font-size: 18px; }
.ncs-page a:not(.ncs-btn)  { color: var(--ncs-brand); text-decoration: none; }
.ncs-page a:not(.ncs-btn):hover { text-decoration: underline; }

/* ======================================================================
   HEADER + NAV
   ====================================================================== */
.ncs-header {
  font-family: var(--ncs-font);
  background: var(--ncs-white);
  border-bottom: 1px solid var(--ncs-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ncs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.ncs-header__logo img { height: 38px; width: auto; display: block; }

.ncs-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ncs-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14.5px;
  color: var(--ncs-text);
  text-decoration: none;
  border-radius: var(--ncs-r-sm);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ncs-nav a:hover { background: var(--ncs-surface); color: var(--ncs-ink); }
.ncs-nav a.is-active { color: var(--ncs-brand); background: var(--ncs-brand-50); font-weight: 500; }

.ncs-burger {
  display: none;
  background: none;
  border: 1px solid var(--ncs-border);
  border-radius: var(--ncs-r-sm);
  width: 42px; height: 42px;
  font-size: 20px;
  color: var(--ncs-ink);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .ncs-burger { display: inline-flex; align-items: center; justify-content: center; }
  .ncs-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ncs-white);
    border-bottom: 1px solid var(--ncs-border);
    padding: 10px 20px 16px;
    box-shadow: var(--ncs-shadow-md);
    display: none;
  }
  .ncs-nav.is-open { display: flex; }
  .ncs-nav a { padding: 12px; }
}

/* ======================================================================
   BUTTONS
   ====================================================================== */
.ncs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ncs-font);
  font-size: 14.5px; font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--ncs-r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, background .15s, border-color .15s;
}
.ncs-btn:hover { text-decoration: none; }
.ncs-btn--primary  { background: var(--ncs-brand);  color: #fff; }
.ncs-btn--primary:hover { filter: brightness(.93); color: #fff; }
.ncs-btn--accent   { background: var(--ncs-accent); color: #fff; }
.ncs-btn--accent:hover { filter: brightness(.93); color: #fff; }
.ncs-btn--ghost    { background: var(--ncs-white); color: var(--ncs-ink); border-color: var(--ncs-border); }
.ncs-btn--ghost:hover { background: var(--ncs-surface); }
.ncs-btn--link     { background: none; color: var(--ncs-brand); padding-left: 0; padding-right: 0; }
.ncs-btn--link:hover { text-decoration: underline; }
.ncs-btn--lg { padding: 12px 22px; font-size: 15px; }

/* ======================================================================
   TAGS / BADGES
   ====================================================================== */
.ncs-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--ncs-surface);
  color: var(--ncs-text);
  line-height: 1.4;
}
.ncs-tag--brand   { background: var(--ncs-brand-50);   color: var(--ncs-brand); }
.ncs-tag--success { background: var(--ncs-success-50); color: var(--ncs-success); }
.ncs-tag--warn    { background: var(--ncs-warn-50);    color: var(--ncs-warn); }
.ncs-tag--auto    { background: var(--ncs-surface);    color: var(--ncs-text); }

/* ======================================================================
   PAGE TITLE / BREADCRUMB
   ====================================================================== */
.ncs-pagehead {
  background: var(--ncs-surface);
  border-bottom: 1px solid var(--ncs-border);
  padding: 32px 0;
}
.ncs-pagehead h1 { margin: 0 0 6px; font-size: 28px; }
.ncs-crumb { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ncs-muted); }
.ncs-crumb li::after { content: '/'; margin-left: 8px; color: var(--ncs-border); }
.ncs-crumb li:last-child::after { content: ''; }
.ncs-crumb a { color: var(--ncs-text); }

/* ======================================================================
   SEARCH BAR
   ====================================================================== */
.ncs-search {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--ncs-surface);
  padding: 10px;
  border-radius: var(--ncs-r-md);
}
.ncs-search__field {
  flex: 1; min-width: 180px;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--ncs-border);
  border-radius: var(--ncs-r-sm);
  padding: 0 14px; height: 44px;
}
.ncs-search__field input {
  border: 0; outline: 0; background: none; flex: 1;
  font-family: var(--ncs-font); font-size: 14.5px; color: var(--ncs-ink);
}
.ncs-search__field input::placeholder { color: var(--ncs-muted); }
.ncs-search__field .ti, .ncs-search__field i { color: var(--ncs-muted); }

/* ======================================================================
   CARDS (layout grid + job card)
   ====================================================================== */
.ncs-grid { display: grid; gap: 16px; }
/* min(100%, Npx): on narrow containers the track shrinks to 100% instead of
   forcing Npx and overflowing the screen; on wide ones it caps at Npx. */
.ncs-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.ncs-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Listing layout: sidebar + results. Collapses to one column on mobile. */
.ncs-listing { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) {
  .ncs-listing { grid-template-columns: 1fr; }
}

.ncs-card {
  background: var(--ncs-white);
  border: 1px solid var(--ncs-border);
  border-radius: var(--ncs-r-lg);
  padding: 18px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.ncs-card:hover { box-shadow: var(--ncs-shadow-md); border-color: #D5DAE2; transform: translateY(-2px); }

.ncs-job__top { display: flex; gap: 12px; align-items: flex-start; }
.ncs-logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--ncs-r-md);
  background: var(--ncs-surface);
  border: 1px solid var(--ncs-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--ncs-brand);
  overflow: hidden;
}
.ncs-logo img { width: 100%; height: 100%; object-fit: contain; }
.ncs-job__title { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.ncs-job__title a { color: var(--ncs-ink); text-decoration: none; }
.ncs-job__title a:hover { color: var(--ncs-brand); }
.ncs-job__company { margin: 3px 0 0; font-size: 14px; color: var(--ncs-text); }
.ncs-job__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.ncs-job__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--ncs-border); padding-top: 14px;
}
.ncs-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ncs-text); }

/* ======================================================================
   FOOTER
   ====================================================================== */
.ncs-footer {
  font-family: var(--ncs-font);
  background: var(--ncs-ink);
  color: #C7CDD6;
  margin-top: 56px;
}
.ncs-footer__top { padding-top: 48px; padding-bottom: 36px; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.ncs-footer__logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: var(--ncs-r-md); margin-bottom: 14px; }
.ncs-footer__logo img { height: 30px; display: block; }
.ncs-footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.ncs-footer ul { list-style: none; margin: 0; padding: 0; }
.ncs-footer li { margin-bottom: 9px; }
.ncs-footer a { color: #C7CDD6; text-decoration: none; font-size: 14px; }
.ncs-footer a:hover { color: #fff; }
.ncs-footer__addr { font-size: 14px; line-height: 1.7; color: #9AA3B0; }
.ncs-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px; padding-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #9AA3B0;
}
.ncs-footer__social { display: flex; gap: 10px; }
.ncs-footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #C7CDD6;
}
.ncs-footer__social a:hover { background: var(--ncs-brand); color: #fff; }

@media (max-width: 860px) {
  .ncs-footer__top { grid-template-columns: 1fr 1fr; }
  .ncs-footer__bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
  .ncs-footer__top { grid-template-columns: 1fr; }
}

/* ---- empty state ------------------------------------------------------ */
.ncs-empty {
  text-align: center; padding: 48px 16px;
  color: var(--ncs-muted); font-size: 15px;
}

/* ======================================================================
   HOMEPAGE COMPONENTS
   ====================================================================== */
.ncs-section { padding: 56px 0; }
.ncs-section__head { margin-bottom: 28px; }
.ncs-section__head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.ncs-section__head h2 { font-size: 24px; margin: 0; }
.ncs-section__head p { margin: 8px 0 0; color: var(--ncs-text); }

/* Hero */
.ncs-hero { background: var(--ncs-surface); border-bottom: 1px solid var(--ncs-border); }
.ncs-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.ncs-hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; color: var(--ncs-ink); }
.ncs-hero .ncs-lead { font-size: 17px; color: var(--ncs-text); margin: 0 0 22px; }
.ncs-hero__media img { width: 100%; border-radius: var(--ncs-r-lg); display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.ncs-search--hero { background: #fff; border: 1px solid var(--ncs-border); box-shadow: var(--ncs-shadow-sm); }
.ncs-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.ncs-stats b { display: block; font-size: 22px; font-weight: 600; color: var(--ncs-ink); }
.ncs-stats span { font-size: 13.5px; color: var(--ncs-text); }
@media (max-width: 900px) {
  .ncs-hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .ncs-hero h1 { font-size: 28px; }
}

/* Category cards */
.ncs-cat__icon {
  width: 48px; height: 48px; border-radius: var(--ncs-r-md);
  background: var(--ncs-brand-50); color: var(--ncs-brand);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  margin-bottom: 12px;
}
.ncs-cat h4 { margin: 0; font-size: 16px; }
.ncs-cat h4 a { color: var(--ncs-ink); text-decoration: none; }
.ncs-cat h4 a:hover { color: var(--ncs-brand); }
.ncs-cat p { margin: 4px 0 0; font-size: 13.5px; color: var(--ncs-muted); }

/* Alternating info split */
.ncs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ncs-split + .ncs-split { margin-top: 56px; }
.ncs-split__media img { width: 100%; border-radius: var(--ncs-r-lg); display: block; }
.ncs-split h2 { font-size: 23px; margin: 0 0 12px; }
.ncs-split .ncs-lead { color: var(--ncs-text); margin: 0; }
@media (max-width: 860px) {
  .ncs-split { grid-template-columns: 1fr; gap: 24px; }
  .ncs-split__media { order: 2; }
  .ncs-split__body { order: 1; }
}

/* Check list */
.ncs-check { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ncs-check li { display: flex; gap: 11px; align-items: flex-start; color: var(--ncs-text); font-size: 15px; line-height: 1.5; }
.ncs-check li i { color: var(--ncs-success); margin-top: 4px; font-size: 13px; flex-shrink: 0; }

/* Feature cards (tax advantages) */
.ncs-feature__icon {
  width: 44px; height: 44px; border-radius: var(--ncs-r-md);
  background: var(--ncs-accent-50); color: var(--ncs-accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  margin-bottom: 14px;
}
.ncs-feature h4 { margin: 0 0 8px; font-size: 16px; color: var(--ncs-ink); }
.ncs-feature p { margin: 0; color: var(--ncs-text); font-size: 14.5px; line-height: 1.6; }
