/* ==========================================================
   public-landing.css — page-specific styles for the Landing page.
   Loaded after base.css and public.css.
   ========================================================== */

:root {
  --navy-light: #1a3160;
  --blue-accent: #2563eb;
  --blue-bright: #3b82f6;
  --pink: #f472b6;
  --teal: #06b6d4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(15,32,68,0.08);
  --shadow-lg: 0 12px 40px rgba(15,32,68,0.14);
}

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.hero-heading .highlight {
  color: var(--blue-accent);
  display: block;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 500;
  max-width: 300px;
  border: 1px solid rgba(15,32,68,0.07);
}

.hero-badge svg { flex-shrink: 0; color: var(--blue-accent); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; width: fit-content; }

.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── CATEGORIES ── */
.section {
  padding: 32px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .section { padding: clamp(20px, 5vw, 32px) clamp(12px, 4vw, 16px); }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.categories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.categories-row::-webkit-scrollbar { display: none; }

.cat-card {
  flex: 0 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 16px;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,32,68,0.06);
  text-decoration: none;
}

@media (max-width: 767px) {
  /* 2×2 grid: equal-width columns, rows stretch cards to equal height */
  .categories-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .cat-card {
    flex: initial;
    width: auto;
    min-width: 0;
    min-height: 120px;         /* keeps all four cards the same height */
    padding: 20px 12px;
    justify-content: center;
    gap: 12px;
  }

  .cat-icon { width: 60px; height: 60px; border-radius: 16px; }
  .cat-label {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.28);
}

/* subtle press feedback */
.cat-card:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  transition-duration: 0.08s;
}

/* keyboard accessibility */
.cat-card:focus-visible {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: var(--shadow), 0 0 0 3px var(--blue-light);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* unified brand-blue tint + blue line icon (inherits currentColor) */
  background: var(--blue-light);
  color: var(--blue-accent);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.10);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.cat-card:hover .cat-icon {
  background: #cfe0fd;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.22);
  transform: scale(1.05);
}

.cat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* desktop categories */
@media (min-width: 768px) {
  .categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: unset;
    padding-bottom: 0;
  }

  .cat-card {
    width: auto;
    padding: 28px 18px;
  }
}

/* honor users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .cat-card,
  .cat-card:hover,
  .cat-card:active,
  .cat-icon,
  .cat-card:hover .cat-icon {
    transform: none;
  }
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,32,68,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .features-grid {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,32,68,0.05);
    gap: 0;
    padding: 4px clamp(8px, 3vw, 18px);
  }

  .feature-card {
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: clamp(14px, 4vw, 18px) clamp(8px, 3vw, 14px);
    gap: 6px;
  }

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

  .feature-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .feature-card:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .feature-icon { width: clamp(36px, 10vw, 44px); height: clamp(36px, 10vw, 44px); }
  .feature-title { font-size: clamp(0.78rem, 3vw, 0.9rem); }
  .feature-desc { font-size: clamp(0.66rem, 2.5vw, 0.78rem); line-height: 1.4; }
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 40px;
}

.how-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  position: relative;
  display: inline-block;
}

.how-header h2::before,
.how-header h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1.5px;
  background: var(--blue-accent);
  opacity: 0.4;
}

.how-header h2::before { right: calc(100% + 14px); }
.how-header h2::after  { left:  calc(100% + 14px); }

/* Horizontal stepper: one number per step, connected by a running line. */
.steps-wrapper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 0;
  position: relative;
  transition: transform 0.2s ease;
}

/* Connecting line runs through the centre of consecutive number circles. */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--blue-accent) 0,
    var(--blue-accent) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.35;
  z-index: 0;
}

.step-marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-light), var(--navy));
  box-shadow: 0 6px 16px rgba(15,32,68,0.22),
              0 0 0 5px var(--bg-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 18ch;
}

/* Hover lifts the whole step and its number together, reinforcing the pairing. */
.step:hover {
  transform: translateY(-4px);
}

.step:hover .step-number {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(37,99,235,0.32),
              0 0 0 5px var(--bg-card);
}

@media (max-width: 767px) {
  .how-section {
    padding: clamp(20px, 5vw, 32px) clamp(12px, 4vw, 16px) 48px;
  }

  .how-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,32,68,0.05);
    padding: clamp(24px, 6vw, 32px) clamp(16px, 5vw, 24px);
  }

  /* Vertical timeline: number sits beside its step so the pairing is unambiguous. */
  .steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
    padding-bottom: 28px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  /* Vertical connector from this circle down to the next. */
  .step:not(:last-child)::after {
    top: 48px;
    left: 24px;
    width: 2px;
    height: calc(100% - 48px);
  }

  .step:hover {
    transform: none;
  }

  .step-marker {
    flex-shrink: 0;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .step-body {
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0 0;
  }

  .step-icon {
    width: 34px;
    height: 34px;
  }

  .step-title { font-size: 0.92rem; }
  .step-desc { font-size: 0.78rem; max-width: none; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(15,32,68,0.08);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* ── HERO RESPONSIVE ── */
@media (max-width: 767px) {
  .hero { padding: clamp(12px, 4vw, 16px) clamp(12px, 4vw, 16px) 40px; }

  .hero-inner {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: unset;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: clamp(20px, 6vw, 28px) clamp(16px, 5vw, 22px);
    gap: clamp(12px, 3vw, 20px);
    background: linear-gradient(115deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.92) 45%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0) 100%);
  }

  .hero-heading { font-size: clamp(1.6rem, 8vw, 2.4rem); }

  .hero-sub { font-size: clamp(0.82rem, 3.2vw, 0.95rem); max-width: 280px; }

  .hero-badge { font-size: clamp(0.74rem, 2.8vw, 0.82rem); padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px); }

  .btn-primary { font-size: clamp(0.82rem, 3vw, 0.9rem); padding: clamp(12px, 3vw, 14px) clamp(20px, 5vw, 26px); }

  .hero-content::before { top: 24px; left: 24px; }
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* SVG icon utility */
svg { display: block; }
