/* gallery.css — styles for /gallery showcase page */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.gal-hero {
  padding: 72px 24px 60px;
  background: linear-gradient(180deg, #0e1114 0%, #0b0d0f 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.gal-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(200, 169, 110, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.gal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.gal-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.gal-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ── Section Layout ──────────────────────────────────────────────────────── */
.gal-section {
  padding: 64px 24px 72px;
}

.gal-section-alt {
  background: #0c0e10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gal-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.gal-section-header {
  margin-bottom: 40px;
}

.gal-section-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.gal-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.gal-section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gal-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.gal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.gal-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

/* ── Card Visual Area ────────────────────────────────────────────────────── */
.gal-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Dark gradient swatch background (used for builds) */
.gal-swatch-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--swatch, #1a1e22) 80%, #000 20%) 0%,
    color-mix(in srgb, var(--swatch, #1a1e22) 60%, #000 40%) 60%,
    #0a0c0e 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle crosshatch texture */
  background-image:
    linear-gradient(135deg,
      color-mix(in srgb, var(--swatch, #1a1e22) 70%, #000 30%) 0%,
      #0a0c0e 100%
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(255,255,255,0.015) 12px,
      rgba(255,255,255,0.015) 13px
    );
}

.gal-icon {
  width: 72px;
  height: auto;
  opacity: 0.7;
}

/* Cerakote color swatch cards */
.gal-cerakote-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.gal-color-swatch-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gal-color-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Engraving card visual */
.gal-engrave-card {
  background: #0d1013;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(200,169,110,0.03) 20px,
      rgba(200,169,110,0.03) 21px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gal-engrave-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.gal-engrave-line {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.65);
  text-align: center;
}

.gal-engrave-serial {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(200, 169, 110, 0.5);
}

.gal-engrave-make {
  font-size: 1.2rem;
  color: rgba(200, 169, 110, 0.75);
}

.gal-engrave-city {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(200, 169, 110, 0.45);
}

.gal-engrave-small {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(200, 169, 110, 0.45);
  margin-top: 8px;
}

.gal-engrave-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gal-ranch-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-brand-svg {
  width: 80px;
  height: 60px;
}

/* Type badge overlaid on card visual */
.gal-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 13, 15, 0.85);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 3px 10px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* ── Card Body ───────────────────────────────────────────────────────────── */
.gal-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gal-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.gal-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

/* ── Tags ────────────────────────────────────────────────────────────────── */
.gal-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gal-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Bottom CTA Banner ───────────────────────────────────────────────────── */
.gal-cta-banner {
  padding: 64px 24px;
  background: linear-gradient(180deg, #0e1114 0%, #0b0d0f 100%);
  border-top: 1px solid var(--border);
}

.gal-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.gal-cta-text h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.15;
}

.gal-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}

.gal-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-gal-primary {
  display: inline-block;
  background: var(--accent);
  color: #0b0d0f;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-gal-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-gal-ghost {
  display: inline-block;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-gal-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gal-grid {
    grid-template-columns: 1fr;
  }
  .gal-hero {
    padding: 52px 20px 48px;
  }
  .gal-section {
    padding: 44px 20px 56px;
  }
  .gal-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .gal-cta-actions {
    width: 100%;
  }
  .btn-gal-primary,
  .btn-gal-ghost {
    width: 100%;
    text-align: center;
  }
}
