/* =========================================================
   KIRA HOMEPAGE HERO — FINAL DESKTOP ALIGNMENT
   ========================================================= */

@media (min-width: 981px) {
  .hero {
    min-height: auto !important;
    overflow: hidden !important;
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns:
      minmax(0, 0.92fr)
      minmax(0, 1.08fr) !important;

    align-items: start !important;
    gap: 34px !important;

    min-height: 570px !important;
    padding-top: 30px !important;
    padding-bottom: 34px !important;
  }

  .hero-copy {
    min-width: 0 !important;
    padding-top: 20px !important;
  }

  .hero-visual {
    position: relative !important;

    width: 100% !important;
    max-width: 760px !important;
    min-width: 0 !important;
    min-height: 470px !important;

    margin: 0 0 0 auto !important;
    align-self: start !important;

    overflow: visible !important;
  }

  .hero-image-card {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;

    width: 100% !important;
    max-width: 760px !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    overflow: hidden !important;

    border-radius: 24px !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    transform: none !important;
  }

  .trust-panel {
    position: absolute !important;

    right: 18px !important;
    bottom: 0 !important;
    left: 18px !important;

    z-index: 6 !important;

    width: auto !important;
    min-width: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    padding: 8px 10px !important;

    border-radius: 17px !important;
  }

  .trust-item {
    min-width: 0 !important;
    min-height: 58px !important;

    display: flex !important;
    align-items: center !important;

    gap: 8px !important;
    padding: 7px 9px !important;

    font-size: 0.74rem !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;

    white-space: normal !important;
  }

  .trust-icon {
    flex: 0 0 32px !important;

    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    font-size: 0.8rem !important;
  }
}

@media (min-width: 981px) and (max-width: 1250px) {
  .hero-grid {
    grid-template-columns:
      minmax(0, 0.95fr)
      minmax(0, 1.05fr) !important;

    gap: 24px !important;
  }

  .hero-visual {
    max-width: 680px !important;
    min-height: 430px !important;
  }

  .hero-image-card {
    max-width: 680px !important;
    height: 410px !important;
    min-height: 410px !important;
    max-height: 410px !important;
  }

  .trust-item {
    padding-inline: 6px !important;
    font-size: 0.69rem !important;
  }

  .trust-icon {
    flex-basis: 29px !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
  }
}

/* =========================================================
   HOMEPAGE HERO IMAGE SIZE REDUCTION ONLY
   Reduce right image by 20%, keep same position
   ========================================================= */

@media (min-width: 981px) {
  .hero-image-card {
    width: 80% !important;
    max-width: 608px !important;   /* 760 x 0.8 */
    height: 360px !important;      /* 450 x 0.8 */
    min-height: 360px !important;
    max-height: 360px !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
  }
}

@media (min-width: 981px) and (max-width: 1250px) {
  .hero-image-card {
    width: 80% !important;
    max-width: 544px !important;   /* 680 x 0.8 */
    height: 328px !important;      /* 410 x 0.8 */
    min-height: 328px !important;
    max-height: 328px !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
  }
}

/* =========================================================
   HOMEPAGE VISUAL CONTRAST AND ALIGNMENT ONLY
   ========================================================= */

@media (min-width: 981px) {

  /*
   * Align the trust frame exactly with the reduced hero image.
   * The image is 80% of the 760px visual area: 608px.
   */
  .trust-panel {
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;

    width: 80% !important;
    max-width: 608px !important;
    min-width: 0 !important;

    padding: 9px 10px !important;

    border: 2px solid #2f8f68 !important;
    border-radius: 17px !important;

    background: #07563f !important;
    box-shadow: 0 12px 28px rgba(3, 61, 43, 0.18) !important;
  }

  .trust-item {
    min-width: 0 !important;
    min-height: 58px !important;

    padding: 7px 9px !important;

    color: #ffffff !important;
    font-size: 0.73rem !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
  }

  .trust-item + .trust-item {
    border-left: 1px solid rgba(255,255,255,0.28) !important;
  }

  .trust-icon {
    border: 1px solid rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
    background: rgba(255,255,255,0.06) !important;
  }

  /*
   * Keep all three homepage actions on one horizontal line.
   */
  .hero-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;

    width: max-content !important;
    max-width: 100% !important;
  }

  .hero-actions .button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;

    min-height: 46px !important;
    padding: 10px 17px !important;

    border: 2px solid #38a568 !important;
    border-radius: 11px !important;

    color: #064b37 !important;
    background: #ffffff !important;

    font-weight: 800 !important;

    box-shadow: 0 6px 14px rgba(5, 76, 54, 0.08) !important;
  }

  .hero-actions .button:hover {
    border-color: #087744 !important;
    color: #ffffff !important;
    background: #087744 !important;
  }

  /*
   * Increase hero-content contrast without changing its layout.
   */
  .hero h1 {
    color: #063e30 !important;
    font-weight: 800 !important;
  }

  .hero h1 span {
    color: #078341 !important;
  }

  .hero-description {
    color: #294c40 !important;
  }

  .hero-image-card {
    border: 2px solid #80b99a !important;
    box-shadow: 0 14px 32px rgba(4, 67, 48, 0.13) !important;
  }
}

