/**
 * Business detail pages — premium showcase skin
 * Load after style.css; scoped to body.page-detail--showcase
 */

body.page-detail--showcase {
  --ds-ink: #123a6b;
  --ds-ink-soft: #2b5d94;
  --ds-gold: #c9a227;
  --ds-gold-light: #e4c04a;
  --ds-cream: #faf8f4;
  --ds-mist: #edf3fb;
  --ds-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-detail--showcase main {
  padding-bottom: 4rem;
  background: linear-gradient(180deg, var(--ds-mist) 0%, #e8ecf2 45%, #f0f3f7 100%);
  overflow-x: hidden;
}

body.page-detail--showcase main[data-detail-cat="import"] {
  background: linear-gradient(180deg, var(--ds-cream) 0%, #f3efe8 50%, #f7f5f0 100%);
}

/* --- Page width shell (aligns hero + body; single horizontal inset) --- */
body.page-detail--showcase .detail-showcase-inner {
  width: min(100% - 2.5rem, var(--max, 1180px));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* --- Full-width hero band --- */
body.page-detail--showcase .detail-showcase-top {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0 2.5rem;
  margin-bottom: 0;
  color: #fff;
  background: linear-gradient(128deg, #071426 0%, var(--ds-ink) 38%, #153a62 72%, #1a4a72 100%);
}

body.page-detail--showcase .detail-showcase-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(201, 162, 39, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 45% 40% at 88% 78%, rgba(255, 255, 255, 0.06) 0%, transparent 48%),
    linear-gradient(180deg, transparent 55%, rgba(7, 20, 38, 0.4) 100%);
  pointer-events: none;
}

body.page-detail--showcase .detail-showcase-top::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fff' stroke-width='0.5'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

body.page-detail--showcase main[data-detail-cat="import"] .detail-showcase-top {
  background: linear-gradient(125deg, #1c1410 0%, #3d2b1f 42%, #524031 78%, #3a2e24 100%);
}

body.page-detail--showcase main[data-detail-cat="import"] .detail-showcase-top::before {
  background:
    radial-gradient(ellipse 65% 50% at 15% 20%, rgba(228, 192, 74, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 85% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, transparent 50%, rgba(20, 14, 10, 0.45) 100%);
}

/* Breadcrumb on dark */
body.page-detail--showcase .detail-showcase-top .breadcrumb {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

body.page-detail--showcase .detail-showcase-top .breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

body.page-detail--showcase .detail-showcase-top .breadcrumb a:hover {
  color: var(--ds-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-detail--showcase .detail-showcase-top .breadcrumb span[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Hero — mobile: image first; desktop: text | image */
body.page-detail--showcase .detail-showcase-top .detail-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: stretch;
}

@media (min-width: 880px) {
  body.page-detail--showcase .detail-showcase-top .detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    padding: 1.35rem 0 0.35rem;
  }
}

/* Prevent grid/flex overflow (horizontal misalignment / scrollbar) */
body.page-detail--showcase .detail-showcase-top .detail-hero-text,
body.page-detail--showcase .detail-showcase-top .detail-hero-media {
  min-width: 0;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-text {
  order: 2;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-media {
  order: 1;
  margin: 0;
}

@media (min-width: 880px) {
  body.page-detail--showcase .detail-showcase-top .detail-hero-text {
    order: unset;
  }

  body.page-detail--showcase .detail-showcase-top .detail-hero-media {
    order: unset;
  }
}

body.page-detail--showcase .detail-showcase-top .detail-hero-text .detail-eyebrow {
  color: var(--ds-gold-light);
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-text h1 {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

body.page-detail--showcase .detail-showcase-top .detail-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-media {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: rgba(7, 20, 38, 0.35);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.18),
    0 28px 56px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(201, 162, 39, 0.28);
}

body.page-detail--showcase .detail-showcase-top figure.detail-hero-media {
  display: block;
  margin: 0;
  overflow: hidden;
  position: relative;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ds-ease);
}

/* Hero — multi-image gallery (combined product lines) */
body.page-detail--showcase .detail-showcase-top figure.detail-hero-media--gallery {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  display: flex;
}

body.page-detail--showcase .detail-showcase-top .detail-hero-media--gallery .detail-hero-gallery {
  display: grid;
  width: 100%;
  /* Breathing room between tiles — was 0.55rem and felt cramped in 3-up desktop hero */
  gap: clamp(0.65rem, 2.2vw, 1.25rem);
  grid-template-columns: 1fr;
  align-content: stretch;
}

@media (min-width: 520px) {
  body.page-detail--showcase .detail-showcase-top .detail-hero-media--gallery .detail-hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  body.page-detail--showcase .detail-showcase-top .detail-hero-media--gallery .detail-hero-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Three-up row: a touch more air than the clamp minimum */
  body.page-detail--showcase
    .detail-showcase-top
    .detail-hero-media--gallery.detail-hero-media--count-3
    .detail-hero-gallery {
    gap: clamp(0.85rem, 2.5vw, 1.35rem);
  }

  body.page-detail--showcase
    .detail-showcase-top
    .detail-hero-media--gallery.detail-hero-media--count-2
    .detail-hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-detail--showcase
    .detail-showcase-top
    .detail-hero-media--gallery.detail-hero-media--count-4
    .detail-hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-detail--showcase .detail-showcase-top .detail-hero-gallery-cell {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 8.5rem;
  background: rgba(7, 20, 38, 0.4);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.page-detail--showcase .detail-showcase-top .detail-hero-gallery-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ds-ease);
}

body.page-detail--showcase .detail-showcase-top .detail-hero-gallery-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.55rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 20, 38, 0.75) 42%, rgba(7, 20, 38, 0.92) 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  body.page-detail--showcase .detail-showcase-top .detail-hero-media:not(.detail-hero-media--gallery):hover img {
    transform: scale(1.02);
  }

  body.page-detail--showcase .detail-showcase-top .detail-hero-gallery-cell:hover img {
    transform: scale(1.05);
  }
}

/* Hero actions */
body.page-detail--showcase .detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 1.15rem;
}

body.page-detail--showcase .detail-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s var(--ds-ease), box-shadow 0.2s var(--ds-ease), background 0.2s, color 0.2s;
}

body.page-detail--showcase .detail-hero-btn--primary {
  background: linear-gradient(145deg, var(--ds-gold-light) 0%, var(--ds-gold) 55%, #a88b1c 100%);
  color: var(--ds-ink);
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.35);
}

body.page-detail--showcase .detail-hero-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(201, 162, 39, 0.42);
  color: var(--ds-ink);
}

body.page-detail--showcase .detail-hero-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.page-detail--showcase .detail-hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

body.page-detail--showcase .detail-hero-btn:focus-visible {
  outline: 2px solid var(--ds-gold-light);
  outline-offset: 3px;
}

/* --- Body: overlaps hero for catalogue feel --- */
body.page-detail--showcase .detail-content-zone {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding: 0 0 1rem;
}

body.page-detail--showcase .detail-content-zone .detail-showcase-inner {
  padding-top: 0.35rem;
}

/* --- Two-column body (full width of .detail-showcase-inner — no second side inset) --- */
body.page-detail--showcase .detail-showcase-inner > .detail-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  margin-top: 0;
  padding-top: 1.35rem;
  padding-inline: 0;
  box-sizing: border-box;
}

body.page-detail--showcase .detail-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  body.page-detail--showcase .detail-showcase-inner > .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 2.25rem;
    align-items: start;
  }
}

/* Readable article column; tables stay full width of main */
body.page-detail--showcase .detail-article {
  min-width: 0;
}

body.page-detail--showcase .detail-article .detail-section p:not(.spec-note) {
  max-width: 42rem;
}

body.page-detail--showcase .detail-article .detail-section > ul {
  max-width: 42rem;
}

body.page-detail--showcase .detail-article .detail-section .spec-table-wrap,
body.page-detail--showcase .detail-article .detail-section .spec-note {
  max-width: none;
}

/* Section cards */
body.page-detail--showcase .detail-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.55rem 1.75rem 1.45rem;
  margin-bottom: 1.35rem;
  box-shadow:
    0 2px 4px rgba(10, 31, 61, 0.04),
    0 14px 36px -14px rgba(10, 31, 61, 0.11);
  border: 1px solid rgba(10, 31, 61, 0.07);
  transition: box-shadow 0.35s var(--ds-ease), border-color 0.25s var(--ds-ease);
}

@media (min-width: 960px) {
  body.page-detail--showcase .detail-section:hover {
    box-shadow:
      0 4px 8px rgba(10, 31, 61, 0.05),
      0 22px 48px -12px rgba(10, 31, 61, 0.14);
    border-color: rgba(201, 162, 39, 0.18);
  }
}

body.page-detail--showcase .detail-section h2 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.32rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: var(--ds-gold);
  color: var(--ds-ink);
}

