:root {
  --trusten-navy: #0d1b2a;
  --trusten-blue: #1e63d6;
  --trusten-charcoal: #2e3136;
  --trusten-gray: #687280;
  --trusten-light: #f2f4f7;
  --trusten-white: #ffffff;

  --font-primary: "Montserrat", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --navy: var(--trusten-navy);
  --royal: var(--trusten-blue);
  --royal-hover: #1854b8;
  --gray: var(--trusten-gray);
  --frame: #444c56;
  --light: var(--trusten-light);
  --white: var(--trusten-white);
  --line: rgba(13, 27, 42, 0.1);
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.12);
  --max: 1180px;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

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

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-frame {
  stroke: var(--frame);
}

.logo-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.6px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--trusten-navy);
}

.logo-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 5px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--trusten-blue);
}

.logo-sub::before,
.logo-sub::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--trusten-blue);
}

.logo-on-dark .logo-name {
  color: var(--trusten-white);
}

.logo-on-dark .logo-sub {
  color: #8eb4ff;
}

.logo-on-dark .logo-sub::before,
.logo-on-dark .logo-sub::after {
  background: #8eb4ff;
}

.logo-on-dark .logo-frame {
  stroke: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.site-nav a:not(.btn):hover,
.site-nav a.active {
  color: var(--royal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.btn-primary:hover {
  background: var(--royal-hover);
  border-color: var(--royal-hover);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero */
.hero {
  padding: 56px 0 28px;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 700;
  max-width: 11ch;
}

.hero-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 1.02rem;
  font-weight: var(--weight-semibold);
}

.hero-sub .service-desc {
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trusten-charcoal);
}

.hero-sub .finish {
  color: var(--royal);
}

.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* Trust bar */
.trust-bar {
  padding: 18px 0 56px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.trust-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--royal);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-light {
  background: var(--light);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lede {
  margin-top: 14px;
  color: var(--gray);
  font-size: 1.02rem;
}

.section-navy .lede {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--royal);
}

.finish-word {
  white-space: nowrap;
}

.finish-word .trusten {
  color: var(--navy);
}

.finish-word .finish {
  color: var(--royal);
}

.section-navy .finish-word .trusten {
  color: var(--white);
}

/* Cards / process / services */
.cards-4,
.cards-3,
.cards-2 {
  display: grid;
  gap: 20px;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 12px 0 8px;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.card .num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--royal);
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card .body {
  padding: 24px;
}

.service-card .brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Page hero */
.page-hero {
  padding: 64px 0 36px;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.page-hero h1 .finish,
.quote-strip h2 .finish {
  color: var(--royal);
}

.section-navy .quote-strip h2 .finish {
  color: #8eb4ff;
}

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
}

.form {
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  border: 1px solid #d5d8e0;
  border-radius: 4px;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--white);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  color: var(--gray);
  font-size: 0.9rem;
}

.form-success {
  display: none;
  padding: 28px;
  background: var(--light);
  border-left: 4px solid var(--royal);
}

.form-success.is-visible,
.form.is-sent + .form-success {
  display: block;
}

.form.is-sent {
  display: none;
}

.contact-aside h2 {
  font-size: 1.8rem;
}

.contact-aside p {
  margin-top: 12px;
  color: var(--gray);
}

.contact-meta {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.contact-meta a {
  color: var(--navy);
}

.contact-meta a:hover {
  color: var(--royal);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 28px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand p span {
  color: #8eb4ff;
  padding: 0 0.2em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  width: min(var(--max), calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.logo-on-dark {
  filter: brightness(0) invert(1);
}

/* Quote strip */
.quote-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.quote-strip h2 {
  max-width: 14ch;
}

.quote-strip .lede {
  max-width: 42ch;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid,
  .cards-4,
  .cards-3,
  .cards-2,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-photo img,
  .split img {
    height: 280px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 6px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 8px;
  }

  .form .row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 1100px) {
  .logo {
    gap: 18px;
  }

  .logo-name {
    font-size: 21px;
  }

  .logo-sub {
    font-size: 10.5px;
    letter-spacing: 0.26em;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .logo {
    gap: 14px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-sub {
    font-size: 9.5px;
    letter-spacing: 0.22em;
    margin-top: 4px;
  }
}
