/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f2;
  --text: #2b2620;
  --text-soft: #6b6459;
  --accent: #a15c38;
  --border: #e8e1d6;
  --overlay: rgba(20, 17, 14, 0.92);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
  --gap: 1.5rem;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-logo {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 420px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 14, 0.45), rgba(20, 17, 14, 0) 45%);
}
.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 2;
  color: #faf7f2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.25em;
}
.hero-text p {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}
.section-tight {
  padding: 3rem 0;
}
.section-intro {
  padding-bottom: 1.5rem;
}
.intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text);
}
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-heading p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Featured grid (home) ---------- */
.grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (max-width: 480px) {
  .grid-featured {
    gap: 0.75rem;
  }
}
.grid-featured .gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
.grid-featured .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.grid-featured .gallery-item:hover img {
  transform: scale(1.03);
}

/* ---------- CTA ---------- */
.cta-row {
  text-align: center;
  margin-top: 3rem;
}
.btn {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 0.8rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent);
  color: #faf7f2;
}

/* ---------- Masonry grid (portfolio) ---------- */
.grid-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 8px;
  gap: var(--gap);
}
.grid-masonry .gallery-item {
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
}
.grid-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.grid-masonry .gallery-item:hover img {
  transform: scale(1.03);
}
.grid-featured .gallery-item {
  cursor: zoom-in;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.site-footer a { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #f2ede4;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #f2ede4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.75rem;
}
.lightbox-close {
  top: 0.5rem;
  right: 1rem;
  font-size: 1.6rem;
}
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; }
}

/* ---------- About / Contact shared bits (used later) ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 800px) {
  .about-layout { grid-template-columns: 0.9fr 1.1fr; }
}
