/* Home page styles — scoped to body.home. Shared header/footer live in layout.css */

.home {
  --radius: 16px;
  --shadow-sm: 0 6px 18px rgba(16, 43, 84, 0.08);
  --shadow-md: 0 18px 45px rgba(16, 43, 84, 0.14);
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  background: #fff;
}
.home h1,
.home h2,
.home h3 {
  letter-spacing: -0.035em;
}

/* ---------- Buttons & links ---------- */
.home .button {
  border-radius: 10px;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(36, 77, 226, 0.28);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.home .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 77, 226, 0.38);
}
.home .button.outline {
  box-shadow: none;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.06);
}
.home .button.outline:hover {
  background: rgba(255, 255, 255, 0.16);
}
.home .button.white {
  box-shadow: 0 12px 28px rgba(6, 27, 59, 0.25);
}
.home .text-link {
  border-bottom: 2px solid #bdcafa;
  transition: border-color 0.25s, color 0.25s, letter-spacing 0.25s;
}
.home .text-link:hover {
  border-color: var(--blue);
  letter-spacing: 0.01em;
}
.home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.home .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* ---------- Hero carousel ---------- */
.home .hero {
  min-height: 0;
  overflow: hidden;
}
.hero-slide {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.home .hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}
.home .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(6, 27, 59, 0.96) 0%,
    rgba(8, 31, 62, 0.78) 45%,
    rgba(8, 31, 62, 0.15) 100%
  );
}
/* Darken the top so the transparent header stays readable */
.home .hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(6, 27, 59, 0.75), transparent);
}
.home .hero-overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(6, 27, 59, 0.55), transparent);
}
.home .hero-content {
  padding-block: 190px 150px;
}
.home .hero h1,
.home .hero .hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  max-width: 820px;
  margin-bottom: 24px;
  color: #fff;
}
.home .hero-content > p:not(.eyebrow) {
  color: #d8e1ef;
  max-width: 520px;
  font-size: 18px;
}

/* Fallback: show only the first slide if Owl fails to load */
.hero-slider.owl-carousel:not(.owl-loaded) {
  display: block;
}
.hero-slider:not(.owl-loaded) .hero-slide:not(:first-child) {
  display: none;
}

/* Slide-in content + slow zoom on the active slide */
.hero-slider.owl-loaded .hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-slider .owl-item.active .hero-content > * {
  opacity: 1;
  transform: none;
}
.hero-slider .owl-item.active .hero-content > :nth-child(1) {
  transition-delay: 0.25s;
}
.hero-slider .owl-item.active .hero-content > :nth-child(2) {
  transition-delay: 0.4s;
}
.hero-slider .owl-item.active .hero-content > :nth-child(3) {
  transition-delay: 0.55s;
}
.hero-slider .owl-item.active .hero-content > :nth-child(4) {
  transition-delay: 0.7s;
}
.hero-slider .owl-item.active .hero-slide > img {
  animation: kenburns 7s ease-out both;
}
@keyframes kenburns {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* Arrows + dots + note live in .hero-bar, aligned to the Bootstrap container */
.hero-bar {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.hero-bar > .container {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 50px;
}
.hero-bar .hero-dots,
.hero-bar .hero-note,
.hero-bar .hero-nav button {
  pointer-events: auto;
}
.hero-nav button {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-nav button:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.06);
}
.hero-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-nav .owl-prev {
  left: 22px;
}
.hero-nav .owl-next {
  right: 22px;
}
.hero-dots {
  display: flex;
  gap: 4px;
  padding-bottom: 8px;
}
.hero-dots .owl-dot {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hero-dots .owl-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s, background 0.3s;
}
.hero-dots .owl-dot.active span,
.hero-dots .owl-dot:hover span {
  width: 34px;
  background: #fff;
}

.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 5;
}
.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6f8fff, #fff);
}
.hero-progress.run span {
  animation: progress var(--slide-time, 6s) linear forwards;
}
@keyframes progress {
  to {
    width: 100%;
  }
}
.home .hero-note {
  position: static;
  margin-left: auto;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(6, 27, 59, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 0 10px 10px 0;
  text-align: left;
  line-height: 1.6;
}

/* ---------- Stats ---------- */
.home .stats {
  position: relative;
  z-index: 6;
  margin-top: -40px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 34px 44px;
  display: flex;
  justify-content: center;
}
.home .stats > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--pale);
  color: var(--blue);
  transition: background 0.3s, color 0.3s;
}
.home .stats > div:hover .stat-icon {
  background: var(--blue);
  color: #fff;
}
.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home .stats strong {
  color: var(--navy);
}

/* ---------- About split ---------- */
.home .about-split {
  padding-top: 110px;
}
.about-media {
  position: relative;
  padding: 0 28px 28px 0;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 28px 0 0 28px;
  border-radius: var(--radius);
  background-image: radial-gradient(#b7c6f6 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  z-index: -1;
}
.about-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  background: var(--grad);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(36, 77, 226, 0.35);
}
.about-badge strong {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.about-badge span {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.9;
}

/* ---------- Industries ---------- */
.home .pale {
  background: linear-gradient(180deg, var(--pale) 0%, #f7f9fd 100%);
}
.home .industry-grid {
  gap: 22px;
}
.home .industry {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
  isolation: isolate;
  transition: transform 0.35s, box-shadow 0.35s;
}
.home .industry:first-child {
  grid-column: span 2;
}
.home .industry img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}
.home .industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(6, 27, 59, 0) 30%,
    rgba(6, 27, 59, 0.88) 100%
  );
  transition: background 0.35s;
}
.home .industry > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  color: #fff;
}
.home .industry span {
  color: #b5ccff;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.home .industry h3 {
  margin: 6px 50px 0 0;
  color: #fff;
}
.home .industry b {
  top: auto;
  bottom: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}
