/* Responsive declarations that intentionally outrank the inner-page layer.
   Kept separate and loaded later so normal cascade order controls priority. */

@media (max-width: 1240px) {
  html body[data-page] .desktop-nav {
    display: none;
  }

  html body[data-page] .header-quote {
    display: none;
  }

  html body[data-page] .menu-toggle {
    display: grid;
  }

  html body[data-page] .mobile-menu a.active {
    color: #43c879;
  }

}

/* Keep homepage hero navigation controls perfectly circular in flex layouts. */
body.home-page .hero-nav .hero-prev,
body.home-page .hero-nav .hero-next {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  flex: 0 0 46px;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

body.home-page .hero-nav .hero-prev:hover,
body.home-page .hero-nav .hero-next:hover {
  color: var(--forest);
  border-color: #fff;
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  html body[data-page] .category-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  html body[data-page] .product-grid.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 520px) {
  html body[data-page] .topbar,
  html body[data-page].home-page .topbar {
    height: 106px;
    min-height: 106px;
  }

  html body[data-page] .topbar-inner,
  html body[data-page].home-page .topbar-inner {
    height: 106px;
    min-height: 106px;
  }

  html body[data-page] .topbar-contact a:first-child {
    display: inline-flex;
  }

  html body[data-page] .topbar-social {
    display: flex;
  }

  html body[data-page] .nav-bar,
  html body[data-page] .nav-inner,
  html body[data-page].home-page .nav-bar,
  html body[data-page].home-page .nav-inner {
    height: 70px;
    min-height: 70px;
  }

  html body[data-page] .inner-hero-content {
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
    transform: none;
  }

  html body[data-page] .category-layout {
    gap: 38px;
  }

  html body[data-page].home-page .hero-section,
  html body[data-page].home-page .hero-swiper,
  html body[data-page].home-page .hero-slide,
  html body[data-page].home-page .hero-slide .hero-content {
    width: 100%;
  }

  html body[data-page].home-page .hero-slide .hero-content {
    inset: 0;
    max-width: none;
    transform: none;
  }

  html body[data-page].home-page .service-tabs {
    height: 78px;
    min-height: 78px;
  }

  html body[data-page].home-page .service-tabs button,
  html body[data-page].home-page .service-tabs button.active {
    min-width: 205px;
    height: 78px;
    min-height: 78px;
  }

  html body[data-page].home-page .project-swiper .swiper-slide {
    width: 100%;
  }

  html body[data-page].home-page .home-proof-strip > .home-proof-grid {
    width: calc(100% - 40px);
  }

  html body[data-page].home-page .newsletter-card {
    width: calc(100vw - 28px);
  }

}

@media (max-width: 1240px) {
  html body[data-page] .mobile-has-children ul {
    display: none;
  }

  html body[data-page] .mobile-has-children.is-open > ul {
    display: block;
  }

  html body[data-page] .mobile-has-children button i {
    transform: none;
  }

  html body[data-page] .mobile-has-children.is-open > div > button i {
    transform: rotate(180deg);
  }

}

@media (max-width: 520px) {
  html body[data-page] .topbar,
  html body[data-page].home-page .topbar,
  html body[data-page] .topbar-inner,
  html body[data-page].home-page .topbar-inner {
    height: 46px;
    min-height: 46px;
  }

  html body[data-page] .topbar-contact,
  html body[data-page] .topbar-social {
    display: none;
  }

  html body[data-page] .topbar-mobile-contact {
    display: flex;
  }

  html body[data-page] .search-overlay-form input,
  html body[data-page] .search-overlay-form input:focus,
  html body[data-page] .search-overlay-form input:focus-visible {
    border: 0;
    outline: 0;
    box-shadow: none;
  }

  html body[data-page].home-page .hero-section,
  html body[data-page].home-page .hero-swiper,
  html body[data-page].home-page .hero-slide,
  html body[data-page].home-page .hero-slide .hero-content {
    height: 590px;
    min-height: 590px;
  }

  html body[data-page].home-page .hero-copy {
    display: block;
  }

  html body[data-page].home-page .hero-content > .btn {
    display: inline-flex;
  }

  html body[data-page].home-page .service-panel-copy > span,
  html body[data-page].home-page .service-panel-copy h3,
  html body[data-page].home-page .service-panel-copy p {
    display: block;
  }

  html body[data-page].home-page .project-gallery > .project-swiper {
    width: calc(100% - 40px);
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
  }

  html body[data-page].home-page .project-gallery > .project-swiper .swiper-wrapper,
  html body[data-page].home-page .project-gallery > .project-swiper .swiper-slide {
    width: 100%;
  }

  html body[data-page] .site-footer,
  html body[data-page].home-page .site-footer {
    margin-top: 0;
  }

  html body[data-page] .newsletter-card,
  html body[data-page].home-page .newsletter-card {
    width: calc(100vw - 32px);
    transform: translateX(-50%);
  }

  html body[data-page] .newsletter-visual,
  html body[data-page].home-page .newsletter-visual {
    display: none;
  }

  html body[data-page] .footer-grid > .footer-col:not(.footer-contact) {
    display: none;
  }

}

html body[data-page] .collection-actions .btn,
html body[data-page] .collection-actions .btn span,
html body[data-page] .collection-actions .btn i {
  color: #fff;
}

@media (max-width: 520px) {
  html body[data-page] .topbar,
  html body[data-page].home-page .topbar {
    border-radius: 0 0 8px 8px;
  }

  html body[data-page] .search-overlay-inner {
    display: block;
    padding: 0;
    border: 0;
  }

  html body[data-page] .search-overlay-form {
    display: flex;
    width: 100%;
    border: 0;
  }

  html body[data-page] .search-overlay-form input {
    width: calc(100% - 52px);
  }

  html body[data-page].home-page .hero-slide .hero-content {
    justify-content: center;
  }

  html body[data-page].home-page .hero-kicker {
    display: none;
  }

  html body[data-page].home-page .service-panel-copy {
    top: auto;
    display: flex;
    height: auto;
  }

  html body[data-page].home-page .service-panel-copy > span {
    display: none;
  }

  html body[data-page].home-page .service-panel-copy h3,
  html body[data-page].home-page .service-panel-copy p,
  html body[data-page].home-page .service-panel-copy .btn {
    position: static;
    inset: auto;
    transform: none;
  }

  html body[data-page].home-page .service-panel-copy p {
    width: 100%;
  }

  html body[data-page].home-page .product-swiper {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 16px 20px 58px;
    overflow: hidden;
  }

  html body[data-page].home-page .product-swiper .product-card {
    box-shadow: 0 14px 20px rgba(5, 47, 34, .10);
  }

  html body[data-page].home-page .service-panel {
    height: 500px;
    min-height: 500px;
  }

  html body[data-page].home-page .news-card-image {
    height: auto;
  }

  html body[data-page].home-page .news-card-image > a:first-child,
  html body[data-page].home-page .news-card-image img {
    height: auto;
  }

  html body[data-page].home-page .news-category {
    top: auto;
    bottom: -16px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  html body[data-page] .newsletter-card .footer-kicker,
  html body[data-page].home-page .newsletter-card .footer-kicker {
    display: none;
  }

}
