/* Responsive breakpoints: 360, 390, 768, 1024, 1440 */

@media (max-width: 1199.98px) {
  .services-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .contact-single,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card-media {
    min-height: 240px;
    max-height: 300px;
    order: 2;
  }

  .contact-card-content {
    order: 1;
  }

  .hero-visual {
    order: -1;
    max-width: 100%;
    margin-inline: auto;
    width: 100%;
  }

  .hero-visual-frame {
    max-height: none;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .about-image {
    max-width: 100%;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }

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

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

  .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav-cta {
    margin-top: 0.75rem;
  }

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

  .mobile-cta {
    display: flex;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }

  body {
    padding-bottom: 0;
  }

  #contact {
    padding-bottom: 4.5rem;
  }
}

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

  .section {
    padding: 2.75rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .section-head .section-lead {
    margin-inline: 0;
  }

  .top-bar {
    font-size: 0.78rem;
    padding: 0.45rem 0;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .top-bar-right a:nth-child(2) {
    display: none; /* hide email on small screens to reduce clutter */
  }

  .navbar {
    padding: 0.65rem 0;
  }

  .brand-logo img {
    height: 44px;
  }

  .hero {
    padding: 1.25rem 0 2.25rem;
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .hero-visual-frame {
    aspect-ratio: 5 / 4;
    border-radius: 18px;
  }

  .hero-badge {
    left: 10px;
    bottom: 14px;
    max-width: 200px;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
  }

  .hero-badge i {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hero-badge strong {
    font-size: 0.82rem;
  }

  .hero-badge span {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-brand {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

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

  .hero-phone {
    font-size: 1.1rem;
    justify-content: center;
    width: 100%;
  }

  .highlights {
    margin-top: 0;
    padding-bottom: 0.5rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.35rem;
  }

  .highlight-item {
    padding: 0.65rem 0.4rem;
  }

  .services-grid,
  .why-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card-image {
    aspect-ratio: 16 / 10;
  }

  .cta-banner {
    padding: 2rem 1.2rem;
    border-radius: 18px;
  }

  .cta-phone {
    font-size: 1.35rem;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

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

  .contact-split {
    gap: 1rem;
  }

  .contact-card,
  .form-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .contact-card-content h3 {
    font-size: 1.25rem;
  }

  .contact-list {
    gap: 0.95rem;
    margin-top: 1rem;
  }

  .contact-list i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1.35rem;
  }

  .contact-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .contact-card-media {
    min-height: 220px;
    max-height: 260px;
  }

  .faq-wrap .accordion-button {
    font-size: 0.95rem;
    padding: 0.95rem 1rem;
  }

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

  .legal-links {
    justify-content: center;
  }

  .mobile-cta {
    gap: 0.5rem;
    padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
  }

  .mobile-cta .btn {
    min-height: 48px;
    font-size: 0.92rem;
  }
}

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

  .brand-logo img {
    height: 38px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero-badge {
    max-width: 170px;
    padding: 0.6rem 0.7rem;
  }

  .top-bar-right a:first-child span,
  .top-bar .email-text {
    font-size: 0.74rem;
  }

  .mobile-cta {
    flex-direction: column;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1200px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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