.home .industry:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.home .industry:hover img {
  transform: scale(1.08);
}
.home .industry:hover::before {
  background: linear-gradient(
    180deg,
    rgba(36, 77, 226, 0.1) 20%,
    rgba(16, 43, 84, 0.95) 100%
  );
}
.home .industry:hover b {
  background: var(--blue);
  transform: rotate(45deg);
}

/* ---------- Process cards ---------- */
.home .cards {
  gap: 22px;
  margin-block: 10px 0;
  counter-reset: step;
}
.home .card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 28px;
  min-height: 170px;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  isolation: isolate;
}
.home .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}
.home .card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--pale);
  z-index: -1;
  transition: background 0.35s, transform 0.35s;
}
.home .number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pale);
  font-weight: 700;
  margin-bottom: 28px;
  transition: background 0.35s, color 0.35s;
}
.home .card h3 {
  margin: 0;
  transition: color 0.35s;
}
.home .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.home .card:hover::before {
  opacity: 1;
}
.home .card:hover::after {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.4);
}
.home .card:hover h3 {
  color: #fff;
}
.home .card:hover .number {
  background: #fff;
  color: var(--blue);
}

/* ---------- CTA ---------- */
.home .cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--grad);
  border-radius: 24px;
  padding: 64px 70px;
  margin-bottom: 0;
  box-shadow: 0 24px 50px rgba(36, 77, 226, 0.28);
}
.home .cta::before,
.home .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: -1;
}
.home .cta::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -200px;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04);
}
.home .cta::after {
  width: 260px;
  height: 260px;
  left: 38%;
  bottom: -190px;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: linear-gradient(180deg, #fff 0%, var(--pale) 22%);
  padding-top: 0;
}
/* CTA now follows testimonials: continue the pale band down to the footer */
.cta-section {
  background: var(--pale);
  padding-bottom: 88px;
}
.testi-slider .owl-stage-outer {
  padding: 12px 6px 28px;
  margin: -12px -6px 0;
}
.testi-slider .owl-stage {
  display: flex;
}
.testi-slider .owl-item {
  display: flex;
}
.testi-slider.owl-carousel:not(.owl-loaded) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 32px 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}
.testi-card::before {
  content: "\201C";
  position: absolute;
  right: 26px;
  top: 6px;
  font: 700 110px/1 Georgia, serif;
  color: var(--pale);
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.stars {
  color: #f5b301;
  letter-spacing: 3px;
  font-size: 17px;
  margin-bottom: 16px;
}
.testi-card blockquote {
  position: relative;
  flex: 1;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
}
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.testi-card figcaption strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-slider.owl-theme .owl-dots {
  margin-top: 8px !important;
}
.testi-slider.owl-theme .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: #c9d4e6;
  transition: width 0.3s, background 0.3s;
}
.testi-slider.owl-theme .owl-dots .owl-dot.active span,
.testi-slider.owl-theme .owl-dots .owl-dot:hover span {
  width: 30px;
  background: var(--blue);
}

/* ---------- Scroll reveal ---------- */
.js .home .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .home .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
  .home .stats {
    padding: 28px 30px;
  }
  .home .stats > div + div {
    padding-left: 24px;
  }
  .stat-icon {
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 950px) {
  .hero-slide {
    min-height: 700px;
  }
  .home .stats {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 18px;
  }
  .home .stats > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .home .industry-grid,
  .home .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-bar > .container {
    align-items: center;
    height: auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    padding-bottom: 0;
  }
  .hero-nav {
    display: flex;
    gap: 10px;
  }
  .hero-nav button {
    position: static;
    margin: 0;
    width: 46px;
    height: 46px;
  }
  .hero-dots {
    padding-bottom: 0;
  }
  .home .cta {
    padding: 50px 40px;
  }
}
@media (max-width: 650px) {
  .hero-slide {
    min-height: 720px;
    align-items: flex-start;
  }
  .home .hero-slide > img {
    object-position: 63%;
  }
  .home .hero-overlay {
    background: linear-gradient(90deg, #061b3bef, #081f3e99);
  }
  .home .hero-content {
    padding-block: 150px 130px;
  }
  .home .hero h1,
  .home .hero .hero-title {
    font-size: 40px;
  }
  .home .hero-content > p:not(.eyebrow) {
    font-size: 16px;
  }
  .home .stats {
    margin-top: -30px;
    padding: 24px;
  }
  .stat-icon {
    width: 46px;
    height: 46px;
  }
  .home .about-split {
    padding-top: 70px;
  }
  .about-media {
    padding: 0 16px 16px 0;
  }
  .about-media::before {
    inset: 16px 0 0 16px;
  }
  .about-media img {
    height: 300px;
  }
  .about-badge {
    padding: 14px 18px;
  }
  .about-badge strong {
    font-size: 34px;
  }
  .home .industry-grid {
    gap: 12px;
  }
  .home .industry {
    min-height: 190px;
  }
  .home .industry > div {
    padding: 16px;
  }
  .home .industry h3 {
    font-size: 17px;
    margin-right: 0;
  }
  .home .industry b {
    display: none;
  }
  .home .cards {
    gap: 12px;
  }
  .home .card {
    padding: 20px;
    min-height: 140px;
  }
  .home .number {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
  }
  .home .cta {
    padding: 40px 26px;
    border-radius: 18px;
  }
  .cta-section {
    padding-bottom: 55px;
  }
  .testi-card {
    padding: 30px 24px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .owl-item.active .hero-slide > img {
    animation: none;
  }
  .js .home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slider.owl-loaded .hero-content > * {
    transition: none;
  }
}
