:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --ink: #1a1a1a;
  --grey: #6b7280;
  --grey-light: #f4f5f7;
  --border: #e5e7eb;
  --max: 1160px;
}

* { box-sizing: border-box; }

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

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

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

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.25; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo img { height: 32px; display: block; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { color: var(--green-dark); text-decoration: none; }

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--grey-light) 0%, #fff 100%);
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--ink);
}
.hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--green);
  margin-top: 14px;
  border-radius: 2px;
}
.hero-lead {
  max-width: 760px;
  font-size: 1.05rem;
  color: #333;
  margin: 20px 0 0;
}

/* References */
.references { padding: 56px 0 72px; }
.references h2 { font-size: 1.8rem; }
.section-lead { color: var(--grey); margin: 0 0 32px; }

.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.ref-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ref-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.gallery-trigger {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  display: block;
}
.ref-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey-light);
}
.ref-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.ref-card-img:hover img { transform: scale(1.04); }
.ref-card-body { padding: 16px 18px 20px; }
.ref-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ref-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey-light);
}
.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.ref-thumb:hover img { transform: scale(1.08); }
.ref-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.ref-card-body p {
  font-size: .92rem;
  color: var(--grey);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 48px 0 20px;
  margin-top: 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
.footer-logo {
  height: 30px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col p { font-size: .9rem; margin: 0 0 8px; }
.footer-col a { color: var(--green); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: #9ca3af;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox-content {
  max-width: min(900px, 90vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
  color: #e5e7eb;
  text-align: center;
  font-size: .92rem;
}
.lightbox-counter {
  display: block;
  color: #9ca3af;
  font-size: .82rem;
  margin-top: 4px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { color: var(--green); }
.lightbox-nav {
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { margin-right: 16px; }
.lightbox-next { margin-left: 16px; }

@media (max-width: 640px) {
  .lightbox-content { max-width: 94vw; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { margin-right: 8px; }
  .lightbox-next { margin-left: 8px; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.6rem; }
  .main-nav { gap: 16px; }
  .references { padding: 40px 0 48px; }
}
