/* === CSS Custom Properties === */
:root {
  /* Brand core */
  --brand-blue: #0088eb;
  --brand-blue-dark: #006bbf;
  --brand-green: #1db97d;
  --brand-green-dark: #189e6b;
  --brand-green-warm: #6da73b;

  /* Blue scale */
  --blue-50: #f7fbfe;
  --blue-100: #f1f9ff;
  --blue-200: #dbeefc;
  --blue-300: #b0daf9;
  --blue-500: #33a0ef;
  --blue-600: #0088eb;
  --blue-700: #007cd6;
  --blue-800: #0061a7;

  /* Green scale */
  --green-100: #baefda;
  --green-200: #98e7c9;
  --green-300: #6adcb0;
  --green-400: #4dd5a1;
  --green-500: #20cb89;
  --green-600: #1db97d;
  --green-700: #179061;
  --green-800: #12704b;

  /* Status */
  --danger: #ef4444;
  --warning: #fdb541;

  /* Text / background / borders */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-primary: #f5f7fa;
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --border-light: #cbd5e1;

  /* Mapped tokens for existing components */
  --accent: var(--brand-blue);
  --accent-dark: var(--brand-blue-dark);
  --shadow-card: 0 12px 40px rgba(0, 136, 235, 0.12);
  --shadow-btn: 0 8px 24px rgba(0, 136, 235, 0.35);
  --shadow-btn-hover: 0 12px 35px rgba(0, 136, 235, 0.5);
  --feature-bg: var(--blue-100);
  --step-bg: var(--brand-blue);
  --partner-bg: var(--blue-50);
  --footer-bg: var(--text-primary);
  --footer-text: var(--text-muted);
}

/* === Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Base === */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: "Tajawal", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.3px;
}

main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* === Entry Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.25s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.55s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.7s;
}
.fade-in:nth-child(6) {
  animation-delay: 0.85s;
}
.fade-in:nth-child(7) {
  animation-delay: 1s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    animation: none;
  }
}

