@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  --bg: #20211e;
  --panel: #292a25;
  --text: #f6f5ef;
  --muted: #b2b4a9;
  --accent: #a4b18e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

/* Navigation */
.navbar {
  position: relative;
  z-index: 2;
  background: #151714;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 7%;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 20px;
  white-space: nowrap;
}

.logo span,
.accent {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

nav a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 85vh;
  position: relative;
  background: url('https://media.devastic.cc/images/foto-23.webp') center 45% / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 110px 7% 110px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 16, 13, 0.85), rgba(12, 16, 13, 0.22) 80%),
    linear-gradient(0deg, rgba(10, 12, 10, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(45px, 6.5vw, 85px);
  margin: 0 0 22px;
}

h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 0 22px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 510px;
  color: #e0e2d9;
  font-size: 17px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  gap: 20px;
  text-decoration: none;
  background: #869478;
  color: white;
  padding: 14px 23px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
}

.button:hover {
  background: #6d7e60;
}

.hero-bottom {
  position: absolute;
  bottom: 25px;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #d2d4ca;
}

/* Sections */
.section {
  padding: 100px 7%;
  scroll-margin-top: 15px;
}

.intro {
  max-width: 1100px;
}

.intro > p:not(.eyebrow) {
  max-width: 730px;
  color: var(--muted);
  font-size: 17px;
}

.info-note {
  border-left: 2px solid var(--accent);
  margin-top: 36px;
  padding: 15px 22px;
  background: #292b26;
  color: var(--muted);
  font-size: 14px;
  max-width: 760px;
}

.gallery-section,
.documents {
  background: var(--panel);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 28px;
}

.section-heading > p {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
}

/* Gallery */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.filter {
  background: transparent;
  border: 1px solid #505349;
  color: #d1d3c9;
  border-radius: 40px;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.filter:hover,
.filter.active {
  background: #899779;
  border-color: #899779;
  color: white;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo {
  padding: 0;
  border: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: #333;
  color: white;
  text-align: left;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.photo:hover img {
  transform: scale(1.045);
}

.photo:after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.photo span {
  position: absolute;
  z-index: 1;
  bottom: 15px;
  left: 18px;
  font-size: 13px;
  font-weight: 600;
}

/* Placeholder */
.placeholder {
  border: 1px solid #464a40;
  background: #282b25;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 35px;
  max-width: 850px;
}

.placeholder-icon {
  font-size: 44px;
  color: var(--accent);
}

.placeholder h3 {
  font-size: 24px;
  margin: 0 0 6px;
}

.placeholder p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Footer */
footer {
  padding: 35px 7%;
  background: #131512;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

footer > span:first-child {
  font-weight: 700;
  color: white;
  font-size: 17px;
}

/* Photo Viewer Modal */
.viewer {
  border: 0;
  padding: 0;
  background: #10110f;
  color: white;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.viewer::backdrop {
  background: rgba(0, 0, 0, 0.96);
}

.viewer figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 65px 75px 55px;
  gap: 12px;
}

.viewer figure img {
  max-width: 100%;
  max-height: calc(100vh - 145px);
  object-fit: contain;
}

.viewer figcaption {
  font-size: 13px;
  color: #ccc;
}

.viewer button {
  position: absolute;
  z-index: 3;
  border: 0;
  background: #343830;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 29px;
}

.viewer-close {
  right: 20px;
  top: 20px;
  font-size: 19px !important;
}

.viewer-prev {
  left: 17px;
  top: 50%;
}

.viewer-next {
  right: 17px;
  top: 50%;
}

/* Responsive Design */
@media (max-width: 850px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 12px 20px;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 76vh;
    padding: 90px 6% 90px;
  }

  .section {
    padding: 70px 6%;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .photo {
    aspect-ratio: 3 / 4;
  }

  .photo span {
    left: 9px;
    bottom: 9px;
    font-size: 11px;
  }

  .placeholder {
    padding: 22px;
    align-items: flex-start;
  }

  .viewer figure {
    padding: 75px 12px;
  }

  .viewer-prev {
    left: 5px;
  }

  .viewer-next {
    right: 5px;
  }

  .hero-bottom {
    left: 6%;
    right: 6%;
  }
}
