/* Marketing site mobile polish — index.html, services.html & 404 */

@media (max-width: 900px) {
  :root {
    --font-size--h1: clamp(1.65rem, 6.8vw, 2.5rem);
    --font-size--h2: clamp(1.35rem, 5.2vw, 2.05rem);
    --font-size--h3: 1.2rem;
    --font-size--h4: 1.05rem;
    --fs-h1: 1.65rem;
    --fs-section: 0.85rem;
    --fs-body: 0.85rem;
    --fs-small: 11px;
    --sx-mobile-heading-trim: 5px;
    --sx-mobile-body-trim: 2px;
  }

  body,
  p,
  li,
  a,
  span,
  label,
  input,
  textarea,
  button {
    letter-spacing: -0.30px;
  }

  h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.35px;
  }

  .sx-btn-start,
  .hero-start-btn-v3,
  .imagination-section__start-button,
  .view-service-btn,
  .buttons-section button {
    font-size: 22px !important;
  }

  /* 404 button sizing handled in not-found.css */

  /* Hero */
  .sx-hero-container {
    padding: 1.75rem 1rem !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 0.75rem !important;
  }

  .sx-hero {
    min-height: auto !important;
  }

  .sx-hero-content h1 {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem) !important;
    margin-bottom: 0.85rem !important;
    letter-spacing: -0.8px !important;
  }

  .sx-hero-content p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }

  .badge-line {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem) !important;
  }

  .sx-hero-badge {
    margin-bottom: 0.85rem !important;
    gap: 2px !important;
  }

  .sx-stat-item {
    font-size: 13px !important;
  }

  .sx-hero-stats {
    gap: 1rem !important;
  }

  .sx-brand-logo {
    margin-bottom: 0.85rem !important;
  }

  .sx-brand-logo p {
    font-size: 12px !important;
    left: 18px !important;
  }

  .sx-brand-logo .hero-logo {
    max-width: 140px !important;
    width: 140px !important;
  }

  /* Showcase header */
  .seamx-showcase__header-section {
    padding: 1.75rem 0.85rem !important;
  }

  .seamx-header-title-wrap {
    margin-bottom: 10px !important;
    gap: 5px !important;
  }

  .seamx-showcase__title,
  .seamx-showcase__subtitle {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
    letter-spacing: -0.8px !important;
  }

  .seamx-showcase__text {
    font-size: calc(12.5px - var(--sx-mobile-body-trim)) !important;
    line-height: 1.35 !important;
  }

  .seamx-header-content-wrap {
    gap: 8px !important;
  }

  /* Showcase hero */
  .seamx-showcase__hero-section {
    min-height: 72vh !important;
    height: auto !important;
    padding-bottom: 0.75rem !important;
  }

  .seamx-showcase__hero-step {
    padding: 0.35rem !important;
  }

  .seamx-showcase__hero-step-num {
    font-size: 14px !important;
  }

  .seamx-showcase__hero-step-num span {
    padding-right: 10px !important;
  }

  .seamx-showcase__hero-step-desc {
    font-size: 9.5px !important;
    top: 10% !important;
  }

  .seamx-showcase__hero-sub-text {
    font-size: 1.1rem !important;
  }

  .seamx-showcase__hero-description {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  .seamx-showcase__bottom-tabs {
    padding: 0.5rem 0 !important;
  }

  .seamx-showcase__bottom-tab {
    font-size: 10.5px !important;
    padding: 0.5rem 0.35rem !important;
  }

  .seamx-tab-helper {
    font-size: 0.45rem !important;
  }

  .seamx-showcase-hero-logo {
    width: 72px !important;
  }

  /* Process */
  .sx-process {
    padding: 1.15rem 0.85rem !important;
    gap: 1.25rem !important;
    height: auto !important;
  }

  .sx-process-bullets {
    gap: 0.65rem !important;
    min-width: 0 !important;
  }

  .sx-process-bullets li {
    font-size: 12px !important;
    gap: 0.4rem !important;
  }

  .sx-roadmap-img {
    width: min(100%, 320px) !important;
  }

  .sx-brand-col-logo {
    width: 100px !important;
    left: 0 !important;
  }

  .sx-brand-col-sub {
    font-size: 0.65rem !important;
    left: 0 !important;
  }

  /* Imagination */
  .imagination-section {
    padding: 1.25rem 0 !important;
    min-height: auto !important;
  }

  .imagination-section__header {
    padding: 0.85rem 0.85rem !important;
    margin-bottom: 0.65rem !important;
    margin-top: 0.35rem !important;
  }

  .imagination-section__title {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.7px !important;
  }

  .imagination-section__interactive-line {
    font-size: 0.85rem !important;
    gap: 4px !important;
  }

  .imagination-section__moq {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
  }

  .imagination-section__start-button {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
    padding: 1px 2px !important;
  }

  .imagination-section__press-enter {
    font-size: 12px !important;
  }

  .imagination-section__blue-background-wrapper {
    padding: 1.35rem 0.85rem !important;
  }

  .imagination-section__content-grid {
    gap: 1.35rem !important;
  }

  .imagination-section__item-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.3rem !important;
  }

  .imagination-section__item-subtitle {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }

  .imagination-section__item-description,
  .imagination-section__item-list-item {
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin-bottom: 0.45rem !important;
  }

  /* Creation / carousel sections */
  .seamx-creation-section {
    padding: 1.25rem 0.85rem !important;
  }

  .seamx-creation-section__title {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
  }

  .seamx-creation-section__description-title {
    font-size: 1rem !important;
  }

  .seamx-creation-section__description-text {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* Footer */
  .sx-footer {
    padding: 1.35rem 0.85rem 1.75rem !important;
    overflow-x: clip;
  }

  .sx-footer-container {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .sx-footer-top {
    margin-bottom: 1.25rem !important;
    gap: 1rem !important;
  }

  .sx-footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .sx-footer-logo {
    width: 100px !important;
  }

  .sx-footer-about p,
  .sx-col-heading,
  .sx-footer li,
  .sx-footer a,
  .sx-note,
  .sx-meta {
    font-size: 12px !important;
    letter-spacing: -0.30px !important;
  }

  /* FAQ */
  .faq-section__header {
    padding: 14px 12px !important;
  }

  .faq-section__header h2 {
    font-size: calc(1.15rem - var(--sx-mobile-heading-trim)) !important;
  }

  .faq-section__question {
    padding: 10px 12px !important;
  }

  .faq-section__question span:first-child {
    font-size: 12px !important;
  }

  .faq-section__answer-inner-wrapper {
    padding: 12px 10px 20px !important;
    gap: 12px !important;
  }

  .faq-section__answer p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* About */
  .about-seamx-section {
    padding: 36px 14px !important;
  }

  .about-seamx-title {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
  }

  .about-seamx-intro-text,
  .about-seamx-paragraph {
    font-size: calc(12px - var(--sx-mobile-body-trim)) !important;
    line-height: 1.35 !important;
  }

  .about-seamx-icon-text {
    font-size: 11px !important;
  }

  /* Landing hero v3 */
  .hero-start-btn-v3 {
    font-size: calc(20px - var(--sx-mobile-body-trim)) !important;
    padding: 8px 10px !important;
  }

  .hero-toggle-v3 {
    font-size: 16px !important;
  }

  .hero-premium-text {
    font-size: 12px !important;
    margin-left: 0 !important;
  }

  .hero-logo-v3 {
    width: 140px !important;
  }

  .hero-exact-footer-bar {
    padding: 0 12px !important;
    bottom: 18px !important;
  }

  .hero-start-box {
    padding: 12px 4px !important;
  }

  .stat-block-v3,
  .stat-block-v3 span {
    font-size: 11px !important;
  }

  /* CTA buttons row */
  .buttons-section {
    padding: 0.75rem 0.65rem !important;
    gap: 0.18em !important;
  }

  .buttons-section button {
    font-size: calc(20px - var(--sx-mobile-body-trim)) !important;
  }

  /* Info strip */
  .info-strip {
    padding: 7px 9px !important;
  }

  .info-strip p.info-statement {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }

  .info-accreditation-icons {
    gap: 14px !important;
  }

  .info-accreditation-icons img {
    height: 32px !important;
  }

  /* Project cards */
  .view-service-btn {
    font-size: calc(18px - var(--sx-mobile-body-trim)) !important;
  }

  .project-title-box span {
    font-size: 14px !important;
    padding: 4px 8px !important;
  }

  .project-overlay {
    padding: 14px !important;
  }

  .project-tag-box {
    font-size: 10px !important;
  }

  .services-horizontal-list span {
    font-size: 11px !important;
  }

  /* Services page */
  .pt-wrap {
    padding: 14px 12px 28px !important;
    min-height: auto !important;
  }

  .pt-main-header {
    margin-bottom: 18px !important;
    padding-top: 6px !important;
  }

  .pt-brand-title {
    font-size: clamp(13px, 5.5vw, 19px) !important;
    margin-bottom: 4px !important;
  }

  .pt-sub-nav {
    gap: 6px !important;
  }

  .pt-nav-row {
    gap: 6px !important;
  }

  .pt-nav-row span {
    font-size: 10px !important;
  }

  .pt-layout {
    gap: 16px !important;
  }

  .pt-heading {
    font-size: clamp(13px, 5vw, 19px) !important;
    margin-bottom: 16px !important;
  }

  .pt-paragraphs {
    gap: 14px !important;
  }

  .pt-para {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .pt-img-container {
    height: 220px !important;
  }

  .pt-diamond-nav {
    margin-top: 20px !important;
    padding-top: 8px !important;
  }

  .pt-btn-arrow {
    font-size: 18px !important;
  }

  /* Cloth / catalog showcase */
  .cloth-showcase {
    padding: 0.65rem !important;
  }

  .cloth-showcase__title {
    font-size: calc(1.35rem - var(--sx-mobile-heading-trim)) !important;
  }

  .cloth-showcase__paragraph,
  .cloth-showcase__tagline {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  .cloth-showcase__tab-link {
    font-size: 12px !important;
  }

  .cloth-showcase__nav {
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .start-wrap {
    bottom: 6em !important;
    right: 0.65em !important;
    padding: 0 1em !important;
  }
}

@media (max-width: 640px) {
  .sx-hero-container {
    padding: 1.35rem 0.85rem !important;
  }

  .seamx-showcase__hero-section {
    min-height: 68vh !important;
  }

  .seamx-showcase__hero-text-overlay {
    margin-top: 8rem !important;
  }

  .buttons-section button {
    font-size: calc(17px - var(--sx-mobile-body-trim)) !important;
  }

  .sx-btn-start,
  .hero-start-btn-v3 {
    font-size: 20px !important;
  }

  /* 404 sizing handled in not-found.css */

  .sx-process {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  .imagination-section__title {
    font-size: calc(1.2rem - var(--sx-mobile-heading-trim)) !important;
  }

  .imagination-section__moq,
  .imagination-section__start-button {
    font-size: calc(1.2rem - var(--sx-mobile-heading-trim)) !important;
  }

  .pt-wrap {
    padding: 12px 10px 24px !important;
  }
}
