/* ==========================================================================
   ACME AUCTIONS — Stylesheet
   Sotheby's-inspired: white, minimal, luxury auction aesthetic
   Playfair Display (headings) + Inter (body)
   ========================================================================== */

:root {
  --black: #000000;
  --charcoal: #1a1a1a;
  --ink: #333333;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-400: #aaaaaa;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --rust: #c1440e;
  --rust-dark: #a33a0b;
  --rust-light: #d4613a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1280px;
  --narrow: 800px;
  --header-h: 64px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--rust); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--rust);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10001;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ==========================================================================
   HEADER — Clean white Sotheby's style
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo svg { width: 40px; height: 40px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Desktop Nav */
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
.main-nav a {
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--charcoal);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--charcoal); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  padding: 10px 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s;
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav a:hover { color: var(--rust); }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
  margin-top: var(--header-h);
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--charcoal);
}

.slider-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  object-fit: contain;
  background: var(--charcoal);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  pointer-events: none;
}

.slide-content {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px 28px;
  max-width: 400px;
  color: var(--white);
  pointer-events: auto;
}

.slide-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.slide-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.slide-content .btn {
  font-size: 0.7rem;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--charcoal);
  transition: background 0.2s;
}
.slider-btn:hover { background: var(--white); }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-dot.active { background: var(--white); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--black);
  color: var(--white);
}
.btn-rust {
  background: var(--rust);
  color: var(--white);
}
.btn-rust:hover {
  background: var(--rust-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
}
.btn-white {
  background: var(--white);
  color: var(--charcoal);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--charcoal);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 64px 24px; }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-gray { background: var(--gray-100); }

.container { max-width: var(--max-width); margin: 0 auto; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.7;
}
.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

.thin-rule {
  width: 40px;
  height: 1px;
  background: var(--gray-300);
  margin: 16px 0;
}
.centered .thin-rule { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   eBay AFFILIATE LISTINGS — card grid directly below slider
   ========================================================================== */
.ebay-section {
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--gray-200);
}

.ebay-section .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ebay-section .section-title {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.ebay-section .view-all {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 1px;
}
.ebay-section .view-all:hover { color: var(--charcoal); border-color: var(--charcoal); }

.ebay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ebay-card {
  display: block;
  text-decoration: none;
  color: var(--charcoal);
  transition: opacity 0.2s;
}
.ebay-card:hover { opacity: 0.85; color: var(--charcoal); }

.ebay-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 12px;
}
.ebay-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.ebay-card:hover .ebay-card-img img { transform: scale(1.03); }

.ebay-card h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.ebay-card .ebay-card-sub {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.affiliate-notice {
  font-size: 0.72rem;
  color: var(--gray-400);
  margin-top: 20px;
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================================
   MASONRY GALLERY
   ========================================================================== */
.gallery-grid { columns: 2; column-gap: 12px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.03); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ==========================================================================
   MAILING LIST
   ========================================================================== */
.signup-section { text-align: center; }
.signup-section .section-title { color: var(--white); }
.signup-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 24px auto 0;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}
.signup-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.signup-form input[type="email"]:focus { border-color: rgba(255,255,255,0.5); }
.signup-form button {
  padding: 12px 22px;
  background: var(--rust);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--rust);
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--rust-dark); border-color: var(--rust-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: rgba(255,255,255,0.4); }
.footer-social a:hover { color: var(--white); }

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--charcoal);
  padding: calc(var(--header-h) + 48px) 24px 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s var(--ease) forwards;
}
.page-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.6s 0.25s var(--ease) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTENT / PROSE
   ========================================================================== */
.prose { max-width: var(--narrow); margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--gray-700); }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; color: var(--gray-700); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--rust-dark); }

.callout {
  background: var(--gray-100);
  border-left: 3px solid var(--rust);
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; margin: 32px 0; }
.step {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rust);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.step-content h3 { font-size: 1.05rem; margin: 0 0 4px; }
.step-content p { color: var(--gray-500); margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 32px 0; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--gray-500); font-size: 0.92rem; margin: 0; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
  margin: 36px 0;
}
.stat h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 2px;
}
.stat p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* CTA */
.cta-section { text-align: center; padding: 64px 24px; }
.cta-section h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 12px; }
.section-dark.cta-section h2 { color: var(--white); }
.section-dark.cta-section p { color: rgba(255,255,255,0.5); max-width: 440px; margin: 0 auto 24px; }

/* Library */
.library-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--charcoal);
  border-left: 3px solid var(--rust);
  padding-left: 20px;
  margin: 36px 0;
  line-height: 1.4;
}

/* eBay page embed */
.ebay-embed {
  margin: 28px 0;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  padding: 28px;
  text-align: center;
}
.ebay-embed p { color: var(--gray-500); }
.affiliate-disclosure {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-style: italic;
  margin: 16px 0;
  line-height: 1.5;
}

/* Privacy */
.privacy-content { padding: 48px 24px; }
.privacy-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.privacy-content h2:first-of-type { border-top: none; padding-top: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 640px) {
  .ebay-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { columns: 3; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 80px 24px; }
  .menu-toggle { display: none; }
  .main-nav { display: block; }
  .ebay-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { columns: 4; column-gap: 16px; }
  .gallery-item { margin-bottom: 16px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding: calc(var(--header-h) + 72px) 24px 72px; }
  .slide img { max-height: 560px; }
  .slide-overlay { padding: 48px 60px; }
}

@media (min-width: 1200px) {
  .ebay-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { columns: 5; }
}
