/* ============================================
   NuVanta Consulting — Stylesheet
   Brand palette: #2948D9 (blue) / #BF00FF (purple) / #687D87 (slate)
   ============================================ */

:root {
  /* Brand colors */
  --brand-blue: #2948D9;
  --brand-blue-dark: #1e35a8;
  --brand-blue-deep: #14215f;
  --brand-purple: #BF00FF;
  --brand-purple-dark: #9500c9;
  --slate: #687D87;
  --slate-light: #8a9aa3;

  /* Brand gradient */
  --brand-gradient: linear-gradient(135deg, #2948D9 0%, #6320E6 50%, #BF00FF 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(41,72,217,0.06) 0%, rgba(191,0,255,0.06) 100%);

  /* Neutrals */
  --ink: #0d1326;
  --ink-soft: #2d3548;
  --slate-700: #4a5566;
  --slate-500: #687D87;
  --slate-300: #c8cdd4;
  --slate-100: #eef0f4;
  --paper: #f8f9fc;
  --white: #ffffff;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 95, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 33, 95, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 95, 0.15);
  --shadow-brand: 0 20px 50px rgba(41, 72, 217, 0.25);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-purple); }
ul { padding: 0; list-style: none; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow.light {
  background: none;
  color: rgba(255,255,255,0.85);
  -webkit-text-fill-color: rgba(255,255,255,0.85);
}

.accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--white);
}
.btn-primary:hover {
  background-position: 100% 50%;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.btn-light { background: var(--white); color: var(--brand-blue); }
.btn-light:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 64px;
  width: auto;
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: var(--brand-blue); }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brand-gradient);
  transition: width 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--brand-gradient);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.92; transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 110px 0 96px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.55;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,19,38,0.92) 0%, rgba(13,19,38,0.75) 45%, rgba(13,19,38,0.4) 100%),
    linear-gradient(180deg, transparent 60%, rgba(13,19,38,0.7) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
}
.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
}
.hero .eyebrow {
  background: linear-gradient(135deg, #6b8aff 0%, #d670ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .accent {
  background: linear-gradient(135deg, #6b8aff 0%, #d670ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.lead {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.85);
  max-width: 62ch;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-intro { margin-bottom: 56px; }
.section-intro.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============ Approach ============ */
.approach { background: var(--white); }
.approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.approach-copy p {
  font-size: 1.05rem;
  color: var(--slate-700);
}
.approach-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.approach-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.approach-image-deco {
  position: absolute;
  top: -20px; right: -20px;
  width: 70%; height: 80%;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: 1;
}

/* ============ Vision ============ */
.vision {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.vision::before {
  content: '';
  position: absolute;
  top: -150px; left: -150px;
  width: 500px; height: 500px;
  background: var(--brand-gradient);
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(80px);
  pointer-events: none;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.vision-copy { position: relative; }
.vision h2 {
  color: var(--white);
  margin-bottom: 24px;
}
.vision-text {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  max-width: 50ch;
  margin: 0;
}
.vision-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-lg);
}
.vision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vision-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,72,217,0.15) 0%, transparent 50%, rgba(191,0,255,0.18) 100%);
  pointer-events: none;
}

/* ============ Services ============ */
.services { background: var(--paper); position: relative; overflow: hidden; }
.services::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: var(--brand-gradient);
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.service-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* button reset */
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--brand-gradient);
  transition: width 0.4s ease;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  outline: none;
}
.service-card:hover::before,
.service-card:focus-visible::before { width: 100%; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41,72,217,0.1) 0%, rgba(191,0,255,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}
.service-icon svg {
  width: 28px;
  height: 28px;
}
.service-card:hover .service-icon {
  background: var(--brand-gradient);
  color: var(--white);
  transform: scale(1.05);
}
.service-card h3 {
  margin: 0 0 auto 0;
  font-size: 1.15rem;
  padding-bottom: 20px;
}
.service-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.service-card:hover .service-cta {
  gap: 10px;
}

/* ============ Modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 38, 0.6);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 48px 48px 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
  border-top: 4px solid transparent;
  border-image: var(--brand-gradient) 1;
}
.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover {
  background: var(--brand-blue);
  color: var(--white);
  transform: rotate(90deg);
}
.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  padding-right: 40px;
  line-height: 1.25;
}
.modal-content p {
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.modal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}
.modal-content ul li {
  color: var(--slate-700);
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* ============ CTA Banner ============ */
.cta-banner {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -50px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.cta-banner h2 { color: var(--white); margin: 0; }

/* ============ Team ============ */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bio-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bio-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
}
.bio-avatar {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(41, 72, 217, 0.3);
}
.bio-photo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 8px 20px rgba(41, 72, 217, 0.25), 0 0 0 2px var(--brand-blue);
}
.bio-header h3 { margin: 0 0 4px; font-size: 1.25rem; }
.bio-role {
  font-size: 0.9rem;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0 0 6px;
  font-weight: 600;
}
.bio-link { font-size: 0.85rem; font-weight: 500; }
.bio-card p { color: var(--slate-700); font-size: 0.97rem; }
.bio-card p:last-child { margin-bottom: 0; }

/* ============ Contact ============ */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lead { color: var(--slate-700); font-size: 1.05rem; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-list li:hover {
  border-color: var(--brand-blue);
  transform: translateX(2px);
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
}
.contact-list a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-list a:hover { color: var(--brand-blue); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(41, 72, 217, 0.12);
}
.contact-form button { margin-top: 8px; align-self: flex-start; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer-brand p { margin-top: 16px; font-size: 0.95rem; max-width: 28ch; }
.logo-img-footer {
  height: 64px;
  width: auto;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.site-footer h4 { color: var(--white); margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-base p { margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--slate-100);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 60px; }
  .approach-grid,
  .vision-grid,
  .contact-grid,
  .team-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .services-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 20px; }
  .logo-img { height: 52px; }
  .modal-panel { padding: 36px 24px 28px; }
  .modal-content h3 { font-size: 1.3rem; }
}
