/* Lebeausoft
   White and cool grey, navy text, one blue accent. Plus Jakarta Sans throughout. */

/* Self-hosted fonts (SIL OFL, see assets/fonts/OFL.txt) */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --white: #FFFFFF;
  --mist: #F3F5F9;        /* alternate section ground */
  --line: #DFE4EC;        /* borders and rules */
  --navy: #14213D;        /* headings, dark band */
  --slate: #4B5770;       /* body text, 7.3:1 on white */
  --blue: #1D5BD6;        /* the accent: links, buttons, focus */
  --blue-dark: #1747A8;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}

a { color: var(--blue); }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: 6px;
  z-index: 20;
}
.skip:focus { top: 1rem; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}
.btn--secondary:hover { background: var(--mist); border-color: #C9D1DD; }

.btn--small { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .95rem; }

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

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-mark { width: 2rem; height: 2rem; color: var(--navy); flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.btn) {
  display: inline-block;
  padding: .7rem 0;
  color: var(--navy);
  font-weight: 500;
  font-size: .975rem;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--blue); }

/* Hero ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 15ch;
}

.hero-lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

/* The hero's product index */
.portfolio {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .04), 0 16px 40px -24px rgba(20, 33, 61, .28);
}
.portfolio-title {
  margin: 0;
  padding: 1rem 1.1rem .6rem;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.portfolio ul { margin: 0; padding: 0; list-style: none; }
.portfolio li + li { border-top: 1px solid var(--line); }
.portfolio a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.portfolio a:hover { background: var(--mist); }
.portfolio-name {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.portfolio-desc {
  grid-column: 1;
  color: var(--slate);
  font-size: .95rem;
}
.chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue);
  transition: transform .15s ease;
}
.portfolio a:hover .chev { transform: translateX(3px); }

/* Clients --------------------------------------------------------------- */

.clients {
  background: var(--mist);
  border-block: 1px solid var(--line);
  padding-block: clamp(1.75rem, 4vw, 2.25rem);
}
.clients-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.clients-title {
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0;
}
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client-list li {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

/* Section heads --------------------------------------------------------- */

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.15; }
.section-head p { margin: 1rem 0 0; font-size: 1.15rem; }

/* Products -------------------------------------------------------------- */

.products { padding-block: clamp(4rem, 9vw, 7rem); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.product:last-child { padding-bottom: 0; }

.product-kind {
  margin: 0 0 .5rem;
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
}
.product h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}
.product-lede {
  margin: 1rem 0 1.5rem;
  max-width: 38rem;
  font-size: 1.125rem;
}

.checks {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #E6EEFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231D5BD6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-block: .6rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link::after {
  content: "";
  width: .9rem;
  height: .9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3h7v7M13 3 4 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3h7v7M13 3 4 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .25em; }

.facts {
  align-self: start;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--mist);
  border-radius: var(--radius);
  display: grid;
  gap: 1.25rem;
}
.facts div + div { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .875rem; font-weight: 500; color: var(--slate); }
.facts dd {
  margin: .2rem 0 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* About ----------------------------------------------------------------- */

.about {
  background: var(--mist);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
}
.about h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.15; }
.about-copy p { margin: 0 0 1rem; max-width: 40rem; font-size: 1.15rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* Contact --------------------------------------------------------------- */

.contact {
  background: var(--navy);
  color: #C9D2E3;
  padding-block: clamp(3.5rem, 7vw, 5rem);
}
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.contact h2 {
  color: var(--white);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
}
.contact p { margin: .75rem 0 0; max-width: 34rem; font-size: 1.125rem; }
.contact :focus-visible { outline-color: var(--white); }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #A9B4C9;
  border-top: 1px solid #2A3756;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.25rem;
  font-size: .925rem;
}
.footer-inner p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-block;
  padding: .6rem 0;
  color: #C9D2E3;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.site-footer :focus-visible { outline-color: var(--white); }

/* Small screens --------------------------------------------------------- */

@media (max-width: 56rem) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 1fr); }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  .nav li:not(:last-child) { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact .btn { width: 100%; }
  .client-list { gap: .5rem 1.5rem; }
}
