/* Shared styles for RS Royal Surabaya Demo - Barlow Font only */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-950:    #030C1C;
  --navy-900:    #00183F;
  --navy-800:    #00285B;
  --navy-700:    #0C3875;
  --navy-600:    #164E96;
  
  --gold-primary: #C59A4E;
  --gold-light:   #E8C683;
  --gold-surface: #FBF7EE;
  --gold-border:  rgba(197, 154, 78, 0.28);
  --gold-glow:    rgba(197, 154, 78, 0.22);
  
  --slate-900:   #1E293B;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748B;
  --slate-400:   #94A3B8;
  --slate-200:   #E2E8F0;
  --slate-100:   #F1F5F9;
  --slate-50:    #F8FAFC;
  
  --white:       #FFFFFF;
  --cream-bg:    #FBFBF9;
  --border-subtle: #E8ECEF;
  
  --shadow-sm:  0 1px 3px rgba(0,24,63, 0.05);
  --shadow-md:  0 4px 20px -2px rgba(0,24,63, 0.08);
  --shadow-lg:  0 12px 35px -4px rgba(0,24,63, 0.12);
  --shadow-gold: 0 8px 24px -4px rgba(197, 154, 78, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(197, 154, 78, 0.14);
  color: #9E7329;
  border: 1px solid var(--gold-border);
}

.badge-navy {
  background: rgba(0, 40, 91, 0.06);
  color: var(--navy-800);
}

.brand-logo img {
  width: 110px;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-gold {
  background: linear-gradient(135deg, #D4AA5D 0%, #B88B3D 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(184, 139, 61, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #DEB568 0%, #C39546 100%);
  box-shadow: 0 6px 20px rgba(184, 139, 61, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-900);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline-navy:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ─── TOPBAR (WHITE CLEAN THEME) ─── */
.topbar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 13px;
  color: var(--slate-600);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--slate-600);
  transition: color 0.2s;
}
.topbar-item:hover { color: var(--navy-800); }
.emergency-tag {
  color: #DC2626;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.emergency-dot {
  width: 7px;
  height: 7px;
  background: #DC2626;
  border-radius: 50%;
  animation: pulseAlert 1.6s infinite;
}
@keyframes pulseAlert {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #DC2626; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ─── HEADER & NAVBAR (WHITE ELEGANT THEME - Sesuai Feedback) ─── */
header.header-area {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 24, 63, 0.05);
  transition: box-shadow 0.3s;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo img {
width: 110px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand-title span {
  color: var(--gold-primary);
}
.brand-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--gold-primary);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy-900);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-login {
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-login:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(197, 154, 78, 0.2);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  right: -50px; bottom: -50px;
  width: 250px; height: 250px;
  background: var(--gold-glow);
  border-radius: 50%;
  filter: blur(60px);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}
.page-banner-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.page-banner-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
}

/* Footer */
footer.main-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 70px 0 35px;
  border-top: 3px solid var(--gold-primary);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 18px 0 24px;
  max-width: 320px;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col-title::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold-primary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Floating CS */
.floating-cs {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cs:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  background: #22BF5B;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 40, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.modal-close:hover {
  background: rgba(255,255,255,0.25);
}
.modal-body {
  padding: 24px;
}

/* ─── NAV TOGGLE (HAMBURGER) ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

/* ─── RESPONSIVE: COMPACT DESKTOP (≤1200px) ─── */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 18px;
  }
  .nav-link {
    font-size: 14px;
  }
  .nav-collapse {
    gap: 18px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-login {
    padding: 8px 10px;
    font-size: 13.5px;
  }
}

/* ─── RESPONSIVE: TABLET (≤1024px) ─── */
@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .topbar-left, .topbar-right {
    gap: 16px;
  }
  .topbar-item:not(.emergency-tag) {
    font-size: 12.5px;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .page-banner {
    padding: 48px 0 40px;
  }
  .page-banner-title {
    font-size: 30px;
  }
}

/* ─── RESPONSIVE: MOBILE NAV (≤1024px) ─── */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .navbar {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .nav-collapse {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    padding: 8px 0 18px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 10px;
  }
  .nav-collapse.open {
    display: flex;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15.5px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }
  .nav-actions .btn,
  .nav-actions .nav-login {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .brand-logo img {
    width: 92px;
  }
}

/* ─── RESPONSIVE: MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .topbar-item:not(.emergency-tag),
  .topbar-right{
        display: none;
    }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    padding: 7px 0;
    font-size: 12px;
  }
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .topbar-left, .topbar-right {
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
  }
  .topbar-left .topbar-item[style*="slate-400"] {
    display: none;
  }
  .topbar-item:not(.emergency-tag) {
    font-size: 12px;
  }
  .emergency-tag strong {
    font-size: 12.5px;
  }
  .page-banner {
    padding: 36px 0 32px;
  }
  .page-banner-title {
    font-size: 25px;
  }
  .page-banner-desc {
    font-size: 14.5px;
  }
  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  footer.main-footer {
    padding: 50px 0 28px;
    margin-top: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
  .floating-cs {
    bottom: 18px;
    right: 16px;
    padding: 11px 16px;
    font-size: 13px;
  }
  .modal-card {
    max-width: 100%;
  }
  .modal-header, .modal-body {
    padding: 20px;
  }
  .btn {
    font-size: 14px;
    padding: 11px 20px;
  }
}

/* ─── RESPONSIVE: SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
  .brand-logo img {
    width: 80px;
  }
  .page-banner-title {
    font-size: 22px;
  }
  .floating-cs {
    bottom: 14px;
    right: 12px;
    padding: 10px 14px;
    font-size: 12.5px;
  }
}
