:root {
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --bg: #0b0f0c;
  --text: #0b130c;
  --muted: #48524a;
  --white: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f0b;
    --text: #e6f2e9;
    --muted: #8aa695;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fff9 0%, #f1fff6 100%);
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: radial-gradient(
        1200px 600px at 0% 0%,
        rgba(34, 197, 94, 0.08),
        transparent 60%
      ),
      radial-gradient(
        900px 400px at 100% 0%,
        rgba(22, 163, 74, 0.12),
        transparent 60%
      ),
      #070a08;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}

.brand.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-line {
  display: flex;
  align-items: baseline;
}

.logo-big {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
}

.logo-small {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

.hero {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      800px 400px at 0% 0%,
      rgba(34, 197, 94, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 450px at 100% 10%,
      rgba(22, 163, 74, 0.18),
      transparent 60%
    );
  pointer-events: none;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 26px 0;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

.section {
  padding: 40px 0;
  border-top: 1px solid rgba(72, 82, 74, 0.12);
}

.card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(72, 82, 74, 0.12);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(6px);
}

@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(20, 28, 22, 0.6);
  }
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 30px 0 60px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 700;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--green-600);
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* ------------------ NAVIGATION ------------------ */

/* Default nav menu (desktop) */
.nav-menu {
  display: flex;
  gap: 16px;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu (drawer style) */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -260px; /* hidden off-screen */
    width: 240px;
    height: 100%;
    background: var(--bg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 60px 20px 20px;
    z-index: 1000;

    /* Animation */
    transition: right 0.3s ease;
  }

  .nav-menu.show {
    right: 0; /* slide in */
  }

  .nav-toggle {
    display: flex; /* show hamburger on mobile */
  }

  .nav a {
    margin: 12px 0;
    font-size: 18px;
    color: var(--text);
  }
}

.nav a.active {
  color: var(--green-600);
  border-bottom: 2px solid var(--green-600);
}

/* Backdrop overlay for mobile menu */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

.nav-backdrop.show {
  display: block;
}

#edit-modal {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%,-48%); }
  to { opacity: 1; transform: translate(-50%,-50%); }
}

.green-border-left {
  border-left: 4px solid var(--green-600);
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  .green-border-left {
    background: rgba(20, 28, 22, 0.7);
  }
}

/* Public inventory table */
.inventory-table {
  border-collapse: collapse;
  width: 100%;
}

.inventory-table th,
.inventory-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(72, 82, 74, 0.12);
}

.thumb {
  width: 110px;
  height: 82px; /* 4:3 crop; adjust as needed */
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: block;
}

.thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.status-free {
  color: var(--green-600);
  font-weight: 700;
}
.status-busy {
  color: #c00;
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}

.lightbox.show {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

