/* Portus 42 · site styles. Brand tokens live here; the editor can also
   override them at runtime from content/home.json (theme section). */

:root {
  --portus-blue: #125DA3;
  --portus-navy: #0E2A3F;
  --portus-cream: #F7F5ED;
  --portus-ink: #1A2733;
}

* { margin: 0; box-sizing: border-box; }

/* Keyboard focus: visible on every interactive element, on both the navy
   hero and white sections. :focus-visible so mouse clicks stay clean. */
:focus-visible { outline: 2px solid var(--portus-blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible { outline-color: var(--portus-cream); }

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: var(--portus-ink);
}

/* ---------- Hero: full-bleed diagonal band ---------- */
.hero {
  background: linear-gradient(105deg,
    var(--portus-navy) 0%, var(--portus-navy) 62%,
    var(--portus-blue) 62%, var(--portus-blue) 100%);
  color: var(--portus-cream);
  min-height: 64vh;
  padding: 0 5vw;
  position: relative;
  overflow: hidden;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 34px 0;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--portus-cream);
  text-decoration: none;
  white-space: nowrap;
}
.logo img { width: 36px; height: auto; display: block; }

.site-nav a {
  color: #c9d6e2;
  margin-left: 34px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }

.hero-in {
  max-width: 640px;
  padding: 12vh 0;
}
.hero-in h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
}
.hero-in p {
  margin: 24px 0 34px;
  line-height: 1.75;
  color: #c9d6e2;
}

.btn {
  display: inline-block;
  background: var(--portus-cream);
  color: var(--portus-navy);
  padding: 15px 34px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
}
.btn:hover { filter: brightness(1.06); }

/* ---------- Sections ---------- */
/* Pinned chapter labels: section name sits in a narrow left column and
   stays pinned while its content scrolls; the next section pushes it away.
   Hairline between chapters. Nothing slanted below the hero. */
section {
  max-width: 1050px;
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
section + section { border-top: 1px solid #ece9e0; }

h2 {
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--portus-blue);
  margin-bottom: 36px;
}
section > h2 { position: sticky; top: 44px; margin: 0; }

/* ---------- Services: four general categories, flat grid, no prices ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.svc {
  border-top: 3px solid var(--portus-blue);
  padding-top: 22px;
}
.svc-num {
  color: #99a1ab;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 10px;
}
.svc h3 {
  font-size: 17px;
  color: var(--portus-navy);
  margin-bottom: 10px;
}
.svc p {
  font-size: 14px;
  line-height: 1.65;
  color: #55606a;
}

/* ---------- Clients: one client partnership, four columns ---------- */
.clients-head { display: flex; align-items: center; gap: 18px; }
.clients-logo { width: 44px; height: auto; flex: none; display: block; }
.clients-kicker {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #99a1ab;
  font-weight: 600;
  margin-bottom: 6px;
}
.clients-name {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--portus-navy);
  line-height: 1.2;
}
.clients-intro {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #55606a;
  max-width: 640px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.clients-col { border-top: 1px solid #d6dde4; padding-top: 18px; }
.clients-col h4 {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--portus-blue);
  margin-bottom: 10px;
  font-weight: 700;
}
.clients-col p { font-size: 14px; line-height: 1.65; color: #55606a; }
.clients-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--portus-navy);
  text-decoration: none;
  border-bottom: 1px solid #c9d6e2;
  padding-bottom: 2px;
}
.clients-link:hover { border-color: var(--portus-blue); }

/* ---------- Numbers ---------- */
.stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-n {
  font-size: 44px;
  font-weight: 700;
  color: var(--portus-blue);
}
.stat-l {
  font-size: 13px;
  color: #6a7683;
  margin-top: 4px;
  max-width: 150px;
}

