:root {
  --navy-950: #0a2634;
  --navy-900: #0d3547;
  --navy-800: #164459;
  --navy-700: #235774;
  --steel-600: #3d7793;
  --steel-500: #5c8ea6;
  --steel-400: #7fa9c1;
  --steel-300: #a7c4d5;
  --steel-200: #cddce6;
  --steel-100: #e6eef4;
  --bg: #f3f7fa;
  --bg-soft: #eaf1f6;
  --line: #e2eaf0;
  --ink: #0d2534;
  --ink-soft: #3c4f5c;
  --muted: #6a7d8a;
  --white: #ffffff;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.font-serif { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; }

.hero-serif { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; line-height: 1.05; }

.accent { color: var(--steel-400); font-style: italic; font-family: 'Playfair Display', Georgia, serif; }

.text-navy { color: var(--navy-900); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }

/* Dark hero gradient (subpages) */
.hero-dark {
  background: linear-gradient(115deg, #0a2c3d 0%, #164459 45%, #3d7793 100%);
}

/* Light gradient (home hero + section backgrounds) */
.hero-light {
  background: linear-gradient(180deg, #eef5fa 0%, #f4f8fb 100%);
}

.section-soft {
  background: linear-gradient(180deg, #eaf1f6 0%, #eff5f9 100%);
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 40, 60, 0.03), 0 8px 24px -12px rgba(15, 40, 60, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15,40,60,0.04), 0 20px 40px -18px rgba(15,40,60,0.18);
  border-color: #cfdde7;
}
.card-dark {
  background: linear-gradient(160deg, #0b3346 0%, #0f4059 100%);
  color: #e5eff5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  box-shadow: 0 20px 60px -30px rgba(10, 40, 60, 0.6);
}

/* Icon chip */
.icon-chip {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #4a809a 0%, #3d7793 100%);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(61,119,147,.6);
}
.icon-chip-light {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dbe8f0;
  color: #3d7793;
}
.icon-chip-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dbe8f0;
  color: #3d7793;
}

/* Pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,40,60,0.08);
  font-size: 12px;
  color: var(--ink-soft);
  backdrop-filter: blur(6px);
}
.pill-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10,20,30,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: #e5eff5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill-blue {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e5eef4;
  color: #3d7793;
  font-size: 12px;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--steel-500);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width:6px; height:6px; border-radius:50%; background: var(--steel-500); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #3d7793 0%, #5c8ea6 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(61,119,147,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(61,119,147,.7); }
.btn-white {
  background: #fff;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-white:hover { border-color: #cddce6; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
}

/* Nav */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(243,247,250,0.78);
  border-bottom: 1px solid rgba(15,40,60,0.05);
}
.nav-link {
  font-size: 14px; color: var(--ink-soft); font-weight: 400;
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--navy-900); background: rgba(15,40,60,0.05); }

/* Tag pills for portfolios */
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf1f6;
  color: #3d7793;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #d9e5ed;
}
.tag-dark {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #cddce6;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Inputs */
.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--steel-500);
  box-shadow: 0 0 0 3px rgba(92,142,166,0.15);
}
.label { font-size: 13px; color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; }

/* Utility */
.divide-line { border-top: 1px solid var(--line); }
.shadow-soft { box-shadow: 0 8px 32px -12px rgba(15,40,60,0.12); }

/* Hero portfolio image cards on home */
.portfolio-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(15,40,60,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px -30px rgba(15,40,60,0.32); }

.img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d6e5ee, #b4cbd9);
  overflow: hidden;
}
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.img-badge {
  position: absolute; top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-900);
}

/* Footer */
footer.site-footer {
  background: #eef4f8;
  border-top: 1px solid #dae5ec;
  color: var(--ink-soft);
}
footer .foot-h { color: var(--navy-900); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
footer a.foot-link { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-soft); transition: color .15s ease; }
footer a.foot-link:hover { color: var(--navy-900); }

/* Steps */
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  color: var(--steel-500);
  line-height: 1;
}

/* Testimonial quote card */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px -25px rgba(15,40,60,0.15);
}

/* Section spacing */
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* Hero content max width */
.container-narrow { max-width: 780px; margin: 0 auto; }

/* Small screens */
@media (max-width: 900px) {
  .nav-links-desktop { display: none; }
}
@media (min-width: 901px) {
  .nav-toggle-mobile { display: none; }
}

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Login split */
.login-panel {
  background: linear-gradient(135deg, #0a2c3d 0%, #164459 45%, #3d7793 100%);
  color: #fff;
}

.stat-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  color: #e5eff5;
}
.stat-row .val { font-weight: 600; color: #fff; }

/* Toggle group */
.toggle-group {
  display: inline-flex;
  background: #eef4f8;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.toggle-group button {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.toggle-group button.active {
  background: linear-gradient(135deg, #3d7793 0%, #5c8ea6 100%);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(61,119,147,.55);
}
.toggle-group button:not(.active):hover {
  background: rgba(15,40,60,0.04);
  color: var(--navy-900);
}

/* Brand logo image sizing */
.brand-logo { height: 36px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 30px; } }
.brand-logo-lg { height: 40px; width: auto; display: block; }
.brand-logo-invert-bg { background: #fff; border-radius: 10px; padding: 4px 10px; box-shadow: 0 6px 14px -8px rgba(15,40,60,0.35); }

/* Trust bar centering */
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.trust-item .trust-label { color: var(--navy-900); font-weight: 600; font-size: 15px; }
