:root {
  --bg: #0b0b0c;
  --bg-alt: #141416;
  --text: #f5f5f5;
  --text-muted: #9a9a9f;
  --accent: #ffffff;
  --border: #26262a;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.photo-item {
  padding: 0;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.06);
}

/* ---------- Video tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tab-btn {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--accent);
  color: #0b0b0c;
  border-color: var(--accent);
  font-weight: 600;
}

.video-panel { display: none; }
.video-panel.active { display: block; }

.video-grid { display: grid; gap: 20px; }

.vertical-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.horizontal-grid {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

@media (min-width: 900px) {
  .vertical-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }

  .horizontal-grid {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  }
}

.video-card { display: flex; flex-direction: column; gap: 8px; }

.video-frame-wrap {
  position: relative;
  width: 100%;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
}

.vertical .video-frame-wrap { aspect-ratio: 9 / 16; }
.horizontal .video-frame-wrap { aspect-ratio: 16 / 9; }

.video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}

.video-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-error {
  padding: 16px;
  color: #ff8080;
  font-size: 0.85rem;
  background: var(--bg-alt);
  border-radius: 6px;
}

/* ---------- Contact ---------- */
.contact-section { text-align: center; }
.contact-section a { border-bottom: 1px solid var(--border); }

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bot-field-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

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

.services-field {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.services-field legend {
  padding: 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #0b0b0c;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  font-size: 0.9rem;
  color: var(--text);
}

.form-status.is-error { color: #ff8080; }

.contact-fallback {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 8px 14px;
}

.lightbox-close { top: 16px; right: 24px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.open { max-height: 240px; }

  .main-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
}
