/* ==========================================================================
   Hero section — full responsive
   ========================================================================== */

/* Large laptop (1200px – 1399px) */
@media only screen and (max-width: 1399.98px) {
  .ahi-hero {
    min-height: 760px;
  }

  .ahi-hero-content {
    min-height: 760px;
    padding: 148px 0 60px;
  }

  .ahi-hero-copy {
    max-width: 400px;
  }

  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 44px;
    max-width: 400px;
  }

  .ahi-hero .ahi-eyebrow {
    font-size: 13px;
    padding: 9px 18px;
    letter-spacing: 1.2px;
  }

  .ahi-hero .ahi-actions {
    margin-top: 36px;
    flex-wrap: wrap;
  }

  .ahi-hero .ahi-btn {
    min-height: 52px;
    padding: 0 20px;
    font-size: 15px;
  }

  .ahi-hero .ahi-btn-primary,
  .ahi-hero .ahi-btn-light {
    min-width: 0;
  }

  .ahi-hero-visual-wrap {
    width: min(500px, 46vw);
    height: min(660px, calc(100% - 88px));
    transform: translateX(-38%);
  }

  .ahi-hero .ahi-summary {
    width: min(340px, 30vw);
    bottom: 56px;
  }

  .ahi-hero-summary-card {
    padding: 20px 18px 18px;
  }

  .ahi-hero .ahi-summary p {
    font-size: 16px;
  }

  .ahi-hero-orbit {
    width: 420px;
    height: 420px;
  }

  .ahi-hero-spotlight {
    width: 360px;
    height: 360px;
  }
}

/* Tablet landscape (992px – 1199px) — stacked layout */
@media only screen and (max-width: 1199.98px) {
  .contact-hero .conatct-banner,
  .contact-hero .contact-container.conatct-banner,
  .ahi-framework-hero-content,
  .ahi-rosew-hero .ahi-container,
  .partners-hero .conatct-banner,
  .governance-banner .conatct-banner,
  .country-profile .conatct-banner {
    padding-top: 92px !important;
  }

  .ahi-hero {
    min-height: auto;
    overflow-x: clip;
  }

  .ahi-hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 92px 20px 48px;
  }

  .ahi-hero-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .ahi-hero-copy-panel {
    max-width: 680px;
    padding-left: 18px;
  }

  .ahi-hero-copy,
  .ahi-hero .ahi-copy {
    width: 100%;
    max-width: 100%;
  }

  .ahi-hero-copy-panel::before {
    height: calc(100% - 8px);
  }

  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 40px;
    max-width: 100%;
  }

  .ahi-hero .ahi-eyebrow {
    width: fit-content;
    max-width: 100%;
    font-size: 12px;
    letter-spacing: 1.1px;
    white-space: normal;
    text-align: center;
  }

  .ahi-hero .ahi-actions {
    margin-top: 28px;
    gap: 14px;
  }

  .ahi-hero-visual-wrap {
    order: 2;
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 460px;
    height: auto;
    min-height: 300px;
    margin: 24px auto 0;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .ahi-hero-visual-wrap.ahi-hero-visual-ready {
    transform: none !important;
  }

  .ahi-hero-visual-wrap .ahi-hero-image {
    width: 100%;
    max-width: 460px;
    height: auto;
    max-height: 400px;
    margin: 0 auto;
    opacity: 1 !important;
    object-position: bottom center;
  }

  .ahi-hero .ahi-summary {
    order: 3;
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 680px;
    margin: 20px auto 0;
  }

  .ahi-hero-orbit,
  .ahi-hero-spotlight,
  .ahi-hero-pulse,
  .ahi-hero-bg-glow-secondary {
    display: none;
  }

  .ahi-hero-bg-glow {
    top: 55%;
    width: 420px;
    height: 420px;
  }
}

