/* ─────────────────────────────────────────────────────────────────────────
   Design tokens
───────────────────────────────────────────────────────────────────────── */
:root {
  --bg:         #0d0d0d;
  --bg-surface: #171717;
  --bg-nav:     rgba(13, 13, 13, 0.95);
  --text:       #e4e4e4;
  --text-muted: #808080;
  --accent:     #c8a96e;
  --accent-dim: #a07838;
  --border:     #252525;
  --radius:     6px;
  --nav-h:      60px;
  --ease:       0.22s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   Reset
───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100dvh;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.hidden { display: none !important; }

/* ─────────────────────────────────────────────────────────────────────────
   Nav
───────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 56px);
  z-index: 100;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.nav-links a:hover          { color: var(--text); }
.nav-links a.active         { color: var(--text); border-color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────────────
   Page layout
───────────────────────────────────────────────────────────────────────── */
main {
  padding-top:    calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  padding-left:   clamp(12px, 4vw, 48px);
  padding-right:  clamp(12px, 4vw, 48px);
  max-width: 1440px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero
───────────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 52px 0 44px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ─────────────────────────────────────────────────────────────────────────
   Tag filters
───────────────────────────────────────────────────────────────────────── */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.tag-btn {
  padding: 5px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.tag-btn:hover           { border-color: var(--accent); color: var(--accent); }
.tag-btn.active          { background: var(--accent); border-color: var(--accent); color: #0d0d0d; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────
   Gallery grid
───────────────────────────────────────────────────────────────────────── */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

/* ── Coming soon state ── */
.gallery-coming-soon {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px;
  text-align: center;
}
.cs-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 32px;
  animation: cs-pulse 2.8s ease-in-out infinite;
}
.cs-icon svg { width: 48px; height: 48px; }
@keyframes cs-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.7; }
}
.gallery-coming-soon h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 14px;
}
.gallery-coming-soon p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   Photo card
───────────────────────────────────────────────────────────────────────── */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  background: var(--bg-surface);
}
.photo-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-card:hover img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease);
}
.photo-card:hover .card-overlay,
.photo-card:focus-visible .card-overlay { opacity: 1; transform: none; }

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────────────
   Tag pill  (reused in cards + lightbox)
───────────────────────────────────────────────────────────────────────── */
.tag-pill {
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(200, 169, 110, 0.15);
  border: 1px solid rgba(200, 169, 110, 0.35);
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────
   Skeleton loader
───────────────────────────────────────────────────────────────────────── */
.skeleton {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: linear-gradient(90deg, var(--bg-surface) 25%, #222 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Lightbox
───────────────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-close {
  position: absolute;
  top: 18px; right: 22px;
  z-index: 202;
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius);
  line-height: 1;
  transition: color var(--ease), background var(--ease);
}
.lb-close:hover      { color: var(--text); background: rgba(255,255,255,.08); }
.lb-close:focus-visible { outline: 2px solid var(--accent); }

.lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 202;
  font-size: 2.4rem;
  color: var(--text-muted);
  padding: 14px 10px;
  line-height: 1;
  border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
}
.lb-arrow:hover { color: var(--text); background: rgba(255,255,255,.08); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-content {
  position: relative;
  z-index: 201;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 40px);
}
.lb-img-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: calc(100vh - 40px);
}
.lb-img-wrap img {
  max-width: 72vw;
  max-height: calc(100vh - 40px);
  object-fit: contain;
  border-radius: var(--radius);
}
.lb-info {
  flex: 0 0 220px;
  padding-top: 4px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}
.lb-info h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 8px;
}
.lb-info time {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.lb-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.lb-tags    { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lb-counter { font-size: 0.72rem; color: #555; letter-spacing: 0.06em; }

/* ─────────────────────────────────────────────────────────────────────────
   Contact page
───────────────────────────────────────────────────────────────────────── */
.contact-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 52px 0 80px;
}
.contact-wrap h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 10px;
}
.subtitle { color: var(--text-muted); margin-bottom: 44px; }

/* contact channel cards */
.contact-channels { display: flex; flex-direction: column; gap: 14px; }

.channel-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}
.channel-card:hover {
  border-color: var(--accent);
  background: rgba(200, 169, 110, 0.06);
}
.channel-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 10px;
  color: var(--accent);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-label {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel-value {
  font-size: 1rem;
  font-weight: 500;
}
.channel-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--ease), transform var(--ease);
}
.channel-card:hover .channel-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.coming-soon {
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lb-content {
    flex-direction: column;
    max-width: calc(100vw - 24px);
    overflow-y: auto;
    padding-bottom: 20px;
  }
  .lb-img-wrap img { max-width: calc(100vw - 24px); max-height: 58vh; }
  .lb-info { flex: none; width: 100%; max-height: none; }
  .lb-arrow { display: none; }
}
@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.72rem; }
  #gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
}
