/* ==========================================================================
   ISACO Warranty Page — hand-coded replacement for the Elementor version
   ========================================================================== */

.isaco-warranty {
  --iw-blue-dark: #16357a;
  --iw-blue: #1e4fc4;
  --iw-blue-light: #2f6df0;
  --iw-yellow: #ffc531;
  --iw-orange: #f2792c;
  --iw-text: #1c2433;
  --iw-text-soft: #4b5566;
  --iw-border: #e6e9f0;
  --iw-bg: #f6f8fc;
  --iw-radius: 14px;
  --iw-radius-sm: 8px;
  --iw-shadow: 0 10px 30px rgba(22, 53, 122, 0.08);

  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
  color: var(--iw-text);
  line-height: 1.9;
}

.isaco-warranty * {
  box-sizing: border-box;
}

.isaco-warranty img {
  max-width: 100%;
  display: block;
}

.isaco-warranty .iw-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 20px;
}

.isaco-warranty a {
  color: white;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.iw-hero {
  background: linear-gradient(135deg, var(--iw-blue) 0%, var(--iw-blue-dark) 100%);
  color: #fff;
  border-radius: var(--iw-radius);
  margin: 28px auto 0;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.iw-hero-badge {
  order: 2;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.iw-hero-text {
  order: 1;
}

.iw-hero-eyebrow {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 10px;
}

.iw-hero-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
  color: white;
}

.iw-hero-steps {
  order: 3;
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 26px;
  margin-bottom: 20px;
}

.iw-hero-steps-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--iw-radius-sm);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.iw-hero-steps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.iw-hero-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.iw-hero-steps li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ---------- App download banner ---------- */

.iw-apps {
  background: linear-gradient(135deg, var(--iw-blue) 0%, var(--iw-blue-dark) 100%);
  color: #fff;
  border-radius: var(--iw-radius);
  margin: 20px auto;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.iw-apps-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 26px;
  line-height: 1.6;
  color: white;
}


.iw-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.iw-apps-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--iw-text);
  border-radius: var(--iw-radius-sm);
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.iw-apps-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.iw-apps-grid img {
  width: 36px;
  height: 36px;
}

.iw-apps-phone {
  width: 220px;
  justify-self: center;
}

/* ---------- Generic content section ---------- */

.iw-section {
  padding: 46px 0;
}

.iw-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--iw-blue);
  margin: 0 0 16px;
}

.iw-section p {
  color: var(--iw-text-soft);
  font-size: 15.5px;
  margin: 0 0 16px;
}

.iw-section strong {
  color: var(--iw-text);
}

/* Numbered activation steps */

.iw-steps {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.iw-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.iw-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--iw-blue);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iw-step-title {
  font-weight: 800;
  font-size: 16.5px;
  margin: 0 0 6px;
}

.iw-step p {
  margin: 0;
}

.iw-note {
  background: var(--iw-bg);
  border-radius: var(--iw-radius-sm);
  border-inline-start: 4px solid var(--iw-orange);
  padding: 16px 18px;
  margin-top: 24px;
  font-size: 14.5px;
  color: var(--iw-text-soft);
}

.iw-note strong {
  color: var(--iw-orange);
}

/* Bullet lists (why it matters / docs / errors) */

.iw-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.iw-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--iw-text-soft);
}

.iw-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iw-blue);
  margin-top: 9px;
  flex-shrink: 0;
}

.iw-list.iw-list-errors li::before {
  background: var(--iw-orange);
}

/* ---------- Shop CTA ---------- */

.iw-shop {
  background: var(--iw-bg);
  border-radius: var(--iw-radius);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.iw-shop-btn {
  background: var(--iw-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.iw-shop-btn:hover {
  background: var(--iw-blue-dark);
}

.iw-shop-text strong {
  color: var(--iw-blue);
}

.iw-shop-text p {
  margin: 6px 0 0;
}

/* ---------- FAQ accordion ---------- */

.iw-faq-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--iw-blue);
  margin: 0 0 22px;
}

.iw-faq-item {
  border-bottom: 1px solid var(--iw-border);
}

.iw-faq-question {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--iw-text);
  text-align: right;
}

.iw-faq-question .iw-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.iw-faq-item[data-open="true"] .iw-faq-icon {
  transform: rotate(180deg);
}

.iw-faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.iw-faq-item[data-open="true"] .iw-faq-answer {
  max-height: 400px;
}

.iw-faq-answer p {
  margin: 0 0 18px;
  color: var(--iw-text-soft);
  font-size: 15px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .iw-hero,
  .iw-apps {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    text-align: center;
  }

  .iw-hero-badge {
    justify-self: center;
    order: 1;
  }

  .iw-hero-text {
    order: 2;
  }

  .iw-hero-title {
    font-size: 24px;
  }

  .iw-apps-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .iw-apps-phone {
    width: 160px;
  }

  .iw-shop {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .iw-shop-btn {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .isaco-warranty * {
    transition: none !important;
  }
}
