/* Devfox homepage refinements */

/* Gold accent on homepage only (#ff991c → #C9A84C, #ffa80d → #CFAB4C) */
body.sk-home {
  --color-accent: #c9a84c;
  --color-accent-light: #cfab4c;
}

body.sk-home .mil-menu-frame::after {
  background: radial-gradient(ellipse at 100% 30%, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
}

body.sk-home .mil-menu-close:hover,
body.sk-home .mil-menu-close:focus-visible {
  background: rgba(201, 168, 76, 0.12);
}

/* Header hidden during intro preloader; shown when hero loads */
body.sk-home .mil-preloader {
  z-index: 200;
}

body.sk-home .mil-preloader:not(.mil-hidden)~.mil-frame {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sk-home .mil-preloader.mil-hidden~.mil-frame {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

body.sk-home .mil-frame-bottom .mil-current-page {
  display: none !important;
}

body.sk-home .mil-back-to-top {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Hero — offset survives GSAP preloader */
.sk-home-hero-shift,
#skHomeHeroShift {
  width: 100%;
  margin-left: 20px;
  transform: translate3d(-5px, -15px, 0) !important;
}

body.sk-home .mil-banner .mil-banner-content h1 {
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.stats-item {
  border-radius: 30px;
}

body.sk-home .mil-banner .mil-banner-content>p,
body.sk-home .mil-banner .mil-banner-content .mil-light-soft {
  max-width: 28rem;
  line-height: 1.65;
}

/* Services grid cards — consistent height on desktop */
@media (min-width: 992px) {
  body.sk-home .mil-services-grid-item .mil-service-card-sm {
    min-height: 100%;
  }
}

/* Impact stats */
.sk-home-stats__grid {
  row-gap: 3rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.sk-home-stat {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 0.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

.sk-home-stat__number {
  margin: 0 0 0.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sk-home-stat__value {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sk-home-stat__suffix {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  color: #c9a84c;
  margin-left: 0.1em;
}

.sk-home-stat__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

@media (min-width: 768px) {
  .sk-home-stats__grid {
    column-gap: 2rem;
  }
}

/* Pre-footer CTA */
.sk-home-cta {
  position: relative;
  overflow: hidden;
}

.sk-home-cta .mil-gradient {
  opacity: 0.85;
}

.sk-home-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.sk-home-cta__inner h2.sk-home-cta__title {
  letter-spacing: -0.02em;
  max-width: min(92vw, 56rem);
  margin-left: auto;
  margin-right: auto;
}

.sk-home-cta__title .sk-home-cta__line {
  display: block;
}

.sk-home-cta__title .sk-home-cta__line.mil-thin {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .sk-home-cta__inner h2.sk-home-cta__title {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
    line-height: 1.05;
  }
}

.sk-home-cta__inner p {
  line-height: 1.65;
}

/* Footer styles unified globally in css/footer-component.css */

@media screen and (min-width: 1201px) {
  body.sk-home {
    --sk-frame-x: 60px;
    --sk-logo-width: 5.625rem;
    --sk-logo-gap: 0.75cm;
    --sk-logo-clear: calc(var(--sk-frame-x) + var(--sk-logo-width) + var(--sk-logo-gap));
  }
}

/* ── Process Cards (How it works — mobile) ── */
.sk-process-suptitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0 0 8px;
}

.sk-process-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 32px;
  letter-spacing: -0.5px;
}

.sk-process-title .sk-thin {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.sk-process-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #0c0c0c;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 0.05px solid #38301b;
}

.sk-process-card__left-border {
  width: 4px;
  flex-shrink: 0;
  background: #c9a84c;
}

.sk-process-card__content {
  flex: 1;
  padding: 24px 20px;
  position: relative;
  z-index: 2;
}

.sk-process-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sk-process-card__number {
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.05em;
}

.sk-process-card__tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.85);
  background: rgba(148, 125, 63, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 4px 10px;
  border-radius: 3px;
}

.sk-process-card__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.sk-process-card__desc {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.5;
}

.sk-process-card__watermark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Menu overlay: gold tinted blur ── */
@media screen and (max-width: 1200px) {
  .mil-menu-frame {
    background-color: rgba(10, 8, 4, 0.85) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
    backdrop-filter: blur(24px) saturate(1.4) !important;
  }

  .mil-menu-frame::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .mil-menu-frame .container {
    position: relative;
    z-index: 1;
  }
}

/* ── Header slide animation on light/dark sections ── */
@media screen and (max-width: 1200px) {
  .mil-frame .mil-frame-top .mil-logo {
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .mil-frame .mil-frame-top .mil-menu-btn {
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .mil-frame .mil-frame-top {
    transition: background-color 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                backdrop-filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                -webkit-backdrop-filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s ease !important;
  }

  .mil-frame.mil-frame--on-light .mil-frame-top .mil-logo {
    transform: translateX(-80px) !important;
    opacity: 0 !important;
  }

  .mil-frame.mil-frame--on-light .mil-frame-top .mil-menu-btn {
    transform: translateX(80px) !important;
    opacity: 0 !important;
  }

  body .mil-frame.mil-frame--on-light .mil-frame-top,
  body.is-scrolled .mil-frame.mil-frame--on-light .mil-frame-top {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    -webkit-backdrop-filter: blur(0px) !important;
    backdrop-filter: blur(0px) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: visibility 0s 0.3s, background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease !important;
  }

  body .mil-frame:not(.mil-frame--on-light) .mil-frame-top,
  body.is-scrolled .mil-frame:not(.mil-frame--on-light) .mil-frame-top {
    visibility: visible !important;
    pointer-events: auto !important;
    transition: visibility 0s 0s, background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease !important;
  }
}



/* ── Logo shift left ── */
@media screen and (max-width: 1200px) {
  .mil-frame .mil-frame-top .mil-logo {
    margin-left: -26px !important;
  }
}

/* Mobile responsive styles (<768px) */
@media screen and (max-width: 768px) {

  /* Global Fixes */
  .mil-wrapper {
    overflow-x: hidden !important;
  }

  .mil-ball {
    display: none !important;
  }

  .container {
    margin-top: 20vh;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* 1. Hero Section */
  .mil-banner {
    overflow: hidden !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    position: relative !important;
  }

  .sk-home-hero-shift,
  #skHomeHeroShift {
    margin-left: 0 !important;
    transform: none !important;
  }

  .mil-banner .mi-invert-fix {
    height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
  }

  .mil-banner .container {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
  }

  .sk-home-hero-shift,
  #skHomeHeroShift {
    margin-left: 0 !important;
    transform: none !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
  }

  .mil-banner .mil-banner-content {
    padding-top: 0 !important;
    padding-bottom: 120px !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: left !important;
  }

  .mil-banner .mil-banner-content h1 {
    font-size: 44px !important;
    line-height: 1.08 !important;
    margin-bottom: 24px !important;
  }

  .mil-banner .mil-banner-content .mil-light-soft {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .mil-banner .mil-banner-content .mil-button {
    position: absolute !important;
    /* 2mm above the very bottom of the mobile viewport */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 2mm) !important;
    left: 24px !important;
    width: calc(100% - 48px) !important;
    margin: 0 !important;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
  }

  .mil-banner .mil-banner-content .mil-mb-60 {
    margin-bottom: 20px !important;
  }

  .mil-circle-text {
    display: none !important;
  }

  body.sk-home .mil-preloader:not(.mil-hidden)~.mil-frame {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mil-banner .mil-animation-frame {
    transform: scale(0.4) !important;
    transform-origin: center center !important;
  }

  .mil-about-photo.mil-mb-90 {
    display: none !important;
  }

  #about .col-lg-5 {
    display: none !important;
  }

  .mil-about-quote {
    display: none !important;
  }

  /* 2. Second Hero / Tagline Section */
  .mil-p-120-0 {
    padding-top: 60px !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  .mil-p-120-0 .mil-h1 {
    font-size: 34px !important;
  }

  .mil-suptitle {
    padding: 0 24px !important;
  }

  .mil-services-button {
    width: 100% !important;
    justify-content: center;
    margin: 20px 0 !important;
  }

  .mil-p-120-0 .mil-animation-frame {
    max-width: 100vw;
    overflow: hidden !important;
  }

  /* 3. About Section */
  body.sk-home #about .mil-p-120-30 {
    padding-top: 24px !important;
    padding-bottom: 56px !important;
  }

  #about h2 {
    font-size: 32px !important;
    margin-bottom: 18px !important;
  }

  #about .mil-mb-90 {
    margin-bottom: 0 !important;
  }

  #about .mil-up.mil-mb-30 {
    margin-bottom: 14px !important;
  }

  #about .mil-up.mil-mb-60 {
    margin-bottom: 0 !important;
  }

  /* 4. Services Cards Section */
  body.sk-home .mil-dark-bg .container.mil-p-120-0 {
    padding-top: 28px !important;
  }

  body.sk-home .mil-dark-bg .container.mil-p-120-0 .mil-mb-120 {
    margin-bottom: 30px !important;
  }

  .mil-service-card-sm {
    padding: 28px 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mil-service-card-sm h5 {
    font-size: 20px !important;
  }

  .mil-service-card-sm p {
    font-size: 14px !important;
  }

  /* 5. Stats Section */
  body.sk-home .sk-home-stats .mil-p-120-90 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .sk-home-stats h2.mil-mb-90 {
    margin-bottom: 24px !important;
  }

  .sk-home-stats__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .sk-home-stat {
    padding: 24px 16px !important;
  }

  .sk-home-stat__value {
    font-size: 48px !important;
  }

  .sk-home-stat__label {
    font-size: 11px !important;
  }

  .sk-home-stats h2 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  /* 6. Delivery Sequence / Preloader */
  .mil-preloader {
    display: none !important;
  }

  /* 7. CTA Section */
  .sk-home-cta .mil-p-120-90 {
    padding: 80px 24px !important;
  }

  .sk-home-cta__inner p {
    padding: 0 24px !important;
    font-size: 14px !important;
  }

  .sk-mobile-delivery {
    display: block !important;
  }
}

@media screen and (max-width: 1200px) {
  /* Header is fully transparent at the top of the page (over the hero). */
  .mil-frame .mil-frame-top {
    background-color: transparent !important;
    border-bottom: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Once the user has scrolled, paint the dark blurred header background. */
  body.is-scrolled .mil-frame .mil-frame-top {
    background-color: rgba(8, 8, 8, 0.55) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
    backdrop-filter: blur(14px) saturate(1.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  /* When the header is over a light section, the bg should disappear cleanly
     (no leftover blur skirt) so logo + menu can slide off-screen unobstructed. */
  body.is-scrolled .mil-frame.mil-frame--on-light .mil-frame-top {
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
}