/* Shared responsive polish for every Lawn Enforcement service site. */

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

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

a,
button,
.btn,
.form-control,
.form-select {
  touch-action: manipulation;
}

:where(a, button, .btn, .form-control, .form-select):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 72%, white);
  outline-offset: 3px;
}

.container {
  --bs-gutter-x: clamp(1.5rem, 4vw, 3rem);
}

.nav-modern > .container {
  flex-wrap: wrap;
  max-width: 1120px;
  padding-bottom: clamp(8px, 1vw, 11px);
  padding-top: clamp(8px, 1vw, 11px);
}

.nav-modern .navbar-brand {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  flex: 0 0 auto;
}

.brand-title {
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: break-word;
}

.nav-modern .navbar-toggler {
  min-height: 44px;
  min-width: 44px;
}

.nav-modern .nav-link,
.nav-modern .dropdown-item {
  line-height: 1.35;
}

.btn,
.footer-action,
.social-icons a {
  min-height: 44px;
}

.btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  padding: 0.65rem 1rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.standalone-cta {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.btn:hover,
.footer-action:hover,
.topbar-link:hover {
  transform: translateY(-2px);
}

.btn:active,
.footer-action:active,
.topbar-link:active {
  transform: translateY(0);
}

/* Make enquiry actions obvious while retaining each service's colour palette. */
.btn-gold {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--turf) 24%, transparent);
  font-weight: 800;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: color-mix(in srgb, var(--turf) 86%, black);
  border-color: color-mix(in srgb, var(--turf) 86%, black);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--turf) 32%, transparent);
  color: #fff;
}

.nav-actions .btn {
  background: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--gold) 38%, transparent);
  color: #15251d;
  min-height: 46px;
  padding-inline: 1.15rem;
}

.nav-actions .btn::after {
  content: "\2192";
  font-size: 1.15em;
  line-height: 1;
  margin-left: 0.5rem;
  transition: transform 0.18s ease;
}

.nav-actions .btn:hover,
.nav-actions .btn:focus-visible {
  background: color-mix(in srgb, var(--gold) 88%, white);
  border-color: color-mix(in srgb, var(--gold) 88%, white);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--gold) 46%, transparent);
  color: #102018;
}

.nav-actions .btn:hover::after {
  transform: translateX(3px);
}

.hero a.btn[href^="tel:"] {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.hero a.btn[href^="tel:"]::before,
.footer-action[href^="tel:"]::before,
.contact-actions a[href^="tel:"]::before {
  content: "\260E";
  margin-right: 0.48rem;
}

.footer-action[href^="mailto:"]::before,
.contact-actions a[href^="mailto:"]::before {
  content: "\2709";
  margin-right: 0.48rem;
}

.topbar-link {
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.05);
}

.topbar-link:first-child {
  background: var(--turf);
  border-color: var(--turf);
  color: #fff;
}

.topbar-link:first-child:hover {
  background: color-mix(in srgb, var(--turf) 86%, black);
  color: #fff;
}

