/* ============================================================
   Emfara — shared stylesheet
   Design system (via UI/UX Pro Max):
   - Palette: B2B Service navy + trust-blue CTA + restrained gold
   - Type: "Corporate Trust" — Lexend (headings) + Source Sans 3 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --navy:        #1E2A4A;   /* logo navy / primary */
  --navy-deep:   #141C32;   /* darker surfaces */
  --navy-800:    #243154;
  --blue:        #2563EB;   /* trust-blue CTA */
  --blue-600:    #1D4ED8;
  --blue-100:    #E4ECFC;
  --gold:        #B5852F;   /* restrained authority accent */

  /* Neutrals */
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --ink:         #1E293B;   /* body text */
  --ink-strong:  #0F172A;   /* headings */
  --muted:       #64748B;
  --border:      #E2E8F0;
  --border-soft: #EEF2F7;

  /* Feedback */
  --danger:      #DC2626;
  --success:     #15803D;

  /* Type */
  --f-head: 'Lexend', system-ui, sans-serif;
  --f-body: 'Source Sans 3', system-ui, sans-serif;

  /* Layout */
  --max:    1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 18px rgba(15,23,42,.08);
  --shadow-lg: 0 18px 48px rgba(15,23,42,.14);
  --ring: 0 0 0 3px rgba(37,99,235,.35);

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink-strong);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.eyebrow {
  font-family: var(--f-head);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--gold); display:inline-block; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-inline: auto; }
