/* ===== Base / Variables ===== */
:root{
  --bg-white: #ffffff;
  --muted: #8f9296;
  --dark: #292c2f;
  --accent: #33383b;
  --max-width: 1100px;
}

*{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
  margin: 0;
  font-family: 'Libre Franklin', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
  background: var(--bg-white);
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header{
  position: absolute;  /* sits on top of hero */
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 30;
}

.site-brand .brand-link{
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.4px;
  font-size: 20px;
}

/* ===== Navigation ===== */
.primary-nav{
  display: flex;
  align-items: center;
}

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

.nav-list a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
}

.nav-list a:hover,
.nav-list a:focus{
  text-decoration: underline;
  outline: none;
}

/* highlight current page */
.nav-list a[aria-current="page"]{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Dropdown ===== */
.nav-item-dropdown{
  position: relative;
}

.dropdown-toggle{
  background: none;
  border: none;
  color: #fff;
  font-weight: 500;
  padding: 6px 8px;
  cursor: pointer;
}

.dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  color: #222;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  min-width: 220px;
  padding: 8px 0;
  display: none;
}

.dropdown li{
  list-style: none;
}

.dropdown a{
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
}

.dropdown a:hover{
  background: #f5f5f5;
}

/* show dropdown when open */
.nav-item-dropdown.open > .dropdown{
  display: block;
}

/* ===== Mobile menu toggle ===== */
.menu-toggle{
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hamburger{
  width: 28px;
  height: 2px;
  background: #fff;
  display: inline-block;
  position: relative;
}

.hamburger::before,
.hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: #fff;
}

.hamburger::before{
  top: -8px;
}

.hamburger::after{
  top: 8px;
}