.footer-action {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-action.primary {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.footer-action:not(.primary):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.hero {
  min-height: clamp(500px, 68svh, 680px);
}

.hero > .container {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem) !important;
  padding-top: clamp(3.5rem, 8vw, 6.5rem) !important;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero .kicker {
  line-height: 1.45;
  text-wrap: balance;
}

.page-hero h1,
main h2,
main h3 {
  text-wrap: balance;
}

main section.py-5 {
  padding-bottom: clamp(2.75rem, 6vw, 5rem) !important;
  padding-top: clamp(2.75rem, 6vw, 5rem) !important;
}

.card-square,
.instagram-carousel,
.contact-card {
  border-radius: 10px;
}

.card-square p:last-child,
.contact-card > :last-child {
  margin-bottom: 0;
}

.feature-grid > [class*="col-"] {
  display: flex;
}

.feature-grid .card-square {
  width: 100%;
}

.media-frame {
  display: block;
  width: 100%;
}

.instagram-carousel img {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 480px;
  width: 100%;
}

.table-responsive {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-responsive .table {
  margin-bottom: 0;
}

.quote-modal .modal-content,
.quote-card {
  border-radius: 12px;
}

.mobile-carousel-controls {
  display: none;
}

.mobile-accordion-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: default;
  display: block;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.mobile-accordion-icon {
  display: none;
}

.footer-accordion-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: default;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.footer-accordion-icon {
  display: none;
}

.mobile-sticky-cta {
  align-items: stretch;
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -10px 26px rgba(17, 44, 29, 0.16);
  box-sizing: border-box;
  display: none;
  gap: 8px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  left: 0;
  max-width: 100%;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: 0;
  width: 100%;
  z-index: 1030;
}

.mobile-sticky-cta a {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-sticky-call {
  background: var(--turf);
  border: 2px solid var(--turf);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--turf) 28%, transparent);
  color: #fff;
}

.mobile-sticky-call:hover,
.mobile-sticky-call:focus-visible {
  background: color-mix(in srgb, var(--turf) 86%, black);
  border-color: color-mix(in srgb, var(--turf) 86%, black);
  color: #fff;
}

.mobile-sticky-email {
  background: #fff;
  border: 2px solid var(--turf);
  color: var(--turf);
}

.mobile-sticky-email:hover,
.mobile-sticky-email:focus-visible {
  background: var(--soft);
  color: var(--turf);
}

.site-footer {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.site-footer .footer-shell {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
  width: 100%;
}

.site-footer .footer-hero,
.site-footer .footer-grid,
.site-footer .footer-bottom,
.site-footer .footer-panel,
.site-footer .footer-actions {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.site-footer .footer-brand {
  max-width: 100%;
  min-width: 0;
}

.site-footer .footer-brand span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer .footer-action,
.site-footer .social-icons a {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .nav-modern,
  .nav-modern > .container,
  .nav-modern .navbar-collapse {
    max-width: 100%;
  }

  .nav-modern .navbar-brand {
    flex: 1 1 0;
    margin-right: 8px;
    max-width: calc(100% - 58px) !important;
    width: auto;
  }

  .nav-modern .navbar-toggler {
    display: inline-flex !important;
    flex: 0 0 44px;
    margin-left: 0;
    position: static;
    transform: none;
  }

  .nav-modern .navbar-collapse {
    flex-basis: 100%;
    max-height: calc(100svh - 76px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
  }

  .nav-modern .navbar-nav {
    gap: 3px;
  }

  .nav-modern .nav-link,
  .nav-modern .dropdown-item {
    padding: 0.72rem 0.8rem;
  }

  .nav-modern .dropdown-menu {
    background: color-mix(in srgb, var(--soft) 70%, white);
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .row.align-items-start > .col-lg-6 + .col-lg-6,
  .row.align-items-end > .col-lg-7 + [class*="col-"] {
    margin-top: 0.6rem;
  }

  .instagram-intro {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    text-align: center;
  }

  .instagram-intro .kicker {
    margin-bottom: 0.55rem !important;
  }

  .instagram-intro h2 {
    margin-bottom: 0.75rem;
  }

  .instagram-intro p {
    margin-left: auto;
    margin-right: auto;
    max-width: 42ch;
    text-wrap: pretty;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-cta {
    display: grid;
  }

  .page-hero {
    padding-bottom: 2.75rem !important;
    padding-top: 2.75rem !important;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .card-square.p-4,
  .contact-card.p-4,
  .quote-card.p-4 {
    padding: 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-card-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 3px 0 14px;
    scroll-padding-inline: 0;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    width: 100%;
  }

  .mobile-card-carousel::-webkit-scrollbar {
    display: none;
  }

  .mobile-card-carousel > [class*="col-"] {
    flex: 0 0 min(82vw, 340px);
    max-width: min(82vw, 340px);
    padding-left: 0;
    padding-right: 0;
    scroll-snap-align: start;
  }

  .mobile-card-carousel .card-square {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  }

  .mobile-carousel-controls {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: -1.8rem auto 2.5rem;
    max-width: 100%;
    width: 100%;
  }

  .mobile-carousel-button {
    align-items: center;
    background: var(--turf);
    border: 1px solid var(--turf);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    height: 44px;
    justify-content: center;
    width: 44px;
  }

  .mobile-carousel-button:disabled {
    background: var(--soft);
    border-color: var(--line);
    color: var(--muted);
    opacity: 0.72;
  }

  .mobile-carousel-status {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    min-width: 3.2rem;
    text-align: center;
  }

  .mobile-accordion-grid {
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-accordion-grid > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-accordion-card {
    border-left: 4px solid var(--gold);
    border-top-width: 1px;
    padding: 0.85rem 1rem !important;
  }

  .mobile-accordion-card > h2,
  .mobile-accordion-card > h3 {
    font-size: 1rem;
    margin: 0;
  }

  .mobile-accordion-toggle {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 44px;
  }

  .mobile-accordion-icon {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
  }

  .mobile-accordion-icon::before {
    content: "+";
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
  }

  .mobile-accordion-toggle[aria-expanded="true"] .mobile-accordion-icon::before {
    content: "−";
  }

  .mobile-accordion-content {
    display: none;
    padding: 0.25rem 2.75rem 0.25rem 0;
  }

  .mobile-accordion-card.is-open .mobile-accordion-content {
    display: block;
  }

  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-footer .footer-shell {
    max-width: 548px;
    padding-left: 14px;
    padding-right: 14px;
    width: 100% !important;
  }

  .footer-shell,
  .footer-grid,
  .footer-panel,
  .footer-brand,
  .footer-brand span {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer .footer-grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .site-footer .footer-hero,
  .site-footer .footer-bottom {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-brand em,
  .footer-panel a,
  .footer-bottom {
    overflow-wrap: anywhere;
  }

  .site-footer .footer-brand {
    flex-direction: column;
    gap: 9px;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .site-footer .footer-brand span {
    flex: 0 1 auto;
  }

  .site-footer .footer-brand img {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
  }

  .product-size-actions {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .product-size-actions .badge {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 36px;
    padding: 0.55rem 0.8rem;
  }

  .product-size-actions .btn {
    flex-basis: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.35rem;
    max-width: 320px;
  }

  .footer-accordion-toggle {
    align-items: center;
    cursor: pointer;
    font-size: 0.78rem;
    margin: 0;
    min-height: 44px;
  }

  .footer-accordion-icon {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
  }

  .footer-accordion-icon::before {
    content: "+";
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
  }

  .footer-accordion-toggle[aria-expanded="true"] .footer-accordion-icon::before {
    content: "−";
  }

  .footer-accordion-toggle[aria-expanded="false"] + .footer-accordion-content {
    display: none;
  }

  .footer-accordion-content {
    padding-top: 0.65rem;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.96rem;
    line-height: 1.55;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-sticky-cta {
    align-items: stretch;
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -10px 26px rgba(17, 44, 29, 0.16);
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    left: 0;
    max-width: 100%;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    width: 100%;
    z-index: 1030;
  }

  .mobile-sticky-cta a {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    min-height: 50px;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-sticky-call {
    background: var(--turf);
    border: 2px solid var(--turf);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--turf) 28%, transparent);
    color: #fff;
  }

  .mobile-sticky-call:hover,
  .mobile-sticky-call:focus-visible {
    background: color-mix(in srgb, var(--turf) 86%, black);
    border-color: color-mix(in srgb, var(--turf) 86%, black);
    color: #fff;
  }

  .mobile-sticky-email {
    background: #fff;
    border: 2px solid var(--turf);
    color: var(--turf);
  }

  .mobile-sticky-email:hover,
  .mobile-sticky-email:focus-visible {
    background: var(--soft);
    color: var(--turf);
  }

  .nav-modern > .container {
    --bs-gutter-x: 1.5rem;
    padding-bottom: 8px;
    padding-top: 8px;
  }

  .nav-modern .navbar-brand {
    flex: 1 1 0;
    gap: 7px !important;
    margin-right: 7px;
    max-width: calc(100% - 51px) !important;
    width: auto;
  }

  .nav-modern .navbar-collapse {
    max-height: calc(100svh - 62px);
  }

  .brand-logo {
    height: 38px;
    width: 50px;
  }

  .brand-title {
    font-size: clamp(0.72rem, 3.4vw, 0.84rem);
    line-height: 1.1;
    max-width: 100%;
  }

  .hero {
    min-height: clamp(440px, 64svh, 530px);
  }

  .hero > .container {
    padding-bottom: 3rem !important;
    padding-top: 3rem !important;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    overflow-wrap: normal;
  }

  .hero .accent {
    display: inline;
  }

  .hero .lead {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 35ch;
  }

  .hero .kicker {
    font-size: 0.67rem;
    letter-spacing: 0.17em;
    margin-inline: auto;
    max-width: 34ch;
  }

  .hero .d-flex:has(> .btn),
  .contact-actions,
  .quote-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero .btn,
  .page-hero .btn {
    width: 100%;
  }

  main section.py-5 {
    padding-bottom: 2.75rem !important;
    padding-top: 2.75rem !important;
  }

  .feature-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-grid .card-square {
    border-radius: 9px;
  }

  .feature-grid p {
    overflow-wrap: anywhere;
  }

  .instagram-carousel img {
    aspect-ratio: 4 / 3;
  }

  .table-responsive {
    margin-left: calc(var(--bs-gutter-x) * -0.25);
    margin-right: calc(var(--bs-gutter-x) * -0.25);
  }

  .table {
    font-size: 0.86rem;
  }

  .quote-modal .modal-dialog {
    margin: 0.5rem;
  }

  .quote-modal .modal-header,
  .quote-modal .modal-body {
    padding: 1rem;
  }

  .site-footer .footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standalone-cta {
    width: min(100%, 320px);
  }

  .footer-action,
  .site-footer .social-icons a {
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 379.98px) {
  .site-footer .social-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .social-icons .social-text {
    grid-column: 1 / -1;
  }

  .site-footer .footer-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359.98px) {
  .hero .d-flex:has(> .btn),
  .contact-actions,
  .quote-actions,
  .site-footer .footer-actions {
    grid-template-columns: 1fr;
  }

  .feature-grid .card-square {
    display: block;
  }

  .feature-grid .service-icon {
    margin-bottom: 0.75rem;
  }

  .feature-grid p {
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
