/* /homenew — mobile & tablet polish */

html,
body {
  overflow-x: clip;
}

/* Hero banner title — full-width, spacious (admin slogan) */
.home-hero {
  overflow: visible;
}

.banner-title-wrapper {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
  overflow: visible;
}

.banner-title {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
  line-height: 1.06;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 6.8vw, 6.3125rem);
  padding-inline: 0.08em;
  box-sizing: border-box;
}

.banner-title #setting,
.banner-title #standards {
  display: inline;
}

.banner-title #standards::before {
  content: " ";
}

@media (min-width: 768px) {
  .banner-title {
    letter-spacing: 0.045em;
  }
}

@media (min-width: 1440px) {
  .banner-title {
    font-size: 6.3125rem;
    letter-spacing: 0.05em;
  }
}

/* Projects category cards — sharper images + subtle motion */
.businesses_card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1d22;
}
.businesses_card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.08) saturate(1.14);
  transition:
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
  animation: bizCardImageDrift 16s ease-in-out infinite;
  will-change: transform;
}
.businesses_card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0.45;
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.businesses_card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 34%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}
.businesses_card:hover .businesses_card__media img {
  animation: none;
  transform: scale(1.14);
  filter: brightness(1.18) contrast(1.1) saturate(1.2);
}
.businesses_card:hover .businesses_card__shine {
  opacity: 0.72;
}
.businesses_card .plus-icon,
.businesses_card .businesses_card_content {
  z-index: 2;
}

/* Projects cards — rich hover overlay */
.businesses_card_content {
  justify-content: flex-end;
  padding: 1.35rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.15) 0%, rgba(8, 10, 14, 0.82) 42%, rgba(8, 10, 14, 0.94) 100%);
  backdrop-filter: blur(2px);
}
.businesses_card:hover .businesses_card_content,
.businesses_card:focus-within .businesses_card_content,
.businesses_card.is-expanded .businesses_card_content {
  height: 100%;
  justify-content: flex-start;
  padding-top: 1.5rem;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(8px);
}
.businesses_card:hover .plus-icon svg,
.businesses_card:focus-within .plus-icon svg,
.businesses_card.is-expanded .plus-icon svg {
  opacity: 0;
  transform: rotate(45deg);
}
.biz-overlay__head {
  flex-shrink: 0;
}
.biz-overlay__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.biz-overlay__title {
  display: inline-block;
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}
.biz-overlay__title:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}
.biz-overlay__title--plain {
  margin: 0;
}
.biz-overlay__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
  min-height: 0;
  flex: 1;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.businesses_card:hover .biz-overlay__body,
.businesses_card:focus-within .biz-overlay__body,
.businesses_card.is-expanded .biz-overlay__body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.biz-overlay__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}
.biz-overlay__group--posts {
  flex: 1;
  min-height: 0;
}
.biz-overlay__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.biz-overlay__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0;
}
.biz-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.biz-overlay__links--scroll {
  max-height: min(42vh, 220px);
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.biz-overlay__links--scroll::-webkit-scrollbar {
  width: 4px;
}
.biz-overlay__links--scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.biz-overlay__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 1;
  height: auto;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, color 0.22s ease;
}
.biz-overlay__link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-overlay__link-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.biz-overlay__link--sub {
  background: rgba(255, 255, 255, 0.08);
}
.biz-overlay__link--post {
  background: rgba(255, 255, 255, 0.04);
}
.biz-overlay__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}
.biz-overlay__link:hover .biz-overlay__link-icon {
  opacity: 1;
  transform: translateX(2px);
  color: var(--primary-color);
}
.biz-overlay__link--muted {
  opacity: 0.72;
  cursor: default;
}
.biz-overlay__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 0%, rgba(8, 10, 14, 0.95) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.businesses_card:hover .biz-overlay__fade,
.businesses_card:focus-within .biz-overlay__fade,
.businesses_card.is-expanded .biz-overlay__fade {
  opacity: 1;
}
.businesses_card_content .links {
  display: none;
}
@keyframes bizCardImageDrift {
  0%, 100% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.11) translate3d(-1.2%, -0.8%, 0);
  }
}

html.drawer-open,
html.drawer-open body {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .home-page .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section-heading {
    font-size: clamp(1.55rem, 5.2vw, 2.15rem);
    line-height: 1.15;
  }

  .project-find {
    padding: clamp(56px, 12vw, 80px) 0 clamp(64px, 12vw, 90px);
  }

  .project-find__lead {
    font-size: 0.92rem;
    padding: 0 0.25rem;
  }

  .project-find__card {
    border-radius: 1.1rem;
  }


  .explore__viewport {
    width: 88vw !important;
  }

  .explore-slide .media {
    height: clamp(200px, 52vw, 340px) !important;
  }
}

