/* JMPulse Canada: shared styles for / (French) and /en/ (English). Brand: ../../brand/README.md */

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #4d7b4b;
  --deep: #2e6241;
  --ink: #173f2b;
  --muted: #4f6857;
  --cream: #fffdeb;
  --meadow: #eff1dc;
  --harvest: #ddd36a;
  --line: rgba(23, 63, 43, 0.14);
  --radius: 18px;
  --max: 1080px;
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--meadow);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--harvest);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--cream);
}

/* Header */

.site-header {
  padding-block: 22px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  display: block;
  width: 168px;
  height: auto;
}

.lang {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--cream);
}

/* Hero */

.hero {
  padding-block: 48px 72px;
}

.hero h1 {
  max-width: 17ch;
}

.lead {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}

.button.primary {
  color: var(--cream);
  background: var(--green);
}

.button:hover {
  color: var(--cream);
  background: var(--deep);
  border-color: var(--deep);
}

.button svg,
.contact-row svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sections */

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section.tinted {
  background: var(--cream);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.tinted .card {
  background: #fff;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .grid.services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact */

.contact {
  color: var(--cream);
  background: var(--green);
  border-top: 0;
}

.contact .section-head p {
  color: rgba(255, 253, 235, 0.82);
}

.contact-list {
  display: grid;
  gap: 32px 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 720px) {
  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person {
  display: grid;
  gap: 10px;
  align-content: start;
}

.person h3 {
  margin-bottom: 2px;
  color: var(--cream);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 253, 235, 0.28);
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
}

.contact-row:hover {
  color: var(--cream);
  background: var(--deep);
}

.contact-row span {
  display: grid;
}

.contact-row small {
  color: rgba(255, 253, 235, 0.75);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-row strong {
  overflow-wrap: anywhere;
}

.contact .note {
  color: rgba(255, 253, 235, 0.82);
}

.contact .note a {
  color: var(--cream);
}

/* Footer */

.site-footer {
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (max-width: 600px) {
  .hero {
    padding-block: 24px 56px;
  }

  .section {
    padding-block: 56px;
  }

  .logo img {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
