/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  background: #f3efe6;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: #e8dccc;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 60px;     /* LOGO HEIGHT INSIDE HEADER */
  width: auto;
  display: block;
}

/* =========================
   NAVIGATION
========================= */
.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #000000;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav a:hover {
  opacity: 0.7;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
  padding-top: 110px;
  padding-left: 32px;
  padding-right: 32px;
  max-width: 1400px;
  margin: auto;
}

/* =========================
   FILTERS BAR
========================= */
.filters-bar {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 16px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.filter-btn.active {
  color: #3b2a1a;
}

.filter-btn:hover {
  opacity: 0.7;
}

/* =========================
   IMAGE CROSSFADE + SOLD WATERMARK
========================= */
.item-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.item-image-wrap .img-main,
.item-image-wrap .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3efe6;
  padding: 10px;
  box-sizing: border-box;
  transition: opacity 0.4s ease;
}

.item-image-wrap .img-hover {
  opacity: 0;
}

.item-image-wrap:hover .img-main {
  opacity: 0;
}

.item-image-wrap:hover .img-hover {
  opacity: 1;
}

.sold-watermark {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(59, 42, 26, 0.7);
  color: #f3efe6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 5px 0;
  pointer-events: none;
  z-index: 10;
}

/* =========================
   GALLERY GRID
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* =========================
   ITEM CARD
========================= */
.item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;   /* CENTER CONTENT */
}

/* =========================
   SQUARE IMAGE GRID
========================= */
.item-image-link {
  display: block;
  width: 100%;
}

/* ITEM TEXT STYLING */
.item h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;          /* BOLD TITLE */
  text-align: center;
  color: #3b2a1a;            /* DARK BROWN */
}

.item p {
  font-size: 13px;
  margin-top: 4px;
  text-align: center;        /* CENTERED INFO */
  color: #3b2a1a;            /* DARK BROWN */
}

.item button {
  margin-top: 8px;
  background: none;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: center;
  cursor: pointer;
  padding: 0;
}

.item button:hover {
  opacity: 0.6;
}

.item-link {
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b2a1a;
  text-decoration: none;
}

.item-link:hover {
  opacity: 0.7;
}

/* =========================
   ABOUT SECTION (TEXT + IMAGE)
========================= */
.about {
  margin-top: 160px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
}

.about-text h2 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #333;
}

.about-image {
  background: #f3efe6;
  padding: 16px;         /* frame feel */
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   FOOTER / CONTACT
========================= */
.footer {
  margin-top: 160px;
  padding: 80px 32px;
  border-top: 1px solid #e9ddcd;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.footer-info h3 {
  font-size: 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-info p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #333;
}

/* =========================
   CONTACT FORM (INDEX FOOTER)
========================= */
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  margin-bottom: 24px;
  padding: 8px 0;
  font-size: 14px;
  background: none;
  outline: none;
}

.contact-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* =========================
   ITEM PAGE STYLES
========================= */
.back-btn {
  background: none;
  border: none;
  color: #3b2a1a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
}

/* Top area: details left, contact right */
.item-top {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.item-details {
  max-width: 900px;
}

.item-title {
  font-size: 22px;
  font-weight: 600;
  color: #3b2a1a;
  margin-bottom: 8px;
  text-align: left;
}

.item-meta {
  color: #3b2a1a;
  margin-top: 4px;
}

.item-desc {
  margin-top: 16px;
  color: #3b2a1a;
  line-height: 1.8;
}

/* Contact block on the right */
.item-contact {
  text-align: right;
  color: #3b2a1a;
}

.item-contact h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.item-contact p {
  margin-bottom: 10px;
  color: #3b2a1a;
}

.item-contact a {
  color: #3b2a1a;
  text-decoration: none;
}

.item-contact a:hover {
  opacity: 0.7;
}

/* itemGallery uses .grid and .item styles from main page */
.item-gallery {
  margin-top: 8px;
}

/* =========================
   MOBILE STYLES
========================= */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #3b2a1a;
    flex-direction: column;
    padding: 24px;
    display: none;
    border-bottom: none;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: block;
  }

  /* GRID */
  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ABOUT */
  .about {
    margin-top: 120px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* FOOTER */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* ITEM PAGE */
  .item-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .item-contact {
    text-align: left;
  }
}
