/* ===== Tokens ===== */
:root {
  --cream: #fbf1e1;
  --cream-2: #fff8ec;
  --burgundy: #6e1b1b;
  --burgundy-light: #8c2b2b;
  --teal: #2f7a6e;
  --rose: #b5566d;
  --ink: #2a1810;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 24, 16, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--burgundy);
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

/* ===== Header ===== */
header#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--burgundy);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header#siteHeader.scrolled {
  background-color: var(--burgundy-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}
#navLogo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; }
.brand-text em { font-style: normal; font-size: 0.7rem; opacity: 0.8; font-family: var(--font-mono); }

nav#siteNav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
nav#siteNav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
nav#siteNav a:hover { border-color: var(--rose); }
nav#siteNav a.nav-cta {
  background: var(--rose);
  color: var(--cream-2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}
nav#siteNav a.nav-cta:hover { border-color: transparent; opacity: 0.9; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.25rem 5rem;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(214,68,122,0.15), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(47,122,110,0.16), transparent 55%),
              var(--cream);
}
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.hero-sub { font-size: 1.05rem; max-width: 520px; margin: 0 auto 1.8rem; color: var(--ink); opacity: 0.85; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary { background: var(--burgundy); color: var(--cream); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--burgundy-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--burgundy); border: 2px solid var(--burgundy); }
.btn-ghost:hover { background: var(--burgundy); color: var(--cream); }
.btn-large { font-size: 1.1rem; padding: 0.9rem 2.2rem; }

.hero-elephant {
  width: 200px;
  height: auto;
  object-fit: contain;
  position: absolute;
  right: 5%;
  bottom: 4%;
  z-index: 1;
  filter: drop-shadow(0 12px 20px rgba(42,24,16,0.18));
}

.hero-elephant-mobile {
  display: none;
  width: 160px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 16px rgba(42,24,16,0.18));
}

@media (max-width: 900px) {
  .hero-elephant { width: 130px; opacity: 0.85; }
}
@media (max-width: 560px) {
  .hero-elephant { display: none; }
  .hero-elephant-mobile { display: block; }
}

/* ===== Scallop divider (papel picado inspired) ===== */
.scallop-divider {
  height: 26px;
  background:
    radial-gradient(circle at 10px 0, transparent 12px, var(--cream-2) 13px) top/24px 26px repeat-x;
  background-color: transparent;
}
.scallop-divider.flip { transform: scaleY(-1); }

/* ===== Sections ===== */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}
.content-section.alt { background: var(--cream-2); max-width: 100%; }
.content-section.alt > * { max-width: 1000px; margin-left: auto; margin-right: auto; }

.section-intro { max-width: 620px; margin: 0 auto 2rem; opacity: 0.9; }
.section-note { max-width: 560px; margin: 1.6rem auto 0; font-size: 0.92rem; opacity: 0.75; font-style: italic; }

/* Sticker-style product cards */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.sticker-card {
  position: relative;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  transform: rotate(var(--rot, 0deg));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
.sticker-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 34px rgba(42,24,16,0.18); }
.sticker-card h3 { color: var(--rose); }
.sticker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
  display: block;
  background: var(--cream);
}
.sticker-card .peel {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--cream) 50%);
  border-bottom-left-radius: 6px;
  box-shadow: -3px 3px 6px rgba(42,24,16,0.15);
}

/* Vinyl compare cards */
.vinyl-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
  text-align: left;
}
.vinyl-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--teal);
}
.vinyl-card:nth-child(2) { border-top-color: var(--burgundy-light); }
.vinyl-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--cream-2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.vinyl-card:nth-child(2) .vinyl-tag { background: var(--burgundy-light); color: var(--cream-2); }

/* Mundial special edition */
.mundial-section { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.mundial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
  text-align: left;
}
.mundial-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
  transition: outline-color 0.3s ease;
  outline: 3px solid transparent;
  outline-offset: 4px;
}
.mundial-card:target { outline-color: var(--rose); }
.mundial-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.mundial-info { padding: 1.2rem 1.4rem 1.4rem; }
.mundial-info h3 { margin-bottom: 0.3rem; }

/* Gallery placeholders */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--cream-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42,24,16,0.55);
  color: var(--cream-2);
  font-size: 0.82rem;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
}
.ph-1 { background: linear-gradient(135deg, var(--rose), var(--burgundy)); }
.ph-2 { background: linear-gradient(135deg, var(--teal), var(--rose)); }
.ph-3 { background: linear-gradient(135deg, var(--rose), var(--burgundy)); }
.ph-4 { background: linear-gradient(135deg, var(--burgundy), var(--teal)); }
.ph-5 { background: linear-gradient(135deg, var(--burgundy-light), var(--teal)); }
.ph-6 { background: linear-gradient(135deg, var(--rose), var(--burgundy-light)); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}
.about-logo { width: 100%; height: auto; object-fit: contain; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
  text-align: left;
}
.price-card {
  background: var(--cream);
  border: 1px solid rgba(110,27,27,0.15);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.price-note { font-family: var(--font-mono); font-size: 0.78rem; opacity: 0.7; margin: -0.4rem 0 0.6rem; }
.price { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; color: var(--burgundy); margin: 0; }
.price span { display: block; font-size: 0.72rem; font-weight: 500; color: var(--ink); opacity: 0.65; text-transform: none; }

.price-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-color: var(--rose);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-mundial {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--rose);
  color: var(--cream-2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* Order */
.order-section {
  text-align: center;
  padding: 4rem 1.25rem;
  background: var(--burgundy);
  color: var(--cream);
}
.order-section h2 { color: var(--cream); }
.order-section .eyebrow { color: var(--rose); }
.order-section .btn-primary { background: var(--rose); color: var(--cream-2); margin-top: 1rem; }
.order-section .btn-primary:hover { background: #96475a; }

/* Payment */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.payment-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
a.payment-card:hover { transform: translateY(-3px); }
.payment-card strong { font-family: var(--font-display); color: var(--burgundy); font-size: 1.1rem; }
.payment-card span { font-family: var(--font-mono); font-size: 0.85rem; opacity: 0.8; }

/* Contact */
.contact-links {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.contact-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--burgundy);
  border-bottom: 2px solid var(--rose);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.contact-links a:hover { color: var(--rose); }

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem 3rem;
  background: var(--cream-2);
  color: var(--burgundy);
  border-top: 2px solid rgba(110,27,27,0.15);
}
#footerLogo { width: 90px; height: 90px; object-fit: contain; display: block; }
footer p { margin: 0; font-size: 0.85rem; opacity: 0.75; }

/* Reveal on scroll (only applies once JS confirms it's running) */
.js .content-section, .js .order-section, .js .hero-inner {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.content-section.is-visible, .order-section.is-visible, .hero-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .content-section, .order-section, .hero-inner, .sticker-card, .btn, header#siteHeader {
    transition: none !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 780px) {
  .menu-toggle { display: flex; }
  nav#siteNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--burgundy-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.3s;
  }
  nav#siteNav.open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-logo { width: 130px; margin: 0 auto; }
}
