:root {
  --brand: #853739;
  --brand-dark: #6c2b2d;
  --dark: #2e363a;
  --text: #444;
  --muted: #888;
  --grey: #f5f5f5;
  --line: #e5e5e5;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--dark); line-height: 1.3; margin: 0 0 .6em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }

/* Top bar */
.topbar { background: var(--dark); font-size: 14px; }
.topbar-inner { display: flex; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #d6d3d2; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { width: 200px; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--dark); }

/* Hero */
.hero {
  background: var(--dark) url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 120px 0;
}
.hero h1 { color: #fff; font-size: 44px; max-width: 600px; }
.hero p { font-size: 18px; max-width: 520px; margin: 0 0 28px; color: #eee; }

/* Sections */
.section { padding: 72px 0; }
.section.grey { background: var(--grey); }
.section.dark { background: var(--dark); color: #c9cdd0; }
.section.dark h3 { color: #fff; }
.section.dark a { color: #fff; }

.title { font-size: 30px; position: relative; padding-bottom: 14px; margin-bottom: 32px; }
.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--brand);
}
.title.light { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-img { width: 100%; border-radius: 4px; }
#process .split-img { max-height: 560px; object-fit: cover; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { margin-bottom: 24px; }
.steps li:last-child { margin-bottom: 0; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps h3 span { color: var(--brand); filter: brightness(1.6); margin-right: 6px; }
.steps p { margin: 0; }

/* Service cards */
.cards {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 20px;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
}
.cards li:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.cards svg {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Verticals */
.verticals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.verticals li {
  background: #fff;
  border-left: 3px solid var(--brand);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--dark);
}

/* Clients */
.clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.clients li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 12px;
  text-align: center;
  font-size: 15px;
  color: var(--dark);
}

/* Careers */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta { background: #fff; border-top: 3px solid var(--brand); padding: 32px; }
.cta p { margin: 0 0 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-grid h3 { font-size: 18px; }
.contact-grid p { margin: 0 0 12px; }

/* Footer */
.footer { background: #252b2e; color: #9aa0a3; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; padding-bottom: 20px; }
.footer p { margin: 0; }
.footer a { color: #d6d3d2; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .verticals { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  #process .split-img { max-height: 320px; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .title { font-size: 26px; }
  .cta-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards, .verticals, .clients { grid-template-columns: 1fr 1fr; }
  .verticals { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: space-between; gap: 8px; font-size: 13px; }
  .cta { padding: 24px; }
}
