:root {
  --cream: #f4f0e7;
  --paper: #fbf9f4;
  --ink: #171916;
  --olive: #4c5943;
  --olive-dark: #2e382a;
  --line: rgba(23, 25, 22, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 64px 24px 76px;
  background:
    radial-gradient(circle at 12% 18%, rgba(76, 89, 67, 0.12), transparent 28%),
    radial-gradient(circle at 86% 80%, rgba(76, 89, 67, 0.10), transparent 30%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero__content {
  width: min(760px, 100%);
  text-align: center;
}

.logo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 34px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(23, 25, 22, 0.17);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h2 {
  max-width: 660px;
  margin: 23px auto 0;
  color: var(--olive-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}

.intro {
  max-width: 675px;
  margin: 28px auto 0;
  color: #4b4e48;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 15px 23px;
  color: #fff;
  background: var(--olive-dark);
  border: 1px solid var(--olive-dark);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.button:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(23, 25, 22, 0.18);
}

.button:focus-visible, footer a:focus-visible, .gallery__item:focus-visible {
  outline: 3px solid #98a88a;
  outline-offset: 4px;
}

.gallery-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 32px 110px;
}

.section-heading {
  margin-bottom: 39px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

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

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1170 / 638;
  overflow: hidden;
  background: #d8d5ca;
  border-radius: 4px;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 20px 20px;
  color: #fff;
  background: linear-gradient(
    transparent,
    rgba(10, 14, 9, 0.72)
  );
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.gallery__item:hover img {
  transform: scale(1.035);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery__overlay {
    opacity: 1;
    transform: none;
  }
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 45px 20px 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 14, 9, 0.72));
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery__item:hover img { transform: scale(1.035); }
.gallery__item:hover .gallery__overlay { opacity: 1; transform: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1176px) / 2));
  color: rgba(255, 255, 255, 0.74);
  background: #121411;
  font-size: 0.86rem;
}

footer p { margin: 0; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 48px 20px 64px; }
  .logo { width: 132px; height: 132px; margin-bottom: 28px; }
  .gallery-section { padding: 72px 18px 80px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .gallery__item { aspect-ratio: 5 / 4; }
  .gallery__overlay { opacity: 1; transform: none; }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