body.page-detail--showcase .detail-section p {
  color: #2d3748;
  line-height: 1.68;
}

body.page-detail--showcase .detail-section a {
  color: var(--ds-ink-soft);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.page-detail--showcase .detail-section a:hover {
  color: var(--gold-dark);
}

/* List markers */
body.page-detail--showcase .detail-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

body.page-detail--showcase .detail-section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: #3d4a5c;
  line-height: 1.55;
}

body.page-detail--showcase .detail-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ds-gold-light), var(--ds-gold));
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.22);
}

/* Base .detail-section li + li adds extra margin — avoid double spacing */
body.page-detail--showcase .detail-section li + li {
  margin-top: 0;
}

/* Spec table */
body.page-detail--showcase .spec-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 61, 0.09);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.page-detail--showcase .spec-table th {
  background: linear-gradient(180deg, #f2f6fb 0%, #e2eaf4 100%);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-ink);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom-color: rgba(10, 31, 61, 0.1);
}

body.page-detail--showcase .spec-table td {
  padding: 0.72rem 1rem;
  border-bottom-color: rgba(10, 31, 61, 0.06);
}

body.page-detail--showcase .spec-table tbody tr:nth-child(even) td {
  background: rgba(10, 31, 61, 0.025);
}

body.page-detail--showcase .spec-note {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: #64748b;
  font-style: italic;
}

/* Sidebar */
body.page-detail--showcase .related-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(10, 31, 61, 0.08);
  box-shadow:
    0 2px 4px rgba(10, 31, 61, 0.04),
    0 16px 40px -14px rgba(10, 31, 61, 0.12);
  padding: 1.35rem 1.2rem;
}

