/* ==========================================================================
   Warranty Page — Lanyard Palembang
   Theme: Modern Warm Editorial & Antique Gold
   ========================================================================== */

:root {
  --war-ink: #151515;
  --war-ink-soft: #1A1510;
  --war-muted: #5C4F3E;
  --war-subtle: #8A837A;
  
  --war-gold: #C3944B;
  --war-gold-dark: #A07A2B;
  --war-gold-strong: #8C6D1D;
  --war-gold-light: #F5D98A;
  --war-gold-hover: #E4C469;
  --war-gold-soft: #FAF3E0;
  --war-gold-border: #E5D2A8;

  --war-bg: #ffffff;
  --war-surface: #FAF7F2;
  --war-surface-warm: #F7F3E8;
  --war-border: #EDE4D1;
  --war-border-subtle: #F0E4D5;
  --war-line: #F2ECE1;
}

.warranty-page,
.warranty-page *,
.warranty-page *::before,
.warranty-page *::after {
  box-sizing: border-box;
}

.warranty-page {
  background: var(--war-bg);
  color: var(--war-ink);
  overflow-x: hidden;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.warranty-hero {
  padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid var(--war-line);
}

.warranty-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.warranty-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.warranty-hero__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  background: var(--war-gold-soft);
  border: 1px solid var(--war-gold-border);
}

.warranty-hero__sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--war-gold-dark);
}

.warranty-hero__sparkle svg {
  width: 100%;
  height: 100%;
}

.warranty-hero__eyebrow {
  color: var(--war-gold-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.warranty-hero__title {
  margin: 0 0 16px;
  color: var(--war-ink);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.warranty-hero__title-accent {
  color: var(--war-gold);
  background: linear-gradient(135deg, var(--war-gold-dark) 0%, var(--war-gold) 60%, var(--war-gold-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.warranty-hero__desc {
  margin: 0 0 28px;
  color: var(--war-muted);
  font-size: 16px;
  line-height: 1.68;
}

.warranty-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Button styles */
.warranty-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.warranty-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.warranty-btn__icon svg {
  width: 18px;
  height: 18px;
}

.warranty-btn__arrow {
  font-size: 16px;
  transition: transform 180ms ease;
}

.warranty-btn:hover .warranty-btn__arrow {
  transform: translateX(3px);
}

.warranty-btn--primary {
  background: var(--war-gold-light);
  color: var(--war-ink-soft);
  border: 1.5px solid var(--war-gold);
  box-shadow: 0 4px 16px rgba(245, 217, 138, 0.4);
}

.warranty-btn--primary:hover {
  background: var(--war-gold-hover);
  border-color: var(--war-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 217, 138, 0.55);
}

.warranty-btn--secondary {
  background: #ffffff;
  color: var(--war-gold-strong);
  border: 1.5px solid var(--war-gold);
}

.warranty-btn--secondary:hover {
  background: var(--war-gold-light);
  color: var(--war-ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 217, 138, 0.35);
}

.warranty-hero__visual {
  width: 100%;
}

.warranty-hero__image-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--war-border);
  background: var(--war-surface);
  box-shadow: 0 14px 36px rgba(26, 21, 16, 0.07);
}

.warranty-hero__image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* --------------------------------------------------------------------------
   2. Commitments Grid (4 Columns)
   -------------------------------------------------------------------------- */
.warranty-commitments {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--war-surface);
  border-bottom: 1px solid var(--war-line);
}

.warranty-commitments__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.warranty-commitment-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--war-border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.03);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.warranty-commitment-card:hover {
  transform: translateY(-3px);
  border-color: var(--war-gold);
  box-shadow: 0 10px 28px rgba(26, 21, 16, 0.06);
}

.warranty-commitment-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--war-gold-soft);
  border: 1px solid var(--war-gold-border);
  color: var(--war-gold-dark);
  margin-bottom: 18px;
}

.warranty-commitment-card__icon svg {
  width: 22px;
  height: 22px;
}

