/* ==========================================
   SANDRA MARS MASTER — RESPONSIVE POLISH
   Final mobile/tablet refinement layer
========================================== */

/* Tablet safety */
@media (max-width: 1180px) {
  .sm-hero__container,
  .sm-why__container,
  .sm-collab__container,
  .sm-cards__container {
    width: min(calc(100% - 4.4rem), 1100px) !important;
  }

  .sm-services__container,
  .sm-river__container,
  .sm-testimonials__container,
  .sm-cta__container,
  .sm-newsletter__container {
    width: min(calc(100% - 4.4rem), 1100px) !important;
  }

  .sm-hero__title,
  .sm-collab__title,
  .sm-services__title,
  .sm-river__title,
  .sm-testimonials__title,
  .sm-cards__title,
  .sm-cta__title,
  .sm-newsletter__title {
    letter-spacing: -0.045em !important;
  }
}

/* Main mobile layout */
@media (max-width: 767px) {
  html {
    font-size: 58%;
  }

  .sm-hero,
  .sm-why,
  .sm-collab,
  .sm-services,
  .sm-river,
  .sm-testimonials,
  .sm-cards,
  .sm-cta,
  .sm-newsletter {
    padding-top: 6.4rem !important;
    padding-bottom: 6.4rem !important;
  }

  .sm-hero__container,
  .sm-why__container,
  .sm-collab__container,
  .sm-services__container,
  .sm-river__container,
  .sm-testimonials__container,
  .sm-cards__container,
  .sm-cta__container,
  .sm-newsletter__container,
  .sm-site-footer__inner {
    width: min(calc(100% - 3.2rem), 100%) !important;
  }

  /* Headings */
  .sm-hero__title,
  .sm-why__title,
  .sm-collab__title,
  .sm-services__title,
  .sm-river__title,
  .sm-testimonials__title,
  .sm-cards__title,
  .sm-cta__title,
  .sm-newsletter__title {
    font-size: clamp(4.1rem, 12vw, 5.8rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;
  }

  .sm-hero__description,
  .sm-why__intro,
  .sm-why__closing,
  .sm-collab__description,
  .sm-services__intro,
  .sm-river__intro,
  .sm-testimonials__intro,
  .sm-cards__description,
  .sm-cta__description,
  .sm-newsletter__description {
    font-size: 1.56rem !important;
    line-height: 1.78 !important;
  }

  /* Badges */
  .sm-hero__badge,
  .sm-why__badge,
  .sm-collab__badge,
  .sm-services__badge,
  .sm-river__badge,
  .sm-testimonials__badge,
  .sm-cards__eyebrow,
  .sm-cta__badge,
  .sm-newsletter__badge {
    max-width: 100%;
    min-height: 3.6rem !important;
    padding: 0.9rem 1.35rem !important;
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
    white-space: normal;
    text-align: center;
  }

  /* Buttons */
  .sm-btn,
  .sm-services__button,
  .sm-newsletter__form-wrap .forminator-button,
  .sm-newsletter__form-wrap .forminator-button-submit,
  .sm-newsletter__form-wrap button[type="submit"] {
    width: 100% !important;
    min-height: 5.6rem !important;
    justify-content: center !important;
  }

  .sm-hero__actions,
  .sm-collab__actions,
  .sm-cards__actions,
  .sm-cta__actions {
    gap: 1.2rem !important;
  }

  /* Hero */
  .sm-hero {
    min-height: auto !important;
  }

  .sm-hero__container {
    gap: 4.2rem !important;
  }

  .sm-hero__visual {
    width: 100% !important;
    min-height: auto !important;
  }

  .sm-hero__photo-card {
    width: 100% !important;
    height: min(112vw, 43rem) !important;
  }

  .sm-hero__affirmation {
    width: calc(100% - 2.4rem) !important;
    margin-top: -4.6rem !important;
    border-radius: 2.6rem !important;
  }

  .sm-hero__stats {
    border-radius: 2.8rem !important;
  }

  .sm-hero__stat {
    padding: 2.2rem !important;
  }

  /* Why me */
  .sm-why__card {
    border-radius: 3rem !important;
  }

  .sm-why__reason-grid {
    grid-template-columns: 1fr !important;
  }

  .sm-why__transform {
    border-radius: 2rem !important;
  }

  .sm-why__image-card {
    min-height: 24rem !important;
    border-radius: 2.4rem !important;
  }

  .sm-why__image-card img {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
  }

  /* Collaborate */
  .sm-collab__visual {
    width: 100% !important;
  }

  .sm-collab__photo-card {
    width: 100% !important;
    height: min(112vw, 43rem) !important;
  }

  .sm-collab__quote-card {
    width: calc(100% - 2.4rem) !important;
    margin-top: -4.4rem !important;
    border-radius: 2.4rem !important;
    padding: 2.3rem 2.2rem !important;
  }

  .sm-collab__quote-card p {
    font-size: 2rem !important;
  }

  .sm-collab__benefits {
    grid-template-columns: 1fr !important;
  }

  /* Services */
  .sm-services__grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
  }

  .sm-services__card {
    border-radius: 2.6rem !important;
  }

  .sm-services__image {
    height: 21rem !important;
    border-radius: 2rem !important;
  }

  .sm-services__body,
  .sm-services__card-content {
    padding: 2.4rem 2.2rem 2.6rem !important;
  }

  .sm-services__card h3 {
    font-size: 2.7rem !important;
  }

  /* RIVER */
  .sm-river__layout {
    gap: 3.8rem !important;
  }

  .sm-river__steps {
    grid-template-columns: 1fr !important;
    gap: 2.4rem !important;
  }

  .sm-river__step {
    max-width: none !important;
    width: 100% !important;
  }

  .sm-river__step-card {
    min-height: auto !important;
    padding: 2.5rem 2.2rem !important;
    border-radius: 2.4rem !important;
  }

  .sm-river__feature-panel {
    position: static !important;
    margin: 1.4rem !important;
    border-radius: 2.2rem !important;
  }

  .sm-river__feature-image,
  .sm-river__feature-image img,
  .sm-river__image-placeholder {
    min-height: 32rem !important;
    height: 32rem !important;
  }

  .sm-river__info-card {
    grid-template-columns: 1fr !important;
    border-radius: 2.4rem !important;
  }

  .sm-river__statement {
    border-radius: 2.8rem !important;
  }

  .sm-river__statement p {
    font-size: clamp(2.5rem, 8vw, 3.8rem) !important;
  }

  /* Testimonials */
  .sm-testimonials__trust-row {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .sm-testimonials__trust-pill {
    border-radius: 2.2rem !important;
  }

  .sm-testimonials__carousel {
    grid-auto-columns: minmax(27rem, 88%) !important;
    gap: 1.6rem !important;
    padding-bottom: 2rem !important;
  }

  .sm-testimonials__card {
    min-height: auto !important;
    padding: 3.2rem 2.2rem 2.8rem !important;
    border-radius: 2.6rem !important;
  }

  .sm-testimonials__card blockquote {
    font-size: 1.55rem !important;
  }

  .sm-testimonials__dots {
    gap: 1.1rem !important;
  }

  /* Cards */
  .sm-cards__visual {
    min-height: 34rem !important;
  }

  .sm-cards__image-wrap {
    width: 100% !important;
  }

  .sm-cards__mini-card {
    right: 0.4rem !important;
    bottom: -0.5rem !important;
  }

  .sm-cards__benefit-strip {
    grid-template-columns: 1fr !important;
    padding: 1.8rem !important;
    border-radius: 2.8rem !important;
    gap: 0 !important;
  }

  .sm-cards__benefit {
    grid-template-columns: 5rem 1fr !important;
    padding: 1.5rem 0 !important;
  }

  .sm-cards__benefit:not(:last-child) {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(216, 185, 130, 0.28) !important;
  }

  /* CTA + newsletter */
  .sm-cta__card,
  .sm-newsletter__card {
    border-radius: 3rem !important;
    padding: 4.2rem 2.2rem !important;
  }

  .sm-cta__mini-grid {
    grid-template-columns: 1fr !important;
  }

  .sm-newsletter__form-wrap .forminator-custom-form {
    grid-template-columns: 1fr !important;
  }

  .sm-newsletter__note {
    font-size: 1.22rem !important;
  }

  /* Footer */
  .sm-site-footer {
    border-radius: 3rem 3rem 0 0 !important;
  }

  .sm-site-footer__columns {
    grid-template-columns: 1fr !important;
    gap: 3.6rem !important;
  }

  .sm-site-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .sm-site-footer__copyright {
    text-align: left !important;
  }
}

/* Small mobile */
@media (max-width: 520px) {
  html {
    font-size: 56.5%;
  }

  .sm-hero__title,
  .sm-why__title,
  .sm-collab__title,
  .sm-services__title,
  .sm-river__title,
  .sm-testimonials__title,
  .sm-cards__title,
  .sm-cta__title,
  .sm-newsletter__title {
    font-size: clamp(3.8rem, 12vw, 5.2rem) !important;
  }

  .sm-hero__photo-card,
  .sm-collab__photo-card {
    height: 37rem !important;
    border-radius: 3.2rem !important;
  }

  .sm-hero__photo-inner,
  .sm-collab__photo-inner {
    border-radius: 2.2rem !important;
  }

  .sm-cards__visual {
    min-height: 30rem !important;
  }

  .sm-cards__mini-card {
    transform: rotate(5deg) scale(0.82) !important;
  }

  .sm-river__feature-image,
  .sm-river__feature-image img,
  .sm-river__image-placeholder {
    min-height: 28rem !important;
    height: 28rem !important;
  }
}

/* ==========================================================================
   SANDRA MARS — MOBILE STABILITY FIX
   Prevents horizontal page shifting and accidental zoom feeling on mobile
   ========================================================================== */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.site,
.site-main,
#page,
#primary {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  a,
  button,
  input,
  select,
  textarea,
  label {
    touch-action: manipulation;
  }

  html,
  body {
    overscroll-behavior-x: none;
  }
}