/* ============================================================
   warranty.css
   PhoneDoc ATL — Warranty Page Styles
   ============================================================ */

/* ── Warranty Hero ───────────────────────────────────────── */
.warranty-hero {
  min-height: 40vh;
  background: linear-gradient(
    160deg,
    #0d0d0d 0%,
    #1a1a1a 50%,
    #0d1a0d 80%,
    #1a1a1a 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.warranty-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 100%,
    rgba(67, 160, 71, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.warranty-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px var(--gutter);
}

.warranty-hero__badge {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.warranty-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--color-text-on-dark);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.warranty-hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Warranty Content Area ───────────────────────────────── */
.warranty-content {
  background-color: var(--color-dark-bg);
  padding: var(--space-10) 0;
}

.warranty-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.warranty-section + .warranty-section {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.warranty-section__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.warranty-section__title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: normal;
}

.warranty-section__body {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 100%;
}

/* Rich text support in body */
.warranty-section__body p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 100%;
  margin-bottom: 16px;
}

.warranty-section__body p:last-child {
  margin-bottom: 0;
}

.warranty-section__body ul,
.warranty-section__body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.warranty-section__body li {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 8px;
  list-style: disc;
}

.warranty-section__body ol li {
  list-style: decimal;
}

.warranty-section__body strong {
  color: var(--color-text-on-dark);
  font-weight: 600;
}

.warranty-section__body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.warranty-section__body a:hover {
  color: #ff6b6b;
}

/* ── Coverage Items (What's Covered) ────────────────────── */
.warranty-coverage-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.warranty-coverage-item {
  border-left: 3px solid rgba(67, 160, 71, 0.7);
  padding: 16px 20px;
  background: rgba(67, 160, 71, 0.05);
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.warranty-coverage-item:last-child {
  margin-bottom: 0;
}

.warranty-coverage-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.warranty-coverage-item__label {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-on-dark);
}

.warranty-coverage-item__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(67, 160, 71, 0.9);
  background: rgba(67, 160, 71, 0.12);
  border: 1px solid rgba(67, 160, 71, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
}

.warranty-coverage-item p,
.warranty-coverage-item ul {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.warranty-coverage-item ul {
  padding-left: 18px;
}

.warranty-coverage-item li {
  margin-bottom: 6px;
  list-style: disc;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.warranty-coverage-item li:last-child {
  margin-bottom: 0;
}

/* ── Note Callout ────────────────────────────────────────── */
.warranty-note {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.warranty-note strong {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Exclusion Items (What's NOT Covered) ────────────────── */
.warranty-exclusion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.warranty-exclusion-item {
  border-left: 3px solid rgba(229, 57, 53, 0.6);
  padding: 10px 16px;
  background: rgba(229, 57, 53, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ── Alert Box ───────────────────────────────────────────── */
.warranty-alert {
  background: rgba(229, 57, 53, 0.07);
  border: 1px solid rgba(229, 57, 53, 0.22);
  border-radius: 8px;
  padding: 18px 22px;
}

.warranty-alert__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e57373;
  margin: 0 0 8px;
}

.warranty-alert p:last-child {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* ── Highlight Box ───────────────────────────────────────── */
.warranty-highlight {
  background: rgba(67, 160, 71, 0.08);
  border: 1px solid rgba(67, 160, 71, 0.2);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.warranty-highlight__icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warranty-highlight__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 100%;
}

/* ── Skeleton for warranty sections ─────────────────────── */
.warranty-skeleton {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.warranty-skeleton__title {
  height: 32px;
  width: 40%;
  border-radius: var(--radius-input);
  margin-bottom: 20px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 37%, #2a2a2a 63%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.warranty-skeleton__line {
  height: 16px;
  border-radius: var(--radius-input);
  margin-bottom: 10px;
  background: linear-gradient(90deg, #2a2a2a 25%, #333 37%, #2a2a2a 63%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.warranty-skeleton__line:last-child {
  width: 65%;
}

/* ── Warranty CTA Banner ─────────────────────────────────── */
.warranty-cta {
  background-color: var(--color-primary);
  padding: var(--space-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.warranty-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.warranty-cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.warranty-cta__title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
  margin-bottom: 0;
  line-height: 1;
}

.warranty-cta__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 24px;
  max-width: 500px;
}

.warranty-cta .btn--outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.warranty-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.warranty-cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Error State ─────────────────────────────────────────── */
.warranty-error {
  text-align: center;
  padding: 60px var(--gutter);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 16px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .warranty-hero__content {
    padding: 40px var(--gutter);
  }

  .warranty-hero__badge {
    font-size: 48px;
  }

  .warranty-hero__subtitle {
    font-size: 16px;
  }

  .warranty-section + .warranty-section {
    margin-top: 48px;
    padding-top: 48px;
  }

  .warranty-section__title {
    font-size: 20px;
  }

  .warranty-section__body {
    font-size: 15px;
  }

  .warranty-cta__title {
    font-size: 28px;
  }

  .warranty-coverage-item {
    padding: 14px 16px;
  }

  .warranty-coverage-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .warranty-exclusion-item {
    font-size: 14px;
  }
}
