/* ===== GARD VAN WEGBERG — RESPONSIVE REDESIGN ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --dark: #1a1714;
  --brown: #5c4a3a;
  --brown-light: #8b7355;
  --gold: #c4a35a;
  --gold-light: #e8d5a3;
  --border: #d4c9b8;
  --shadow: rgba(90,70,50,0.15);
  --radius: 2px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--warm-white);
  color: var(--dark);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER / NAV ===== */
header {
  background: var(--dark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-title strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}
.site-title span {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-light);
}

nav { display: flex; align-items: center; gap: 0; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item { position: relative; }

.nav-item > a {
  display: block;
  padding: 0 1rem;
  height: 64px;
  line-height: 64px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.04);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border-top: 2px solid var(--gold);
  min-width: 180px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px var(--shadow);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color 0.2s, padding-left 0.2s;
}
.nav-dropdown a:hover {
  color: var(--gold);
  padding-left: 1.4rem;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--cream);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO MARQUEE ===== */
.hero-marquee {
  background: var(--dark);
  overflow: hidden;
  height: 220px;
  position: relative;
}
.marquee-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.8;
  display: block;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--brown);
}
.page-header p {
  margin-top: 0.5rem;
  color: var(--brown-light);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ===== MAIN CONTENT ===== */
main { flex: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ===== HOME PAGE ===== */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.home-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--brown);
  margin-bottom: 0.25rem;
}
.home-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--brown-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.home-text p { color: #3a3228; margin-bottom: 1rem; }
.home-text .credits {
  font-size: 0.78rem;
  color: var(--brown-light);
  font-style: italic;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.home-contact {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 2rem;
}
.home-contact h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 1rem;
}
.home-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.home-contact a { color: var(--gold); text-decoration: none; }
.home-contact a:hover { text-decoration: underline; }

/* ===== INSTOCK GRID ===== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar label {
  font-size: 0.8rem;
  color: var(--brown-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: white;
  color: var(--brown);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--dark);
  color: var(--gold);
  border-color: var(--dark);
}

.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.painting-card {
  background: white;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.painting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}
.painting-card.sold { opacity: 0.65; }

.painting-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.painting-card:hover img { transform: scale(1.03); }

.painting-info {
  padding: 0.85rem 1rem;
}
.painting-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.painting-info .size {
  font-size: 0.78rem;
  color: var(--brown-light);
}
.painting-info .badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge.verkocht { background: #f8e8e8; color: #a03030; }
.badge.ntk { background: #f0ede5; color: var(--brown); }

/* Inquiry btn */
.inquiry-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.6rem;
  background: var(--dark);
  color: var(--gold-light);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.inquiry-btn:hover { background: var(--brown); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,10,5,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 0.75rem;
  transition: background 0.2s;
  z-index: 1001;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

/* ===== FOTOALBUM ===== */
.album-section { margin-bottom: 3.5rem; }
.album-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.album-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brown);
}
.album-description {
  color: #5a4c40;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  max-width: 700px;
  font-style: italic;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: opacity 0.2s, transform 0.3s;
}
.photo-grid img:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* ===== BIOGRAFIE ===== */
.biografie-content {
  max-width: 780px;
  margin: 0 auto;
}
.biografie-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--brown);
  margin: 2rem 0 0.5rem;
}
.biografie-content p { margin-bottom: 1rem; color: #3a3228; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: white;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 0.3rem;
}
.btn-submit {
  padding: 0.75rem 2rem;
  background: var(--dark);
  color: var(--gold-light);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--brown); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--brown-light);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-inner { max-width: 1200px; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .home-intro { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.07);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 99;
  }
  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }
  .nav-item { width: 100%; }
  .nav-item > a {
    height: auto;
    line-height: 1.4;
    padding: 0.8rem 1.5rem;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-top: none;
    border-left: 2px solid var(--gold);
    margin-left: 1.5rem;
    box-shadow: none;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }

  .paintings-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-marquee { height: 140px; }
}

@media (max-width: 480px) {
  .paintings-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 2rem 1rem; }
}
