/* Homepage-only mobile refinements. Desktop styles remain owned by main.css. */
@media (max-width: 991px) {
  .header-area .header__wrap {
    min-height: 64px;
  }

  .header-area .xb-header-logo {
    width: clamp(104px, 30vw, 124px);
    max-width: none;
    flex: 0 0 auto;
    padding-left: 0;
  }

  .header-area .xb-header-logo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .header-area .xb-nav-mobile {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #282824;
    border: 1px solid #bd9850 !important;
    border-radius: 50%;
    opacity: 1;
    position: relative;
    z-index: 5;
  }

  .header-area .xb-nav-mobile i {
    color: #fff;
    opacity: 1;
  }

  .header-area .xb-nav-mobile:focus-visible {
    outline: 3px solid #bd9850;
    outline-offset: 3px;
  }

  .hero-area-two {
    min-height: clamp(500px, 65svh, 580px);
    padding-top: clamp(76px, 13svh, 112px);
  }

  .hero-area-two::before {
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(246, 243, 234, 0.28) 0%,
      rgba(246, 243, 234, 0.60) 68%,
      #fdfaf3 100%
    );
    filter: none;
  }

  .hero-area-two .xb-slider-img-item img {
    height: 135%;
    object-fit: cover;
    object-position: center top;
  }

  .ar-hero-bottom {
    margin-top: clamp(26px, 5svh, 42px);
  }

  .ar-hero-bottom .xb-item--holder {
    gap: 16px;
    margin-bottom: clamp(20px, 4svh, 34px);
    align-items: flex-start;
  }

  .ar-hero-bottom .xb-item--content {
    max-width: 34ch;
    font-size: clamp(16px, 4.6vw, 18px);
    line-height: 1.45;
  }

  .ar-hero-bottom .xb-item--text {
    align-items: center;
    gap: 8px;
  }

  .ar-hero-bottom .xb-item--text img {
    width: clamp(23px, 7vw, 30px);
    height: auto;
    flex: 0 0 auto;
  }

  .ar-hero-bottom .xb-item--text span {
    max-width: 24ch;
    font-size: clamp(16px, 4.5vw, 18px);
    line-height: 1.4;
  }

  .ar-hero-bottom .xb-item--title {
    width: 100%;
    margin: 0;
    font-size: clamp(39px, 13.5vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .ar-hero-bottom .xb-item--title .xb-text-scale-anim {
    display: block;
    width: 100%;
    transform-origin: left center;
  }

  .about.pt-135.pb-150 {
    padding-top: clamp(72px, 20vw, 88px) !important;
    padding-bottom: 90px !important;
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .header-area .xb-header-logo {
    width: clamp(100px, 20vw, 110px);
  }

  .hero-area-two {
    min-height: 500px;
    padding-top: 88px;
  }

  .ar-hero-bottom {
    margin-top: 24px;
  }

  .ar-hero-bottom .xb-item--holder {
    margin-bottom: 18px;
  }

  .ar-hero-bottom .xb-item--title {
    font-size: clamp(40px, 9vw, 50px);
  }
}

@media (max-width: 767px) {
  /* Keep the existing desktop brand rows; flatten them into a compact mobile grid. */
  .brand.pt-135.pb-135 {
    padding-block: clamp(52px, 14vw, 64px);
  }

  .brand .sec-title {
    margin-bottom: clamp(24px, 6vw, 30px);
  }

  .brand .xb-brand-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 440px;
    gap: 12px;
    margin-bottom: 0;
    margin-inline: auto;
    border: 0;
  }

  .brand .xb-brand-inner {
    display: contents;
  }

  .brand .xb-brand-item {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1.18 / 1;
    width: min(100%, 200px);
    justify-self: center;
    padding: 12px;
    border: 1px solid #dddbdb;
    background: rgba(255, 255, 255, 0.42);
  }

  .brand .xb-brand-item:not(:last-child) {
    border-right: 1px solid #dddbdb;
  }

  .brand .xb-brand-container > .xb-brand-inner:last-child > .xb-brand-item:last-child {
    grid-column: 1 / -1;
    width: min(calc((100% - 12px) / 2), 200px);
    justify-self: center;
    border-bottom: 1px solid #dddbdb;
  }

  .brand .xb-brand-item .xb-img {
    width: 100%;
    max-width: 130px;
    padding: 0;
  }

  .brand .xb-brand-item .xb-img img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 240px) {
  .brand .xb-brand-container {
    grid-template-columns: 1fr;
  }

  .brand .xb-brand-container > .xb-brand-inner:last-child > .xb-brand-item:last-child {
    grid-column: auto;
    width: min(100%, 200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-area-two .xb-hero-img-slider .xb-slider-img-item,
  .hero-area-two .xb-item--title .xb-text-scale-anim,
  .header-area .xb-nav-mobile {
    animation: none !important;
    transition: none !important;
  }
}
