/* SHARED RESPONSIVE STYLES */

.nav-toggle,
.mobile-consultation-cta {
  display: none;
}

@media (max-width: 1100px) {
  .nav-bar {
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

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

  .about-hero,
  .featured-testimonial-inner,
  .consultation-section-inner,
  .faq-section-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    overflow-x: hidden;
    padding-bottom: 72px;
  }

  .site-header {
    position: relative;
    z-index: 1000;
  }

  .nav-bar {
    position: relative;
    width: min(100% - 2rem, 1400px);
    min-height: 76px;
  }

  .nav-logo {
    max-width: 190px;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgb(38 58 46 / 30%);
    background-color: transparent;
    color: var(--primary-color);
  }

  .nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: -1rem;
    left: -1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 0.75rem 1rem 1.25rem;
    border-top: 1px solid rgb(38 58 46 / 15%);
    background-color: var(--bg-color);
    box-shadow: 0 18px 30px rgb(23 37 29 / 12%);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 48px;
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  .mobile-consultation-cta {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    background-color: var(--accent-color);
    box-shadow: 0 8px 24px rgb(23 37 29 / 22%);
    color: var(--contrast);
    font-size: 0.9rem;
    font-weight: 700;
  }

  .hero,
  .services-page-hero {
    min-height: 650px;
  }

  .hero,
  .services-page-hero,
  .projects-page-hero,
  .about-hero-content,
  .process-page-hero,
  .faq-page-hero,
  .contact-page-hero {
    padding: 5rem 1.25rem;
  }

  .hero h1,
  .services-page-hero h1,
  .projects-page-hero h1,
  .about-hero h1,
  .process-page-hero h1,
  .faq-page-hero h1,
  .contact-page-hero h1 {
    font-size: clamp(3.25rem, 11vw, 5.25rem);
  }

  .trust-strip-inner,
  .services-grid,
  .process-list,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .intro-inner,
  .service-detail,
  .about-story-inner,
  .about-hero,
  .featured-testimonial-inner,
  .faq-section-inner,
  .consultation-section-inner {
    grid-template-columns: 1fr;
  }

  .service-detail-reversed .service-detail-image,
  .service-detail-reversed .service-detail-content {
    order: initial;
  }

  .about-hero-image {
    min-height: 520px;
  }

  .about-hero-content {
    min-height: 500px;
  }

  .about-story-image,
  .testimonial-image,
  .featured-testimonial-inner {
    min-height: 500px;
  }

  .testimonial-content {
    padding: 4rem 2rem;
  }

  .featured-work-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .projects-page-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured .project-card-image,
  .project-card-image,
  .project-item-large .project-image,
  .project-image {
    height: 480px;
  }

  .process-page-step {
    grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .faq-section-header,
  .contact-information {
    position: static;
  }

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

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

  .footer-bottom-inner,
  .contact-footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .section-eyebrow,
  .hero-eyebrow {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .hero,
  .services-page-hero {
    min-height: 600px;
  }

  .hero {
    background-position: 62% center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1.1rem;
    text-align: center;
  }

  .trust-strip-inner,
  .services-grid,
  .process-list,
  .values-grid,
  .site-footer-inner,
  .contact-footer-inner,
  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child {
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid rgb(38 58 46 / 20%);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .intro-section,
  .services-preview,
  .featured-work,
  .process-preview,
  .featured-testimonial,
  .about-story,
  .company-values,
  .service-detail-list,
  .projects-gallery,
  .process-page-steps,
  .faq-section,
  .consultation-section {
    padding: 4.5rem 1rem;
  }

  .intro-image,
  .intro-image img,
  .service-detail-image,
  .about-story-image,
  .testimonial-image,
  .featured-testimonial-inner {
    width: 100%;
    height: 360px;
    min-height: 360px;
  }

  .testimonial-content {
    min-height: auto;
    padding: 3rem 1.25rem;
  }

  .featured-testimonial-inner {
    height: auto;
  }

  .service-item,
  .value-item {
    min-height: 0;
    padding: 2rem 1.25rem;
  }

  .project-card-featured .project-card-image,
  .project-card-image,
  .project-item-large .project-image,
  .project-image {
    height: 360px;
  }

  .project-details,
  .project-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .project-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .project-filter {
    min-height: 48px;
    text-align: left;
  }

  .process-page-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 2.5rem;
  }

  .faq-question {
    gap: 1rem;
    min-height: 64px;
    padding-block: 1.4rem;
    font-size: 1.4rem;
  }

  .faq-answer {
    padding-right: 0;
  }

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

  .contact-information,
  .scheduling-next-step {
    padding: 2rem 1.25rem;
  }

  .business-hours div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .business-hours dd {
    text-align: left;
  }

  .contact-footer-inner,
  .site-footer-inner {
    width: min(100% - 2rem, 1400px);
    padding-block: 4rem;
  }

  .footer-bottom-inner,
  .contact-footer-bottom-inner {
    width: min(100% - 2rem, 1400px);
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-consultation-cta {
    right: 0.75rem;
    bottom: 0.75rem;
    min-height: 46px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

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

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