/* Tablet portrait (768px – 991px) */
@media only screen and (max-width: 991.98px) {
  .ahi-hero-content {
    padding: 84px 16px 40px;
  }

  .contact-hero .conatct-banner,
  .contact-hero .contact-container.conatct-banner {
    padding-top: 88px;
  }

  .ahi-hero-copy-panel {
    padding-left: 16px;
  }

  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 34px;
    line-height: 1.15;
  }

  .ahi-hero .ahi-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .ahi-hero .ahi-btn {
    flex: 1 1 calc(50% - 7px);
    min-width: 140px;
    min-height: 50px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .ahi-hero-visual-wrap {
    max-width: 400px;
    min-height: 260px;
    margin-top: 20px;
  }

  .ahi-hero-visual-wrap .ahi-hero-image {
    max-width: 400px;
    max-height: 360px;
    opacity: 1 !important;
  }

  .ahi-hero-summary-card {
    padding: 18px 16px 16px;
    border-radius: 16px;
  }

  .ahi-hero .ahi-summary p {
    font-size: 15px;
    line-height: 1.5;
  }

  .ahi-hero .ahi-btn-outline {
    min-height: 48px;
    font-size: 14px;
  }
}

/* Small tablet / large phone (576px – 767px) */
@media only screen and (max-width: 767.98px) {
  .ahi-hero-content {
    padding: 80px 16px 36px;
  }

  .contact-hero .conatct-banner,
  .contact-hero .contact-container.conatct-banner {
    padding-top: 84px;
  }

  .ahi-hero-copy-panel::before {
    width: 2px;
  }

  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 30px;
  }

  .ahi-hero .ahi-eyebrow {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.9px;
  }

  .ahi-hero .ahi-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }

  .ahi-hero .ahi-btn {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .ahi-hero-visual-wrap {
    max-width: 100%;
    min-height: 240px;
    margin-top: 16px;
  }

  .ahi-hero-visual-wrap .ahi-hero-image {
    max-width: 320px;
    max-height: 320px;
  }

  .ahi-hero .ahi-summary {
    margin-top: 16px;
  }

  .ahi-hero .ahi-summary p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .ahi-hero-grid-overlay {
    opacity: 0.2;
  }
}

/* Mobile (up to 575px) */
@media only screen and (max-width: 575.98px) {
  .ahi-hero {
    min-height: auto;
  }

  .ahi-hero-content {
    padding: 76px 12px 32px;
  }

  .contact-hero .conatct-banner,
  .contact-hero .contact-container.conatct-banner {
    padding-top: 80px;
  }

  .ahi-hero-copy-panel {
    padding-left: 14px;
  }

  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .ahi-hero .ahi-hero-gradient {
    display: inline;
  }

  .ahi-hero .ahi-eyebrow {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 0.7px;
    line-height: 1.3;
  }

  .ahi-hero .ahi-actions {
    margin-top: 18px;
  }

  .ahi-hero .ahi-btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  .ahi-hero-visual-wrap {
    min-height: 200px;
    margin-top: 12px;
  }

  .ahi-hero-visual-wrap .ahi-hero-image {
    max-width: 280px;
    max-height: 280px;
  }

  .ahi-hero-summary-card {
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .ahi-hero .ahi-summary p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .ahi-hero .ahi-btn-outline {
    min-height: 44px;
    font-size: 13px;
  }

  .ahi-hero::after {
    width: 200px;
    height: 200px;
    right: -30px;
    top: -30px;
    filter: blur(100px);
  }

  .ahi-hero-bg-glow {
    width: 280px;
    height: 280px;
  }
}

/* Very small phones (up to 399px) */
@media only screen and (max-width: 399.98px) {
  .ahi-hero-title,
  .ahi-hero .ahi-hero-title {
    font-size: 23px;
  }

  .ahi-hero .ahi-eyebrow {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .ahi-hero-visual-wrap .ahi-hero-image {
    max-width: 240px;
    max-height: 240px;
  }

  .ahi-hero .ahi-btn {
    font-size: 13px;
  }
}

/* Disable float animation on touch devices */
@media (hover: none), (max-width: 1199.98px) {
  .ahi-hero-visual-wrap .ahi-hero-image {
    animation: none !important;
  }
}
