/* Urban Forest Base — Responsive Styles */

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual {
    display: none;
  }

  .hero__stat-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat-item:nth-child(2) {
    border-right: none;
  }

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

  .bento-grid .service-card--featured {
    grid-column: span 1;
  }

  .cities-scroll {
    grid-template-columns: 1fr;
  }

  .hero__stat-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .faq-cta-split {
    grid-template-columns: 1fr;
  }

  .split-section__sticky,
  .faq-cta-split__aside {
    position: static;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta__actions {
    justify-content: center;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .emergency-block {
    grid-template-columns: 1fr;
  }

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

  .editorial-card {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  :root {
    --header-top-height: 0px;
    --header-main-height: 64px;
    --header-height: 64px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    gap: 0;
    overflow-y: auto;
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-nav__link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .main-nav .btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 29, 33, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2.5rem) 0 3.5rem;
  }

  .hero__stat-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .page-hero {
    padding: calc(var(--header-height) + 2rem) 0 2.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .editorial-card {
    grid-template-columns: 1fr;
  }

  .editorial-card__thumb {
    height: 160px;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .filter-bar {
    flex-direction: column;
  }

  .related-links__list {
    grid-template-columns: 1fr;
  }

  .emergency-block {
    padding: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .service-card,
  .vet-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .cost-table {
    font-size: 0.8125rem;
  }

  .cost-table th,
  .cost-table td {
    padding: 0.625rem 0.5rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