/* ---------- About: founder note ---------- */
.founder p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--portus-navy);
  max-width: 680px;
}
.founder p + p { margin-top: 18px; }
.founder .sig { margin-top: 22px; font-size: 14px; color: #7c8791; }

/* ---------- Contact page: two columns on white, hairline divider ---------- */
.contact {
  background: #fff;
  padding: 96px 5vw;
}
.contact-in {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}
.contact-copy { padding-top: 8px; border-right: 1px solid #e6e2d6; padding-right: 56px; }
.contact .eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--portus-blue);
  text-transform: uppercase;
}
.contact .contact-title,
.contact h1.contact-title {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  margin: 18px 0 22px;
  color: var(--portus-navy);
}
.contact .contact-title em { font-style: normal; color: var(--portus-blue); }
.contact-copy > p {
  line-height: 1.75;
  color: #55606a;
  max-width: 420px;
}
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 420px;
}
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--portus-navy);
  line-height: 1.55;
  font-size: 15px;
}
.steps b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--portus-blue);
  border-radius: 50%;
  font-weight: 600;
  font-size: 13px;
  color: var(--portus-blue);
}
.steps small { display: block; color: #7c8791; font-size: 13px; margin-top: 2px; }
.contact .testimonial { margin-top: 40px; max-width: 420px; }
.contact .tq {
  display: block;
  font-size: 17px;
  line-height: 1.6;
  color: var(--portus-navy);
}
.contact .ta {
  display: block;
  font-size: 13px;
  color: #8b949e;
  margin-top: 10px;
}
.contact .ta::before { content: "· "; }
.contact .alt { margin-top: 28px; font-size: 14px; color: #7c8791; }
.contact .alt a {
  color: var(--portus-navy);
  text-decoration: none;
  border-bottom: 1px solid #c9d6e2;
}
.contact .alt a:hover { border-color: var(--portus-blue); }

/* Form card */
.card { background: #fff; padding: 0; }
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--portus-navy);
  margin-bottom: 10px;
}
.field label i {
  font-style: normal;
  color: #a0a8b0;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 8px;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--portus-ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid #d6dde4;
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #a9b1b9; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--portus-blue); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field.big {
  margin: 6px -20px 30px;
  padding: 22px 20px 18px;
  background: var(--portus-cream);
  border-radius: 4px;
}
.field.big label { color: var(--portus-blue); }
.field.big .q {
  display: block;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--portus-navy);
  margin-bottom: 14px;
}
.field.big textarea { border-bottom-color: #cfd6c9; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.btn-primary {
  background: var(--portus-blue);
  color: #fff;
  margin-top: 12px;
}
.btn-block {
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 17px 34px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.btn-block:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(18, 93, 163, .7); }
.fine { margin-top: 16px; font-size: 12.5px; color: #8b949e; text-align: center; line-height: 1.6; }

/* ---------- Home: contact handoff band ---------- */
.contact-cta {
  max-width: 1050px;
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid #ece9e0;
  background: #fff;
}
.contact-cta + section { border-top: 1px solid #ece9e0; }
main > :last-child { padding-bottom: 120px; }
.contact-cta > h2 { position: sticky; top: 44px; margin: 0; }
.contact-cta .testimonial { max-width: 640px; margin: 0 0 30px; }
.contact-cta .tq { display: block; font-size: 20px; line-height: 1.6; color: var(--portus-navy); }
.contact-cta .ta { display: block; font-size: 13px; color: #8b949e; margin-top: 10px; }
.contact-cta .ta::before { content: "· "; }
.contact-cta .btn-primary { margin-top: 0; }
.contact-cta .cta-sub { margin-top: 16px; font-size: 13px; color: #8b949e; }

/* ---------- Contact page header (no hero copy) ---------- */
.hero-compact { min-height: 0; background: var(--portus-navy); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 26px 5vw;
  font-size: 12px;
  color: #6a7683; /* 4.9:1 on white; #99a1ab failed AA at this size */
  display: flex;
  justify-content: space-between;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--portus-navy); }
.contact .alt a[href^="tel:"] { white-space: nowrap; }

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  /* Header: logo row, nav row. Links never wrap or clip; a 4th link
     (Reviews later) fits because the row is allowed to wrap onto a
     third line rather than shrink. */
  .site-header { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 0; }
  .site-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; width: 100%; }
  .site-nav a { margin-left: 0; font-size: 13px; white-space: nowrap; }
  .logo { font-size: 16px; }
  .logo img { width: 28px; }

  /* Hero: about 480px on a 740px phone instead of 600. */
  .hero { min-height: 0; }
  .hero-in { padding: 48px 0 56px; }
  .hero-in h1 { font-size: 34px; }
  .hero-in p { margin: 18px 0 26px; }

  /* Chapters: tighter rhythm; labels sit above content instead of pinned. */
  section, .contact-cta { padding: 44px 20px; grid-template-columns: 1fr; gap: 20px; }
  section > h2, .contact-cta > h2 { position: static; margin-bottom: 0; }

  /* Services grid: 2x2 on tablets/phones. */
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .clients-grid { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
  .clients-logo { width: 36px; }

  /* Numbers: three across; they are short. */
  .stats { gap: 16px; flex-wrap: nowrap; }
  .stat { flex: 1 1 0; min-width: 0; }
  .stat-n { font-size: 30px; }
  .stat-l { max-width: none; }

  .founder p { font-size: 17px; }
  main > :last-child { padding-bottom: 72px; }
  .site-footer { flex-wrap: wrap; gap: 6px 18px; }
}
@media (max-width: 900px) {
  .contact { padding: 64px 24px; }
  .contact-in { grid-template-columns: 1fr; gap: 48px; }
  .contact-copy { border-right: 0; padding-right: 0; }
  .field.big { margin-left: -8px; margin-right: -8px; padding: 18px 14px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
