:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --panel: #151a24;
  --border: #232a38;
  --text: #e6e9ef;
  --text-dim: #9aa4b5;
  --accent: #38bdf8;
  --accent-dim: #1e7ba3;
  --max-width: 1080px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { line-height: 1.2; font-weight: 600; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.nav a {
  color: var(--text-dim);
  margin-left: 28px;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); }

/* Hero */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
}

/* Page header (services / customers) */

.page-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 20px;
  max-width: 18ch;
}

.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #05131c;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: #5cc9fb; text-decoration: none; }

/* Services */

.services { padding: 72px 0; border-bottom: 1px solid var(--border); }
.services h2, .customers h2, .contact h2 { margin: 0 0 32px; font-size: 1.6rem; }

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

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: inherit;
}
a.card:hover {
  border-color: var(--accent-dim);
  text-decoration: none;
}
.card.card-static { cursor: default; }

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section-more { margin: 28px 0 0; }

/* Customers */

.customers { padding: 56px 0; border-bottom: 1px solid var(--border); }
.customers strong { color: var(--text); }

/* Gallery */

.gallery-section { padding: 56px 0 72px; }
.gallery-section h2 { margin: 0 0 24px; font-size: 1.6rem; }

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.gallery img {
  flex: 0 0 auto;
  width: 280px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  cursor: zoom-in;
}
.gallery img:hover { border-color: var(--accent-dim); }
.gallery img:focus-visible { outline: 2px solid var(--accent); }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }

.lightbox-image {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { border-color: var(--accent-dim); }

@media (max-width: 560px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.1rem; }
}

/* Contact */

.contact { padding: 72px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .hero-image { order: -1; }
}

.contact-form {
  max-width: 560px;
  margin-top: 8px;
}

.form-row { margin-bottom: 18px; display: flex; flex-direction: column; }

label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

input, textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .nav a { margin-left: 16px; font-size: 0.85rem; }
  .hero { padding: 64px 0 48px; }
}
