/* ==========================================================================
   MK Dental & Orthodontics - Responsive Breakpoints
   ========================================================================== */

/* ── Large Desktop (1400px+) ───────────────────────────────────────────── */

@media (min-width: 1400px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* ── Laptop / Small Desktop (max 1200px) ───────────────────────────────── */

@media (max-width: 1200px) {
  .hero-content {
    gap: var(--space-2xl);
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ── Tablet (max 992px) ────────────────────────────────────────────────── */

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-smooth);
    transform: translateX(100%);
    gap: var(--space-lg);
    z-index: var(--z-overlay);
    overflow-y: auto;
    margin-left: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  .header {
    z-index: calc(var(--z-overlay) + 5);
    background: var(--color-bg-white);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-float-card.card-1 {
    left: 10px;
    bottom: 20px;
  }

  .hero-float-card.card-2 {
    right: 10px;
    top: 20px;
  }

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

  .about-grid,
  .aligners-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    order: -1;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ── Large Mobile (max 768px) ──────────────────────────────────────────── */

@media (max-width: 768px) {
  section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

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

  .hero-image-wrapper img {
    height: 350px;
  }

  .about-image img {
    height: 300px;
  }

  .doctor-image {
    height: 280px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ── Mobile (max 576px) ────────────────────────────────────────────────── */

@media (max-width: 576px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .logo-text {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .logo-text span {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }

  .logo img {
    height: 55px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-float-card {
    display: none;
  }

  .hero-image-wrapper img {
    height: 280px;
  }

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

  .trust-item {
    padding: var(--space-md);
  }

  .trust-item .trust-number {
    font-size: var(--fs-h3);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .treatment-card {
    padding: var(--space-xl);
  }

  .why-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
  }

  .testimonials-slider {
    padding: 0;
  }

  .testimonial-card {
    padding: var(--space-xl);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .contact-form {
    padding: var(--space-xl);
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-body-sm);
  }

  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: var(--fs-body);
  }

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

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .back-to-top {
    right: 80px;
    bottom: 20px;
    width: 38px;
    height: 38px;
  }
}

/* ── Extra Small (max 400px) ───────────────────────────────────────────── */

@media (max-width: 400px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

  .nav-menu {
    width: 100%;
    max-width: 100%;
  }
}
