/* NivAk Technologies — Homepage Premium V4 */
/* Technology section only */

body .teaser#expertise {
  position: relative;
  padding: 64px 0 70px;
  background: #f4f7fc !important;
  color: #102443 !important;
}

body .teaser#expertise::before {
  display: none !important;
}

.expertise-v4-heading {
  margin-bottom: 26px;
}

.expertise-v4-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #b65312;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.expertise-v4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7417;
  box-shadow: 0 0 0 4px #ffe8d7;
}

body .teaser#expertise h2 {
  margin: 0 0 12px;
  color: #102443 !important;
  font-size: clamp(30px,3vw,40px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.2;
}

body .teaser#expertise .expertise-v4-heading p {
  max-width: 690px;
  margin: 0;
  color: #536780 !important;
  font-size: 14px;
  line-height: 1.75;
}

.expertise-v4-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
}

body .teaser#expertise .expertise-v4-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 205px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d9e3f0;
  border-radius: 19px;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(16,45,89,.055);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

body .teaser#expertise .expertise-v4-card:hover {
  transform: translateY(-6px);
  border-color: #f2b389;
  box-shadow: 0 20px 42px rgba(16,45,89,.13);
}

.expertise-v4-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  margin-bottom: 22px;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: #eaf2fd;
  color: #dd6419;
}

.expertise-v4-icon svg {
  width: 26px;
  height: 26px;
}

body .teaser#expertise .expertise-v4-card h3 {
  margin: 0 0 9px;
  color: #102443 !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.35;
}

body .teaser#expertise .expertise-v4-card p {
  margin: 0;
  color: #526780 !important;
  font-size: 12px;
  line-height: 1.7;
}

.expertise-v4-accent {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #ff7417;
  transition: width .3s ease;
}

.expertise-v4-card:hover .expertise-v4-accent {
  width: calc(100% - 48px);
}

@media (max-width: 900px) {
  .expertise-v4-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 600px) {
  body .teaser#expertise {
    padding: 44px 0 49px;
  }

  .expertise-v4-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  body .teaser#expertise .expertise-v4-card {
    min-height: 0;
    padding: 21px;
  }

  .expertise-v4-icon {
    margin-bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expertise-v4-card,
  .expertise-v4-accent {
    transition: none !important;
  }
}

/* NIVAK HOMEPAGE V4 STEP 163 */

/* Make the expertise label prominent and readable. */

body #expertise .expertise-v4-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 17px;
  padding: 9px 15px;
  border: 1px solid #f1b68c;
  border-radius: 999px;
  background: #fff0e5;
  color: #a7480c !important;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.2;
}

body #expertise .expertise-v4-dot {
  flex: 0 0 8px;
  background: #f36c19;
  box-shadow: 0 0 0 4px #ffdcc5;
}

/* Remove the decorative orange bars below the cards. */

body #expertise .expertise-v4-accent {
  display: none !important;
}

/* Maintain card spacing without bottom decoration. */

body #expertise .expertise-v4-card {
  padding-bottom: 25px;
}

@media (max-width: 600px) {
  body #expertise .expertise-v4-eyebrow {
    font-size: 11px;
    padding: 8px 13px;
  }

  body #expertise .expertise-v4-card {
    padding-bottom: 21px;
  }
}

/* NIVAK HOMEPAGE SERVICES PREMIUM V4 — STEP 165A */

body .services-v4 {
  padding: 66px 0 72px;
  background: #fff;
}

body .services-v4 .section-description {
  max-width: 710px;
  margin-bottom: 27px;
}

.services-v4-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

body .services-v4 .service-v4-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 245px;
  padding: 23px;
  border: 1px solid #dbe5f1;
  border-radius: 18px;
  background: #f7f9fd;
  box-shadow: 0 10px 28px rgba(16,45,89,.05);
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease;
}

body .services-v4 .service-v4-card:hover {
  transform: translateY(-5px);
  border-color: #ffbc8c;
  box-shadow: 0 18px 36px rgba(16,45,89,.12);
}

.service-v4-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 20px;
  gap: 10px;
}

.service-v4-icon {
  display: grid;
  place-items: center;
  flex: 0 0 47px;
  width: 47px;
  height: 47px;
  border: 1px solid #dbe6f5;
  border-radius: 13px;
  background: #e9f1fd;
  color: #e66f20;
}

.service-v4-icon svg {
  width: 25px;
  height: 25px;
}

.service-v4-content {
  flex: 1;
}

body .services-v4 .service-v4-card h3 {
  margin: 0 0 11px;
  color: #102443;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

body .services-v4 .service-v4-card p {
  margin: 0 0 21px;
  color: #526780;
  font-size: 12px;
  line-height: 1.75;
}

body .services-v4 .service-v4-card .service-v4-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #bc5313;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body .services-v4 .service-v4-card--featured {
  border-color: #244979;
  background: linear-gradient(135deg, #102d59, #173f70);
  box-shadow: 0 15px 37px rgba(16,45,89,.16);
}

body .services-v4 .service-v4-card--featured .service-v4-icon {
  border-color: #446891;
  background: #244b78;
  color: #ffac73;
}

body .services-v4 .service-v4-card--featured h3 {
  color: #fff;
}

body .services-v4 .service-v4-card--featured p {
  color: #cbdcf0;
}

body .services-v4 .service-v4-card--featured .service-v4-link {
  color: #ffb17a;
}

.service-v4-badge {
  padding: 7px 10px;
  border: 1px solid rgba(255,171,105,.4);
  border-radius: 999px;
  background: rgba(255,116,23,.12);
  color: #ffbb8e;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .services-v4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body .services-v4 {
    padding: 44px 0 50px;
  }

  .services-v4-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  body .services-v4 .service-v4-card {
    min-height: 0;
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .services-v4 .service-v4-card {
    transition: none;
  }
}

/* NIVAK SERVICES FEATURED LAYOUT STEP 166 */

/* Featured service occupies the entire first row. */

body .services-v4 .services-v4-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

body .services-v4 .service-v4-card--featured {
  grid-column: 1 / -1;
  min-height: 225px;
  padding: 30px 34px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(56,130,221,.24),
      transparent 38%
    ),
    linear-gradient(120deg,#102d59,#173e70);
}

/* Make the featured content more prominent. */

body .services-v4 .service-v4-card--featured .service-v4-card-top {
  margin-bottom: 20px;
}

body .services-v4 .service-v4-card--featured h3 {
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.25;
}

body .services-v4 .service-v4-card--featured p {
  max-width: 660px;
  margin-bottom: 19px;
  font-size: 13px;
  line-height: 1.75;
}

body .services-v4 .service-v4-card--featured .service-v4-link {
  font-size: 13px;
}

/* Supporting cards remain compact and balanced. */

body .services-v4 .service-v4-card:not(.service-v4-card--featured) {
  min-height: 230px;
}

@media (max-width: 900px) {
  body .services-v4 .services-v4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body .services-v4 .services-v4-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  body .services-v4 .service-v4-card--featured {
    grid-column: 1;
    min-height: 0;
    padding: 23px;
  }

  body .services-v4 .service-v4-card:not(.service-v4-card--featured) {
    min-height: 0;
  }
}


/* NIVAK CTA GRADIENT STEP 167B */

/* Homepage CTA: dark navy left to royal blue right. */
body section#contact-v3 .contact-v3-panel {
  background: linear-gradient(
    90deg,
    #071326 0%,
    #123d7b 55%,
    #2878db 100%
  ) !important;
}
