:root {
  --ink: #171426;
  --muted: #5c6c70;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #dde4df;
  --primary: #21106B;
  --primary-dark: #16094f;
  --secondary: #FF8102;
  --secondary-dark: #d96b00;
  --aqua: #0b8f9c;
  --shadow: 0 18px 45px rgba(33, 16, 107, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: clamp(168px, 18vw, 230px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav > a,
.mega-trigger {
  color: #263b3f;
  background: none;
  border: 0;
  padding: 26px 0;
  font: inherit;
  cursor: pointer;
}

.site-nav > a:hover,
.mega-trigger:hover { color: var(--primary); }

.mega { position: relative; }

.mega-panel {
  position: fixed;
  left: 50%;
  top: 72px;
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
  width: min(1040px, 86vw);
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mega:hover .mega-panel,
.mega.open .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 178px;
  padding: 16px;
  border: 1px solid #eef2ef;
  border-radius: 8px;
  background: #fbfcfa;
}

.mega-column:hover {
  border-color: rgba(33, 16, 107, 0.22);
  background: #f5f2ff;
}

.mega-column strong {
  margin-bottom: 5px;
  color: var(--ink);
  line-height: 1.25;
}

.mega-column span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 48px;
  padding: 78px 6vw 52px;
}

.hero-copy h1,
.service-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.55rem, 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.service-hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.13rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--primary);
}

.button.primary:hover { background: var(--primary-dark); }

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.hero-visual {
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 6vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  padding: 28px;
  background: white;
}

.metrics strong {
  display: block;
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
}

.metrics span { color: var(--muted); font-weight: 650; }

.section,
.service-content {
  padding: 86px 6vw;
}

.about-section {
  padding: 86px 6vw;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 32px;
}

.section-heading h2,
.approach h2,
.contact-band h2,
.service-content h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.about-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.about-grid div,
.insight-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-grid h3,
.insight-card h3 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.about-grid p,
.insight-card p {
  margin: 0;
  color: var(--muted);
}

.insight-card {
  background: white;
}

.insight-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card h3 { margin: 18px 0 8px; line-height: 1.18; }
.service-card p { margin: 0; color: var(--muted); }
.service-card a { margin-top: auto; color: var(--primary); font-weight: 900; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--primary);
  background: rgba(255, 129, 2, 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.approach {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 0.65fr);
  gap: 44px;
  padding: 82px 6vw;
  color: white;
  background: var(--primary);
}

.approach .eyebrow { color: #ffd2a8; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.steps div {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.steps span { color: var(--secondary); font-weight: 900; }
.steps h3 { margin: 10px 0 6px; }
.steps p { margin: 0; color: #cbdcdd; }

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 72px 6vw;
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.service-hero {
  padding: 72px 6vw 58px;
  background:
    linear-gradient(90deg, rgba(33,16,107,0.9), rgba(33,16,107,0.66)),
    url("assets/service-pattern.svg");
  color: white;
}

.service-hero p { color: #d8e7e5; }
.service-hero .eyebrow { color: #ffd2a8; }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  color: #d3e1df;
  font-size: 0.92rem;
  font-weight: 700;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 42px;
}

.feature-list,
.child-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feature,
.child-service,
.sidebar-box {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature h3,
.child-service h3,
.sidebar-box h3 { margin: 0 0 8px; }

.feature p,
.child-service p,
.sidebar-box p { margin: 0; color: var(--muted); }

.section-spacer { margin-top: 54px !important; }

.child-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar-box ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-nav {
  display: grid;
  gap: 8px;
}

.service-nav a {
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.service-nav a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-panel { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 6vw 18px;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav > a,
  .mega-trigger { padding: 13px 0; text-align: left; }
  .mega-panel {
    position: static;
    left: auto;
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 10px 0 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .mega.open .mega-panel { display: grid; }
  .mega-column { min-height: auto; }
  .hero,
  .section-heading,
  .about-grid,
  .insight-grid,
  .approach,
  .service-layout {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 290px; }
  .metrics,
  .steps,
  .child-list { grid-template-columns: 1fr; }
  .contact-band,
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .metrics div,
  .service-card,
  .feature,
  .child-service,
  .sidebar-box,
  .contact-band { padding: 20px; }
  .hero-copy h1,
  .service-hero h1 { font-size: 2.45rem; }
}
