/* ---- Base layout ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #222;
  background: #f5f3f0;
  overflow-x: hidden;
  max-width: 100vw;
}

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

/* Typography */

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
}

/* Container */

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ---- Header & Navigation ---- */

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 243, 240, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-main {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.5rem;
}

.brand-sub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  text-decoration: none;
  color: #333333;
  position: relative;
  padding-bottom: 0.3rem;
  white-space: nowrap; /* keep each label on a single line */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;        /* move a bit further down for visibility */
  width: 0;
  height: 2px;             /* slightly thicker so it’s visible on mobile */
  background: #b87a4b;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Lang switcher */

.lang-switcher {
  display: flex;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  opacity: 0.6;
}

.lang-btn.active {
  opacity: 1;
  border-bottom: 1px solid #333;
}

/* ---- Hero (Home) ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 1.5rem 3rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd;
  min-height: 260px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  opacity: 1;
}

.hero-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.hero-text-main {
  font-size: 0.95rem;
  max-width: 30rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #b87a4b;
  background: #b87a4b;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: #333;
}

/* ---- Sections ---- */

.section {
  padding: 2.5rem 1.5rem;
}

/* bring the very first content section closer to the header */
main .section:first-of-type {
  padding-top: 1.8rem;
}

/* slightly tighter top padding on main content pages */
.page-gallery main .section:first-of-type,
.page-available main .section:first-of-type,
.page-about main .section:first-of-type,
.page-contact main .section:first-of-type {
  padding-top: 1.4rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

/* ---- Series cards (Home) ---- */

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.series-card {
  display: block;
  padding: 1.25rem 1.3rem;
  border-radius: 12px;
  background: #fdfaf6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.series-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.series-card p {
  font-size: 0.9rem;
  margin: 0;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ---- Gallery grid (generic) ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #fdfaf6;
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-item-title {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ---- Gallery page navigation ---- */

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
}

.gallery-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.gallery-nav a:hover {
  border-color: #b87a4b;
}

/* ---- Slideshow + thumbnails + lightbox ---- */

.slideshow {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.slideshow-main {
  position: relative;
  padding: 0.75rem;
  background: #fdfaf6;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  height: auto;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.slideshow-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.slideshow-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.slideshow-btn {
  pointer-events: auto;
  border: none;
  background: transparent;
  width: 22%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: transparent;
}

/* circular background for arrows */
.slideshow-btn::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}

/* arrow glyph */
.slideshow-btn::after {
  content: "›";
  position: absolute;
  font-size: 1.8rem;
  color: #ffffff;
  line-height: 1;
  transform: translateX(1px);
}

/* left arrow */
.slideshow-btn[data-prev]::after {
  content: "‹";
  transform: translateX(-1px);
}

.slideshow-btn:hover::before {
  background: rgba(0, 0, 0, 0.65);
}

/* thumbnails */

.slideshow-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.slideshow-thumb {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 80px;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slideshow-thumb img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

.slideshow-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.slideshow-thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7);
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  width: auto;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- About ---- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: start;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}

.about-text p {
  margin: 0 0 1rem;
}

.about-timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.about-timeline li + li {
  margin-top: 0.35rem;
}

/* ---- Contact ---- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
}

form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fbf8f3;
  font-family: inherit;
  font-size: 0.9rem;
}

form textarea {
  min-height: 160px;
  resize: vertical;
}

form .field-group {
  margin-bottom: 1rem;
}

.contact-details p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
}

.contact-faq h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Available / Sold works meta ---- */

.work-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: #555;
}

.work-price {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.work-inquire {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.work-inquire:hover {
  border-color: #b87a4b;
}

.badge-sold,
.badge-new {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.badge-sold {
  background: #b22222;
  color: #fff;
}

.badge-new {
  background: #356c2d;
  color: #fff;
}

/* ---- Available filters & FAQ ---- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-label {
  margin-right: 0.5rem;
}

.filter-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
}

.filter-btn.active {
  border-color: #b87a4b;
  background: #b87a4b;
  color: #fff;
}

.available-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.available-faq-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  padding: 1.6rem;
  text-align: center;
  color: #666666;
}

/* ---- Back to top ---- */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Fade-in animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* extra soft page fade for Available */
@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-available main {
  animation: pageFadeUp 0.6s ease;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  /* show the painting first on mobile */
  .hero-image {
    order: -1;
  }
}

@media (max-width: 800px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

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

@media (max-width: 600px) {
  .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 0.72rem;       /* base size for EN / NL */
    letter-spacing: 0.09em;
    gap: 1rem;
  }

  /* make the active underline much clearer on mobile */
  .nav-links a::after {
    bottom: -0.2rem;
    height: 3px;
    background: #b87a4b;
  }

  /* French labels are longer → shrink a bit more */
  html[lang="fr"] .nav-links {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    gap: 0.5rem;
  }

  html[lang="fr"] .nav-links a {
    padding-bottom: 0.2rem; /* saves a little vertical space */
  }

  .lang-switcher {
    align-self: flex-end;
    margin-top: 0.2rem;
  }

  .slideshow-main {
    padding: 0.5rem;
  }

  .slide img {
    max-height: 52vh;
  }

  .slideshow-btn::before {
    width: 38px;
    height: 38px;
  }

  .slideshow-btn::after {
    font-size: 1.6rem;
  }

  .hero-image {
    min-height: 220px;
  }

  /* tighter top spacing on first sections on small screens */
  main .section:first-of-type {
    padding-top: 1.1rem;
  }

  .page-gallery main .section:first-of-type,
  .page-available main .section:first-of-type,
  .page-about main .section:first-of-type,
  .page-contact main .section:first-of-type {
    padding-top: 0.8rem;
  }
}