/* ===== HERO (Dalmatian banner) ===== */
.hero{
  position: relative;
  height: 320px;
  background-image: url('../headerblinken.jpg'); /* file lives in site root */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero-content h1{
  margin: 0;
  font-size: 36px;
  letter-spacing: 1px;
}

.hero-content .tagline{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 300;
}

.hero--short{
  height: 240px;
}

/* ===== Main content ===== */
main{
  padding: 40px 0;
}

.page-section{
  padding: 50px 0;
}

.page-section.alt{
  background: #fafafa;
}

.container.narrow{
  max-width: 820px;
}

.center{
  text-align: center;
}

/* ===== Generic gallery cards ===== */
.gallery .grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card img{
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ===== Small thumbnail gallery for Prints / LE prints / Xmas cards ===== */

.thumb-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.thumb{
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

/* Make thumbnails a consistent visual size without cropping paintings */
.thumb-gallery .thumb img{
  width: 100%;
  height: 180px;            /* consistent box height */
  display: block;
  object-fit: contain;      /* show whole image, no cropping */
  background: #f7f7f7;      /* soft frame around different ratios */
  border-radius: 6px;
}

.thumb:hover img{
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.thumb-title{
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* Older thumbnail helpers (kept for safety on older pages) */
.commission-thumbs img,
.thumbnails img{
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

/* ===== Footer ===== */
.site-footer{
  background: var(--dark);
  color: var(--muted);
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-footer .footer-company-name{
  margin: 0;
}

.site-footer .footer-right a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.site-footer .footer-right a:hover{
  transform: translateY(-1px);
}

/* ===== Text helpers ===== */
.fineprint{
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* Notes under paintings / prints */
.painting-notes{
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* Feature / steps lists */
.feature-list{
  margin: 10px 0 18px;
  padding-left: 18px;
  line-height: 1.6;
}

.steps{
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

.steps li{
  margin-bottom: 8px;
}

/* ===== Price table ===== */
.price-table-wrap{
  overflow-x: auto;
  margin-top: 12px;
}

.price-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.price-table th,
.price-table td{
  padding: 12px 10px;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
}

.price-table thead th{
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

/* ===== Originals page cards ===== */
.originals-grid{
  margin-top: 10px;
}

.original-card{
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.original-card img{
  width: 100%;
  display: block;
}

.original-card figcaption{
  padding: 14px 14px 16px;
}

.original-title{
  margin: 0 0 6px;
  font-size: 18px;
}

.original-meta{
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.original-price{
  margin: 0 0 10px;
  font-weight: 600;
}

.badge{
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
}

.badge.available{
  background: #e8f6ef;
  color: #1b7a50;
}

.badge.reserved{
  background: #fff4e5;
  color: #9a5a00;
}

.badge.sold{
  background: #f0f0f0;
  color: #555;
}

.original-cta{
  margin-top: 10px;
}

/* ===== "Original painting" blocks with shipping selector ===== */
.original-painting{
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}

.shipping-box{
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  max-width: 320px;
}

.shipping-box label{
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.shipping-box select{
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 6px;
}

/* ===== Testimonials ===== */
.testimonials-section{
  padding: 60px 0;
  background: #fafafa;
  margin-top: 40px;
}

.testimonials-title{
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.testimonials-slider{
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 150px;
}

.testimonial{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  padding: 0 20px;
}

.testimonial.active{
  opacity: 1;
  position: relative;
}

/* Dots */
.testimonial-dots{
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.testimonial-dots .dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  border: none;
  outline: none;
}

.testimonial-dots .dot.active{
  background: #333;
}

/* ===== Contact page ===== */
.contact-email{
  margin-top: 10px;
  font-size: 18px;
}

/* Form layout */
.contact-form{
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field{
  display: grid;
  gap: 6px;
}

.contact-form label{
  font-weight: 600;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font: inherit;
  background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* Submit button */
.btn-submit{
  justify-self: start;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover{
  opacity: 0.9;
}

/* ===== Print / card detail pages ===== */
.print-detail{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: start;
}

.print-detail-image img{
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.print-title{
  margin-top: 0;
}

.buy-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.buy-list a{
  display: block;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.buy-list a:hover{
  background: #f7f7f7;
}

.buy-list .price{
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}

.more-items{
  margin-top: 12px;
  font-weight: 600;
}

/* Painting detail layout (originals) */
.painting-detail{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.painting-large{
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.1);
}

/* ===== Splide galleries for past commissions ===== */
.splide--main{
  margin-top: 1.25rem;
}

.splide--thumbs{
  margin-top: 0.75rem;
}

/* Center both carousels */
.splide--main,
.splide--thumbs{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Thumbs styling – show full image, no cropping */
.splide--thumbs .splide__slide{
  opacity: 0.55;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splide--thumbs .splide__slide.is-active{
  opacity: 1;
}

/* FINAL override: keep full paintings in thumbnails */
.splide--thumbs .splide__slide img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* Main carousel: show full image without cropping */
.splide--main .splide__slide{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;  /* neutral frame */
}

.splide--main .splide__slide img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 900px){
  .nav-list{
    gap: 12px;
  }

  .hero{
    height: 260px;
  }
}

@media (max-width: 800px){
  .print-detail{
    grid-template-columns: 1fr;
  }

  .painting-detail{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .primary-nav{
    display: none;
  }

  .menu-toggle{
    display: block;
  }

  .site-header{
    padding: 12px 16px;
  }

  .hero{
    height: 220px;
  }

  .site-footer{
    flex-direction: column;
    text-align: center;
  }

  .form-row{
    grid-template-columns: 1fr;
  }
}

/* Mobile open state (JS toggles 'menu-open' on body) */
body.menu-open .primary-nav{
  display: block;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.95);
  padding: 18px 24px;
  z-index: 29;
}

body.menu-open .nav-list{
  flex-direction: column;
  gap: 6px;
}

body.menu-open .dropdown{
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}

body.menu-open .dropdown a{
  color: #fff;
  padding: 10px 0;
}

.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sitemap-list li {
  margin: 0.5rem 0;
}