/* body {
  background: linear-gradient(
    135deg,
    rgba(24, 59, 102, 0.08) 0%,
    rgba(24, 59, 102, 0.05) 40%,
    rgba(243, 146, 0, 0.08) 100%
  ) 
} */

html,
body {
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px; /* REDUCED from 25px */
}


/* ---------- HERO (Full-bleed background + one CTA) ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 32px;
  padding-block: 40px;
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center right 15%;
  z-index: -1;
}

/* Copy styles on dark */
.home-hero__copy {
  color: #eaf3ff;
  max-width: 58ch;
}

.home-hero__copy h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.12;
  margin: .25em 0 .4em;
}

.home-hero__copy .lead {
  font-size: 1.2rem;
  opacity: .95;
}

.home-hero .tag {
  display: inline-block;
  padding: .38rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

/* Single CTA */
.cta-split {
  margin: 16px 5px 10px;
}

.btn-hero {
  background: #ff9900;
  color: white;
  border: 0;
}

.btn--accent:hover {
  filter: brightness(.95);
}

.btn-hero-second{
  background: #0c52a9;
  color: white;
}

/* Tablet */
@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 92vh;
    padding-block: 32px;
  }

  .home-hero::before {
    background-position: center right 20%;
  }

  .home-hero__copy {
    max-width: 62ch;
  }

  .home-hero__bg {
    width: 1115px;
    height: 620px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .home-hero {
    min-height: 68vh;
    padding-block: 40px;
  }

  .home-hero::before {
    background-position: center top;
  }

  .home-hero__copy h1 {
    font-size: 2.1rem;
  }

  .home-hero__copy .lead {
    font-size: 1rem;
  }

  .home-hero__bg {
    width: 430px;
    height: 495px;
  }

  .cta-split {
    grid-template-columns: 1fr;
  }
}


/*===========Services-================*/
/* ---------- KEY SERVICES (cards, no background image) ---------- */
.services-tiles { 
  padding: 15px; /* REDUCED from 28px-80px */
  margin-top: 0;
}

