/* =========================================================
   Volver Records — Theme CSS v2.0
   ========================================================= */

/* ----------------------------------------------------------
   Google Fonts — Lora
   ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ----------------------------------------------------------
   Custom Properties
   ---------------------------------------------------------- */
:root {
  --accent:       #FF1A75;
  --bg:           #0a0a0a;
  --bg-card:      #141414;
  --bg-card-alt:  #1a1a1a;
  --border:       rgba(255,255,255,0.08);
  --text-primary: rgba(255,255,255,0.90);
  --text-muted:   rgba(255,255,255,0.50);
  --text-dim:     rgba(255,255,255,0.35);
  --font:         'Lora', Georgia, serif;
  --radius:       8px;
  --container:    1200px;
  --gap:          2.4rem;
  --nav-h:        70px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  line-height: 1.15;
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   Layout Helpers
   ---------------------------------------------------------- */
.outer  { padding-left: var(--gap); padding-right: var(--gap); }
.inner  { margin: 0 auto; max-width: var(--container); }

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content { flex: 1; }

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 3.2rem;
}

.site-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
}

.site-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-primary);
  opacity: 1;
}

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.25s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem var(--gap);
  gap: 1.6rem;
}

.mobile-nav a {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-nav.is-open { display: flex; }

@media (max-width: 768px) {
  .site-nav  { display: none; }
  .burger    { display: flex; }
}

/* ----------------------------------------------------------
   Page Header (index + tag pages)
   ---------------------------------------------------------- */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.page-header-title {
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.page-header-desc {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ----------------------------------------------------------
   Section Header (label + optional toggle)
   ---------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 2.4rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Hide-Sold Toggle
   ---------------------------------------------------------- */
.sold-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.4rem;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sold-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sold-toggle[aria-pressed="true"] {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  color: var(--accent);
}

/* ----------------------------------------------------------
   Record Grid
   ---------------------------------------------------------- */
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-bottom: 6rem;
}

@media (max-width: 1024px) {
  .record-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .record-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ----------------------------------------------------------
   Record Card
   ---------------------------------------------------------- */
.record-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.record-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.record-card-image {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1e1e1e;
}

.record-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.record-card:hover .record-card-image img {
  transform: scale(1.04);
}

.record-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.record-card-genre {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.record-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.record-card-desc {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.record-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* Full-card link overlay */
.record-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* No-image cards (e.g. site news / announcements) */
.record-card-no-image {
  background: var(--accent);
  border-color: transparent;
}

.record-card-no-image:hover {
  border-color: transparent;
  filter: brightness(1.08);
}

.record-card-no-image .record-card-genre { color: rgba(255,255,255,0.7); }
.record-card-no-image .record-card-title { color: #fff; font-size: 1.8rem; }
.record-card-no-image .record-card-desc  { color: rgba(255,255,255,0.88); font-size: 1.4rem; }
.record-card-no-image .record-card-desc a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------
   Individual Record Post
   ---------------------------------------------------------- */
.post-wrap {
  max-width: 780px;
  margin: 5rem auto 8rem;
  padding: 0 var(--gap);
}

.post-meta {
  margin-bottom: 1.6rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.post-tag-link {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(255,26,117,0.35);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 2;
}

.post-tag-link:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

.post-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.4rem;
}

.post-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3.2rem;
  aspect-ratio: 1 / 1;
  max-width: 480px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1.7rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}

.post-content p + p { margin-top: 1.2em; }

.post-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2.4rem;
}

.post-cta {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3.2rem;
}

.post-cta strong { color: var(--text-primary); }
.post-cta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.7rem 1.6rem;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 1.6rem;
}

.post-back:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  opacity: 1;
}

/* ----------------------------------------------------------
   Static Pages (About, Contact, How It Works…)
   ---------------------------------------------------------- */
.static-page {
  max-width: 720px;
  margin: 5rem auto 8rem;
  padding: 0 var(--gap);
}

.static-page-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 3.2rem;
}

.static-page-content {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.static-page-content h2 {
  font-size: 2.4rem;
  color: var(--text-primary);
  margin: 3.2rem 0 1.2rem;
}

.static-page-content h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 2.4rem 0 0.8rem;
}

.static-page-content p   { margin-bottom: 1.4em; }
.static-page-content ul,
.static-page-content ol  { padding-left: 2rem; margin-bottom: 1.4em; }
.static-page-content li  { margin-bottom: 0.4em; }

.static-page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-page-content strong { color: var(--text-primary); }

.static-page-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 2rem 0;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.2rem 0;
  color: var(--text-dim);
  font-size: 1.3rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text-primary); opacity: 1; }

