/* Shared responsive improvements for all public-facing pages. */
html {
  scroll-padding-top: 1rem;
}

body {
  min-width: 320px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.footer-section .footer-logo-wrap img {
  width: min(100%, 220px);
  height: auto;
}

.footer-heading {
  margin-bottom: 1rem;
  color: #24313a;
  font-size: 1rem;
  font-weight: 700;
}

.footer-contact-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  line-height: 1.45;
}

.footer-contact-list strong {
  display: block;
  color: #4f5d55;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.footer-contact-list a {
  display: inline-block;
  padding: .15rem 0;
}

@media (max-width: 1199.98px) {
  .custom-navbar {
    padding: 10px 0;
  }

  .custom-navbar .navbar-toggler {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: .65rem;
  }

  .custom-navbar .navbar-collapse {
    max-height: calc(100vh - 84px);
    margin-top: 10px;
    padding: 12px 4px 16px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .custom-navbar .custom-navbar-nav {
    width: 100%;
    gap: 2px;
  }

  .custom-navbar .custom-navbar-nav li a {
    min-height: 44px;
    padding: 11px 12px;
    border-radius: .55rem;
    font-size: 16px;
    line-height: 1.4;
  }

  .custom-navbar .custom-navbar-nav li a::before {
    display: none;
  }

  .custom-navbar .custom-navbar-nav li.active > a,
  .custom-navbar .custom-navbar-nav li a:hover,
  .custom-navbar .custom-navbar-nav li a:focus-visible {
    background: rgba(255, 255, 255, .1);
  }

  .custom-navbar .custom-navbar-nav .dropdown,
  .custom-navbar #postsdropdown {
    width: 100%;
  }

  .custom-navbar #postsdropdown {
    min-height: 44px;
    margin-top: 4px;
    text-align: left;
  }

  .custom-navbar .dropdown-menu {
    width: 100%;
    margin-top: 4px;
    border-color: rgba(255, 255, 255, .12);
  }

  .custom-navbar .dropdown-item {
    white-space: normal;
  }

  .custom-navbar .custom-navbar-cta {
    width: 100%;
    margin-top: 8px;
  }

  .custom-navbar .header-social-link {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .container,
  .container-fluid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .page-hero {
    padding: 44px 0;
    text-align: left;
  }

  .page-hero::before {
    width: 55%;
  }

  .page-hero h1 {
    margin-bottom: .75rem;
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .2);
  }

  .page-hero .lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .page-hero-icon {
    margin-bottom: .65rem;
    font-size: 2.5rem;
  }

  .page-hero .row > [class*="col-"] + [class*="col-"] {
    margin-top: 1.5rem;
  }

  .hero {
    padding: 44px 0;
  }

  .hero h1 {
    margin-bottom: .5rem;
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.15;
  }

  .hero .hero-img-wrap {
    min-height: 0;
  }

  .hero .hero-img-wrap::after {
    display: none;
  }

  .hero .hero-img-wrap img {
    position: static;
    width: min(100%, 360px);
    margin: 1.5rem auto 0;
  }

  .content-section,
  .content-section-alt,
  .untree_co-section,
  .product-section,
  .why-choose-section,
  .we-help-section,
  .blog-section {
    padding: 36px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2,
  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .unified-card {
    border-radius: 12px;
  }

  .unified-card .card-header,
  .unified-card .card-body {
    padding: 1.15rem;
  }

  .unified-card .card-header h2,
  .unified-card .card-header h3 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .table-responsive {
    margin-right: -.25rem;
    padding-bottom: .5rem;
  }

  .unified-table {
    min-width: 620px;
    margin-bottom: .25rem;
    font-size: .88rem;
  }

  .unified-table thead th,
  .unified-table tbody td {
    padding: .75rem;
  }

  .hero-buttons {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
  }

  .hero-buttons .btn {
    width: 100%;
    margin: 0 !important;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .form-control,
  .form-select {
    font-size: 16px;
  }

  .footer-section {
    padding: 48px 0 28px;
  }

  .footer-section .links-wrap {
    margin-top: 0;
  }

  .footer-section .copyright {
    margin-top: 1.5rem;
  }

  .gallery-stats,
  .album-filter {
    padding: 1.15rem;
    border-radius: 12px;
  }

  .gallery-image-container {
    height: 230px;
  }

  .modal-dialog {
    margin: .75rem;
  }
}

@media (max-width: 575.98px) {
  .custom-navbar .navbar-brand {
    margin-right: 10px;
  }

  .custom-navbar .navbar-brand .header-logo {
    width: 185px !important;
    height: auto !important;
  }

  .footer-section .row.g-5 {
    --bs-gutter-y: 2rem;
  }

  .footer-heading {
    margin-bottom: .65rem;
  }
}

@media (hover: none) {
  .unified-card:hover,
  .gallery-card:hover,
  .board-card:hover,
  .btn-primary-custom:hover,
  .btn-outline-primary-custom:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
