/* Breakpoint-specific overrides for the marketing site */

/* Tablet portrait + below */
@media (max-width: 991.98px) {
  .mkt-nav-links,
  .lang-switch.desktop-only,
  .nav-actions .desktop-only { display: none !important; }
  .nav-hamburger { display: inline-flex !important; }

  .mkt-navbar .nav-inner { gap: 12px; padding-block: 12px; }
  .mkt-brand span { font-size: 18px; }

  .hero-inner { grid-template-columns: 1fr !important; text-align: center; gap: 24px !important; }
  .hero-illustration { order: -1; }
  .hero-illustration img,
  .hero-illustration svg { max-width: 60vw; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-mkt .field-row { grid-template-columns: 1fr; }

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

  .container-mkt { padding-inline: 18px; }

  .sticky-mobile-cta { display: inline-flex; }
}

/* Phone */
@media (max-width: 575.98px) {
  .mkt-navbar .nav-inner { padding-block: 10px; gap: 8px; }
  .mkt-brand img { width: 34px; height: 34px; }
  .mkt-brand span { font-size: 16px; }

  .nav-hamburger { width: 40px; height: 40px; }

  .hero { padding-block: 48px; }
  .hero-illustration img,
  .hero-illustration svg { max-width: 70vw; }

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

  .footer-grid { grid-template-columns: 1fr; }
  section.mkt-section { padding-block: 48px; }

  .container-mkt { padding-inline: 14px; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-mkt { justify-content: center; width: 100%; }

  .btn-mkt.btn-lg { padding: 12px 22px; font-size: 15px; }

  .pkg-card { padding: 22px; }
  .blog-post { padding: 22px; }
  .testimonial-card { padding: 22px; }

  .promo-bar { font-size: 13px; padding: 8px 32px 8px 12px; }

  /* Tables → stacked cards */
  table.responsive-stack thead { display: none; }
  table.responsive-stack, table.responsive-stack tbody,
  table.responsive-stack tr, table.responsive-stack td { display: block; width: 100%; }
  table.responsive-stack tr { background: var(--surface); border-radius: 12px; margin-bottom: 12px; padding: 14px; }
  table.responsive-stack td { padding: 6px 0; border: 0; }
  table.responsive-stack td::before {
    content: attr(data-label); display: block; font-size: 11px;
    color: var(--brand); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  }
}

/* Phone landscape with short height */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-block: 36px; min-height: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mobile drawer (off-canvas) */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: 85vw; max-width: 380px;
  background: var(--cream); z-index: 1040;
  transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column; padding: 24px; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,.25);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(31,42,38,.55); z-index: 1035;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-drawer .drawer-close {
  background: transparent; border: 0; font-size: 28px; cursor: pointer;
  color: var(--ink); padding: 0; line-height: 1; width: 40px; height: 40px;
}
.mobile-drawer nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(95,126,120,.15);
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none;
}
.mobile-drawer nav a:hover { color: var(--accent-dark); }
.mobile-drawer .drawer-actions {
  margin-top: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-drawer .drawer-actions .btn-mkt {
  width: 100%; justify-content: center; min-height: 48px;
}

/* Prevent iOS zoom on form focus */
@media (max-width: 767.98px) {
  input, select, textarea { font-size: 16px !important; }
}