/* === Hero Card === */
.container {
  max-width: 420px;
  margin: 35px auto 50px;
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(0, 136, 235, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.image {
  background:
    linear-gradient(135deg, rgba(0, 136, 235, 0.08), rgba(29, 185, 125, 0.08)),
    url("../assets/images/MotorInsurance.png") center/cover no-repeat;
  height: 280px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
}

.content {
  padding: 40px 30px;
}

h1 {
  color: var(--text-primary);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.verified-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 20px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* === CTA Button === */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 16px 40px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-btn-hover);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 12px;
}

/* === Sections === */
.section {
  max-width: 700px;
  margin: 55px auto;
  text-align: center;
}

.section h2 {
  color: var(--text-primary);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Steps Grid === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--step-bg);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.step-card h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Partners Grid === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.partner-logo {
  background: var(--feature-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  transition: transform 0.2s ease;
}

.partner-logo:hover {
  transform: scale(1.03);
}

/* === Trust Strip === */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* === FAQ Section === */
.faq-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0;
  text-align: right;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary::after {
  content: "\25BC";
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 136, 235, 0.12);
  border-inline-start-width: 3px;
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.faq-cta {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-cta:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  padding: 40px 30px;
  color: #fff;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

.cta-section .btn {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* === Discount Section === */
.discount-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.discount-title {
  margin-bottom: 0;
}

.discount-note {
  background: #fff7e6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.discount-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.discount-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.discount-card:hover {
  box-shadow: 0 6px 20px rgba(0, 136, 235, 0.14);
  border-color: var(--accent);
}

.discount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.discount-header h3 {
  font-size: 1rem;
  color: var(--text-primary);
}

.tag {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.discount-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* === Site Footer === */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  color: var(--blue-100);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue-500);
  text-decoration: underline;
}

.footer-separator {
  color: var(--footer-text);
  font-size: 12px;
}

.site-footer p {
  color: var(--footer-text);
  margin-bottom: 4px;
  font-size: 13px;
}

/* === Legal Pages === */
.legal-page {
  padding: 0;
}

.legal-page .content {
  padding: 40px 30px;
}

.legal-page h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.legal-page ul {
  padding-right: 20px;
  margin-bottom: 12px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 36px;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 600px) {
  main {
    padding: 12px;
  }

  .container {
    border-radius: 16px;
  }

  .image {
    height: 200px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }

  .faq-item summary {
    padding: 14px 16px;
  }

  .faq-item summary h3 {
    font-size: 0.88rem;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  .cta-section {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 16px;
  }
}

/* === Trust Badges Section === */
.trust-badges-section {
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.badge-item {
  background: var(--bg-card);
  padding: 25px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 136, 235, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 136, 235, 0.15);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* === Testimonials Section === */
.testimonials-section {
  padding: 40px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border-right: 4px solid var(--brand-green);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 136, 235, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.testimonial-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-savings {
  background: var(--green-100);
  color: var(--brand-green);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.testimonial-stars {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* === Mobile Testimonials === */
@media (max-width: 768px) {
  .badges-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* === Verified Badge === */
.verified-badge {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

/* === Enhanced Animations === */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 136, 235, 0.3);
  }
  50% {
    box-shadow: 0 12px 35px rgba(0, 136, 235, 0.5);
  }
}

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

/* === Enhanced Cards === */
.feature-card,
.step-card,
.discount-card,
.testimonial-card,
.badge-item {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(241, 249, 255, 1),
    rgba(186, 239, 218, 0.08)
  );
  border: 1px solid rgba(0, 136, 235, 0.12);
  box-shadow: 0 6px 20px rgba(0, 136, 235, 0.08);
}

.feature-card:hover {
  transform: translateY(-14px) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 136, 235, 0.18);
  border-color: rgba(0, 136, 235, 0.25);
}

.step-card {
  background: linear-gradient(135deg, #ffffff, rgba(0, 136, 235, 0.02));
  border: 1px solid rgba(0, 136, 235, 0.1);
  box-shadow: 0 6px 20px rgba(0, 136, 235, 0.08);
}

.step-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 136, 235, 0.16);
  border-color: rgba(0, 136, 235, 0.2);
}

.discount-card {
  box-shadow: 0 8px 24px rgba(0, 136, 235, 0.1);
  border: 1px solid rgba(0, 136, 235, 0.12);
  background: linear-gradient(135deg, #ffffff, rgba(29, 185, 125, 0.03));
}

.discount-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 136, 235, 0.16);
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff, rgba(0, 136, 235, 0.02));
  border: 1px solid rgba(0, 136, 235, 0.1);
  box-shadow: 0 8px 24px rgba(0, 136, 235, 0.08);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 136, 235, 0.16);
  border-color: rgba(0, 136, 235, 0.2);
}

.badge-item {
  background: linear-gradient(135deg, #ffffff, rgba(0, 136, 235, 0.04));
  border: 1px solid rgba(0, 136, 235, 0.12);
  box-shadow: 0 6px 20px rgba(0, 136, 235, 0.08);
}

.badge-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 136, 235, 0.18);
  border-color: rgba(0, 136, 235, 0.2);
}

/* === Enhanced Button === */
.btn {
  letter-spacing: 0.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 136, 235, 0.35);
}

.btn:hover {
  box-shadow: 0 14px 45px rgba(0, 136, 235, 0.5);
  letter-spacing: 0.7px;
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
  letter-spacing: 0.6px;
  box-shadow: 0 12px 32px rgba(0, 136, 235, 0.4);
}

.btn-large:hover {
  box-shadow: 0 16px 50px rgba(0, 136, 235, 0.55);
}

/* === Enhanced Partner Badges === */
.partner-logo {
  background: linear-gradient(
    135deg,
    rgba(241, 249, 255, 1),
    rgba(186, 239, 218, 0.06)
  );
  border: 1px solid rgba(0, 136, 235, 0.12);
  box-shadow: 0 4px 12px rgba(0, 136, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.partner-logo:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 136, 235, 0.16);
  border-color: rgba(0, 136, 235, 0.2);
}

/* === Improved Step Numbers === */
.step-number {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #0088eb, #1db97d);
  box-shadow: 0 10px 30px rgba(0, 136, 235, 0.35);
  transition: all 0.4s ease;
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 16px 45px rgba(0, 136, 235, 0.5);
}

/* === Discount Cards Enhanced === */
.discount-header {
  transition: all 0.3s ease;
}

.discount-link:hover .discount-header h3 {
  color: var(--brand-blue);
}

/* === Trust Badges Container === */
.trust-badges-section {
  background: linear-gradient(
    135deg,
    rgba(241, 249, 255, 1),
    rgba(186, 239, 218, 0.1)
  );
  border: 1px solid rgba(0, 136, 235, 0.1);
}
