/* =========================================================
   Vászonra Festve — static stylesheet
   Színek (a brief alapján):
   --canvas: #b3b09f / --canvas-soft: #cecccb / --olive: #807d6c
   --graphite: #1A3340 / --gold: #B0D8B8
   ========================================================= */

:root {
  --canvas: #b3b09f;
  --canvas-soft: #cecccb;
  --olive: #807d6c;
  --graphite: #1A3340;
  --gold: #B0D8B8;
  --leaf: #6fae28;
  --background: #f5f3ee;
  --card: #fbfaf6;
  --border: #ddd9cf;
  --muted: #6b685a;

  --shadow-card: 0 8px 30px -12px rgba(26,51,64,0.18);
  --shadow-elegant: 0 20px 60px -20px rgba(26,51,64,0.30);
  --gradient-warm: linear-gradient(180deg, #f5f3ee, #e9e4d8);

  --radius: 0.5rem;
  --container: 1200px;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin: 0;
  line-height: 1.15;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--graphite); color: #faf7ef; }
.btn-primary:hover { transform: scale(1.02); }
.btn-outline { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-outline:hover { background: var(--graphite); color: #faf7ef; }
.btn-gold { background: var(--gold); color: var(--graphite); }
.btn-gold:hover { transform: scale(1.02); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm {
  padding: .5rem 1rem; font-size: .75rem;
  border: 1px solid var(--graphite); border-radius: 9999px;
  color: var(--graphite); background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn-sm:hover { background: var(--graphite); color: #faf7ef; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,243,238,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 80px; height: auto; 
  /*border-radius: 9999px;
   background: var(--graphite); color: var(--gold); */
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.2rem;
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .02em; }
.logo {
  width: 50px;
  height: auto;
}

.nav-desktop { display: none; gap: 2rem; align-items: center; }
.nav-desktop a {
  font-size: .875rem; font-weight: 500;
  color: rgba(26,51,64,0.8); transition: color .2s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--gold); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: .35rem;
  color: var(--graphite);
}
.nav-mobile {
  display: none; flex-direction: column; gap: .25rem;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  background: var(--background);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: .6rem 0; font-size: .9rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(179,176,159,0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(128,125,108,0.25) 0%, transparent 55%),
    var(--gradient-warm);
}
.hero-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid; gap: 3rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: #faf7ef;
}
.hero h1 em {
  /* color: var(--gold); font-style: italic; font-weight: 400; */
  color: white;
}
.hero-lead { 
  margin-top: 1.5rem; 
  max-width: 32rem; 
  font-size: 1.350rem; 
  color: white; 
}

.hero-cta { 
  margin-top: 2.5rem; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
}

.hero-image-wrap { 
  position: relative; 
  height: stretch;
}

.hero-image-wrap::before {
  content: ""; 
  position: absolute; 
  inset: -1rem;
  background: rgba(128,125,108,0.15);
  border-radius: var(--radius);
  transform: rotate(-2deg);
}
.hero-image-wrap img {
  position: relative; 
  z-index: 1;
  width: 100%; 
  height: auto;
  /* aspect-ratio: 4/3; */
  object-fit: contain;

  border-radius: 6px;
  box-shadow: var(--shadow-elegant);
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; padding: 7rem 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-dark { background: var(--graphite); color: #faf7ef; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #faf7ef; }
.section-soft { background: rgba(206,204,203,0.4); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-top: .75rem; }

.canvas-texture {
  /* background-image:
    radial-gradient(circle at 20% 30%, rgba(179,176,159,0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(128,125,108,0.25) 0%, transparent 55%),
    var(--gradient-warm); */
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url('/images/ritkart-hero-koppenhaga.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* background-image: url('/images/ritkart-hero-koppenhaga.webp'); */
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; }
.about-grid p { font-size: 1.125rem; color: var(--muted); margin: 0 0 1rem; }
.about-grid em { font-style: normal; font-weight: 500; color: var(--graphite); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 2fr; align-items: start; }
}

/* ---------- Painting cards ---------- */
.gallery-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.painting-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s;
}
.painting-card:hover { box-shadow: var(--shadow-elegant); }
.painting-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--canvas-soft); }
.painting-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.painting-card:hover .painting-media img { transform: scale(1.05); }

.badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .75rem;
  font-size: .75rem; font-weight: 500;
  border: 1px solid;
  border-radius: 9999px;
  background: rgba(255,255,255,0.7);
}
.badge-available { color: var(--graphite); border-color: rgba(111,174,40,0.4); background: rgba(111,174,40,0.15); }
.badge-sold { color: var(--graphite); border-color: rgba(26,51,64,0.3); background: rgba(26,51,64,0.1); }
.badge-commission { color: var(--graphite); border-color: rgba(176,216,184,0.5); background: rgba(176,216,184,0.2); }

.painting-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.painting-body h3 { font-size: 1.25rem; }
.painting-body h3 a { transition: color .2s; }
.painting-body h3 a:hover { color: var(--gold); }
.painting-meta { color: var(--muted); font-size: .875rem; }
.painting-foot {
  margin-top: auto; padding-top: .5rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.painting-price { 
  font-family: var(--font-display); 
  font-size: 1.125rem; 
  color: var(--gold); 
  background: #1A3340;
  padding: 8px 20px;
  border-radius: 12px;
  display: inline-block;
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip {
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--graphite);
  font-size: .875rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--graphite); color: #faf7ef; border-color: var(--graphite); }

/* ---------- Features grid ---------- */
.features { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 3.5rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .25s;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 9999px;
  background: rgba(176,216,184,0.15); color: var(--gold);
  display: grid; place-items: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.feature h3 { font-size: 1.25rem; }
.feature p { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.step-num { font-family: var(--font-display); font-size: 1.875rem; color: var(--gold); }
.step-text { margin: .75rem 0 0; font-size: .875rem; color: rgba(250,247,239,0.85); }

.steps-light .step { background: var(--card); border-color: var(--border); box-shadow: var(--shadow-card); }
.steps-light .step h3 { font-family: var(--font-display); font-size: 1.125rem; margin-top: .75rem; }
.steps-light .step-text { color: var(--muted); }

/* ---------- Detail page ---------- */
.detail-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid; gap: 3rem;
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 1.1fr 1fr; padding: 4rem 1.5rem; }
}
.detail-main {
  position: relative; overflow: hidden;
  background: var(--canvas-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elegant);
}
.detail-main img { 
  width: 100%; 
  /* aspect-ratio: 4/5; */
  object-fit: cover; 
} 
.detail-thumbs { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.detail-thumbs button {
  border: 2px solid transparent;
  border-radius: 6px; overflow: hidden;
  background: transparent; padding: 0; cursor: pointer;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.detail-thumbs button:hover { opacity: 1; }
.detail-thumbs button.active { border-color: var(--gold); opacity: 1; }
.detail-thumbs img { aspect-ratio: 1; object-fit: cover; }

.detail-info { position: relative; }
@media (min-width: 1024px) { .detail-info { position: sticky; top: 7rem; align-self: start; } }
.detail-info h1 { margin-top: .75rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.detail-desc { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); }
.specs {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem;
}
.spec dt {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: .25rem;
}
.spec dd { margin: 0; font-weight: 500; color: var(--graphite); }
.price-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--graphite);
  border-radius: var(--radius);
}
.price-box .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--card); display: block; }
.price-box .price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }

