/* ===== Variables ===== */
:root {
  --color-bg: #0f0e0d;
  --color-white: #fcfaf7;
  --color-beige: #1f1d1b;
  --color-dark: #e6e2df;
  --color-gray: #8c847d;
  --color-accent: #b59a7d;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  z-index: 100;
  border-bottom: 1px solid var(--color-beige);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--color-gray);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-dark); }

/* ===== Hero ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 2rem 4rem;
}
.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--color-white); color: var(--color-dark); }

/* ===== Sections ===== */
section { padding: 6rem 2rem; }
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: normal;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--color-dark);
}

/* ===== Gallery ===== */
#gallery { background: var(--color-bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}
.gallery-grid blockquote {
  width: 100% !important;
  max-width: 100% !important;
}
.gallery-item {
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== About ===== */
#about { background: var(--color-white); }
.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-inner p {
  color: var(--color-gray);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* Master photo */
.about-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  overflow: hidden;
  border: 2px solid var(--color-beige);
  position: relative;
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none; /* hidden until src is set */
}
.about-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-placeholder svg {
  width: 64px; height: 64px;
  color: var(--color-accent);
  opacity: 0.5;
}

/* ===== Contacts ===== */
#contacts { background: var(--color-beige); }
.contacts-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.contacts-inner p { color: var(--color-gray); margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-dark);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--color-accent); }
.contact-link svg { width: 18px; height: 18px; }

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--color-gray);
  background: var(--color-white);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ===== Burger button ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}
/* Animate burger → X when active */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .burger { display: flex; }

  /* Mobile nav — dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(250, 249, 247, 0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--color-beige);
    padding: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-beige);
  }

  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.5rem; }
  #hero { padding: 6rem 1.5rem 3rem; }
}
