:root {
  --bg: #f8f7f4;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e3de;
  --max-width: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.sticky-cta {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
}

.sticky-cta a {
  color: inherit;
  text-decoration: none;
}

.sticky-cta a:hover {
  text-decoration: underline;
}

.hero {
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.hero .tagline {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero .meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

main section {
  margin-bottom: 2.5rem;
}

main h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.specs ul {
  margin: 0;
  padding-left: 1.25rem;
}

.specs li {
  margin-bottom: 0.35rem;
}

.description p {
  margin: 0 0 1rem;
}

.description ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.description li {
  margin-bottom: 0.5rem;
}

.description ul ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
  list-style-type: circle;
}

.gallery-section .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-links a {
  color: var(--accent);
  text-decoration: none;
}

.doc-links a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.table-wrap {
  overflow-x: auto;
}

.maintenance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.maintenance-table th,
.maintenance-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.maintenance-table th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