.footer-powered a { color: var(--text-dim); }
.footer-powered a:hover { color: var(--text-primary); opacity: 1; }

@media (max-width: 600px) {
  .site-footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* ----------------------------------------------------------
   Pagination
   ---------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem 0 6rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.7rem 1.6rem;
  transition: color 0.2s, border-color 0.2s;
}

.pagination-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  opacity: 1;
}

.pagination-info {
  font-size: 1.3rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Koenig Editor — Required Classes
   ---------------------------------------------------------- */
.kg-width-wide {
  width: 85vw;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   Utility
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   Post page fixes
   ---------------------------------------------------------- */

/* Larger record image */
.post-image {
    max-width: 660px;
    aspect-ratio: 1 / 1;
}

/* White description text on post pages */
.post-content {
    color: var(--text-primary);
}

/* Remove any hr ghost injects inside post content */
.post-content hr {
    display: none;
}

/* ----------------------------------------------------------
   Static page fixes — brighter body copy + image overflow
   ---------------------------------------------------------- */
.static-page-content {
    color: rgba(255,255,255,0.82);
}

.static-page-content p,
.static-page-content li {
    color: rgba(255,255,255,0.82);
}

/* Fix image gallery overflow on static pages */
.static-page-content img,
.static-page-content figure,
.static-page-content .kg-image,
.static-page-content .kg-gallery-image img {
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.static-page-content .kg-gallery-container {
    max-width: 100%;
    overflow: hidden;
}

.static-page-content .kg-gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 100%;
}

.static-page-content .kg-gallery-image {
    flex: 1 1 45%;
    min-width: 0;
    overflow: hidden;
}

.static-page-content .kg-gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ----------------------------------------------------------
   Blockquotes — card style (used on Testimonials)
   ---------------------------------------------------------- */
.static-page-content blockquote {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2.4rem 2.8rem;
    margin: 2.4rem 0;
    font-style: normal;
    color: rgba(255,255,255,0.82);
    font-size: 1.6rem;
    line-height: 1.75;
}

/* Alternate even blockquotes — accent on right */
.static-page-content blockquote:nth-of-type(even) {
    border-left: 1px solid rgba(255,255,255,0.07);
    border-right: 3px solid var(--accent);
}

/* No italics inside blockquotes */
.static-page-content blockquote em,
.static-page-content blockquote i {
    font-style: normal;
}

/* ----------------------------------------------------------
   Post page — additional fixes
   ---------------------------------------------------------- */

/* Hide hr on post pages */
.post-template hr,
.post-wrap hr,
.post-content hr {
    display: none !important;
}

/* Price — smaller, lighter */
.post-price {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent);
}

/* ----------------------------------------------------------
   Static page image fixes
   ---------------------------------------------------------- */
.static-page-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.static-page-content .kg-image-card img,
.static-page-content figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.static-page-content figure,
.static-page-content .kg-image-card {
    max-width: 100%;
    overflow: hidden;
}

.static-page { overflow-x: hidden; }

.static-page-content .kg-gallery-container {
    max-width: 100%;
    overflow: hidden;
}

.static-page-content .kg-gallery-row {
    display: flex;
    gap: 1.2rem;
    max-width: 100%;
    overflow: hidden;
}

.static-page-content .kg-gallery-image {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.static-page-content .kg-gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------
   Hide pagination UI (infinite scroll uses it silently)
   ---------------------------------------------------------- */
.pagination {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
