/* ==========================================================================
   Nival Management & Consulting LLC — Design System
   ========================================================================== */

:root {
  --navy: #0A1628;
  --navy-2: #142440;
  --navy-3: #1F3358;
  --gold: #C9A457;
  --gold-2: #B8923F;
  --surface: #F7F8FA;
  --white: #FFFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-dark: rgba(255,255,255,0.12);
  --shadow-sm: 0 1px 2px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 12px rgba(10,22,40,0.08);
  --shadow-lg: 0 12px 32px rgba(10,22,40,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-h: 76px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.85); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-light { background: var(--surface); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-arrow::after { content: '→'; transition: transform .2s; }
.btn:hover.btn-arrow::after { transform: translateX(4px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text span:last-child {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  position: relative;
}
.nav a:hover { color: var(--navy); background: var(--surface); }
.nav a.active { color: var(--gold); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 600px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
  margin-top: 8px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--surface); }
.nav-dropdown .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.nav-dropdown .label { font-size: 0.92rem; color: var(--navy); }
.nav-dropdown .desc { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; display: block; margin-top: 2px; }

.nav-cta { margin-left: 8px; }
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 6px;
  margin-left: 8px;
  transition: all .2s;
}
.nav-login::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='2.5' stroke-linecap='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.nav-login:hover {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
  background: transparent !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #0A1628 0%, #142440 100%);
  color: #fff;
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,164,87,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,87,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page Hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, #0A1628 0%, #1F3358 100%);
  color: #fff;
  padding: 88px 0 64px;
  position: relative;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 700px; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1;
}
.trust-item .num .gold { color: var(--gold); }
.trust-item .label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-weight: 500;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section-head.left { text-align: left; margin-left: 0; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,164,87,0.12), rgba(201,164,87,0.04));
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex-grow: 1;
  margin-bottom: 16px;
}
.service-card .link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .link::after { content: '→'; transition: transform .2s; }
.service-card:hover .link { color: var(--gold); }
.service-card:hover .link::after { transform: translateX(4px); }

/* ==========================================================================
   Who we serve
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all .2s;
}
.client-card:hover { border-color: var(--gold); background: var(--surface); }
.client-card .icon { color: var(--gold); margin-bottom: 12px; }
.client-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
}

/* ==========================================================================
   Why NMC band
   ========================================================================== */
.why-band {
  background: var(--navy);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.why-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,164,87,0.12), transparent 60%);
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-band h2 { color: #fff; }
.why-band p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-block {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: var(--radius);
}
.stat-block .n {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
}
.stat-block .l {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   News cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  position: relative;
}
.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,164,87,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,87,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.news-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-card p { color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; }

/* ==========================================================================
   News filters
   ========================================================================== */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.news-filter {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.news-filter:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.news-filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto 32px; font-size: 1.08rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060F1D;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-text span:last-child { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.55); max-width: 320px; font-size: 0.9rem; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Service detail page
   ========================================================================== */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.service-content h2 { margin-top: 48px; }
.service-content h2:first-child { margin-top: 0; }
.service-content .lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
}
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
}
.feature-list strong {
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}
.feature-list span { color: var(--text-muted); font-size: 0.94rem; }

.sidebar-cta {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.sidebar-cta h3 { color: #fff; font-size: 1.25rem; }
.sidebar-cta p { color: rgba(255,255,255,0.78); font-size: 0.94rem; margin-bottom: 20px; }
.sidebar-cta .contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Related services */
.related {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   Team grid
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.team-photo {
  height: 280px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
}
.team-body { padding: 24px; }
.team-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-role { color: var(--gold); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.team-body p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; }

/* ==========================================================================
   Process steps (12-point)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.process-step h4 { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid, .news-grid, .team-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-layout { grid-template-columns: 1fr; }
  .sidebar-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: stretch;
    gap: 4px;
  }
  .nav.open .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 8px 0 8px 16px; min-width: 0; grid-template-columns: 1fr; margin-top: 0; }
  .nav.open .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav.open a { padding: 12px; }
  .menu-toggle { display: block; }
  .hero { padding: 72px 0 64px; }
  .services-grid, .news-grid, .team-grid, .process-grid, .clients-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .why-stats { grid-template-columns: 1fr; }
}