.warranty-commitment-card__title {
  margin: 0 0 8px;
  color: var(--war-ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.warranty-commitment-card__desc {
  margin: 0;
  color: var(--war-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. Coverage Matrix (2 Cards)
   -------------------------------------------------------------------------- */
.warranty-coverage {
  padding: clamp(64px, 7vw, 96px) 0;
  background: #ffffff;
  border-bottom: 1px solid var(--war-line);
}

.warranty-section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.warranty-section-eyebrow {
  margin: 0 0 10px;
  color: var(--war-gold-dark);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.warranty-section-title {
  margin: 0 0 12px;
  color: var(--war-ink);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.warranty-section-lead {
  margin: 0;
  color: var(--war-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.warranty-coverage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 32px);
}

.warranty-coverage-card {
  display: flex;
  flex-direction: column;
  background: var(--war-surface);
  border: 1px solid var(--war-border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 36px);
  box-shadow: 0 4px 20px rgba(26, 21, 16, 0.03);
}

.warranty-coverage-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--war-border);
}

.warranty-coverage-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--war-gold-soft);
  border: 1px solid var(--war-gold-border);
  color: var(--war-gold-dark);
  flex-shrink: 0;
}

.warranty-coverage-card__icon svg {
  width: 22px;
  height: 22px;
}

.warranty-coverage-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--war-gold-soft);
  border: 1px solid var(--war-gold-border);
  color: var(--war-gold-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.warranty-coverage-card__title {
  margin: 0;
  color: var(--war-ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.warranty-coverage-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.warranty-coverage-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--war-ink);
  line-height: 1.5;
}

.warranty-coverage-card__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--war-gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.warranty-coverage-card__check svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   4. Claim Steps (4 Columns + Notice Box)
   -------------------------------------------------------------------------- */
.warranty-claim {
  padding: clamp(64px, 7vw, 96px) 0;
  background: var(--war-surface);
  border-bottom: 1px solid var(--war-line);
}

.warranty-claim__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
  margin-bottom: 32px;
}

.warranty-step-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--war-border);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.03);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.warranty-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--war-gold);
  box-shadow: 0 8px 24px rgba(26, 21, 16, 0.06);
}

.warranty-step-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.warranty-step-card__num {
  font-size: 24px;
  font-weight: 850;
  color: var(--war-gold-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}

.warranty-step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--war-gold-soft);
  border: 1px solid var(--war-gold-border);
  color: var(--war-gold-dark);
}

.warranty-step-card__icon svg {
  width: 20px;
  height: 20px;
}

.warranty-step-card__title {
  margin: 0 0 8px;
  color: var(--war-ink);
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.warranty-step-card__desc {
  margin: 0;
  color: var(--war-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Notice Box */
.warranty-claim__notice {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--war-gold-soft);
  border: 1.5px solid var(--war-gold-border);
  border-radius: 18px;
  padding: 18px 24px;
}

.warranty-claim__notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--war-gold-border);
  color: var(--war-gold-dark);
  flex-shrink: 0;
}

.warranty-claim__notice-icon svg {
  width: 20px;
  height: 20px;
}

.warranty-claim__notice-text strong {
  display: block;
  color: var(--war-ink);
  font-size: 14.5px;
  font-weight: 850;
}

.warranty-claim__notice-text p {
  margin: 2px 0 0;
  color: var(--war-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. FAQ Section
   -------------------------------------------------------------------------- */
.warranty-faq {
  padding: clamp(64px, 7vw, 96px) 0;
  background: #ffffff;
}

.warranty-faq__container {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
}

.warranty-faq__intro {
  position: sticky;
  top: 96px;
}

.warranty-faq__eyebrow {
  margin: 0 0 10px;
  color: var(--war-gold-dark);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.warranty-faq__title {
  margin: 0 0 12px;
  color: var(--war-ink);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.warranty-faq__lead {
  margin: 0;
  color: var(--war-muted);
  font-size: 15px;
  line-height: 1.6;
}

.warranty-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.warranty-faq__item {
  border: 1px solid var(--war-border);
  border-radius: 16px;
  background: var(--war-surface);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.warranty-faq__item[open] {
  border-color: var(--war-gold);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(26, 21, 16, 0.05);
}

.warranty-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--war-ink);
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.35;
  user-select: none;
}

.warranty-faq__summary::-webkit-details-marker {
  display: none;
}

.warranty-faq__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--war-subtle);
  transition: transform 200ms ease, color 200ms ease;
  flex-shrink: 0;
}

.warranty-faq__chevron svg {
  width: 18px;
  height: 18px;
}

.warranty-faq__item[open] .warranty-faq__chevron {
  transform: rotate(180deg);
  color: var(--war-gold-dark);
}

.warranty-faq__answer {
  padding: 0 22px 20px;
  color: var(--war-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.warranty-faq__answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .warranty-hero__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .warranty-hero__content {
    max-width: 100%;
  }
  .warranty-commitments__grid,
  .warranty-claim__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .warranty-coverage__grid,
  .warranty-faq__container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .warranty-faq__intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .warranty-hero {
    padding: 36px 0 40px;
  }
  .warranty-hero__title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }
  .warranty-hero__desc {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
  .warranty-hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .warranty-btn {
    width: 100%;
  }
  .warranty-commitments__grid,
  .warranty-claim__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .warranty-coverage-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .warranty-step-card {
    padding: 20px;
    border-radius: 16px;
  }
  .warranty-claim__notice {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
  }
  .warranty-faq__summary {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .warranty-faq__answer {
    padding: 0 18px 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warranty-btn,
  .warranty-btn__arrow,
  .warranty-commitment-card,
  .warranty-step-card,
  .warranty-faq__item,
  .warranty-faq__chevron {
    transition: none !important;
  }
}
