@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f1e9;
  color: #5f5f5f;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.8;
}

.site-header {
  width: 100%;
  height: 102px;
  padding: 0 4%;
  background: #f8f5ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #202020;
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: lowercase;
}

.logo img {
  width: 78px;
  height: auto;
  display: block;
}

.logo span {
  color: #202020;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

nav a:hover {
  color: #777;
}

.page {
  width: 100%;
  margin: 0 auto 100px;
}

.narrow {
  width: min(820px, 86%);
  margin: 70px auto 110px;
}

.hero {
  width: 100%;
}

.hero img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(0.9) brightness(0.9);
}

.text-section {
  width: min(760px, 86%);
  margin: 52px auto 0;
}

h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.25;
  color: #656565;
  margin-bottom: 22px;
}

h2 {
  font-size: 30px;
  font-weight: 300;
  color: #656565;
  margin-bottom: 22px;
}

p {
  font-size: 15px;
  color: #6d6d6d;
  margin-bottom: 18px;
}

.lead {
  font-size: 16px;
  color: #777;
}

.quote-author {
  font-size: 14px;
  color: #777;
  margin-top: -8px;
  margin-bottom: 34px;
}

.timeline {
  margin-top: 35px;
}

.timeline p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 14px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.timeline strong {
  color: #444;
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
  margin-top: 55px;
  align-items: start;
}

.cards article {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 42px;
  transition: 0.25s;
}

.cards article:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.7);
}

.cards h2 {
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 24px;
  color: #4f4f4f;
  word-break: normal;
}

.cards p {
  font-size: 15px;
  line-height: 2;
  color: #777;
  word-break: break-word;
}

.category-grid {
  width: min(980px, 86%);
  margin: 60px auto 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.category-grid a {
  padding: 18px 12px;
  text-align: center;
  color: #555;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.25);
  transition: 0.25s;
  font-size: 14px;
}

.category-grid a:hover {
  background: #222;
  color: white;
}

.gallery-category {
  width: min(1100px, 88%);
  margin: 0 auto 100px;
  overflow: hidden;
}

.gallery-category h2 {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scroll-behavior: smooth;
}

.gallery img {
  flex: 0 0 auto;
  width: 280px;
  height: 360px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  filter: grayscale(100%) contrast(0.95);
  transition: 0.3s;
}

.gallery img:hover {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.015);
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.contact p {
  font-size: 17px;
}

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

.contact a:hover {
  opacity: 0.7;
}

footer {
  background: #f8f5ef;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 38px 4%;
  color: #777;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

footer strong {
  color: #333;
  font-weight: 500;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #777;
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  opacity: 0.7;
}

@media (max-width: 850px) {
  .site-header {
    padding: 22px 5%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .logo {
    font-size: 18px;
    gap: 10px;
  }

  .logo img {
    width: 58px;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  nav a {
    font-size: 11px;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  .hero img {
    height: 320px;
  }

  .text-section {
    margin-top: 42px;
  }

  h1 {
  font-size: 28px;
  line-height: 1.35;
}

  h2 {
    font-size: 26px;
  }

  .gallery img {
    width: 240px;
    height: 320px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-links {
    margin-left: 0;
    margin-top: 10px;
  }
}