/* ===================================================
   VINTAGE CONCERT POSTERS — Shared Stylesheet
   vintageconcertposters.com
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,600;1,400&family=IM+Fell+English:ital@0;1&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:       #f5e6c8;
  --paper-dark:  #e8d3a8;
  --paper-mid:   #efe0ba;
  --ink:         #2c1810;
  --ink-light:   #5a3a28;
  --red:         #8b2500;
  --red-light:   #a83020;
  --gold:        #c8913a;
  --gold-light:  #e0b060;
  --tan:         #c4a265;
  --tan-light:   #d9bf90;
  --nav-bg:      #1a0f08;
  --nav-text:    #e8d3a8;
  --shadow:      rgba(44,24,16,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  /* Layered paper texture: fine grain + coarse grain + age staining spots */
  background-image:
    /* Fine paper grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.18'/%3E%3C/svg%3E"),
    /* Coarser fiber texture */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.35 0.08' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23f)' opacity='0.07'/%3E%3C/svg%3E"),
    /* Age staining — warm amber blotches */
    radial-gradient(ellipse 60% 40% at 18% 25%, rgba(160,100,30,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 82% 72%, rgba(130,80,20,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 70% 30% at 55% 88%, rgba(150,95,25,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 50% at 8%  60%, rgba(110,65,15,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 15%, rgba(145,90,20,0.07) 0%, transparent 60%);
}

/* Full-page vignette — darkens edges like aged paper curling at corners */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%,
    transparent 40%,
    rgba(44, 24, 16, 0.10) 70%,
    rgba(28, 14, 6,  0.22) 100%);
  pointer-events: none;
  z-index: 9998;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-light); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

.serif-italic { font-family: 'IM Fell English', serif; font-style: italic; }
.section-label {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ---- Ornament Dividers ---- */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 1.5rem 0;
  letter-spacing: 0.5rem;
  user-select: none;
}
.rule {
  border: none;
  border-top: 1px solid var(--tan);
  margin: 2rem 0;
}
.rule-double {
  border: none;
  border-top: 3px double var(--tan);
  margin: 2rem 0;
}

/* ---- Navigation ---- */
.site-nav {
  background: var(--nav-bg);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold) !important;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--tan-light); font-weight: 400; font-family: 'Lora', serif; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-text) !important;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--gold); color: var(--gold) !important; }

/* Hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--nav-text); margin: 5px 0; transition: .3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); color: #fff; }

.btn-secondary {
  background: transparent;
  border-color: var(--tan);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

.btn-outline-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ---- Layout Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }

/* ---- Frames & Boxes ---- */
.vintage-box {
  border: 1px solid var(--tan);
  background: var(--paper-mid);
  padding: 2rem;
  position: relative;
  /* Worn-paper shadow on all four edges */
  box-shadow:
    inset 0  3px 8px  rgba(44,24,16,0.10),
    inset 0 -3px 8px  rgba(44,24,16,0.08),
    inset  3px 0 8px  rgba(44,24,16,0.07),
    inset -3px 0 8px  rgba(44,24,16,0.07);
}
.vintage-box::before, .vintage-box::after {
  content: '';
  position: absolute;
  border: 1px solid var(--tan-light);
}
.vintage-box::before { inset: 6px; pointer-events: none; }

.stamp-box {
  border: 3px double var(--tan);
  padding: 1.5rem;
  position: relative;
  background: var(--paper);
  box-shadow:
    inset 0  2px 6px  rgba(44,24,16,0.09),
    inset 0 -2px 6px  rgba(44,24,16,0.07);
}

/* Grunge texture overlay on dark sections (nav, hero, footer, about) */
.site-nav::after,
.hero::after,
.about-strip::after,
.sell-hero::after,
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)' opacity='0.12'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
/* Keep all children of textured dark sections above the overlay */
.site-nav > *,
.hero > *,
.about-strip > *,
.sell-hero > *,
.site-footer > * { position: relative; z-index: 1; }

