/* ===== Design tokens ===== */
:root {
  --navy: #1B2A5B;
  --navy-deep: #131F45;
  --accent: #2E63E7;
  --accent-hover: #2554C7;
  --text: #1A2033;
  --muted: #5A6478;
  --bg: #FFFFFF;
  --bg-alt: #F4F6FB;
  --border: #E2E7F2;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(27, 42, 91, .08);
  --container: 1100px;
}

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

* { margin: 0; }

html { scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

a { color: var(--accent); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.6rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 99, 231, .25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(46, 99, 231, .3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .1em;
  color: var(--navy);
}

.brand-text small {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .37em;
  color: var(--accent);
}

.site-nav { margin-left: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .7rem;
}

.header-cta { padding: .6rem 1.2rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding-block: 104px 88px;
  background:
    radial-gradient(700px 500px at 88% -10%, rgba(46, 99, 231, .32), transparent 70%),
    radial-gradient(500px 400px at -5% 110%, rgba(46, 99, 231, .14), transparent 65%),
    linear-gradient(160deg, #0F1B3D 0%, #1B2A5B 60%, #21336A 100%);
}

.eyebrow {
  color: #8FB0F7;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 820px;
  margin-bottom: 22px;
}

.lead {
  color: #B9C3DC;
  font-size: 1.15rem;
  max-width: 640px;
}

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

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  list-style: none;
  padding: 28px 0 0;
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #C7D0E5;
  font-size: .95rem;
  font-weight: 500;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-trust svg {
  color: #6B93F5;
  flex-shrink: 0;
}

/* ===== Sections ===== */
.section { padding-block: 88px; }

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

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6B93F5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(46, 99, 231, .4);
}

.card:hover::before { transform: scaleX(1); }

.card-num {
  position: absolute;
  top: 28px;
  right: 26px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(46, 99, 231, .55);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(46, 99, 231, .1);
  color: var(--accent);
}

.card h3 {
  font-size: 1.15rem;
  margin: 16px 0 8px;
}

.card p { color: var(--muted); font-size: .95rem; }

/* ===== Process steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

@media (min-width: 901px) {
  .step { position: relative; }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 60px;
    right: -12px;
    height: 2px;
    background: var(--border);
  }
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }

.step p { color: var(--muted); font-size: .95rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p + p { margin-top: 1em; }

.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--navy);
  margin-top: 30px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.fact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.fact-card dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 14px;
}

.fact-card dt:first-child { margin-top: 0; }

.fact-card dd { color: var(--muted); margin: 0; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  background:
    radial-gradient(400px 300px at 90% -20%, rgba(46, 99, 231, .3), transparent 70%),
    linear-gradient(160deg, #13224E 0%, #1B2A5B 100%);
  border-radius: var(--radius);
  padding: 34px 30px;
  color: #C7D0E5;
  align-self: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-item svg { color: #6B93F5; flex-shrink: 0; }

.contact-item a { color: #fff; font-weight: 600; text-decoration: none; }

.contact-item a:hover { color: #8FB0F7; }

.contact-item span { color: #fff; font-weight: 600; }

.contact-note {
  color: #98A5C4;
  font-size: .9rem;
  margin-top: 28px;
}

.contact-note a { color: #C7D0E5; }

#contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 99, 231, .15);
}

.form-status { font-weight: 600; margin-top: 14px; }

.form-status.ok { color: #1B7F4B; }

.form-status.err { color: #C0392B; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #AAB4CE;
  padding-block: 56px 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-chip {
  display: inline-flex;
  padding: 5px;
  background: #fff;
  border-radius: 8px;
}

.brand-text-light { color: #fff; }

.brand-text-light small { color: #6B93F5; }

.footer-legal { font-size: .95rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-block: 20px;
}

.footer-nav a {
  color: #AAB4CE;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}

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

.footer-copy { font-size: .85rem; }

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav { margin-left: 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }

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

@media (max-width: 800px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }

  .hero { padding-block: 64px; }

  .steps { grid-template-columns: 1fr; }

  .section { padding-block: 64px; }
}