.svc-tiles{
  display: grid;
  gap: 17px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px){  .svc-tiles{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .svc-tiles{ grid-template-columns: repeat(3, 1fr); } }

/* Card */
.svc-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--line, #e7edf5);
  border-left: 6px solid var(--miq-orange, #F39200);
  border-radius: 14px;
  background: var(--band-grad, linear-gradient(135deg, #eef3f8 0%, #f7fafc 48%, #fff1df 100%));
  box-shadow: var(--card-shadow, 0 8px 24px rgba(24,59,102,.08));
  transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease;
}

.svc-card:hover,
.svc-card:focus-within{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(24,59,102,.14);
  border-color: rgba(24,59,102,.25);
}

/* Title + blurb */
.svc-title{
  margin: 0;
  color: var(--miq-blue, #183B66);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  text-wrap: balance;
  text-align: center;
}

.svc-blurb{
  margin: 0;
  color: var(--ink-700, #23384d);
  line-height: 1.6;
  font-size: 0.98rem;
  text-align: justify;
}

/* Button */
.svc-btn{
  align-self: flex-end;
  margin-top: 6px;
}


/* ===== Recent Reports ===== */
.section.recent-reports {
  padding-block: 0 48px; /* REDUCED from 42px-96px */
}

.section-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px; /* REDUCED from 16-24px */
}

.section-head--split h2 {
  margin: 0;
  font-size: 1.8rem;
}

.btn.btn--sm {
  padding: .55rem .85rem;
  border-radius: 12px;
  font-weight: 800;
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}

@media (min-width: 700px) {
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .recent-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card (gradient dark blue) */
.recent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  background:
    radial-gradient(120% 80% at 16% 8%, rgba(96, 160, 255, .18), transparent 60%),
    linear-gradient(180deg, #123a6d 0%, #071b2f 100%);
  border: 1px solid rgba(96, 160, 255, .28);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(6, 17, 28, .25), inset 0 0 0 1px rgba(255, 255, 255, .03);
  color: #e9f2ff;
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
  min-height: 140px;
  font-weight: 500;
}

.recent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 185, 255, .55);
  box-shadow: 0 18px 40px rgba(6, 17, 28, .36), inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.recent-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

/* Bottom row (date pill left, CTA right) */
.recent-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Date pill */
.recent-date {
  align-self: auto;
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(120, 170, 255, .14);
  color: #e9f2ff;
  border: 1px solid rgba(120, 170, 255, .35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

/* CTA (MIQ orange for contrast) */
.recent-cta {
  margin-top: 0;
  align-self: auto;
  display: inline-flex;
  gap: .35rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  background: transparent;
  color: #F28C1A;
  padding: .45rem .7rem;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.recent-card:hover .recent-cta,
.recent-card:focus-visible .recent-cta {
  background: #F28C1A;
  color: #183148;
  transform: translateY(-1px);
}


/* ===== Combined gradient band (Insights) ===== */
.band--insights {
  position: relative;
  padding-block: 48px; /* REDUCED from 42px-96px */
  background:
    radial-gradient(90vmax 60vmax at -10% 10%, rgba(242, 140, 26, .08), transparent 60%),
    radial-gradient(90vmax 60vmax at 110% 90%, rgba(24, 59, 102, .10), transparent 60%),
    linear-gradient(180deg, rgba(24, 59, 102, .03), rgba(24, 59, 102, .02));
  margin-left: 0;
  margin-right: 0;
}

/* Two-column split */
.insights-split {
  display: grid;
  gap:22px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .insights-split {
    grid-template-columns: 1fr 1fr;
  }
}

#insights-title {
  text-align: center;
  margin-bottom: 18px; /* REDUCED from 15px */
}

.insights-col {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding:17px;
  box-shadow: 0 10px 28px rgba(24, 59, 102, .10);
}

/* Column head */
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.col-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f283f;
}

/* Vertical list inside each column */
.insights-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Cards (compact) */
.insight-card {
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(24, 59, 102, .08);
  color: #12283e;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 90px;
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 59, 102, .22);
  box-shadow: 0 16px 32px rgba(24, 59, 102, .14);
}

.insight-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.insight-meta time {
  display: inline-block;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(24, 59, 102, .10);
  color: #183148;
  border: 1px solid rgba(24, 59, 102, .22);
}

.insight-cta {
  color: #c46600;
}

/* Empty state */
.empty {
  padding: 14px;
  border: 1px dashed #cfd8e3;
  border-radius: 12px;
  color: #5b7089;
  background: #f8fbff;
  font-size: .95rem;
}


/* ===== Case Studies band (brand gradients) ===== */
.band--cases {
  position: relative;
  padding-block:  0 48px; /* REDUCED from 42px-96px */
}

/* Grid */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2vw;
}

@media (min-width: 700px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card (dark, premium) */
.cs-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #10253b 0%, #0b1a2a 100%);
  border: 1px solid rgba(24, 59, 102, .25);
  box-shadow: 0 12px 28px rgba(6, 17, 28, .25);
  color: #e9f2ff;
  transition: transform .16s ease, box-shadow .2s ease, border-color .16s ease;
  min-height: 320px;
}

.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(6, 17, 28, .36);
  border-color: rgba(242, 140, 26, .45);
}

/* Thumb (16:9) — falls back to gradient if image missing */
.cs-thumb {
  aspect-ratio: 16/9;
  background-image:
    var(--img),
    radial-gradient(800px 400px at 30% 10%, #16324f, #0b1a2a);
  background-size: cover, cover;
  background-position: center, center;
  position: relative;
}

.cs-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .25));
}

/* Body */
.cs-title {
  margin: 14px 16px 8px;
  font-size: 1.06rem;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-excerpt {
  margin: 0 16px;
  color: #cfe0ff;
  font-size: .96rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

/* Footer */
.cs-meta {
  margin: auto 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-meta time {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(24, 59, 102, .25);
  color: #e9f2ff;
  border: 1px solid rgba(24, 59, 102, .45);
}
