/* ===== SPECIAL DETAIL PAGE ===== */

/* ---------- PAGE FADE-IN ---------- */
@keyframes spd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body:has(.special-detail-page) #page-wrapper {
  animation: spd-fade-in 0.3s ease both;
}

/* ---------- BREADCRUMB OVERLAY ---------- */
.special-detail-page {
  position: relative;
  z-index: 1;
  margin-top: -56px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6f7 100%);
}

#breadcrumb:has(+ .special-detail-page) {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

#breadcrumb:has(+ .special-detail-page) > div {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#breadcrumb:has(+ .special-detail-page) .breadcrumb-item a {
  color: rgba(255,255,255,0.8);
}

#breadcrumb:has(+ .special-detail-page) .breadcrumb-item a:hover {
  color: #fff;
}

#breadcrumb:has(+ .special-detail-page) .breadcrumb-item:last-child {
  color: #fff !important;
}

#breadcrumb:has(+ .special-detail-page) .breadcrumb-item::after {
  color: rgba(255,255,255,0.5);
}

/* ---------- COMPACT HEADER BAND ---------- */
.spd-header {
  position: relative;
  background: linear-gradient(135deg, #1D4288 0%, #1a3a75 60%, #2d6a3e 100%);
  padding: 56px 24px 32px;
  text-align: center;
}

.spd-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.spd-header__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.spd-header__type {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.spd-header__title {
  font-family: Inter, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ---------- MAIN CONTENT LAYOUT ---------- */
.spd-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.spd-main {
  flex: 1;
  min-width: 0;
}

/* ---------- META ROW (brand + dates) ---------- */
.spd-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spd-meta__brand-logo {
  max-height: 32px;
  max-width: 140px;
  object-fit: contain;
}

.spd-meta__service-name {
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1D4288;
}

.spd-meta__dates {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1D4288;
  background: rgba(29,66,136,0.08);
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* ---------- SPECIAL IMAGE ---------- */
.spd-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16 / 7;
  background: #e8eaed;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.spd-image__img,
.spd-image__img > div,
.spd-image__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.spd-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  pointer-events: none;
  border-radius: 16px;
  z-index: 1;
}

.spd-image__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 16px;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(62,176,73,0.65);
  border-radius: 100px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

/* ---------- TITLE & DESCRIPTION ---------- */
.spd-title {
  font-family: Inter, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0 0 12px;
}

.spd-desc {
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  margin: 0 0 28px;
}

/* ---------- PROMISE TIRE SECTION ---------- */
.spd-promise {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.spd-promise__heading {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 2px;
}

.spd-promise__sub {
  font-family: Inter, sans-serif;
  font-size: 0.84rem;
  color: #777;
  margin: 0 0 16px;
}

.spd-promise__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spd-promise__list li {
  list-style: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
  padding: 0;
}

.spd-promise__list li svg {
  flex-shrink: 0;
}

/* ---------- CTA BUTTON ---------- */
.spd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #1D4288;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.spd-cta:hover {
  background: #163672;
}

.spd-cta:focus-visible {
  outline: 2px solid #1D4288;
  outline-offset: 2px;
}

.spd-cta--secondary {
  background: transparent;
  color: #1D4288;
  border: 1.5px solid rgba(29,66,136,0.25);
}

.spd-cta--secondary:hover {
  background: rgba(29,66,136,0.06);
  border-color: rgba(29,66,136,0.4);
}

/* ---------- REBATE SECTION ---------- */
.spd-rebate {
  margin-bottom: 20px;
}

.spd-rebate__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1.5px solid rgba(29,66,136,0.15);
  border-radius: 12px;
  padding: 20px 24px;
}

.spd-rebate__heading {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.spd-rebate__desc {
  font-family: Inter, sans-serif;
  font-size: 0.84rem;
  color: #777;
  margin: 0;
}

.spd-rebate__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: #1D4288;
  border: 1.5px solid rgba(29,66,136,0.25);
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.spd-rebate__btn:hover {
  background: rgba(29,66,136,0.06);
  border-color: rgba(29,66,136,0.4);
}

.spd-rebate__btn:focus-visible {
  outline: 2px solid #1D4288;
  outline-offset: 2px;
}

/* ---------- TERMS LINK ---------- */
.spd-terms {
  margin-bottom: 32px;
}

.spd-terms__link {
  background: none;
  border: none;
  padding: 0;
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1D4288;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.spd-terms__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.spd-terms__link:focus-visible {
  opacity: 1;
  outline: 2px solid #1D4288;
  outline-offset: 2px;
}

.spd-terms__body {
  margin-top: 12px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #555;
}

/* ---------- STORE SIDEBAR ---------- */
.spd-store {
  flex: 0 0 300px;
  padding-top: 52px;
}

.spd-store__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  margin-bottom: 0;
}

.spd-store__heading {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #237a2e;
  margin: 0 0 12px;
}

.spd-store__name {
  font-family: Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 20px;
  line-height: 1.3;
}

.spd-store__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1D4288;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.spd-store__phone:hover {
  color: #163672;
  text-decoration: none;
}

.spd-store__phone--after {
  font-size: 0.88rem;
  color: #555;
  font-weight: 500;
}

.spd-store__phone--after:hover {
  color: #333;
}

.spd-store__phone-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

.spd-store__phone svg {
  flex-shrink: 0;
}

.spd-store__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.spd-store__address svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.spd-store__address a {
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}

.spd-store__address a:hover {
  color: #1D4288;
  text-decoration: underline;
}

/* ---------- MORE SPECIALS ---------- */
.spd-more {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.spd-more .spc-overline {
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #237a2e;
  margin: 0 0 4px;
  display: block;
}

.spd-more__title {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: #1a1a1a;
  margin: 4px 0 24px;
}

.spd-more__link-wrap {
  text-align: center;
  margin-top: 32px;
}

.spd-more__link {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1D4288;
  text-decoration: none;
  transition: color 0.15s ease;
}

.spd-more__link:hover {
  color: #3eb049;
  text-decoration: none;
}

/* ---------- LOADING SKELETON ---------- */
@keyframes spd-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.spd-skeleton__bone {
  background: linear-gradient(90deg, #e8e8e8 25%, #f2f2f2 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: spd-shimmer 1.5s ease infinite;
  border-radius: 8px;
}

.spd-skeleton__header {
  background: linear-gradient(135deg, #1D4288 0%, #1a3a75 60%, #2d6a3e 100%);
  padding: 56px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spd-skeleton__header .spd-skeleton__bone {
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 75%);
  background-size: 800px 100%;
  animation: spd-shimmer 1.5s ease infinite;
}

.spd-skeleton__type {
  width: 100px;
  height: 14px;
  border-radius: 4px;
}

.spd-skeleton__title {
  width: 320px;
  max-width: 80%;
  height: 32px;
}

.spd-skeleton__body {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.spd-skeleton__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spd-skeleton__meta {
  width: 240px;
  height: 16px;
}

.spd-skeleton__image {
  width: 100%;
  height: 0;
  padding-bottom: 42%;
  border-radius: 16px;
}

.spd-skeleton__line {
  height: 14px;
}

.spd-skeleton__line--wide {
  width: 90%;
}

.spd-skeleton__line--medium {
  width: 70%;
}

.spd-skeleton__line--narrow {
  width: 45%;
}

.spd-skeleton__btn {
  width: 200px;
  height: 44px;
  border-radius: 10px;
  margin-top: 8px;
}

.spd-skeleton__sidebar {
  flex: 0 0 300px;
  padding-top: 52px;
}

.spd-skeleton__card {
  width: 100%;
  height: 220px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .spd-skeleton__header {
    padding: 72px 20px 24px;
  }

  .spd-skeleton__body {
    flex-direction: column;
    padding: 28px 20px 48px;
    gap: 28px;
  }

  .spd-skeleton__sidebar {
    flex: none;
    padding-top: 0;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .spd-header {
    padding: 72px 20px 24px;
  }

  .spd-header__type {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .spd-header__title {
    font-size: 1.3rem;
  }

  .spd-content {
    flex-direction: column;
    padding: 28px 20px 20px;
    gap: 20px;
  }

  .spd-store {
    flex: none;
    width: 100%;
    position: static;
    padding-top: 0;
  }

  .spd-promise__list {
    grid-template-columns: 1fr;
  }

  .spd-rebate__inner {
    flex-direction: column;
    text-align: center;
  }

  .spd-more {
    padding: 20px 20px 40px;
  }
}

@media (min-width: 769px) {
  .spd-header__title {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .spd-header {
    padding: 64px 24px 36px;
  }

  .spd-header__title {
    font-size: 2.5rem;
  }
}
