/* VirtualOffice Jakarta — style.css */

:root {
  --primary: #263238;
  --accent: #00bcd4;
  --bg: #eceff1;
  --text: #0d1f2d;
  --light: #fafafa;
  --border: #bdbdbd;
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Demo bar — fixed di atas */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.demo-bar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.demo-bar a:hover {
  text-decoration: underline;
}

/* Offset semua konten di bawah demo bar */
body {
  padding-top: 2rem;
}

/* Header & Nav */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 2rem;
  z-index: 100;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-accent {
  color: var(--accent);
}

/* Checkbox hack untuk mobile nav */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Mobile-first: nav toggle visible di bawah 640px */
@media (max-width: 639px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 2px solid var(--border);
  }

  nav li {
    border-bottom: 1px solid var(--border);
  }

  nav a {
    display: block;
    padding: 1rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked ~ ul {
    display: flex;
  }
}

/* Main content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

@media (max-width: 639px) {
  h1 {
    font-size: 1.5rem;
  }
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

@media (max-width: 639px) {
  h2 {
    font-size: 1.25rem;
  }
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #37474f 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background-color: white;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.pricing-card h3 {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-card li:before {
  content: "✓ ";
  color: var(--accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #00acc1;
}

.btn-primary {
  background-color: var(--primary);
}

.btn-primary:hover {
  background-color: #1a252a;
}

/* Form */
form {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

form .btn {
  width: 100%;
}

/* Table untuk listing */
.listing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.listing-table th {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.listing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.listing-table tr:hover {
  background-color: var(--bg);
}

/* Detail section */
.detail-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-item {
  padding: 1rem;
  background-color: var(--bg);
  border-radius: 4px;
}

.detail-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Simulator section */
.simulator {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.simulator-input {
  margin-bottom: 1rem;
}

.simulator-input label {
  margin-bottom: 0.5rem;
}

.simulator-result {
  background-color: var(--bg);
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* SVG icons inline */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: #666;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 639px) {
  .header-container {
    padding: 0.75rem;
  }

  nav ul {
    gap: 0;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .listing-table {
    font-size: 0.9rem;
  }

  .listing-table th,
  .listing-table td {
    padding: 0.75rem;
  }
}