body.page-detail--showcase .related-back {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(10, 31, 61, 0.08);
}

body.page-detail--showcase .related-back a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ds-ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.page-detail--showcase .related-back a::before {
  content: "←";
  font-size: 0.95rem;
  opacity: 0.75;
}

body.page-detail--showcase .related-back a:hover {
  color: var(--gold-dark);
}

body.page-detail--showcase .related-box h3 {
  margin: 0 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--ds-gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-ink);
}

body.page-detail--showcase .related-subhead {
  color: var(--ds-ink-soft);
  opacity: 0.85;
}

body.page-detail--showcase .related-box a {
  color: var(--ds-ink);
}

body.page-detail--showcase .related-box a:hover {
  color: var(--gold-dark);
}

body.page-detail--showcase main[data-detail-cat="import"] .related-box {
  background: rgba(255, 252, 248, 0.96);
  border-color: rgba(61, 42, 26, 0.1);
}

/* Bottom CTA */
body.page-detail--showcase .detail-cta {
  position: relative;
  overflow: hidden;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  background: linear-gradient(132deg, #071426 0%, var(--ds-ink) 48%, #153a62 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(10, 31, 61, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.page-detail--showcase .detail-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 100% 0%, rgba(201, 162, 39, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

body.page-detail--showcase .detail-cta p {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
  line-height: 1.55;
}

body.page-detail--showcase .detail-cta .btn-primary {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--ds-gold-light) 0%, var(--ds-gold) 55%, #a88b1c 100%);
  color: var(--ds-ink);
  border: none;
  font-weight: 700;
  padding: 0.72rem 1.55rem;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.38);
  text-decoration: none;
  transition: filter 0.2s var(--ds-ease), box-shadow 0.2s var(--ds-ease);
}

body.page-detail--showcase .detail-cta .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.45);
  color: var(--ds-ink);
}

body.page-detail--showcase main[data-detail-cat="import"] .detail-cta {
  background: linear-gradient(132deg, #2a1f18 0%, #3d2e24 50%, #4a3a2e 100%);
}

/* PDF-sourced catalogue figure (tires detail) */
body.page-detail--showcase .detail-pdf-cover-fig {
  margin: 1rem 0 0;
  max-width: 42rem;
}

body.page-detail--showcase .detail-pdf-cover-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(10, 31, 61, 0.08);
  box-shadow: 0 8px 28px rgba(10, 31, 61, 0.1);
}

body.page-detail--showcase .detail-pdf-cover-fig figcaption {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

body.page-detail--showcase .detail-pdf-cover-fig figcaption a {
  font-weight: 600;
}

/* Doublestar / pattern reference spreads (tires detail) */
body.page-detail--showcase .detail-catalog-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  body.page-detail--showcase .detail-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-detail--showcase .detail-catalog-grid figure {
  margin: 0;
}

body.page-detail--showcase .detail-catalog-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(10, 31, 61, 0.08);
  box-shadow: 0 6px 22px rgba(10, 31, 61, 0.08);
}

body.page-detail--showcase .detail-catalog-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}
