:root {
  --bg: #57792d72;
  --bg-soft: #698f5e99;
  --surface: #8a6442;
  --sage: #5f6f52;
  --olive-light: #c7cfbe;
  --earth: #8a6442;
  --terracotta: #b4704d;
  --text: #2f2923;
  --muted: #62584d;
  --shadow: 0 12px 28px rgba(76, 58, 42, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.8rem;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 600;
}

.hero .eyebrow {
  color: var(--sage);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, white 12%);
  border-bottom: 1px solid rgba(138, 100, 66, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-block;
  color: var(--earth);
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  margin-left: auto;
}

.site-nav a,
.inline-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.inline-link:hover {
  color: var(--sage);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(107, 125, 109, 0.35);
  background: var(--surface);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero {
  padding: 3.4rem 0 2.8rem;
}

.hero-content {
  max-width: 700px;
}

.button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--sage);
  color: #f7f5f2;
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease;
}

.button:hover {
  background: #506246;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

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

.gallery-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(77, 62, 48, 0.14);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(214, 167, 122, 0.13), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.is-broken {
  display: none;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-card,
.about-note,
.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.about-note {
  background: var(--bg-soft);
  border-left: 3px solid var(--terracotta);
}

.about-note ul {
  padding-left: 1rem;
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(166, 124, 82, 0.25);
  border-radius: 10px;
  padding: 0.8rem;
  background: #fffaf3;
  color: var(--text);
  font: inherit;
}

.contact-form button {
  border: 0;
  background: var(--earth);
  color: #fffaf5;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(138, 100, 66, 0.24);
  background: var(--bg-soft);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--sage);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--terracotta);
}

.social-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  background: radial-gradient(circle at 50% 20%, rgba(30, 30, 30, 0.44), rgba(8, 8, 10, 0.92) 62%);
  backdrop-filter: blur(10px) saturate(86%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  z-index: 1000;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  width: min(100%, 1340px);
  max-height: 100%;
  display: grid;
  justify-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding: max(1.2rem, env(safe-area-inset-top)) clamp(0.5rem, 2.2vw, 2rem) max(1rem, env(safe-area-inset-bottom));
  z-index: 2;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: min(80vh, calc(100vh - 9.25rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 34px 64px rgba(0, 0, 0, 0.34), 0 2px 18px rgba(255, 255, 255, 0.06);
  background: transparent;
  will-change: transform, opacity;
}

.lightbox-figure.slide-next img {
  animation: lightbox-slide-next 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lightbox-figure.slide-prev img {
  animation: lightbox-slide-prev 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes lightbox-slide-next {
  from {
    opacity: 0.2;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lightbox-slide-prev {
  from {
    opacity: 0.2;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lightbox-meta {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: min(100%, 720px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

#lightboxCaption {
  margin: 0;
  max-width: min(90vw, 860px);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: clamp(0.86rem, 1.12vw, 0.96rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 400;
  opacity: 0.9;
}

.lightbox-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.lightbox-control {
  border: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.18rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  opacity: 0.34;
  transition: opacity 0.24s ease, transform 0.24s ease, color 0.24s ease;
  z-index: 3;
}

.lightbox-control:hover {
  transform: scale(1.02);
  opacity: 1;
  color: rgba(255, 255, 255, 0.94);
}

.lightbox:focus-within .lightbox-control,
.lightbox:hover .lightbox-control,
.lightbox.ui-visible .lightbox-control {
  opacity: 0.68;
}

.lightbox.ui-hidden .lightbox-control {
  opacity: 0;
  pointer-events: none;
}

.lightbox.ui-hidden .lightbox-meta {
  opacity: 0;
  transform: translateY(4px);
}

.lightbox-close {
  position: absolute;
  top: max(0.9rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}

.lightbox-close span {
  transform: translateY(-0.5px);
}

.lightbox-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(16vw, 22vw, 28vw);
  border: 0;
  background: transparent;
  z-index: 1;
  cursor: pointer;
}

.lightbox-tap-zone-prev {
  left: 0;
}

.lightbox-tap-zone-next {
  right: 0;
}

.lightbox.ui-hidden .lightbox-tap-zone {
  pointer-events: auto;
}

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 4%;
    background: var(--surface);
    border: 1px solid rgba(166, 124, 82, 0.2);
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 0.8rem;
    min-width: 180px;
    display: none;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero {
    padding: 2.3rem 0 2rem;
  }

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

  .lightbox {
    padding: clamp(0.75rem, 3.6vw, 1.25rem);
  }

  .lightbox-figure {
    gap: 0.7rem;
    width: 100%;
    padding: max(2.6rem, env(safe-area-inset-top)) 0.2rem max(1rem, env(safe-area-inset-bottom));
  }

  .lightbox-figure img {
    max-height: min(73vh, calc(100vh - 8.8rem));
    height: auto;
  }

  .lightbox-control {
    width: 2.25rem;
    height: 2.25rem;
  }

  .lightbox-close {
    top: max(0.65rem, env(safe-area-inset-top));
    right: max(0.65rem, env(safe-area-inset-right));
  }

  .lightbox-meta {
    gap: 0.3rem;
    width: min(100%, 92vw);
  }

  .lightbox-tap-zone {
    width: 18vw;
  }
}
