/* Mobile-first refinement for Mulheres Cristas — 2026-08-09
   Loaded after the original compiled stylesheet so these rules intentionally
   override the desktop-oriented defaults without changing the desktop layout. */

@media (max-width: 800px), (max-device-width: 800px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .section-shell {
    width: calc(100% - 32px);
    max-width: 680px;
  }

  .site-header {
    width: calc(100% - 32px);
    min-height: 72px;
    gap: 1rem;
  }

  .site-header nav,
  .header-cta {
    display: none !important;
  }

  .brand strong {
    font-size: 1.5rem;
  }

  .brand small {
    font-size: .54rem;
  }

  /* Hero: remove desktop viewport height and force a real mobile stack. */
  .hero {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
  }

  .hero-shell {
    width: calc(100% - 32px) !important;
    max-width: 680px;
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: stretch;
    padding: 1.5rem 0 2rem !important;
  }

  .hero-copy {
    max-width: none;
    text-align: left !important;
  }

  .eyebrow {
    justify-content: flex-start !important;
    margin-bottom: .9rem;
    font-size: .66rem;
  }

  .hero-title-mark {
    margin: 0 0 -.45rem;
    padding-right: 0;
    font-size: 1.55rem;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 18vw, 6rem) !important;
    line-height: .72 !important;
    letter-spacing: -.055em;
  }

  .hero h1 span {
    margin-left: 0 !important;
    margin-bottom: .35rem;
  }

  .hero-subtitle {
    margin: 1.35rem 0 .65rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-description {
    font-size: .9rem;
    line-height: 1.62;
  }

  .hero-actions {
    justify-content: stretch !important;
    align-items: stretch !important;
    flex-direction: column;
    gap: .8rem;
    width: 100%;
    margin: 1.35rem 0;
  }

  .primary-button {
    width: 100%;
    min-height: 52px;
    padding-inline: 1rem;
  }

  .text-button {
    align-self: center;
    padding: .45rem .2rem;
  }

  .hero-date-card {
    grid-template-columns: 1fr !important;
    width: 100%;
    border-radius: 14px;
  }

  .hero-date-card div {
    padding: .78rem .9rem;
  }

  .hero-date-card div + div {
    border-left: 0 !important;
    border-top: 1px solid #b7803733;
  }

  .poster-wrap {
    justify-self: center !important;
    width: min(100%, 360px) !important;
    padding: 0 !important;
  }

  .poster-frame {
    border-radius: 22px;
    padding: 8px;
    transform: none !important;
  }

  .poster-frame:before {
    border-radius: 17px;
  }

  .poster-frame img {
    border-radius: 15px;
  }

  .poster-note {
    max-width: none;
    margin: -.65rem .75rem 0;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    padding: .8rem .9rem;
  }

  .hero-ribbon {
    position: relative !important;
    inset: auto !important;
    min-height: 0;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding: .9rem 1rem;
    font-size: .65rem;
    line-height: 1.4;
  }

  .floral-corner {
    opacity: .52;
    transform: scale(.72);
  }

  .floral-top {
    transform: rotate(14deg) scale(.72);
    transform-origin: top right;
  }

  .floral-bottom {
    display: none;
  }

  /* General vertical rhythm: mobile should feel faster and less empty. */
  .welcome-section,
  .program-section,
  .connection-section,
  .details-section,
  .registration-section,
  .faq-section {
    padding: 4.25rem 0 !important;
  }

  .impact-section {
    padding: 1rem 0 4.25rem !important;
  }

  .welcome-grid,
  .connection-grid,
  .registration-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
  }

  .welcome-copy {
    padding-top: 0 !important;
    font-size: .92rem;
    line-height: 1.7;
  }

  .welcome-copy .lead {
    font-size: 1.3rem;
  }

  .verse-banner {
    grid-template-columns: 1fr !important;
    gap: .8rem !important;
    margin-top: 2.5rem !important;
    padding: 1.5rem 1rem !important;
    text-align: center;
  }

  .verse-banner > span {
    display: none;
  }

  .verse-banner cite {
    grid-column: auto !important;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading > p:last-child {
    margin-top: .85rem;
    line-height: 1.6;
  }

  .program-grid {
    grid-template-columns: 1fr !important;
  }

  .program-grid article,
  .program-grid article:nth-child(3),
  .program-grid article:nth-child(4) {
    min-height: 0 !important;
    padding: 1.35rem 1.15rem 1.5rem !important;
    border-left: 0 !important;
  }

  .program-grid article + article,
  .program-grid article:nth-child(3),
  .program-grid article:nth-child(4) {
    border-top: 1px solid #ffffff26 !important;
  }

  .program-icon {
    width: 46px;
    height: 46px;
    margin: .65rem 0 1.25rem;
  }

  .program-grid h3 {
    font-size: 1.5rem;
  }

  .program-grid p {
    line-height: 1.6;
  }

  .connection-grid .connection-copy {
    grid-row: 1;
  }

  .connection-visual {
    min-height: 365px !important;
  }

  .tea-photo {
    inset: 0 !important;
    border-radius: 180px 180px 22px 22px;
  }

  .connection-seal {
    width: 132px;
    bottom: 1rem;
    right: -.25rem;
    padding: .9rem;
  }

  .connection-seal strong {
    font-size: 1rem;
  }

  .details-card {
    border-radius: 22px;
    padding: 1.5rem !important;
  }

  .details-list {
    grid-template-columns: 1fr !important;
    margin-top: 2rem;
  }

  .details-list > div {
    min-height: 0 !important;
    padding: 1.1rem;
  }

  .details-list > div + div {
    border-top: 1px solid #ffffff20;
  }

  .impact-card {
    grid-template-columns: 1fr !important;
    gap: 1.6rem !important;
    padding: 1.5rem !important;
    border-radius: 22px;
  }

  .impact-seal {
    width: 160px !important;
    margin-inline: auto;
  }

  .impact-seal strong {
    font-size: 2.5rem;
  }

  .pix-card {
    grid-template-columns: 42px 1fr !important;
    gap: .75rem;
    width: 100%;
    padding: .9rem;
  }

  .pix-card button {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-height: 44px;
  }

  .donation-next-button {
    width: 100% !important;
    min-height: 48px;
    text-align: center;
  }

  .registration-copy {
    position: static !important;
  }

  .registration-event-summary {
    margin: 1.6rem 0;
  }

  .registration-event-summary div {
    align-items: flex-start;
    padding: .85rem;
  }

  .realization {
    margin-top: 1.7rem;
  }

  .form-card {
    border-radius: 22px;
    padding: 1.25rem !important;
  }

  .form-title {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .form-title h3 {
    font-size: 2rem;
  }

  .registration-form {
    grid-template-columns: 1fr !important;
  }

  .field.full,
  .donation-field.full,
  .consent.full,
  .submit-button.full,
  .form-footnote.full,
  .form-message.full,
  .post-submit-pix.full {
    grid-column: auto !important;
  }

  .google-form-button {
    min-height: 52px;
    width: 100%;
    padding-inline: 1rem;
    text-align: center;
  }

  .google-form-mobile-card {
    padding: .95rem;
  }

  .faq-grid {
    gap: 1.5rem !important;
  }

  .faq-list summary {
    padding: 1.05rem 2rem 1.05rem 0;
    font-size: 1.08rem;
  }

  .faq-list details p {
    margin-bottom: 1.1rem;
    padding-right: .5rem;
    font-size: .82rem;
  }

  .closing-section {
    min-height: 0 !important;
    padding: 4.5rem 0 5.5rem !important;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  footer {
    padding-bottom: 5.5rem !important;
  }

  .mobile-sticky-cta {
    z-index: 90;
    display: flex !important;
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 50px;
    border-radius: 999px;
  }
}

@media (max-width: 520px), (max-device-width: 520px) {
  .section-shell,
  .site-header,
  .hero-shell {
    width: calc(100% - 28px) !important;
  }

  .hero-shell {
    padding-top: 1rem !important;
    gap: 1.45rem !important;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem) !important;
  }

  .welcome-heading h2,
  .section-heading h2,
  .connection-copy h2,
  .details-intro h2,
  .impact-copy h2,
  .registration-copy h2,
  .faq-grid h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.4rem) !important;
    line-height: 1 !important;
  }

  .welcome-section,
  .program-section,
  .connection-section,
  .details-section,
  .registration-section,
  .faq-section {
    padding: 3.65rem 0 !important;
  }

  .connection-visual {
    min-height: 335px !important;
  }

  .impact-seal {
    width: 145px !important;
  }

  .registration-event-summary div {
    flex-direction: column;
    gap: .3rem;
  }

  .realization {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .realization > small {
    writing-mode: horizontal-tb !important;
    width: 100%;
    transform: none !important;
  }

  .realization i {
    display: none;
  }
}
