/* ==========================================================================
   ABOUT GOLDBACKS PAGE
   ========================================================================== */

/* ---------- Hero ---------- */
.goldatm-about-hero {
  padding: 60px 40px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(200, 168, 78, 0.06) 0%, transparent 60%),
    var(--dark, #0D0D0D);
}

.goldatm-about-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.goldatm-about-hero__title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream, #F5F0E8);
  margin: 0 0 28px;
}

.goldatm-about-hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* ---------- Detail Images ---------- */
.goldatm-about-images {
  padding: 0 40px 100px;
}

.goldatm-about-images__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
}

.goldatm-about-images__img {
  flex: 1 1 0;
  min-width: 0;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
}

/* ---------- Craftsmanship ---------- */
.goldatm-about-craft {
  padding: 100px 40px;
  border-top: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
}

.goldatm-about-craft__inner {
  max-width: 900px;
  margin: 0 auto;
}

.goldatm-about-craft__inner .goldatm-section-title {
  margin-bottom: 40px;
}

.goldatm-about-craft__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.goldatm-about-craft__heading {
  font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--cream, #F5F0E8);
}

.goldatm-about-craft__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  font-weight: 300;
}

/* ---------- Denominations ---------- */
.goldatm-about-denoms {
  padding: 100px 40px;
  background: var(--charcoal, #1A1A1A);
  border-top: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  border-bottom: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  overflow: hidden;
}

.goldatm-about-denoms__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.goldatm-about-denoms__sub {
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  margin-bottom: 56px;
  font-weight: 300;
  font-size: 16px;
}

/* Carousel wrapper */
.goldatm-denom-carousel {
  position: relative;
}

/* Arrow buttons */
.goldatm-denom__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  color: var(--gold, #C8A84E);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  line-height: 1;
}

.goldatm-denom__arrow:hover {
  border-color: var(--border-gold-hover, rgba(200, 168, 78, 0.3));
  background: rgba(200, 168, 78, 0.08);
}

.goldatm-denom__arrow--prev { left: -20px; }
.goldatm-denom__arrow--next { right: -20px; }

/* Fade edges */
.goldatm-denom__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
  pointer-events: none;
}

.goldatm-denom__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--charcoal, #1A1A1A), transparent);
}

.goldatm-denom__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--charcoal, #1A1A1A), transparent);
}

/* Scrollable track */
.goldatm-denom__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.goldatm-denom__track::-webkit-scrollbar {
  display: none;
}

/* Denomination card */
.goldatm-denom__card {
  min-width: 150px;
  flex-shrink: 0;
  background: var(--mid, #2A2A2A);
  border-radius: 4px;
  padding: 24px 16px;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  text-align: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.goldatm-denom__card.is-active {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.1), rgba(200, 168, 78, 0.03));
  border-color: var(--border-gold-hover, rgba(200, 168, 78, 0.3));
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(200, 168, 78, 0.12), 0 0 16px rgba(200, 168, 78, 0.04);
}

