/* ==============================================
   SAFARA INSURANCE — DESIGN SYSTEM
   Mobile-first, production-ready
   ============================================== */

:root {
  /* Brand */
  --brand: #4472c4;
  --brand-dark: #203864;
  --brand-light: #cfe0f7;
  --brand-xlight: #eef4fd;

  /* Accent (orange) */
  --accent: #f07030;
  --accent-dark: #d45e20;
  --accent-light: #fff0e8;

  /* Neutrals */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --text: #0d1b2e;
  --text-2: #1a2d4a;
  --muted: #5a6a7a;
  --line: #dce8f0;

  /* Dark surfaces (navy) */
  --dark: #203864;
  --dark-2: #182d52;
  --dark-3: #102040;
  --dark-text: #e8f0fa;
  --dark-muted: #8aabd0;

  /* Layout */
  --max: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 26, 36, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 26, 36, 0.07), 0 1px 3px rgba(15, 26, 36, 0.04);
  --shadow: 0 4px 20px rgba(15, 26, 36, 0.08), 0 2px 6px rgba(15, 26, 36, 0.04);
  --shadow-lg: 0 16px 48px rgba(15, 26, 36, 0.12), 0 4px 16px rgba(15, 26, 36, 0.06);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 180ms;
}

/* ── Reset ──────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

/* ── Layout ─────────────────────────────────── */

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

main section {
  padding: 56px 0;
}

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

/* ── Typography ─────────────────────────────── */

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-2);
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--brand-xlight);
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-light);
}

.kicker--dark {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
  border-color: rgba(147, 197, 253, 0.25);
}

.page-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 32px;
}

/* ── Navigation ─────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--duration) var(--ease);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--brand);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.menu-toggle:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-xlight);
}

.nav-links {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 20px;
  gap: 2px;
  font-size: 0.95rem;
}

.nav-links.open {
  display: flex;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--brand-dark);
}

.nav-link.is-active {
  color: var(--brand-dark);
  font-weight: 600;
}

.nav-cta {
  align-self: stretch;
  text-align: center;
  margin-top: 8px;
}

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(68, 114, 196, 0.3);
}

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

.btn-secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-xlight);
  box-shadow: none;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Focus */

.btn:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(68, 114, 196, 0.4);
  outline-offset: 3px;
}

/* ── Cards ──────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

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

.card > :last-child,
.section-intro > :last-child {
  margin-bottom: 0;
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

.card--accent {
  border-left: 3px solid var(--brand);
}

/* ── Grid ───────────────────────────────────── */

.grid {
  display: grid;
  gap: 24px;
}

/* ── Hero (Dark) ────────────────────────────── */

.hero {
  background: var(--dark);
  color: var(--dark-text);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 60% at 70% 50%,
      rgba(68, 114, 196, 0.22) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 80% at -10% 100%,
      rgba(240, 112, 48, 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero h1 {
  color: #fff;
}

.hero .lead {
  color: var(--dark-muted);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* ── Stats strip ────────────────────────────── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}

.stat-item {
  background: var(--surface);
  padding: 20px 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Why card ───────────────────────────────── */

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
}

.why-card h3 {
  color: #fff;
  margin-bottom: 14px;
}

.why-card .list {
  color: var(--dark-muted);
}

.why-card .list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0;
}

.why-card .list li:last-child {
  border-bottom: none;
}

/* ── Trust strip ────────────────────────────── */

.trust-strip {
  background: var(--brand-xlight);
  border-top: 1px solid var(--brand-light);
  border-bottom: 1px solid var(--brand-light);
  padding: 18px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.trust-icon {
  width: 18px;
  height: 18px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Step cards ─────────────────────────────── */

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-xlight);
  border: 1.5px solid var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ── CTA Section ────────────────────────────── */

.cta-section {
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  color: #fff;
  max-width: 560px;
  margin: 0 auto 16px;
}

.cta-section p {
  color: var(--dark-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ── Lists ──────────────────────────────────── */

.list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.55;
}

.list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--brand-xlight);
  border: 1px solid var(--brand-light);
  border-radius: 50%;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── Forms ──────────────────────────────────── */

.form-field {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c0c8d0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.15);
}

textarea {
  min-height: 128px;
  resize: vertical;
}

/* ── FAQ Accordion ──────────────────────────── */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.1);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
}

.faq-trigger:hover {
  color: var(--brand-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-xlight);
  border: 1px solid var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.faq-body {
  display: none;
  padding: 0 22px 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-body p {
  margin: 0;
}

.faq-item.open .faq-body {
  display: block;
}

/* ── Feature split layout ───────────────────── */

.feature-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-text {
  flex: 1;
}

.feature-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-photo {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (min-width: 800px) {
  .feature-split {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .feature-split .feature-media {
    min-width: 340px;
    max-width: 420px;
  }
}

/* ── Lifestyle banner ───────────────────────── */

.lifestyle-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.lifestyle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(32, 56, 100, 0.72) 0%,
    rgba(32, 56, 100, 0.2) 60%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.lifestyle-tagline {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 480px;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 700px) {
  .lifestyle-banner {
    height: 400px;
  }
}

/* ── Accent button ──────────────────────────── */

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

.btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(240, 112, 48, 0.3);
}

/* ── Hero image ─────────────────────────────── */

.hero-visual {
  display: none;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* ── Brand logo ─────────────────────────────── */

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

/* ── Discount badge ─────────────────────────── */

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(240, 112, 48, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ── Contact ─────────────────────────────────── */

.contact-list p:last-child {
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────── */

footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 56px 0 40px;
  margin-top: 0;
}

.footer-layout {
  display: grid;
  gap: 32px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-text);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--dark-muted);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--dark-text);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.small {
  font-size: 0.83rem;
  color: var(--dark-muted);
  line-height: 1.6;
}

.footer-note {
  max-width: 720px;
}

/* ── Responsive ─────────────────────────────── */

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

@media (min-width: 700px) {
  main section {
    padding: 80px 0;
  }

  .hero {
    padding: 96px 0 88px;
  }

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

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

  .nav-cta {
    align-self: auto;
    margin-top: 0;
  }
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 4px;
  }

  .nav-link {
    padding: 6px 10px;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: var(--surface-2);
  }

  .nav-link.is-active {
    background: var(--brand-xlight);
    color: var(--brand-dark);
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .hero-inner {
    max-width: 820px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
