/* ==========================================================================
   InsureCompare WadMotors — stylesheet
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Design tokens ---- */
:root {
  --color-primary: #10233f;
  --color-primary-dark: #0a1830;
  --color-primary-light: #1e3a63;
  --color-accent: #c89b3c;
  --color-accent-dark: #a67f2c;
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef1f6;
  --color-text: #14213b;
  --color-text-muted: #5b6472;
  --color-border: #e2e6ec;
  --color-success: #2f7d4f;
  --color-whatsapp: #25a35a;

  --font-sans: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-sans-ar: "Segoe UI", Tahoma, "Arial", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 35, 63, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 35, 63, 0.14);

  --container-width: 1180px;
}

html[dir="rtl"] body {
  font-family: var(--font-sans-ar);
}

/* ---- Base ---- */
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 64px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-primary-light);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1f8c4c;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Disclaimer bar ---- */
.disclaimer-bar {
  background: var(--color-primary-dark);
  color: #cdd7e8;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}

.disclaimer-bar strong {
  color: #fff;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-primary);
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name-primary {
  color: var(--color-primary);
}

.brand-name-accent {
  color: var(--color-accent-dark);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
}

.lang-toggle:hover {
  background: var(--color-border);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding-block: 12px;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
}

body.nav-open .mobile-nav {
  display: block;
}

body.nav-open .nav-toggle .icon-menu {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: inline-flex;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding-block: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero .kicker {
  color: #e3c473;
}

.hero-title {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 18px;
}

.hero-subtitle {
  color: #c9d3e4;
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---- Stats ---- */
.stats {
  background: var(--color-surface);
  padding-block: 40px;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 4px;
}

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Feature cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent-dark);
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---- Insurer cards ---- */
.insurer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insurer-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.insurer-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.insurer-name {
  font-size: 16px;
  font-weight: 700;
}

.insurer-tagline {
  font-size: 13px;
  color: var(--color-text-muted);
}

.insurer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.insurer-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

.insurer-card .btn {
  margin-top: auto;
}

.leaving-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  margin-inline: 20px;
}

.cta-band h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.cta-band p {
  color: #c9d3e4;
  margin-bottom: 24px;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item summary {
  padding-block: 16px;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---- Table (compare page) ---- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.compare-table th,
table.compare-table td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  white-space: nowrap;
}

table.compare-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
}

table.compare-table tbody tr:last-child td {
  border-bottom: none;
}

table.compare-table tbody tr:hover {
  background: var(--color-surface-alt);
}

.check-yes {
  color: var(--color-success);
  font-weight: 700;
}

.check-no {
  color: var(--color-text-muted);
}

/* ---- Steps (how it works) ---- */
.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  padding-inline-start: 70px;
}

.step-number {
  position: absolute;
  inset-inline-start: 24px;
  top: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.info-panel {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-panel .icon {
  color: var(--color-accent-dark);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.info-panel h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.info-panel p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-note {
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-success {
  display: none;
  background: #e7f4ec;
  color: var(--color-success);
  border: 1px solid #bfe3cb;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon .icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-method-title {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-method-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-btn:hover {
  background: var(--color-border);
}

.social-btn img {
  width: 20px;
  height: 20px;
}

/* ---- Legal / cookie policy ---- */
.legal-page {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 820px;
  margin-inline: auto;
}

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

.legal-section {
  margin-bottom: 28px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.legal-section p,
.legal-section li {
  color: var(--color-text-muted);
  font-size: 15px;
}

.legal-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-inline-start: 20px;
  list-style: disc;
}

.page-hero {
  background: var(--color-primary-dark);
  color: #fff;
  padding-block: 56px;
  text-align: center;
}

.page-hero .kicker {
  color: #e3c473;
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 12px;
}

.page-hero p {
  color: #c9d3e4;
  max-width: 640px;
  margin-inline: auto;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #c9d3e4;
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #a9b6cc;
  max-width: 300px;
}

.footer-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #a9b6cc;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social .social-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-social .social-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 13px;
  color: #93a1ba;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 13px;
  color: #93a1ba;
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 14px;
}

.whatsapp-float:hover {
  background: #1f8c4c;
}

.whatsapp-float .icon {
  width: 22px;
  height: 22px;
}

.whatsapp-float-label {
  display: none;
}

@media (min-width: 640px) {
  .whatsapp-float-label {
    display: inline;
  }
}

/* ---- Utilities ---- */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

.bg-alt {
  background: var(--color-surface-alt);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- RTL adjustments ---- */
html[dir="rtl"] .faq-item summary::after {
  content: "+";
}

html[dir="rtl"] table.compare-table th,
html[dir="rtl"] table.compare-table td {
  text-align: start;
}
