:root {
  --navy: #1f355e;
  --navy-dark: #172946;
  --teal: #2ba6a6;
  --teal-dark: #1d7f82;
  --gold: #d6a443;
  --ink: #203040;
  --muted: #647084;
  --line: #e7ecf2;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 53, 94, 0.12);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

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

a { color: var(--teal-dark); text-decoration: none; font-weight: 700; }
a:hover { color: var(--navy); }

h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.35rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 236, 242, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1rem;
}

.brand img { width: 196px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--navy);
  font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover { color: var(--teal-dark); }

.site-nav .nav-cta {
  background: var(--navy);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--teal-dark); color: white; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 27px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(120deg, rgba(31, 53, 94, 0.94), rgba(31, 53, 94, 0.62)),
    radial-gradient(circle at 90% 10%, rgba(43, 166, 166, 0.45), transparent 32%),
    linear-gradient(135deg, #1f355e, #2ba6a6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.8fr;
  gap: 3.5rem;
  align-items: center;
  min-height: 660px;
  padding: 6.5rem 0;
}

.hero h1, .hero .lead { color: white; }
.hero .lead {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 760px;
}

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.hero .eyebrow { color: #b9f2ef; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; }
.btn-secondary { color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: white; color: var(--navy); }

.hero-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-card-item {
  min-height: 145px;
  display: grid;
  place-items: end start;
  padding: 1.2rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.hero-card-item span {
  color: white;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.hero-card-item:nth-child(2), .hero-card-item:nth-child(3) { transform: translateY(26px); }

.section { padding: 5.5rem 0; }
.section-tint { background: var(--soft); }
.section-deep { background: var(--navy); }

.section-heading {
  max-width: 790px;
  margin-bottom: 2.6rem;
}
.section-heading.narrow { max-width: 680px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-heading.light h2,
.section-heading.light p { color: white; }
.section-heading.light .eyebrow { color: #b9f2ef; }

.card-grid {
  display: grid;
  gap: 1.35rem;
}
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(31, 53, 94, 0.07);
}
.card p { color: var(--muted); }

.icon,
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(43, 166, 166, 0.12);
  color: var(--teal-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.service-card { min-height: 288px; display: flex; flex-direction: column; }
.service-card a { margin-top: auto; }
.service-card-highlight { border-color: rgba(214, 164, 67, 0.45); }
.service-card-highlight .service-icon { background: rgba(214, 164, 67, 0.16); color: #9c6d19; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  padding: 1.25rem;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}
.feature-card h3 { font-size: 1rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.centered-link { text-align: center; margin-top: 2rem; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.insight-card {
  background: white;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}
.insight-image {
  height: 210px;
  background-size: cover;
  background-position: center;
}
.insight-ai {
  background-image: linear-gradient(135deg, rgba(31,53,94,0.32), rgba(43,166,166,0.2)), url('../images/insight-ai.png');
}
.insight-dashboard {
  background-image: linear-gradient(135deg, rgba(31,53,94,0.86), rgba(43,166,166,0.65));
}
.insight-learning {
  background-image: linear-gradient(135deg, rgba(214,164,67,0.76), rgba(31,53,94,0.72));
}
.insight-body { padding: 1.35rem; }
.insight-body .meta { color: var(--teal-dark); font-size: 0.85rem; font-weight: 800; }
.insight-body p { color: var(--muted); }

.cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--soft), white); }
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-box h2 { margin-bottom: 0.35rem; }
.cta-box p:last-child { margin-bottom: 0; color: var(--muted); }

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
.footer-logo { width: 210px; background: white; border-radius: 14px; padding: 0.5rem; margin-bottom: 1rem; }
.footer-tagline { color: white; font-weight: 800; font-family: 'Montserrat', Arial, sans-serif; }
.site-footer h3 { color: white; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.88); }
.site-footer a:hover { color: #b9f2ef; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.45rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.1rem 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 86px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.5rem; }

  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 4.5rem 0; }
  .hero-card { max-width: 580px; }
  .card-grid.four, .card-grid.three, .feature-row, .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand img { width: 168px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card-item:nth-child(2), .hero-card-item:nth-child(3) { transform: none; }
  .card-grid.four, .card-grid.three, .feature-row, .insights-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .cta-box { padding: 1.6rem; border-radius: 22px; }
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 560px;
    height: 420px;
    object-fit: cover;
    border-radius: 18px;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.15);

    border: 4px solid rgba(255,255,255,0.4);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-we-serve {
    padding: 5rem 0;
    background: #ffffff;
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.serve-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);

    transition: transform 0.25s ease;
}

.serve-card:hover {
    transform: translateY(-5px);
}

.serve-card h3 {
    color: #1F355E;
    margin-bottom: 1rem;
}

.logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.page-hero-image img {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 18px;
    display: block;
    margin: 0 auto;
}

.case-study-image img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.insight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  margin: -2rem -2rem 1.5rem;
  width: calc(100% + 4rem);
  max-width: calc(100% + 4rem);
}

.insight-content h2 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.post-date {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #2BA6A6;
  font-weight: 700;
  text-decoration: none;
}

#contact-form {
  max-width: 760px;
  margin: 0 auto;
}

#contact-form .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

#contact-form label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F355E;
  margin-bottom: 0.45rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  font: inherit;
  background: #ffffff;
}

#contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #2BA6A6;
  box-shadow: 0 0 0 4px rgba(43, 166, 166, 0.12);
}

#contact-form .button-row {
  margin-top: 1.5rem;
}

.insight-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}


.service-detail-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-detail-image {
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail-icon {
    margin-bottom: 0;
  }

  .service-detail-image img {
    height: 220px;
  }
}
/* Article and mini CMS additions */
.page-hero {
  padding: 5.5rem 0 4rem;
  background: linear-gradient(135deg, var(--soft), white);
}
.page-hero .lead { max-width: 820px; color: var(--muted); font-size: 1.15rem; }
.article-container { max-width: 860px; }
.article-hero { padding: 4.5rem 0 2rem; background: linear-gradient(135deg, var(--soft), white); }
.article-hero h1 { font-size: clamp(2.25rem, 4.5vw, 4.2rem); }
.article-hero img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); margin-top: 1.75rem; }
.article-body { padding: 3.5rem 0 4.5rem; }
.article-body p, .article-body li { font-size: 1.06rem; }
.article-body h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin-top: 2.2rem; }
.article-body h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.4rem; }
.article-body blockquote { border-left: 4px solid var(--teal); margin: 1.6rem 0; padding: 1rem 1.2rem; background: var(--soft); border-radius: 12px; color: var(--navy); font-weight: 700; }
.article-body img { border-radius: 18px; margin: 1.5rem 0; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.article-back { margin-top: 2rem; }
.cta-card { text-align: center; background: white; border: 1px solid var(--line); border-radius: 30px; padding: 2.5rem; box-shadow: var(--shadow); }
.legacy-card { opacity: 0.96; }
