/* ==========================================================================
   Rizal Transport Boyolali - Exact Brand System (Shared Across UI 1 - UI 6)
   ========================================================================== */

:root {
  --rt-red: #d92323;
  --rt-red-hover: #b91c1c;
  --rt-red-soft: rgba(217, 35, 35, 0.1);
  --rt-dark: #0e1014;
  --rt-dark-2: #15181e;
  --rt-dark-card: #1a1d24;
  --rt-light: #ffffff;
  --rt-bg: #f5f6f8;
  --rt-text: #111827;
  --rt-muted: #6b7280;
  --rt-border: #e5e7eb;
  --rt-border-dark: #262a33;
  --rt-wa: #25d366;
  --rt-wa-hover: #1ebe5d;
  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--rt-text);
  background-color: var(--rt-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
}

.rt-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.rt-red {
  color: var(--rt-red);
}

/* Buttons */
.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.rt-btn-red {
  background-color: var(--rt-red);
  color: #ffffff;
}
.rt-btn-red:hover {
  background-color: var(--rt-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 35, 35, 0.28);
}

.rt-btn-outline-dark {
  background-color: #ffffff;
  color: var(--rt-text);
  border-color: #d1d5db;
}
.rt-btn-outline-dark:hover {
  border-color: var(--rt-text);
}

.rt-btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}
.rt-btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.rt-btn-outline-red {
  background-color: #ffffff;
  color: var(--rt-red);
  border-color: var(--rt-red);
}
.rt-btn-outline-red:hover {
  background-color: var(--rt-red);
  color: #ffffff;
}

.rt-btn-sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

/* Wishlist Heart */
.rt-heart-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #9ca3af;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rt-heart-btn:hover,
.rt-heart-btn.liked {
  color: var(--rt-red);
  border-color: #fecaca;
  background: #fef2f2;
}
.rt-heart-btn.liked svg {
  fill: var(--rt-red);
}

/* Floating WhatsApp Button (Bottom Right) */
.rt-wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  background-color: var(--rt-wa);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.38);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.rt-wa-float:hover {
  background-color: var(--rt-wa-hover);
  transform: translateY(-2px) scale(1.04);
}

/* Footer Shared */
.rt-footer-dark {
  background-color: var(--rt-dark);
  color: #9ca3af;
  padding: 54px 0 28px;
  position: relative;
  overflow: hidden;
}

.rt-footer-dark::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 240px;
  height: 180px;
  background: linear-gradient(135deg, transparent 48%, rgba(217, 35, 35, 0.28) 49%, rgba(217, 35, 35, 0.28) 54%, transparent 55%);
  pointer-events: none;
}

.rt-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-footer-dark h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.rt-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.86rem;
}

.rt-footer-links a:hover {
  color: #ffffff;
}

.rt-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

.rt-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rt-social-ico {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: #d1d5db;
  transition: all 0.16s;
}
.rt-social-ico:hover {
  border-color: var(--rt-red);
  color: #ffffff;
  background-color: var(--rt-red);
}

.rt-social-ico.light {
  border-color: #e5e7eb;
  color: #4b5563;
  background: #ffffff;
}
.rt-social-ico.light:hover {
  color: #ffffff;
  border-color: var(--rt-red);
  background-color: var(--rt-red);
}

/* Modal Quick Detail */
.rt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rt-modal-backdrop.open {
  display: flex;
}
.rt-modal-box {
  background: #ffffff;
  color: var(--rt-text);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.rt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .rt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .rt-footer-grid {
    grid-template-columns: 1fr;
  }
}
