/*
 * Tunas Muda — older-user mobile experience
 * Keep this layer separate so desktop and CMS-generated content remain stable.
 */

@media (max-width: 1199.98px) {
  :root {
    --tm-mobile-text: #172033;
    --tm-mobile-surface: #ffffff;
    --tm-mobile-border: rgba(23, 32, 51, 0.16);
  }

  html { font-size: 100%; }

  body.tm-pro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--tm-mobile-text);
  }

  body.tm-pro p {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  /* Keep the fixed header compact but make every control easy to tap. */
  .tm-pro #header.header {
    min-height: 4.5rem;
    padding-top: env(safe-area-inset-top);
    background: var(--tm-navy, #1d365c);
    box-shadow: 0 3px 16px rgba(12, 24, 41, 0.22);
  }

  .tm-pro #header .logo img {
    height: 3rem;
    max-width: min(58vw, 13rem);
  }

  .tm-pro #header .mobile-nav-toggle {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-radius: 0.75rem;
    font-size: 1.8rem;
  }

  .tm-pro .navmenu {
    inset: 4.5rem 0 auto;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    background: #142a49;
  }

  .tm-pro .navmenu ul { padding: 0.5rem 0 1.5rem; }

  .tm-pro .navmenu a,
  .tm-pro .navmenu a:focus {
    min-height: 3.75rem;
    padding: 0.8rem 1.25rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .tm-pro .navmenu .dropdown ul a {
    min-height: 3.5rem;
    padding-left: 2rem;
    font-size: 0.98rem;
  }

  .tm-pro .navmenu .tm-mobile-nav-cta a {
    margin: 1rem 1.25rem 0;
    justify-content: center;
    min-height: 3.75rem;
    border: 2px solid var(--tm-gold, #ffc736);
    border-radius: 0.75rem;
    background: var(--tm-gold, #ffc736);
    color: #142a49;
    font-weight: 700;
  }

  /* Remove decorative floating section navigation on small screens. */
  .tm-pro .tm-float-nav { display: none; }

  .tm-pro .container,
  .tm-pro .container-fluid.container-xl {
    width: 100%;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .tm-pro .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .tm-pro .section-title { padding-bottom: 2rem; }

  .tm-pro .section-title h2,
  .tm-pro .tm-story__title,
  .tm-pro .visi-dasar-kualiti-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .tm-pro .tm-section-label,
  .tm-pro .tm-eyebrow {
    font-size: 0.9rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }

  /* Hero: readable content card instead of edge-to-edge glass over busy media. */
  .tm-pro #hero.tm-hero {
    min-height: auto;
    padding: 5.75rem 0 2rem;
  }

  .tm-pro .tm-hero__wrap {
    align-items: flex-end;
    min-height: 0;
    padding: 0 1.25rem;
  }

  .tm-pro .tm-hero__glass {
    width: 100%;
    max-width: none;
    padding: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 1rem;
    background: rgba(12, 24, 41, 0.9);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
  }

  .tm-pro .tm-hero__title {
    max-width: 16ch;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .tm-pro .tm-hero__lead {
    max-width: 34rem;
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .tm-pro .tm-hero__actions,
  .tm-pro .tm-cta-band__actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .tm-pro .tm-btn,
  .tm-pro .berita-btn,
  .tm-pro button:not(.mobile-nav-toggle) {
    min-height: 3.25rem;
    padding: 0.7rem 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.3;
  }

  .tm-pro .tm-hero__actions .tm-btn,
  .tm-pro .tm-cta-band__actions .tm-btn { width: 100%; }

  .tm-pro .tm-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
  }

  /* Keep two short stats beside each other; the final stat gets the full row. */

  .tm-pro .tm-stat-pill {
    min-height: 3.8rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 0.75rem;
  }

  .tm-pro .tm-stat-pill:last-child { grid-column: 1 / -1; }

  .tm-pro .tm-stat-pill strong { font-size: 1.25rem; }
  .tm-pro .tm-stat-pill span { font-size: 0.95rem; line-height: 1.35; }

  /* Existing grid sections become comfortable one-column reading flows. */
  .tm-pro .row { --bs-gutter-y: 1.5rem; }

  .tm-pro .tm-story__chapter,
  .tm-pro .service-item,
  .tm-pro .service-slide-card,
  .tm-pro .berita-item,
  .tm-pro .berita-featured,
  .tm-pro .tm-cta-band__inner { border-radius: 0.875rem; }

  .tm-pro .tm-story__chapter {
    padding: 1.25rem;
    border: 1px solid var(--tm-mobile-border);
    background: var(--tm-mobile-surface);
  }

  .tm-pro .tm-story__chapter h3,
  .tm-pro .service-item h3,
  .tm-pro .service-slide-card h3,
  .tm-pro .berita-item__title,
  .tm-pro .berita-featured__title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .tm-pro .tm-story__chapter p,
  .tm-pro .service-item p,
  .tm-pro .service-slide-card p,
  .tm-pro .berita-item__excerpt,
  .tm-pro .berita-featured__excerpt {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .tm-pro .services-swiper {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .tm-pro .service-slide-card { min-height: 22rem; }

  .tm-pro .accordion-button {
    min-height: 4rem;
    padding: 1rem 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.45;
  }

  .tm-pro .accordion-body {
    padding: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .tm-pro #footer {
    padding-top: 3.5rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .tm-pro #footer .row > [class*="col-"] {
    display: flex;
    min-height: 4.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .tm-pro #footer h4 { font-size: 1.15rem; }

  .tm-pro #footer p,
  .tm-pro #footer a {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .tm-pro #footer .social-links a,
  .tm-pro .scroll-top {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
  }

  .tm-pro .scroll-top {
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 575.98px) {
  .tm-pro .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .tm-pro .tm-hero__glass { padding: 1.25rem; }

  .tm-pro .tm-hero__title {
    font-size: clamp(1.9rem, 9.5vw, 2.5rem);
  }

  .tm-pro .tm-hero__lead,
  .tm-pro body,
  .tm-pro p { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-pro *,
  .tm-pro *::before,
  .tm-pro *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .tm-pro { --tm-mobile-border: rgba(23, 32, 51, 0.45); }
  .tm-pro p,
  .tm-pro a,
  .tm-pro button { text-shadow: none; }
  .tm-pro .tm-hero__glass { border-width: 3px; }
}