@media (max-width: 767.98px) {
  /* Navbar — fix style.css 120×30 logo override */
  #navbar .navbar__logo {
    width: auto !important;
    height: auto !important;
    flex-shrink: 0;
  }

  #navbar {
    padding-left: 5%;
    padding-right: 5%;
  }

  #navbar .navbar__links {
    gap: 0.35rem;
    align-items: center;
  }

  #navbar .menu-btn-wrapper {
    margin-left: 0.65rem !important;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  #navbar .theme-toggle-wrap,
  #navbar .theme-toggle {
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  #navbar .theme-toggle__label {
    display: none;
  }

  /* Hero */
  .home-hero {
    padding-top: clamp(88px, 14vw, 108px);
  }

  .banner-cover {
    height: min(72svh, 620px);
    width: 100%;
    max-width: 100vw;
  }

  .banner-title-wrapper {
    padding: 0 clamp(14px, 5vw, 24px) 32px;
  }

  .banner-title {
    white-space: normal;
    word-break: normal;
    font-size: clamp(1.25rem, 6.5vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: 0.025em;
    padding-inline: 0.1em;
  }

  .banner-title #setting,
  .banner-title #standards {
    display: block;
  }

  .banner-title #standards::before {
    content: none;
  }

  /* Intro / video */
  .intro {
    padding-top: clamp(48px, 10vw, 72px);
    overflow: visible;
  }

  .intro .container,
  .home-about.container {
    padding-left: 5%;
    padding-right: 5%;
  }

  .home-about {
    padding: 28px 0 1.5rem;
  }

  .home-about__desc {
    font-size: 0.94rem;
    line-height: 1.75;
    max-width: none;
    margin-inline-start: 0;
  }

  .video_area {
    padding: 36px 0 48px;
  }

  .video_area #video {
    width: 92%;
    transform: none !important;
  }

  .strap {
    top: 52px;
    font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  }

  /* Featured slider */
  .slider_area:not(.connect_area) {
    min-height: min(92svh, 780px);
    height: min(92svh, 780px) !important;
  }

  .slider_area:not(.connect_area) .featured__slides {
    min-height: 0;
  }

  .slide_info {
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.85rem;
    padding: 0 5% calc(1.15rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .slide_info__left {
    width: 100%;
    justify-content: flex-end;
  }

  .navigation-controller {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0 !important;
  }

  .featured__item .project-title {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
    padding-bottom: 0.85rem;
  }

  .featured__item .read_more {
    min-height: 48px;
    margin-top: 1rem;
  }

  .stats_bar {
    flex: 1;
    min-width: 0;
  }

  .bars .bar.active {
    width: 36px;
  }

  .navigation {
    margin-left: 12px;
    gap: 16px;
    flex-shrink: 0;
  }

  .prev-button,
  .next-button {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  /* Project search */
  .project-find__ghost {
    font-size: clamp(44px, 16vw, 72px) !important;
  }

  .project-find__head {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }

  .project-find__eyebrow {
    font-size: 0.65rem;
  }

  .project-find__form {
    padding: 1rem;
  }

  .pf-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .pf-field--action {
    grid-column: 1;
  }

  .pf-select-wrap select,
  .project-find-choices .choices__inner {
    min-height: 54px;
  }

  .pf-submit {
    height: 54px;
  }

  .pf-submit__text {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .project-find-choices .choices__list--dropdown {
    left: 0 !important;
    right: 0 !important;
  }

  /* Drawer menu */
  .drawerItems {
    width: 100%;
    max-width: 100%;
    padding:
      max(20px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
  }

  .drawerItemsContent {
    margin-top: 1.5rem;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .menu_close_icon {
    min-height: 44px;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }

  .menu_parents_links .parent_link {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.32rem;
    line-height: 1.25;
    padding: 0.6rem 0;
    -webkit-tap-highlight-color: transparent;
  }

  .drawerItems .navbar-social {
    padding-top: 1.75rem;
    margin-top: auto;
  }

  .drawerItems .social_icons {
    width: 42px;
    height: 42px;
  }

  /* Explore */
  .explore {
    padding-top: 56px;
    margin-bottom: 64px;
  }

  .explore__heading {
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    padding: 0 5%;
    transform: translateX(60px);
  }

  .explore-navigation {
    padding: 16px 5%;
  }

  /* Businesses / Projects cards */
  .businesses-wrapper {
    padding: 64px 0 48px;
  }

  .businesses-wrapper-content {
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 42px;
  }

  .fill_text,
  .outline_text {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
    top: 36px;
    opacity: 0.42;
  }

  .outline_text {
    opacity: 1;
    -webkit-text-stroke-width: 1px;
  }

  .card_list {
    margin-top: 0.75rem;
  }

  .businesses_card {
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    max-height: 72svh;
  }

  .businesses_card_content {
    height: auto;
    min-height: 96px;
    max-height: 42%;
    padding: 1rem 0.95rem 0.95rem;
  }

  .businesses_card .biz-overlay__head {
    flex-shrink: 0;
  }

  .businesses_card .biz-overlay__body {
    display: none;
  }

  .businesses_card.is-expanded .businesses_card_content {
    height: 100%;
    max-height: none;
    justify-content: flex-start;
    padding-top: 1.15rem;
  }

  .businesses_card.is-expanded .biz-overlay__body {
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .businesses_card.is-expanded .plus-icon svg {
    opacity: 0;
    transform: rotate(45deg);
  }

  .businesses_card__media img {
    animation: none;
    transform: scale(1.06);
  }

  .businesses_card:hover .businesses_card__media img,
  .businesses_card.is-expanded .businesses_card__media img {
    transform: scale(1.1);
  }

  .businesses_card::after {
    content: "Tap to explore";
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 4;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
  }

  .businesses_card.is-expanded::after {
    content: "Tap to close";
  }

  .biz-overlay__links--scroll {
    max-height: min(34svh, 200px);
  }

  .business-navigation {
    padding: 1rem 5% 0 0;
    justify-content: flex-end;
  }

  .business-navigation .nav-arrow {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Head office + connect section spacing */
  .head-office {
    padding: 52px 0 44px;
  }

  .head-office .container,
  .connect_area .connect__panel {
    padding-left: 5%;
    padding-right: 5%;
  }

  .section-heading {
    font-size: clamp(1.45rem, 5.8vw, 2rem);
  }

  /* Page bottom safe area (WhatsApp float) */
  .home-page {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .homenew-site-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* Footer */
  .homenew-site-footer {
    padding: 32px 0 16px;
  }

  .homenew-site-footer .container {
    padding-left: 5%;
    padding-right: 5%;
  }

  .homenew-site-footer .footer-brand {
    gap: 14px;
  }

  .homenew-site-footer .footer-brand__logo {
    height: 112px;
  }

  .homenew-site-footer .footer-meta {
    font-size: 0.98rem;
  }

  .homenew-site-footer .footer-address {
    font-size: 0.98rem;
    margin-top: 0.5rem;
  }

  .homenew-site-footer .footer-copy {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .homenew-site-footer .footer-copy .sep {
    display: inline-block;
    padding: 0 6px;
  }
}

@media (max-width: 575.98px) {
  #navbar {
    --logo-size: calc(58px - 28px * var(--nav-compress, 0));
    --logo-depth: calc(29px - 14px * var(--nav-compress, 0));
    --logo-img: calc(46px - 22px * var(--nav-compress, 0));
    --nav-pad-y: calc(14px - 8px * var(--nav-compress, 0));
    padding-top: var(--nav-pad-y);
    padding-bottom: var(--nav-pad-y);
  }

  #navbar .navbar__logo .logo-cube-wrapper {
    width: var(--logo-size) !important;
    height: var(--logo-size) !important;
  }

  #navbar .navbar__logo .logo-cube {
    width: 100% !important;
    height: 100% !important;
  }

  #navbar .navbar__logo .logo-cube .face {
    width: 100% !important;
    height: 100% !important;
  }

  #navbar .navbar__logo .logo-cube .face img {
    width: var(--logo-img) !important;
    height: var(--logo-img) !important;
  }

  #navbar .navbar__logo .logo-cube .front  { transform: rotateY(0deg) translateZ(var(--logo-depth)); }
  #navbar .navbar__logo .logo-cube .right  { transform: rotateY(90deg) translateZ(var(--logo-depth)); }
  #navbar .navbar__logo .logo-cube .back   { transform: rotateY(180deg) translateZ(var(--logo-depth)); }
  #navbar .navbar__logo .logo-cube .left   { transform: rotateY(-90deg) translateZ(var(--logo-depth)); }

  .menu-icon .line1,
  .menu-icon .line2 {
    width: 26px;
  }

  .homenew-site-footer .footer-brand__logo {
    height: 100px;
  }
}

@media (max-width: 767.98px) and (orientation: landscape) {
  .banner-cover {
    height: min(88svh, 560px) !important;
  }

  .slider_area:not(.connect_area) {
    min-height: auto;
    height: auto;
  }

  .slider_area:not(.connect_area) .featured__slides {
    min-height: 52vh;
  }
}
