/* ============================================================
   Miller-Boldt, Inc. — Responsive Breakpoints
   ============================================================ */

/* ---------- Tablet & Small Desktop (960px) ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 120px 24px 80px;
    gap: 48px;
  }

  .hero-right {
    max-width: 480px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-accent {
    right: 12px;
    bottom: -20px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-methods h3 {
    margin-top: 8px;
  }

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

/* ---------- Mobile (768px) ---------- */
@media (max-width: 768px) {
  .header-inner {
    height: 68px;
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .section-inner {
    padding: 0 20px;
  }

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

  .trust-inner {
    gap: 24px;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Chatbot adjustments for mobile */
  .chatbot-bubble {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .chatbot-tooltip {
    right: 0;
    bottom: 66px;
    width: 200px;
    font-size: 0.82rem;
    padding: 10px 16px;
    max-width: 200px;
  }

  /* Arrow points down toward bubble on mobile */
  .chatbot-tooltip::after {
    right: 16px;
    left: auto;
    top: auto;
    bottom: -14px;
    transform: none;
    border: 7px solid transparent;
    border-bottom: none;
    border-top: 7px solid var(--white);
  }

  /* Chat panel goes full-width on mobile */
  .chatbot-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 16px 16px 0 0;
    transform-origin: bottom center;
  }

  .chatbot-messages {
    min-height: 200px;
  }
}

/* ---------- Small Tablet (640px) ---------- */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form-wrap {
    padding: 28px 20px;
  }
}

/* ---------- Small Mobile (480px) ---------- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stat-card {
    padding: 20px 24px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .project-body {
    padding: 24px 20px 28px;
  }

  .cta-section {
    padding: 72px 0;
  }

  .btn-cta-primary {
    padding: 16px 28px;
    font-size: 0.95rem;
  }
}
