/* ==========================================================================
   responsive.css — breakpoints, motion preferences, print
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .split--left { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header__bar { flex-wrap: wrap; gap: .7rem; }
  .brand { width: auto; max-width: none; flex: 1 1 auto; }
  .brand__photo { width: 44px; height: 44px; }
  .brand__name { font-size: .95rem; }
  .brand__tag { font-size: .58rem; }

  .header__right { flex-direction: row; align-items: center; gap: .8rem; }
  .hotline { flex-direction: row; }
  .hotline__label { display: none; }
  .hotline__num { font-size: .98rem; }

  .nav-toggle { display: grid; }

  .main-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--ink-100);
    background: #fff;
    padding: .5rem 0 .9rem;
    box-shadow: 0 12px 22px rgba(6, 43, 29, .09);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav a { display: block; padding: .7rem .8rem; font-size: 1rem; }
  .main-nav a[aria-current="page"] { background: var(--green-50); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .related ul { columns: 1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav--next { text-align: left; }
  .hero__badge { position: static; margin-top: 1rem; max-width: none; }

  .callbar { display: flex; gap: .4rem; }
  .callbar a { flex: 1; }
  .wa-dock { bottom: 74px; right: 12px; }
  .wa-btn { width: 56px; height: 56px; }
  .wa-btn svg { width: 28px; height: 28px; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bottom { flex-direction: column; }
  .container { padding-inline: 16px; }
  .answer-box, .ai-box, .toc, .related, .author-box { padding: 1.15rem 1.1rem; }
  .author-box { flex-direction: column; }
  .brand__tag { display: none; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 2.2rem 0; }
}

@media (min-width: 861px) {
  .wa-label { display: inline-block; }
}

/* ------------------------------------------------------- motion prefs */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .wa-btn::before { display: none; }
}

/* --------------------------------------------------------- print */
@media print {
  .site-header, .topbar, .wa-dock, .callbar, .site-footer,
  .post-nav, .cta-band, .breadcrumb-bar { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .answer-box, .ai-box, .toc, .author-box, .related { border: 1px solid #999; break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .page-hero { background: #fff; color: #000; padding: 0 0 1rem; }
  .page-hero h1 { color: #000; }
}
