/* ============================================================
   Telemedia Cellular — base, hover & responsive styles.
   Markup memakai inline-style hasil handoff Claude Design agar
   pixel-perfect; file ini menambahkan interaksi & responsivitas
   yang tidak bisa diekspresikan lewat inline style.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #F5EFEB;
  color: #1A1214;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #E40D2A; color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; }

@keyframes floaty   { 0%,100% { transform: translateY(0); }    50% { transform: translateY(-14px); } }
@keyframes pulseGlow{ 0%,100% { opacity: .45; }                 50% { opacity: .75; } }
@keyframes riseIn   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Hover states (menggantikan atribut style-hover dari prototipe) ---- */
.tmc-link        { transition: color .18s ease; }
.tmc-link:hover  { color: #C20A23; }

.tmc-btn         { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.tmc-btn:hover   { transform: translateY(-2px); filter: brightness(1.04); }

.tmc-card        { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tmc-card:hover  {
  transform: translateY(-4px);
  border-color: rgba(228,13,42,.4) !important;
  box-shadow: 0 18px 40px rgba(228,13,42,.12) !important;
}

.tmc-contact-card        { transition: background .2s ease, border-color .2s ease; }
.tmc-contact-card:hover  {
  background: rgba(0,0,0,.28) !important;
  border-color: rgba(255,255,255,.32) !important;
}

/* ---- Mobile menu toggle (disembunyikan di desktop) ---- */
.tmc-menu-btn { display: none; }
#tmc-nav-toggle { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  /* Nav: sembunyikan link inline, tampilkan tombol hamburger + dropdown */
  .tmc-menu-btn { display: inline-flex !important; }
  .tmc-nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: rgba(245,239,235,.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(26,18,20,.08);
    padding: 8px 5vw 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding-top: 0; padding-bottom: 0;
  }
  #tmc-nav-toggle:checked ~ .tmc-nav-links {
    max-height: 320px;
    padding-top: 8px; padding-bottom: 16px;
  }
  .tmc-nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(26,18,20,.06); }
  .tmc-nav-cta { display: none !important; } /* CTA pindah ke hero pada layar kecil */

  /* Grid 2-kolom (hero & aplikasi) jadi 1 kolom */
  .tmc-hero,
  .tmc-app { grid-template-columns: 1fr !important; }
  .tmc-hero { text-align: center; padding-top: 40px !important; }
  .tmc-hero .tmc-hero-copy { order: 2; }
  .tmc-hero .tmc-phone     { order: 1; }
  .tmc-hero-stats { justify-content: center; }
  .tmc-hero-btns  { justify-content: center; }

  /* Grid layanan 3 -> 2 -> 1 */
  .tmc-grid-3 { grid-template-columns: repeat(2,1fr) !important; }
  .tmc-grid-4 { grid-template-columns: repeat(2,1fr) !important; }

  /* CTA kontak jadi 1 kolom */
  .tmc-cta-grid { grid-template-columns: 1fr !important; }

  /* Footer 1 kolom */
  .tmc-footer-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .tmc-grid-3,
  .tmc-grid-4 { grid-template-columns: 1fr !important; }
  .tmc-hero-stats { gap: 22px !important; }
  .tmc-section-head { flex-direction: column; align-items: flex-start !important; }
}