/* ---- Poster Card ---- */
.poster-card {
  background: var(--paper-dark);
  border: 1px solid var(--tan);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Resting state: looks like a physical card on aged paper */
  box-shadow:
    0 2px  4px  rgba(44,24,16,0.18),
    0 6px  16px rgba(44,24,16,0.12),
    inset 0 1px 0 rgba(255,255,255,0.25),  /* highlight top edge */
    inset 0 -1px 0 rgba(44,24,16,0.15);   /* shadow bottom edge */
}
.poster-card:hover {
  transform: translateY(-5px) rotate(0.4deg);
  box-shadow:
    0 8px  20px rgba(44,24,16,0.22),
    0 20px 40px rgba(44,24,16,0.16),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.poster-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-thumb-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  position: relative;
  overflow: hidden;
}
.poster-thumb-inner::after {
  content: '';
  position: absolute; inset: 0;
  /* Heavy grain + inner vignette on every poster thumbnail */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.poster-thumb-inner .pt-artist {
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 900;
  color: inherit;
  line-height: 1.1;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.4);
  z-index: 1;
}
.poster-thumb-inner .pt-event {
  font-size: clamp(0.55rem, 1.2vw, 0.85rem);
  font-style: italic;
  color: inherit;
  margin-top: 0.35rem;
  z-index: 1;
  opacity: 0.9;
}
.poster-thumb-inner .pt-venue {
  font-size: clamp(0.5rem, 1vw, 0.7rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: inherit;
  margin-top: 0.5rem;
  z-index: 1;
  opacity: 0.85;
  font-family: 'Lora', serif;
}
.poster-thumb-inner .pt-year {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  color: inherit;
  margin-top: 0.5rem;
  z-index: 1;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.poster-info {
  padding: 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--tan-light);
}
.poster-artist { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; }
.poster-meta { font-size: 0.78rem; color: var(--ink-light); font-style: italic; }
.poster-price { font-family: 'Playfair Display', serif; color: var(--red); font-weight: 700; font-size: 1.05rem; margin-top: auto; padding-top: 0.5rem; }
.poster-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 2px 8px;
  margin-top: 0.25rem;
  font-family: 'Lora', serif;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
  font-family: 'Lora', serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--tan);
  border-radius: 0;
  padding: 0.7rem 1rem;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,145,58,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* File Upload */
.file-upload {
  border: 2px dashed var(--tan);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.file-upload:hover { border-color: var(--gold); }
.file-upload input[type="file"] { display: none; }
.file-upload-icon { font-size: 2.5rem; color: var(--tan); display: block; margin-bottom: 0.5rem; }
.file-upload-text { font-size: 0.85rem; color: var(--ink-light); }

/* ---- Footer ---- */
.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { font-family: 'Playfair Display', serif; }
.footer-brand-name { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.footer-brand p { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.7; line-height: 1.8; }
.footer-heading {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--nav-text) !important; font-size: 0.85rem; opacity: 0.7; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; color: var(--gold) !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-light);
  font-family: 'Lora', serif;
  padding: 1rem 0;
}
.breadcrumb a { color: var(--ink-light) !important; }
.breadcrumb a:hover { color: var(--red) !important; }
.breadcrumb span { margin: 0 0.5rem; opacity: 0.5; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid;
  padding: 3px 10px;
  font-family: 'Lora', serif;
}
.badge-condition-excellent { border-color: #4a7c59; color: #4a7c59; }
.badge-condition-very-good  { border-color: #6a8a3a; color: #6a8a3a; }
.badge-condition-good       { border-color: var(--gold); color: var(--gold); }
.badge-condition-fair       { border-color: var(--red); color: var(--red); }

/* ---- Alerts ---- */
.alert {
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-mid);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- Filter Bar ---- */
.filter-bar {
  background: var(--paper-dark);
  border: 1px solid var(--tan);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.filter-bar label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-family: 'Lora', serif;
}
.filter-bar select {
  background: var(--paper);
  border: 1px solid var(--tan);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c4a265'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.filter-bar select:focus { outline: none; border-color: var(--gold); }
.filter-bar input[type="search"] {
  background: var(--paper);
  border: 1px solid var(--tan);
  padding: 0.45rem 0.75rem;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--ink);
  min-width: 200px;
}
.filter-bar input[type="search"]:focus { outline: none; border-color: var(--gold); }

/* ---- Poster Grid ---- */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

/* ---- Inquiry Form Panel ---- */
.inquiry-panel {
  background: var(--paper-mid);
  border: 1px solid var(--tan);
  padding: 2rem;
  position: sticky;
  top: 85px;
}
.inquiry-panel h3 { margin-bottom: 1.25rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--nav-bg);
  overflow: hidden;
  padding: 7rem 0 6rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,145,58,0.12) 0%, transparent 70%);
}
.hero-eyebrow {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--paper); position: relative; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  color: rgba(245,230,200,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 1.5rem auto 2.5rem;
  font-style: italic;
  position: relative;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-scroll-indicator {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(245,230,200,0.3);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- About Strip ---- */
.about-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
}
.about-strip h2 { color: var(--gold); }
.about-strip p { color: rgba(245,230,200,0.8); }
.about-portrait {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: var(--ink-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--tan);
  margin: 2rem 0;
}
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--tan);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 0.5rem;
  display: block;
  font-family: 'Lora', serif;
}

/* ---- Sell page specific ---- */
.sell-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #3a1a0a 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--paper);
}
.sell-hero h1 { color: var(--paper); }
.sell-hero h1 em { color: var(--gold); }
.sell-hero p { color: rgba(245,230,200,0.75); max-width: 600px; margin: 1.5rem auto 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}
.step-number {
  width: 56px; height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--ink-light); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--tan); }
  .stat-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); padding: 1rem 2rem 2rem; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .detail-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
}
