html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #faf7f2;
  color: #4a3f35;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-nav {
  position: sticky;
  top: 1rem;
  z-index: 1030;
  background: linear-gradient(135deg, #5b7a6d 0%, #46604f 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 51, 42, 0.28);
  width: calc(100% - 2rem);
  margin: 1rem auto 1.25rem;
  max-width: 1140px;
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-tagline {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 1rem;
}

/* ===== Gallery ===== */
.gallery-page {
  padding-bottom: 2rem;
}

/* ===== Gallery Header with Montage ===== */
.gallery-header {
  text-align: center;
  position: relative;
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.montage-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.montage-fan {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.montage-image {
  position: relative;
  flex: 1;
  margin: 0 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.montage-image.montage-left {
  transform: rotate(-15deg) translateX(-20px);
  transform-origin: bottom center;
}

.montage-image.montage-center {
  transform: scale(1.05);
  transform-origin: bottom center;
}

.montage-image.montage-right {
  transform: rotate(15deg) translateX(20px);
  transform-origin: bottom center;
}

.montage-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.montage-image:hover img {
  transform: scale(1.05);
}

.title-box {
  position: relative;
  z-index: 3;
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 28px 48px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(184, 164, 130, 0.4);
  text-align: center;
  margin: 0 auto 1.5rem;
}

.gallery-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 0;
  color: #2d1f14;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-header .tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: #5a4a3a;
  margin: 0.5rem 0 0;
  font-weight: 500;
}

.gallery-header .contact {
  font-size: 0.95rem;
  color: #6b5a48;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.art-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.art-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #ece5da;
  overflow: hidden;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ece5da 0%, #ddd2c0 100%);
}

.placeholder-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(90, 75, 58, 0.5);
}

.placeholder-text {
  font-size: 0.85rem;
  color: #a09380;
}

.sold-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #b03a2e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.art-info {
  padding: 0.9rem 1rem 1rem;
}

.art-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #3b3228;
}

.art-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.art-size {
  font-size: 0.9rem;
  color: #7a6b58;
}

.art-price {
  font-size: 1rem;
  font-weight: 600;
  color: #5b4a3a;
}

.art-sold-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b03a2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.art-number {
  font-size: 0.8rem;
  color: #a89a88;
}

/* ===== Showcase banner ===== */
.showcase-banner {
  margin-bottom: 1.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #5b7a6d 0%, #3f5c51 100%);
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.showcase-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.showcase-inner p {
  max-width: 640px;
  margin: 0 auto 1rem;
  font-size: 1rem;
  opacity: 0.95;
}

.showcase-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-showcase {
  background: #e9b64a;
  border: none;
  color: #3b3228;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
}

.btn-showcase:hover {
  background: #f2c96b;
  color: #3b3228;
}

.btn-email {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
}

.btn-email:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a09380;
  margin-bottom: 1.25rem;
}

/* ===== Card hover prompt & badges ===== */
.available-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #5b7a6d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.view-detail-prompt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(transparent, rgba(30, 24, 18, 0.78));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.art-card:hover .view-detail-prompt,
.art-card:focus-visible .view-detail-prompt {
  opacity: 1;
  transform: translateY(0);
}

.art-card:focus-visible {
  outline: 2px solid #5b7a6d;
  outline-offset: 2px;
}

.art-card .art-image {
  transition: transform 0.35s ease;
}

.art-card:hover .art-image {
  transform: scale(1.05);
}

.art-image-wrapper {
  border-bottom: 1px solid #eee4d6;
}

/* ===== Detail modal ===== */
.art-detail-modal {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.detail-image-side {
  position: relative;
  flex: 1 1 46%;
  min-height: 320px;
  background: #ece5da;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.detail-placeholder {
  position: absolute;
  inset: 0;
  display: none;
}

.detail-sold {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
}

.detail-info-side {
  flex: 1 1 54%;
  padding: 1.75rem;
}

.detail-number {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a09380;
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3b3228;
  margin: 0.25rem 0 1rem;
}

.detail-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.detail-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #e4d8c6;
  padding-bottom: 0.5rem;
}

.fact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a09380;
}

.fact-value {
  font-size: 1rem;
  font-weight: 600;
  color: #4a3f35;
  text-align: right;
}

