/* /homenew — mobile & tablet polish */

html,
body {
  overflow-x: clip;
}

/* Hero banner title — single line, scaled to fit */
.banner-title {
  white-space: nowrap;
  line-height: 1.12;
  letter-spacing: 0.015em;
  max-width: min(96vw, 1180px);
  margin-inline: auto;
  font-size: clamp(1.35rem, 3.6vw, 3.5rem);
}
.banner-title #setting,
.banner-title #standards {
  display: inline;
}
.banner-title #standards::before {
  content: " ";
}
@media (min-width: 768px) {
  .banner-title {
    font-size: clamp(1.75rem, 3.8vw, 3.75rem);
  }
}
@media (min-width: 1200px) {
  .banner-title {
    font-size: clamp(2rem, 3.2vw, 3.75rem);
  }
}
@media (min-width: 1440px) {
  .banner-title {
    font-size: 58px;
  }
}

/* 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;
}
@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;
  }

  .connect.section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .connect__body .section-heading {
    margin-bottom: 1.25rem;
  }

  .connect__card {
    padding: 1.2rem 1.15rem;
  }

  .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 {
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  /* Hero */
  .home-hero {
    padding-top: clamp(96px, 16vw, 120px);
  }

  .banner-title-wrapper {
    padding: 0 5% 36px;
  }

  .banner-title {
    white-space: nowrap !important;
    word-break: normal;
    font-size: clamp(1.1rem, 4.8vw, 2.1rem) !important;
    line-height: 1.1;
    letter-spacing: 0.008em;
  }

  /* Intro / video */
  .intro .container,
  .home-about.container {
    padding-left: 5%;
    padding-right: 5%;
  }

  .home-about__desc {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .video_area {
    padding: 44px 0 56px;
  }

  .video_area #video {
    width: 92%;
  }

  .strap {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  /* Featured slider */
  .slider_area {
    clip-path: inset(6vh 5vw round 18px);
  }

  .slide_info__left .project-title,
  .featured__item .project-title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .slide_info__left .project-address,
  .featured__item .project-address {
    font-size: 0.88rem;
  }

  /* 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 */
  .businesses-wrapper-content {
    padding-left: 5%;
    padding-right: 5%;
  }

  .fill_text,
  .outline_text {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .businesses_card__media img {
    animation: none;
    transform: scale(1.06);
  }

  .businesses_card:hover .businesses_card__media img {
    transform: scale(1.1);
  }

  /* 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.88rem;
  }

  .homenew-site-footer .footer-address {
    font-size: 0.88rem;
    margin-top: 0.5rem;
  }

  .homenew-site-footer .footer-copy {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .homenew-site-footer .footer-copy .sep {
    display: inline-block;
    padding: 0 6px;
  }
}

@media (max-width: 575.98px) {
  #navbar .navbar__logo .logo-cube-wrapper {
    width: 58px !important;
    height: 58px !important;
  }

  #navbar .navbar__logo .logo-cube {
    width: 58px !important;
    height: 58px !important;
  }

  #navbar .navbar__logo .logo-cube .face {
    width: 58px !important;
    height: 58px !important;
  }

  #navbar .navbar__logo .logo-cube .face img {
    width: 46px !important;
    height: 46px !important;
  }

  #navbar .navbar__logo .logo-cube .front  { transform: rotateY(0deg) translateZ(29px); }
  #navbar .navbar__logo .logo-cube .right  { transform: rotateY(90deg) translateZ(29px); }
  #navbar .navbar__logo .logo-cube .back   { transform: rotateY(180deg) translateZ(29px); }
  #navbar .navbar__logo .logo-cube .left   { transform: rotateY(-90deg) translateZ(29px); }

  .menu-icon .line1,
  .menu-icon .line2 {
    width: 26px;
  }

  .homenew-site-footer .footer-brand__logo {
    height: 100px;
  }

  .connect__card h3 {
    font-size: 1.15rem;
  }

  .connect__card p {
    font-size: 0.88rem;
  }
}

@media (max-width: 767.98px) and (orientation: landscape) {
  .banner-cover {
    height: 92svh !important;
  }

  .slider_area {
    height: 92svh;
  }
}