.center .eyebrow { display:flex; justify-content:center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; min-height: 48px;
  border-radius: 10px; border: 1px solid transparent;
  background: var(--bg); color: #fff;
  cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue-600); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37,99,235,.30); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--ghost {
  background: transparent; color: var(--ink-strong);
  border-color: var(--border);
}
.btn--ghost:hover { background: #fff; border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef2f7; box-shadow: none; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,250,252,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-head); font-weight: 700; font-size: 1.28rem; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  font-family: var(--f-head); font-weight: 500; font-size: .98rem;
  color: var(--ink); padding: 9px 14px; border-radius: 8px;
}
.nav-links a:hover { background: #eef2f7; color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display:none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(37,99,235,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.hero .wrap { padding-top: 92px; padding-bottom: 92px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--blue-600); }
.hero p.lede { font-size: 1.22rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.hero-note svg { width: 18px; height: 18px; color: var(--success); flex: none; }

/* Hero visual — abstract "workflow" panel (no product specifics) */
.hero-visual {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius); padding: 26px; color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.hv-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.hv-dot { display:flex; gap:6px; }
.hv-dot i { width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,.22); }
.hv-tag { font-family: var(--f-head); font-size: .72rem; letter-spacing:.12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hv-row {
  display:flex; align-items:center; gap: 13px;
  padding: 13px 15px; margin-bottom: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
}
.hv-row:last-child { margin-bottom: 0; }
.hv-ico { width: 34px; height: 34px; border-radius: 9px; flex:none; display:grid; place-items:center; background: rgba(37,99,235,.22); color:#bfdbfe; }
.hv-ico svg { width: 18px; height: 18px; }
.hv-row.ok .hv-ico { background: rgba(21,128,61,.22); color:#86efac; }
.hv-meta b { font-family: var(--f-head); font-weight: 600; font-size: .95rem; display:block; }
.hv-meta span { font-size: .82rem; color: rgba(255,255,255,.55); }
.hv-state { margin-left:auto; font-family: var(--f-head); font-size: .72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding: 4px 10px; border-radius: 999px; }
.hv-state.done { background: rgba(21,128,61,.2); color:#86efac; }
.hv-state.live { background: rgba(37,99,235,.22); color:#bfdbfe; }
.hv-state.wait { background: rgba(181,133,47,.22); color:#fcd9a0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust .wrap { padding-block: 30px; }
.trust-inner { display:flex; align-items:center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-family: var(--f-head); font-size: .82rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.trust-tags { display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; }
.tag {
  font-family: var(--f-head); font-weight: 500; font-size: .92rem; color: var(--navy);
  background: #f1f5f9; border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e0ec; }
.card .ico-box {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-100); color: var(--blue-600);
}
.card .ico-box svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Principles band ---------- */
.band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #9ec1ff; }
.band .lede { color: rgba(255,255,255,.72); }
.principles { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 46px; }
.principle { padding-top: 22px; border-top: 2px solid rgba(255,255,255,.16); }
.principle .num { font-family: var(--f-head); font-size: .8rem; font-weight:600; letter-spacing:.12em; color:#9ec1ff; }
.principle h3 { font-size: 1.35rem; margin: 8px 0 8px; }
.principle p { color: rgba(255,255,255,.66); margin: 0; font-size: .98rem; }

/* ---------- Split / about ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.stat-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stat { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--f-head); font-size: 2.1rem; font-weight:700; color: var(--navy); display:block; line-height:1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style:none; padding:0; margin: 20px 0 0; display:grid; gap: 14px; }
.checklist li { display:flex; gap: 12px; align-items:flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--success); flex:none; margin-top: 2px; }
.checklist b { font-family: var(--f-head); font-weight:600; color: var(--ink-strong); }
.checklist p { margin: 2px 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA section ---------- */
.cta-box {
  background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 70%);
  border-radius: 20px; padding: 56px; color:#fff; text-align:center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color:#fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.cta-box p { color: rgba(255,255,255,.82); max-width: 52ch; margin-inline:auto; margin-bottom: 26px; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:start; }
.form-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--f-head); font-weight:600; font-size:.92rem; color: var(--ink-strong); margin-bottom: 7px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width:100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  background: #fff; border:1px solid var(--border); border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height:1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--blue); box-shadow: var(--ring);
}
.field .help { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap: 18px; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display:none; align-items:flex-start; gap: 12px;
  background: #f0fdf4; border:1px solid #bbf7d0; color:#14532d;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.form-success.show { display:flex; }
.form-success svg { width:22px; height:22px; color: var(--success); flex:none; margin-top:1px; }
.form-failure {
  display:none; align-items:flex-start; gap: 12px;
  background: #fef2f2; border:1px solid #fecaca; color:#7f1d1d;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
}
.form-failure.show { display:flex; }
.form-failure svg { width:22px; height:22px; color: var(--danger); flex:none; margin-top:1px; }
.form-failure a { color:#7f1d1d; font-weight:600; text-decoration: underline; }

.contact-aside .info-block { padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-aside .info-block:first-child { padding-top: 0; }
.contact-aside h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-aside p { color: var(--muted); margin: 0; font-size: .98rem; }
.contact-aside a { font-weight: 600; }

/* ---------- Page header (info/contact) ---------- */
.page-head {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(37,99,235,.10), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--border-soft);
}
.page-head .wrap { padding-block: 72px; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-head .lede { font-size: 1.18rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); }
.site-footer .wrap { padding-block: 56px 30px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { color:#fff; margin-bottom: 14px; }
.foot-brand p { font-size: .96rem; color: rgba(255,255,255,.6); max-width: 34ch; }
.foot-col h4 { color:#fff; font-family: var(--f-head); font-size: .82rem; letter-spacing:.1em; text-transform: uppercase; margin-bottom: 14px; font-weight:600; }
.foot-col a { display:block; color: rgba(255,255,255,.66); padding: 6px 0; font-size: .96rem; }
.foot-col a:hover { color:#fff; text-decoration:none; }
.foot-bottom {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9rem; color: rgba(255,255,255,.5);
}
.foot-bottom a { color: rgba(255,255,255,.6); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 30px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .nav-links.open .nav-cta { margin: 8px 0 0; }
  .nav-links.open .btn { width: 100%; justify-content: center; }
  .nav-toggle {
    display: inline-grid; place-items:center; margin-left:auto;
    width: 44px; height: 44px; border:1px solid var(--border); border-radius: 10px;
    background:#fff; cursor:pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }
  .grid-3, .grid-4, .grid-2, .field-row, .stat-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 38px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
