:root {
  --blue: #26319c;        /* home hero */
  --brand: #2d3b9d;       /* logo, links */
  --navy: #00226d;        /* banner band */
  --orange: #ff6c00;      /* banner line */
  --cta: #e2772f;         /* buttons */
  --cta-hover: #c9631f;
  --ink: #1f2330;
  --muted: #5a6072;
  --line: #e3e5ee;
  --soft: #f5f6fb;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); }

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav { background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 24px;
}
.brand img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--cta); }
.nav-links a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--cta); color: var(--white);
  font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 999px;
  padding: 15px 32px; cursor: pointer;
}
.btn:hover { background: var(--cta-hover); }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 24px;
}
.hero-copy { align-self: center; padding: 72px 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 0.6em; }
.hero p { font-size: 20px; margin: 0 0 32px; }
.hero-art { display: block; width: 100%; max-width: 480px; justify-self: end; margin-top: 48px; }

/* ---------- Inner page banner ---------- */
.page-head {
  position: relative;
  --art-h: min(clamp(190px, 28vw, 330px), calc((100vw - 32px) / var(--ratio)));
  --band-h: calc(var(--art-h) * (var(--band) + var(--line-w)));
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--band-h);
  background: var(--navy);
  border-bottom: calc(var(--art-h) * var(--line-w)) solid var(--orange);
}
.page-head-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 32px 24px 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.page-head h1 {
  font-size: clamp(38px, 4.4vw, 52px);
  margin: 0 0 calc(var(--band-h) + var(--art-h) * 0.22);
}
.page-head-art { display: block; height: var(--art-h); width: auto; max-width: none; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.intro { text-align: center; font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 auto; }
.section-title { text-align: center; font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 40px; }

/* Home: service teasers */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 28px; display: flex; flex-direction: column;
}
.card h3 { font-size: 26px; color: var(--brand); }
.card p { margin: 0 0 20px; color: var(--muted); flex: 1; }

.cta-band { background: var(--navy); color: var(--white); text-align: center; border-bottom: 6px solid var(--orange); }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 38px); }
.cta-band p { margin: 0 0 28px; opacity: 0.9; }

/* Services */
.service {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px 56px;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(32px, 3.4vw, 42px); color: var(--ink); }
.service p { margin: 0 0 24px; }

blockquote {
  margin: 0 0 24px; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--orange);
  color: var(--muted); font-style: italic;
}
blockquote footer, .quote footer {
  margin-top: 10px; font-style: normal; font-weight: 700; color: var(--ink); font-size: 16px;
}
blockquote footer span, .quote footer span { font-weight: 400; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.person { text-align: center; }
.person img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--brand);
  margin-bottom: 20px;
}
.person h2 { font-size: 26px; margin-bottom: 4px; }
.person .role { color: var(--cta); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.person p { color: var(--muted); margin: 0; font-size: 17px; }

/* Logos */
.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 32px 56px;
}
.logos img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.logos img.tall { height: 72px; }

/* Testimonials */
.quotes { display: grid; gap: 28px; }
.quote {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 40px; position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 4px; left: 18px;
  font-family: "Lora", Georgia, serif; font-size: 72px; line-height: 1; color: var(--orange); opacity: 0.6;
}
.quote p { margin: 0 0 14px; }
.quote p:last-of-type { margin-bottom: 0; }

/* Contact */
.contact-lede { text-align: center; font-size: 20px; margin: 0 0 40px; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.form label span { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid #c9ccd8; border-radius: 8px; padding: 12px 14px; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form textarea { min-height: 160px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 15px; color: var(--muted); margin: 0; }
.direct { text-align: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }
.direct a { font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: 36px 0; text-align: center; font-size: 16px; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer a { color: var(--brand); font-weight: 700; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

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

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap, .narrow { padding: 0 16px; }
  .nav-inner { padding: 16px; justify-content: center; }
  .brand img { height: 34px; }
  .nav-links { justify-content: center; gap: 4px 20px; }
  .nav-links a { font-size: 13px; }

  .hero-inner { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
  .hero-copy { padding: 48px 0 8px; text-align: center; }
  .hero-art { justify-self: center; max-width: 300px; margin-top: 24px; }

  .page-head-inner { flex-direction: column; align-items: center; padding: 28px 16px 0; gap: 12px; }
  .page-head h1 { margin: 0; text-align: center; }

  .section { padding: 48px 0; }
  .service { grid-template-columns: 1fr; padding: 40px 0; gap: 8px; }
  .team-grid { grid-template-columns: 1fr; }
  .quote { padding: 32px 22px 24px; }
  .form .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .logos { gap: 24px 36px; }
  .logos img { height: 40px; }
  .logos img.tall { height: 56px; }
}