.goldatm-denom__value {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 34px;
  font-weight: 300;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  line-height: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.goldatm-denom__card.is-active .goldatm-denom__value {
  font-size: 44px;
  color: var(--gold, #C8A84E);
}

.goldatm-denom__label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
  margin: 8px 0 6px;
  transition: color 0.5s ease;
  opacity: 0.5;
}

.goldatm-denom__card.is-active .goldatm-denom__label {
  color: var(--gold, #C8A84E);
  opacity: 1;
}

.goldatm-denom__oz {
  font-size: 11px;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
  transition: all 0.5s ease;
  font-weight: 300;
}

.goldatm-denom__card.is-active .goldatm-denom__oz {
  color: var(--cream, #F5F0E8);
  font-weight: 500;
}

/* Progress dots */
.goldatm-denom__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.goldatm-denom__dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: rgba(200, 168, 78, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.goldatm-denom__dot.is-active {
  width: 20px;
  background: var(--gold, #C8A84E);
}

/* Detail bar */
.goldatm-denom__detail {
  margin-top: 24px;
  padding: 18px 32px;
  background: var(--mid, #2A2A2A);
  border-radius: 4px;
  border: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: all 0.3s ease;
}

.goldatm-denom__detail-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim, rgba(245, 240, 232, 0.35));
  margin-bottom: 4px;
}

.goldatm-denom__detail-value--denom {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--gold, #C8A84E);
  line-height: 1;
}

.goldatm-denom__detail-value--oz {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #F5F0E8);
}

.goldatm-denom__detail-value--gold {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #F5F0E8);
}

.goldatm-denom__detail-divider {
  width: 1px;
  height: 32px;
  background: var(--border-gold, rgba(200, 168, 78, 0.1));
}

/* ---------- State Series ---------- */
.goldatm-about-series {
  padding: 100px 40px;
}

.goldatm-about-series__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.goldatm-about-series__inner .goldatm-section-label,
.goldatm-about-series__inner .goldatm-section-title {
  text-align: center;
}

.goldatm-about-series__inner .goldatm-section-title {
  margin-bottom: 48px;
}

.goldatm-about-series__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide wpautop-injected <p> and <br> elements inside the grid and cards */
.goldatm-about-series__grid > p,
.goldatm-about-series__grid > br,
.goldatm-about-series__card > p,
.goldatm-about-series__card > br {
  display: none !important;
}

.goldatm-about-series__card {
  display: block !important;
  text-decoration: none !important;
  color: var(--cream, #F5F0E8) !important;
  background: #fff !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: none !important;
  transition: all 0.3s;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: calc((100% - 64px) / 5) !important;
  flex: 0 1 calc((100% - 64px) / 5) !important;
}

.goldatm-about-series__card:hover {
  border-color: var(--border-gold-hover, rgba(200, 168, 78, 0.3)) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
  color: var(--cream, #F5F0E8) !important;
}

.goldatm-about-series__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goldatm-about-series__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s;
  border: none !important;
}

.goldatm-about-series__card:hover .goldatm-about-series__img img {
  transform: scale(1.05);
}

.goldatm-about-series__info {
  padding: 14px 16px;
  text-align: center;
  background: var(--mid, #2A2A2A);
}

.goldatm-about-series__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream, #F5F0E8);
}

.goldatm-about-series__footer {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Legal Status ---------- */
.goldatm-about-legal {
  padding: 100px 40px;
  border-top: 1px solid var(--border-gold, rgba(200, 168, 78, 0.1));
}

.goldatm-about-legal__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.goldatm-about-legal__inner .goldatm-section-title {
  margin-bottom: 24px;
}

.goldatm-about-legal__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted, rgba(245, 240, 232, 0.5));
  font-weight: 300;
  margin-bottom: 16px;
}

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .goldatm-about-series__card {
    width: calc((100% - 32px) / 3) !important;
    flex: 0 1 calc((100% - 32px) / 3) !important;
  }
}

@media (max-width: 768px) {
  .goldatm-about-hero {
    padding: 40px 20px 60px;
  }

  .goldatm-about-hero__sub {
    font-size: 16px;
  }

  .goldatm-about-images {
    padding: 0 20px 60px;
  }

  .goldatm-about-images__grid {
    flex-direction: column;
  }

  .goldatm-about-images__img {
    height: 240px;
  }

  .goldatm-about-craft {
    padding: 60px 20px;
  }

  .goldatm-about-craft__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .goldatm-about-denoms {
    padding: 60px 20px;
  }

  .goldatm-about-denoms__sub {
    margin-bottom: 36px;
  }

  .goldatm-denom__track {
    gap: 12px;
    padding: 16px 32px;
  }

  .goldatm-denom__card {
    min-width: 120px;
    padding: 20px 12px;
  }

  .goldatm-denom__value {
    font-size: 28px;
  }

  .goldatm-denom__card.is-active .goldatm-denom__value {
    font-size: 36px;
  }

  .goldatm-denom__arrow--prev { left: -4px; }
  .goldatm-denom__arrow--next { right: -4px; }

  .goldatm-denom__detail {
    padding: 16px;
    gap: 16px;
  }

  .goldatm-denom__detail-value--denom {
    font-size: 24px;
  }

  .goldatm-about-series {
    padding: 60px 20px;
  }

  .goldatm-about-series__card {
    width: calc((100% - 16px) / 2) !important;
    flex: 0 1 calc((100% - 16px) / 2) !important;
  }

  .goldatm-about-series__img {
    padding: 8px;
  }

  .goldatm-about-series__info {
    padding: 10px 12px;
  }

  .goldatm-about-series__name {
    font-size: 12px;
  }

  .goldatm-about-legal {
    padding: 60px 20px;
  }
}
