/* sdlemieux design system - mobile-first, plain CSS */

/* ---------- tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-ink: #101823;
  --color-muted: #5a6b7d;
  --color-navy: #0e335b;
  --color-steel: #2f6fb0;
  --color-gold: #f4b742;
  --color-ink-on-gold: #141414;
  --color-line: #dde4ec;
  --color-focus: #141414;
  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 35, 0.06);
  --shadow-2: 0 14px 28px rgba(16, 24, 35, 0.16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1140px;
}

/* ---------- reset / base ---------- */
*,
* + * {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
a {
  color: var(--color-steel);
}
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ---------- typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}
h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  max-width: 62ch;
}


/* ---------- layout ---------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 760px) {
  .container {
    padding: 0 1.5rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  z-index: 5;
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1rem;
}
.nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
}
  .nav .brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-navy);
  }
  .brand-logo {
    height: 2.5rem;
    width: auto;
    border-radius: 0;
  }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  list-style: none;
  justify-self: center;
}
.nav ul a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: background-color 0.15s ease;
}
.nav ul a:hover,
.nav ul a:focus-visible {
  background: var(--color-line);
}
.nav a[aria-current="page"] {
  color: var(--color-navy);
  text-decoration: underline;
}
.lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}
.lang:hover {
  background: var(--color-line);
}
@media (max-width: 600px) {
  .nav {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .nav .brand,
  .nav ul,
  .lang {
    justify-self: center;
  }
}

/* ---------- sections ---------- */
.section {
  padding: 3rem 0;
}
.section-head {
  margin-bottom: 1.4rem;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 1.2rem;
  margin: 0 auto;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-1);
  position: relative;
}

.card .card-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

a.card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  border-color: var(--color-steel);
  box-shadow: var(--shadow-2);
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.97rem;
}
.card h3,
.card h2,
.card p {
  max-width: calc(100% - 90px);
}
.card img {
  border-radius: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-steel);
}
.card-badge svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

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

/* ---------- contact form ---------- */
.contact-form {
  max-width: 56ch;
}
input[name="honeypot"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
}
.field input,
.field textarea {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: var(--color-ink);
}
.field textarea {
  resize: vertical;
  min-height: 7rem;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-steel);
  border-color: transparent;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-steel);
  background: var(--color-steel);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.site-footer p {
  max-width: 62ch;
}
.site-footer a {
  color: var(--color-steel);
}

/* Section content (mirrors .container: centered column, horizontal padding) */
.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 760px) {
  .section-inner {
    padding: 0 1.5rem;
  }
}

.section-inner p {
  max-width: none;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-ink);
  box-shadow: var(--shadow-2);
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-steel);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background-color: #f6f7fb;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(16, 24, 35, 0.45),
    rgba(16, 24, 35, 0.65)
  );
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.home-hero .eyebrow {
  color: var(--color-bg);
}

.home-hero h1 {
  color: var(--color-bg);
  max-width: 12em;
}

.home-hero p:last-of-type {
  max-width: 34em;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero .actions {
  margin-top: 24px;
}

.home-hero .actions .btn {
  background-color: var(--color-steel);
  color: var(--color-bg);
}

.home-hero .actions .btn:hover {
  background-color: var(--color-ink);
}



@media (min-width: 900px) {
  .home-hero {
    padding: 96px 0 80px;
  }
}