@media (max-width: 1200px) {
  .content-grid,
  .two-column-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-copy {
    max-width: 100%;
  }

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

@media (max-width: 992px) {
  :root {
    --header-height: 76px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid rgba(191, 209, 227, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--color-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity var(--transition),
      transform var(--transition),
      visibility var(--transition);
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    display: flex;
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
  }

  .nav-dropdown summary::after {
    margin-left: auto;
  }

  .nav-dropdown[open] summary {
    background: rgba(15, 76, 129, 0.06);
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 0.45rem;
    transform: none;
    box-shadow: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: rgba(15, 76, 129, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 2;
    justify-content: center;
  }

  .hero-visual-card {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hero-search-panel {
    width: 100%;
  }

  .featured-grid,
  .audience-grid,
  .value-grid,
  .contact-card-grid,
  .policy-grid,
  .link-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-section .tool-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section,
  .page-hero {
    padding: 4rem 0;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .search-trigger {
    min-width: auto;
    padding-inline: 0.95rem;
  }

  .stats-grid,
  .form-grid,
  .featured-grid,
  .audience-grid,
  .value-grid,
  .contact-card-grid,
  .policy-grid,
  .link-card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-card,
  .sidebar-card,
  .modal-dialog {
    border-radius: 8px;
  }

  .tool-section-header,
  .category-section-header,
  .tool-card-footer,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title-group,
  .tool-section-heading {
    flex-direction: row;
    align-items: center;
  }

  .tool-section-description,
  .category-section-header p {
    margin-left: 0;
  }

  .hero-copy {
    padding: 1.6rem;
    border-radius: 8px;
  }

  .hero-media img {
    width: 100%;
    max-width: none;
    border-radius: 8px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .hero-search-panel {
    grid-template-columns: 1fr;
  }

  .hero-search-button {
    width: 100%;
  }

  .hero-category-pills,
  .hero-metrics {
    width: 100%;
  }

  .hero-category-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card-footer .tool-action {
    width: fit-content;
  }

  .contact-owner-header,
  .owner-profile {
    grid-template-columns: 1fr;
  }

  .contact-owner-avatar,
  .owner-profile img {
    justify-self: start;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-bottom-centered {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .featured-category-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-category-tag {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .brand > .brand-text {
    display: inline-flex;
    font-size: 20px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .search-trigger-label {
    display: none;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero-copy {
    width: calc(100vw - 1.1rem);
    max-width: calc(100vw - 1.1rem);
    padding: 1.3rem;
    border-radius: 8px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .hero-layout,
  .hero-content,
  .hero-media,
  .hero-visual-card,
  .hero-search-panel,
  .hero-search-field {
    min-width: 0;
    max-width: 100%;
  }

  .hero-content {
    width: calc(100vw - 4rem);
    max-width: calc(100vw - 4rem);
  }

  .hero-copy p {
    font-size: 0.98rem;
    width: 100%;
    max-width: calc(100vw - 4rem);
    overflow-wrap: normal;
  }

  .hero-title,
  .hero-search-panel,
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 4rem);
  }

  .hero-search-panel {
    padding: 0.45rem;
  }

  .hero-search-field input {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-social-links a {
    justify-content: center;
    width: 100%;
  }

  .hero-category-pill,
  .hero-metric {
    justify-content: space-between;
  }

  .hero-category-pills {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    width: 100%;
    max-width: none;
    border-radius: 8px;
  }

  .modal-dialog {
    width: min(calc(100% - 1rem), 560px);
    margin-top: 4rem;
  }

  .tool-card,
  .featured-card,
  .link-card {
    padding: 1.2rem;
  }

}
