﻿/* ============================================================
   ETASOFT – site.css  (light gray / light blue design system)
   ============================================================ */

:root {
  --bg:           #f8fafd;
  --bg-white:     #ffffff;
  --text:         #0f1c2e;
  --muted:        #5a6a7e;
  --line:         #dde3ee;
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent:       #38bdf8;
  --surface:      #f1f5fb;
  --surface-dark: #e4ecf7;
  --shadow-sm:    0 2px 8px rgba(15,28,46,.07);
  --shadow-md:    0 6px 24px rgba(15,28,46,.10);
  --shadow-lg:    0 12px 40px rgba(15,28,46,.13);
  --radius:       0.75rem;
  --radius-lg:    1.25rem;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    /* Add this line to prevent layout shift between pages */
    scrollbar-gutter: stable;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ────────────────────────────────────────────────── */
.wrapper {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ── Sticky header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 36px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  transition: color .15s, background .15s;
}

.site-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .12s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(37,99,235,.38);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--bg-white);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; margin-top: 0; }

h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Section helpers ───────────────────────────────────────── */
.section-alt   { background: var(--surface); padding: 72px 0; }
.section-white { background: var(--bg-white); padding: 72px 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

/* ── Grids ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #f0f9ff 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(37,99,235,.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-accent { color: var(--primary); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
}

.chip i { color: #22c55e; }

/* ── Feature cards ─────────────────────────────────────────── */
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p  { color: var(--muted); font-size: 0.95rem; margin: 0; }

.feature-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-teal   { background: #ccfbf1; color: #0d9488; }
.icon-indigo { background: #e0e7ff; color: #4f46e5; }

/* ── Benefit cards ─────────────────────────────────────────── */
.benefit-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

.benefit-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.benefit-card p  { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── Benefit cards alt centré ─────────────────────────────────────────── */
.benefit-card-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    gap: 0.6rem;
}

    .benefit-card-alt:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

    .benefit-card-alt .benefit-icon {
        align-self: center;
        margin-bottom: auto;
    }

    .benefit-card-alt .benefit-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        margin-top: 0.15rem;
        width: 100%;
    }

    .benefit-card-alt h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.35rem;
        text-align: center;
    }

    .benefit-card-alt p {
        color: var(--muted);
        font-size: 0.9rem;
        margin: 0;
        text-align: center;
    }

/* ── Step cards (4-in-a-row) ───────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(37,99,235,.07);
  line-height: 1;
  user-select: none;
}

.step-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.step-icon-1 { background: #dbeafe; color: #2563eb; }
.step-icon-2 { background: #d1fae5; color: #059669; }
.step-icon-3 { background: #fef9c3; color: #ca8a04; }
.step-icon-4 { background: #ede9fe; color: #7c3aed; }

.step-card h5 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.step-card p  { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #38bdf8 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-inner p  { color: rgba(255,255,255,.80); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-tagline { margin: 0; font-size: 0.85rem; color: #94a3b8; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps-grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .hero-section { padding: 52px 0 48px; }
  .section-alt, .section-white { padding: 52px 0; }
  .cta-section  { padding: 52px 0; }
}

@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Sticky header ─────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

    /* Keep the navbar background consistent when expanded on mobile */
    .site-header .navbar-collapse {
        background: rgba(255,255,255,0.97);
    }

.site-nav.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.site-nav a,
.site-nav a.nav-link {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    transition: color .15s, background .15s;
}

    .site-nav a:hover,
    .site-nav a.nav-link:hover {
        color: var(--primary);
        background: var(--primary-soft);
    }

/* Stack links vertically on mobile */
@media (max-width: 991.98px) {
    .site-nav.navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav a,
    .site-nav a.nav-link {
        border-radius: 0.5rem;
        padding: 0.6rem 1rem;
    }
}