.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--muted);
  margin: 2.5rem 0 0 1.5rem; transition: color .2s;
}
.back-link:hover { color: var(--gold); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; }
.field-label {
  display: block; margin-bottom: .5rem;
  font-size: .75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(26,51,64,0.8);
}
.field input, .field textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .875rem; font-family: inherit;
  color: var(--graphite);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,216,184,0.25);
}
.field textarea { resize: none; }
.field-error { display: block; margin-top: .25rem; font-size: .75rem; color: #b3261e; }

.gdpr {
  display: flex; gap: .75rem; align-items: start;
  font-size: .875rem; color: var(--muted);
}
.gdpr input { margin-top: .2rem; accent-color: var(--gold); }
.gdpr a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: var(--graphite); color: #faf7ef;
  padding: .9rem 1.25rem; border-radius: 8px;
  box-shadow: var(--shadow-elegant);
  font-size: .9rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; background: rgba(206,204,203,0.4); border-top: 1px solid var(--border); }
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: .875rem; color: var(--muted); }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .875rem; }
.footer-col a:hover { color: var(--gold); }
.footer-copy {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .75rem; color: var(--muted);
}

/* ---------- Article (legal pages) ---------- */
.article { max-width: 48rem; margin: 0 auto; padding: 5rem 1.5rem 0rem 1.5rem; }
.article h1 { font-size: clamp(2.25rem, 4vw, 3rem); margin-top: .75rem; }
.article h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2rem 0 .5rem; }
.article p { margin: .5rem 0; color: var(--muted); }
.article a { color: var(--gold); text-decoration: underline; }

/* ---------- Animations ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up .8s ease-out both; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.max-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; }


.brush-title {
    position: relative;
    display: inline-block;
    padding: 1.15em 0.35em;
    z-index: 1;
}

.brush-title::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 8%;
    height: 84%;
    background: #1A3340;
    z-index: -1;

    transform: scaleX(0);
    transform-origin: left center;

    border-radius: 18px 10px 16px 12px;

    clip-path: polygon(
        0 20%,
        8% 8%,
        25% 16%,
        50% 10%,
        75% 18%,
        100% 14%,
        100% 86%,
        75% 92%,
        50% 84%,
        25% 92%,
        0 84%
    );

    will-change: transform;
}

.brush-title.is-visible::before {
    animation: brushPaint 0.9s cubic-bezier(.22, 1, .36, 1) forwards;
}

@keyframes brushPaint {
    to {
        transform: scaleX(1);
    }
}

  .icon {
    width: 2em;
    height: 1.5em;
    padding-right: 5px;
  }