/* ===== Onesia - Klaim Garansi (Maintenance) ===== */
:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --blue: #0d6efd;
  --text: #1f2d3d;
  --muted: #6b7280;
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Encode Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* ----- Top bar ----- */
.topbar { background: var(--white); border-bottom: 1px solid var(--border); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; max-width: 1440px; }
.topbar-left { display: flex; align-items: center; gap: 16px; padding-left: 7%; }
.search { display: flex; align-items: center; background: #f1f3f5; border-radius: 20px; overflow: hidden; }
.search button { border: 0; background: #e3e7ec; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--text); display: grid; place-items: center; }
.search input { border: 0; background: transparent; padding: 0 12px; width: 130px; font: inherit; outline: none; }
.lang { display: flex; align-items: center; gap: 6px; }
.flag { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(var(--red) 50%, #fff 50%); box-shadow: 0 0 0 1px var(--border); }
.topbar-social { display: flex; gap: 28px; padding-right: 14%; }
.topbar-social a:hover { color: var(--red); }

/* ----- Navbar ----- */
.navbar { background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 44px; }
.brand img { height: 26px; width: auto; }
.nav-menu { display: flex; gap: 40px; }
.nav-menu a { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; transition: color .2s; }
.nav-menu a:hover { color: var(--red); }
.caret { display: inline-block; border: 4px solid transparent; border-top-color: currentColor; margin-left: 4px; vertical-align: -1px; }
.tkdn-badge { height: 42px; width: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* ----- Maintenance card ----- */
.maintenance { padding: 56px 16px 72px; display: flex; justify-content: center; }
.card {
  background: var(--white);
  max-width: 760px; width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 44px 48px;
  text-align: center;
  border-top: 4px solid var(--red);
}
.illustration { display: flex; justify-content: center; margin-bottom: 12px; }
.gear { animation: spin 6s linear infinite; transform-origin: 0 0; }
.wrench { animation: wiggle 2s ease-in-out infinite; transform-origin: 0 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fdecec; color: var(--red);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,6,19,.5); } 100% { box-shadow: 0 0 0 8px rgba(227,6,19,0); } }

.card h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 15px; }
.lead strong { color: var(--text); }

.progress { height: 8px; background: #eef0f3; border-radius: 8px; overflow: hidden; max-width: 460px; margin: 0 auto 28px; }
.progress-bar {
  height: 100%; width: 70%;
  background: repeating-linear-gradient(45deg, var(--red) 0 10px, var(--red-dark) 10px 20px);
  background-size: 28px 28px;
  animation: stripes 1s linear infinite;
  border-radius: 8px;
}
@keyframes stripes { to { background-position: 28px 0; } }

.countdown { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.countdown div { background: var(--text); color: #fff; border-radius: 8px; width: 76px; padding: 10px 0; }
.countdown span { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: 1px; }
.eta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.eta strong { color: var(--text); }

.alt { border-top: 1px dashed var(--border); padding-top: 24px; }
.alt p { margin-bottom: 14px; font-weight: 500; }
.alt-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 4px;
  font-weight: 600; font-size: 13px;
  transition: background .2s, color .2s, transform .1s;
}
.btn img { width: 18px; height: 18px; object-fit: contain; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0b5ed7; }
.btn-primary img { filter: brightness(0) invert(1); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.back { font-size: 13px; color: var(--muted); }
.back:hover { color: var(--red); }

/* ----- Footer ----- */
.footer { padding-top: 56px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; max-width: 1400px; padding: 0 16px 0 14%; }
.footer-logo { width: 140px; margin-bottom: 40px; }
.footer-about p { line-height: 2; max-width: 560px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a:hover { color: var(--red); }
.contact-row { display: flex; gap: 12px; align-items: center; margin: 16px 0 20px; }
.contact-row img { width: 24px; height: auto; }
.contact-row small { display: block; color: var(--muted); }
.contact-row strong { display: block; font-weight: 600; margin-top: 8px; }

.footer-badges { display: flex; align-items: flex-start; gap: 60px; padding: 56px 16px 0 13.5%; }
.badge-col { display: flex; flex-direction: column; gap: 6px; }
.b-tkdn { width: 126px; }
.b-iso { width: 140px; }
.footer-badges > img { height: 42px; width: auto; margin-top: 14px; }

.copyright { text-align: center; font-size: 12px; padding: 80px 16px 24px; }

.to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #c8ccd1; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s, background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red); }

/* ----- Responsive ----- */
@media (max-width: 992px) {
  .topbar-left, .topbar-social { padding: 0; }
  .navbar-inner { padding: 0 16px; position: relative; }
  .nav-toggle { display: block; order: 3; }
  .tkdn-badge { height: 34px; margin-left: auto; margin-right: 8px; }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.08);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 16px; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-badges { padding: 40px 16px 0; flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 576px) {
  .lang { display: none; }
  .search input { width: 110px; }
  .topbar-social { gap: 16px; }
  .card { padding: 32px 20px; }
  .card h1 { font-size: 21px; }
  .countdown { gap: 8px; }
  .countdown div { width: 64px; }
  .countdown span { font-size: 22px; }
  .alt-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