.detail-missing {
  font-style: italic;
  font-weight: 400;
  color: #8a7a68;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.art-detail {
  display: flex;
}

.btn-block {
  width: 100%;
}

@media (max-width: 767px) {
  .art-detail {
    flex-direction: column;
  }

  .detail-image-side {
    min-height: 240px;
  }

  .detail-image {
    min-height: 240px;
  }
}

/* ===== Interest strip ===== */
.interest-strip {
  margin-top: 2rem;
  text-align: center;
  background: #f3ead9;
  border-radius: 8px;
  padding: 1.1rem;
}

.interest-strip p {
  margin: 0;
}

.interest-strip a,
.contact-direct a {
  color: #4a6b5d;
  font-weight: 600;
}

/* ===== Contact page ===== */
.contact-page {
  padding-bottom: 2rem;
}

.contact-header {
  text-align: center;
  padding: 2rem 0 1.25rem;
}

.contact-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #3b3228;
}

.contact-header .tagline {
  color: #8a7a68;
  max-width: 620px;
  margin: 0.4rem auto 0;
}

.contact-banner {
  margin-bottom: 1.75rem;
}

.contact-direct {
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-direct a {
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border-top: 4px solid #5b7a6d;
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3b3228;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #e4d8c6;
  padding: 0.6rem 0;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a09380;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a3f35;
  text-decoration: none;
}

.contact-value:hover {
  text-decoration: underline;
  color: #5b7a6d;
}

.contact-note {
  font-size: 0.9rem;
  color: #8a7a68;
  margin: 0;
}

.contact-form .form-group {
  margin-bottom: 0.9rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b5a48;
}

.form-hint {
  font-size: 0.8rem;
  color: #a09380;
  margin: 0.6rem 0 0;
}

/* ===== Footer ===== */
.footer-sep {
  margin: 0 0.5rem;
}

/* ===== Painting detail page ===== */
.painting-page {
  padding-bottom: 2rem;
}

.breadcrumb-bar {
  margin-bottom: 1rem;
}

.breadcrumb-bar a {
  color: #5b7a6d;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.painting-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.painting-image-side {
  flex: 1 1 55%;
  border-radius: 10px;
  overflow: hidden;
  background: #ece5da;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.painting-image {
  width: 100%;
  height: auto;
  display: block;
}

.painting-placeholder {
  min-height: 420px;
}

.painting-info-side {
  flex: 1 1 45%;
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid #5b7a6d;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.painting-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #3b3228;
  margin: 0.2rem 0 0.4rem;
}

.painting-tagline {
  font-style: italic;
  color: #8a7a68;
  margin-bottom: 1rem;
}

.static-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.painting-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #e4d8c6;
}

.pager-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5b7a6d;
  text-decoration: none;
}

.pager-link:hover {
  text-decoration: underline;
}

.pager-next {
  text-align: right;
}

@media (max-width: 991px) {
  .painting-layout {
    flex-direction: column;
  }

  .painting-image-side,
  .painting-info-side {
    width: 100%;
  }
}

/* ===== Gallery Mobile ===== */
@media (max-width: 767px) {
  .gallery-header {
    padding: 2.5rem 1rem 1.5rem;
    min-height: auto;
  }

  .montage-fan {
    width: 95%;
    gap: 4px;
  }

  .montage-image {
    margin: 0 4px;
    border-radius: 8px;
  }

  .montage-image.montage-left {
    transform: rotate(-10deg) translateX(-12px);
  }

  .montage-image.montage-center {
    transform: scale(1);
  }

  .montage-image.montage-right {
    transform: rotate(10deg) translateX(12px);
  }

  .title-box {
    width: 100%;
    padding: 20px 16px 16px;
    margin: 0 0 1.5rem;
    border-radius: 16px;
  }

  .gallery-header h1 {
    font-size: 1.9rem;
    letter-spacing: 1px;
  }

  .gallery-header .tagline {
    font-size: 1.05rem;
  }

  /* Reduce space between header and gallery grid on mobile */
  .section-eyebrow {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .gallery-grid {
    gap: 1.25rem;
  }
}

/* ===== Not found ===== */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #3b3228;
}

.not-found p {
  color: #8a7a68;
  margin-bottom: 1.5rem;
}