@media (min-width: 981px) and (max-width: 1250px) {
  .trust-panel {
    width: 80% !important;
    max-width: 544px !important;
  }

  .hero-actions {
    gap: 8px !important;
  }

  .hero-actions .button {
    padding-inline: 12px !important;
    font-size: 0.8rem !important;
  }
}

/* Expanded homepage hero definition */
.hero-description-secondary {
  margin-top: 12px !important;
  max-width: 620px !important;
  color: #294c40 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

@media (max-width: 980px) {
  .hero-description-secondary {
    margin-top: 10px !important;
    font-size: 0.88rem !important;
  }
}

.hero-description-secondary {
  margin-top: 12px !important;
  max-width: 620px !important;
  color: #294c40 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

@media (max-width: 980px) {
  .hero-description-secondary {
    margin-top: 10px !important;
    font-size: 0.88rem !important;
  }
}

/* Slight reduction of homepage hero descriptive text */
.hero-description,
.hero-description-secondary {
  font-size: 0.86rem !important;
  line-height: 1.48 !important;
}

@media (max-width: 980px) {
  .hero-description,
  .hero-description-secondary {
    font-size: 0.82rem !important;
    line-height: 1.46 !important;
  }
}

/* Refined homepage hero description typography */
.hero-description-group {
  width: 100%;
  max-width: 650px;
  margin-top: 18px;
}

.hero-description-group .hero-description {
  margin: 0;
  max-width: 650px;

  color: #24483d !important;

  font-family:
    "Manrope",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;

  font-size: 0.94rem !important;
  font-weight: 500 !important;
  line-height: 1.68 !important;
  letter-spacing: 0.005em !important;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-description-group .hero-description-secondary {
  margin-top: 14px !important;
  color: #365b50 !important;
}

@media (max-width: 980px) {
  .hero-description-group {
    max-width: 100%;
    margin-top: 14px;
  }

  .hero-description-group .hero-description {
    max-width: 100%;
    font-size: 0.9rem !important;
    line-height: 1.62 !important;
  }

  .hero-description-group .hero-description-secondary {
    margin-top: 12px !important;
  }
}

/* =========================================================
   HOMEPAGE VIVID CONTENT AND CARD BORDER REFINEMENT
   ========================================================= */

/* Stronger overall text contrast */
.hero-copy,
.feature-card,
.cta-bar,
.trust-panel {
  color: #123f33;
}

.hero-description-group .hero-description {
  color: #214b3e !important;
}

.hero-description-group .hero-description-secondary {
  color: #315b4d !important;
}

.feature-card h2,
.feature-card h3,
.cta-bar h2,
.cta-bar h3 {
  color: #073f31 !important;
  font-weight: 800 !important;
}

.feature-card p,
.cta-bar p {
  color: #3d5f54 !important;
}

/* More visible homepage cards */
.feature-card {
  border: 2px solid #9fc9ad !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(5, 74, 56, 0.09) !important;
}

.feature-card:hover {
  border-color: #4fa76d !important;
  box-shadow: 0 14px 30px rgba(5, 74, 56, 0.14) !important;
}

/* Stronger CTA and supporting frames */
.cta-bar,
.trust-panel {
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #5fa879 !important;
  box-shadow: 0 10px 24px rgba(5, 74, 56, 0.1) !important;
}

/* More visible buttons without changing size */
.hero-actions .button,
.feature-card .button,
.cta-bar .button {
  border-width: 2px !important;
  border-color: #279253 !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 12px rgba(5, 74, 56, 0.08) !important;
}

.hero-actions .button:hover,
.feature-card .button:hover,
.cta-bar .button:hover {
  border-color: #086d3a !important;
  box-shadow: 0 8px 16px rgba(5, 74, 56, 0.13) !important;
}

/* Improve small labels and secondary details */
.eyebrow,
.feature-card .card-label,
.feature-card .meta,
.trust-item {
  color: #0b6f42 !important;
  font-weight: 800 !important;
}

/* Minimize mobile gap between hero buttons and hero image */
@media (max-width: 980px) {
  .hero-grid {
    gap: 8px !important;
    padding-bottom: 10px !important;
  }

  .hero-copy {
    padding-bottom: 4px !important;
  }

  .hero-actions {
    margin-bottom: 4px !important;
  }

  .hero-visual {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero-image-card {
    position: relative !important;
    inset: auto !important;
    min-height: 260px !important;
    height: 260px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    gap: 4px !important;
    padding-bottom: 6px !important;
  }

  .hero-copy {
    padding-bottom: 0 !important;
  }

  .hero-actions {
    margin-bottom: 2px !important;
  }

  .hero-visual {
    min-height: 0 !important;
  }

  .hero-image-card {
    min-height: 240px !important;
    height: 240px !important;
  }
}

/* Services & Offerings card: stronger service-icon borders */
.feature-card.services-offerings .feature-icon,
.feature-card[data-card="services-offerings"] .feature-icon,
.services-offerings-card .feature-icon {
  border-color: #169653 !important;
  border-width: 2px !important;
  background: #f3fbf6 !important;
  box-shadow: 0 4px 10px rgba(13, 126, 65, 0.12) !important;
}
