/* ─────────────────────────────────────────────────────────────────────────────
 * Animal Massage Awareness — Responsive overrides
 *
 * Divi has three breakpoints baked in (desktop ≥981, tablet 768-980, phone <768).
 * We add ONE refinement layer here for:
 *  - Container clamps so the hero never feels cramped at intermediate widths
 *  - Section padding compression on phone
 *  - Card row gap reduction on phone
 *  - Hero typography fluid scaling (already mostly via clamp() in typography.css)
 *
 * No !important except where Divi inline styles force the hand.
 * ───────────────────────────────────────────────────────────────────────────── */

/* ── Tablet (768–980px) ──────────────────────────────────────────────────── */

@media (max-width: 980px) {
  /* Tighten section padding */
  .et_pb_section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Hero — reduce padding when full bleed */
  .et_pb_section[data-admin-label="Hero"] {
    padding-top: 140px;
    padding-bottom: 96px;
  }

  /* Container side padding */
  .et_pb_row {
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
  }

  /* Drop 5-up trust bar to 2-up grid */
  .et_pb_section[data-admin-label="Trust Bar"] .et_pb_row {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  /* Why AMA: stat row becomes 3-up then 2-up */
  .et_pb_section[data-admin-label="Why AMA"] .et_pb_row {
    flex-wrap: wrap;
    row-gap: 16px;
  }
}

/* ── Phone (<768px) ──────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  /* All sections compressed */
  .et_pb_section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .et_pb_section[data-admin-label="Hero"] {
    padding-top: 100px;
    padding-bottom: 64px;
  }

  /* Stack ALL columns full-width */
  .et_pb_column {
    width: 100% !important;  /* Divi inline width override — only place we need important */
    margin-bottom: 24px;
  }

  .et_pb_column:last-child { margin-bottom: 0; }

  /* Tighter row gaps on phone */
  .et_pb_row {
    padding-left: 20px;
    padding-right: 20px;
    row-gap: 24px;
  }

  /* Hero h1 tighter line-height when stacked */
  .et_pb_section[data-admin-label="Hero"] h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  /* Trust bar — stack to 2 cols cleanly */
  .et_pb_section[data-admin-label="Trust Bar"] .et_pb_column {
    width: 50% !important;
    margin-bottom: 16px;
  }

  /* Bundle BEST VALUE card — image stacks above text */
  .et_pb_section[data-admin-label="Bundle"] .et_pb_image {
    border-radius: 16px 16px 0 0 !important;
  }

  /* Reviews quote cards — full width */
  .et_pb_section[data-admin-label="Reviews"] .et_pb_column {
    width: 100% !important;
  }

  /* Final CTA buttons wrap and stack */
  .et_pb_section[data-admin-label="Final CTA"] .et_pb_button {
    display: block;
    width: 100%;
    margin: 8px 0 0 0;
    text-align: center;
  }

  /* Accreditation card stack with breathing room */
  .et_pb_section[data-admin-label="Accreditation"] {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Print — clean fallback ──────────────────────────────────────────────── */

@media print {
  .et_pb_section[data-admin-label="Hero"],
  .et_pb_section[data-admin-label="Final CTA"],
  .et_pb_section[data-admin-label="Reviews"] {
    background: #FFFFFF !important;
    color: #1D1C16 !important;
  }

  .et_pb_button { display: none; }
}
